Action of h:commanLink in xhtml page doesn't run correctly

Action of h:commanLink in xhtml page doesn't run correctly

In my jsf/facelet xhtml page, when click on h:commanLink, the same page on which has h:commanLink is created in a new window. At second click on the new page, action normally run and rediretion to target page is ok.

xhtml code snippet:

<h:commandLink action="#{kmmTahliye.doKokKomurSahaBilgileri}"
value="KOK-KÃ?MÃ?R SAHA BÄ°LGÄ°LERÄ°NÄ° GÃ?NCELLE"
target="KMM_SAHABILGILERI" >
</h:commandLink>

action code snippet:

public String doKokKomurSahaBilgileri() {
Map<String,Object> map=FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
map.put("vardiyaBaslangicSaati", getVardiyaBaslangicSaati());
return "kokKomurSahaBilgileri";
}

Why doesn't action run at first click on the first page.
Thanks to All.
View Answers

August 17, 2010 at 11:36 AM

Hi Friend,

Please visit the following link:

http://www.roseindia.net/jsf/

Thanks









Related Tutorials/Questions & Answers:
Action of h:commanLink in xhtml page doesn't run correctly - Development process
Action of h:commanLink in xhtml page doesn't run correctly  In my jsf/facelet xhtml page, when click on h:commanLink, the same page on which has h:commanLink is created in a new window. At second click on the new page, action
.xhtml or .jsp page in a jsf project
.xhtml or .jsp page in a jsf project  in a jsf project which pages should i use, .jsp or .xhtml? and why ? what are adventages or dis adventages jsp and xhtml pages. thanks
Advertisements
hello .. still doesn't run - Java Beginners
hello .. still doesn't run  Iam still having a prblem in running this problem errors are: can not resolve symbol import.util.Scanner class Scanner another error is can not resolve symbol method setname(java.lang.String
Design a web page using XHTML and JavaScript that does the followings:
Design a web page using XHTML and JavaScript that does the followings:  Design a web page using XHTML and JavaScript that does the followings: 1... page 3- A frame that shows two images (img1, img2) at a time. a. Upon
What is XHTML?
with the page. But as XHTML is a combination of html and xml, writing code is much harder...What is XHTML XHTML (eXtensible HyperText Markup Language) is extended... for creating XHTML document In html, if you omit an end-tag or leave a quote etc
java program run on thml page?
java program run on thml page?  how to run java program on html page using text area
Displaying different portions of a page subsequently on the basis of action
Displaying different portions of a page subsequently on the basis...: with js calender beside these and a SEARCH Button(When the page initially loads... with previous portion on the same page that contains four Radio buttons(Group
Comparing arrays not working correctly?
Comparing arrays not working correctly?  Comparing arrays not working correctly
How to run a simple jsp page in tomcat???
How to run a simple jsp page in tomcat???  i am trying to run a simple jsp page in tomcat,i am having web.xml also in WEB-INF folder. but it is giving me this error below....please help me to solve it. my jsp page code is given
Unable to run the jsp page - JSP-Servlet
Unable to run the jsp page  Expert:Naga Hi, I need solution... page is shipping and billing details and the next page is payment details. What... on the textbox of the payment.jsp page and also calculate the tax payment and shipping
How to pass Array of string from action class to jsp page
How to pass Array of string from action class to jsp page  this is my action class package login.ipm; import java.sql.*; import java.util.ArrayList... jsp page is <%-- Document : select_service Created on : Aug 31
Maven Dependency maven-xhtml-plugin >> 1.2
You should include the dependency code given in this page to add Maven Dependency of maven-validator >> maven-xhtml-plugin version1.2 in your project
Maven Dependency maven-xhtml-plugin >> 1.0
You should include the dependency code given in this page to add Maven Dependency of maven-validator >> maven-xhtml-plugin version1.0 in your project
Maven Dependency maven-xhtml-plugin >> 1.1
You should include the dependency code given in this page to add Maven Dependency of maven-validator >> maven-xhtml-plugin version1.1 in your project
XHTML - JSP-Servlet
difference between HTML and XHTML  Is there difference between HTML and XHTML
FORM Tag Correctly for Uploading Files.
FORM Tag Correctly for Uploading Files.  How To Write the FORM Tag Correctly for Uploading Files?   Hi friends, When you clicks the submit... is controlled by a properly written <FORM...> tag as: <FORM ACTION
how to forward select query result to jsp page using struts action class
how to forward select query result to jsp page using struts action class  how to forward select query result to jsp page using struts action class
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
Struts2.2.1 Action Tag Example
Struts2.2.1 Action Tag Example The Action tag  is used to call action class directly from a JSP page. We can call action directly by specifying... in the action tag, the method is executed and the result page will be displayed
xor operator not working correctly with array
xor operator not working correctly with array  main { int a[2...] ^= a[0]; //a[0] ^= a[1]; //this is working correctly. a[0] ^= a[1] ^= a[0] ^= a[1]; //this didn't work correctly why? printf("after swapping: %d %d\n
xor operator not working correctly with array
xor operator not working correctly with array  main { int a[2...] ^= a[0]; //a[0] ^= a[1]; //this is working correctly. a[0] ^= a[1] ^= a[0] ^= a[1]; //this didn't work correctly why? printf("after swapping: %d %d\n
no action mapped for action - Struts
no action mapped for action  Hi, I am new to struts. I followed...: There is no Action mapped for action name HelloWorld
Including applet in JSF (XHTML)
Including applet in JSF (XHTML)  Hi I want to generate graphs in facelets project. We are using JSF 2.0. We have Perspective for Java to generate graphs. in this project. So, Perspective for Java is providing an applet which i
how to pass string array from action class to jsp page? pls reply me.
how to pass string array from action class to jsp page? pls reply me.  how to pass string array from action class to jsp page? pls reply me.  .... In your action class, String[] arr = {"A","B","C","D"}; for (int x = 0; x < arr
xor operator not working correctly with array
xor operator not working correctly with array  main { int a[2...] ^= a[0]; //a[0] ^= a[1]; //this is working correctly. a[0] ^= a[1] ^= a[0] ^= a[1]; //this didn't work correctly why? printf("after swapping: %d %d\n
Struts 2 Action Tag
Struts 2 Action Tag "action" Tag in Struts 2 is used by developer to call action class from a JSP page. For calling the action class, developer must assign action name. Struts 2 Action Tag is one of the Data Tags, which are used
profile doesn't match application identifier
profile doesn't match application identifier  profile doesn't match application identifier
How To Write the FORM Tag Correctly for Uploading Files?
How To Write the FORM Tag Correctly for Uploading Files?  How To Write the FORM Tag Correctly for Uploading Files
Pass value of rasio button from jsp page to action class(not conventional problem)
Pass value of rasio button from jsp page to action class(not conventional problem)  Hi, I have a jsp page that has code which goes ike this: <...; </table> <s:submit value="Delete" action="deleteSchedule
JDBC doesn't provide an EOF method.
JDBC doesn't provide an EOF method.  How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method
Data is not inserting correctly in mysql database.
Data is not inserting correctly in mysql database.  Hello Sir, below is my code to insert data into database by list iteration through for loop but it is not getting inserted ..it is taking only one value
convert Html to Xhtml - Java Beginners
convert Html to Xhtml  Hi All, I am trying to convert html to xhtml in java. to do this i am using htmlcleaner api. i am not able to do with it.i ve not even got basic example on that so please can u send some example
Forgot Password Action,Struts Forgot Password Action class
Forgot Password Action       Forgot Password Action The password forgot Action is invoked... password action requires user name and passwords same as you had entered during
In JSF2 application, source code written in xhtml file is downloading
for the development. (Due to complexity of code , we can not change xhtml page to jsp...In JSF2 application, source code written in xhtml file is downloading  ... on xhtml pages, source code written on xhtml pages is downloaded. Same application
Maven Dependency materialdesignicons-action >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.michaelpardo >> materialdesignicons-action version1.0.1 in your project
Maven Dependency materialdesignicons-action >> 1.0.2
You should include the dependency code given in this page to add Maven Dependency of com.michaelpardo >> materialdesignicons-action version1.0.2 in your project
NoughtsAndCrossesGame play button doesn't work
NoughtsAndCrossesGame play button doesn't work   /* * To change this template, choose Tools | Templates * and open the template in the editor...); //TODO } // Register the same listener for each button as the action
NoughtsAndCrossesGame play button doesn't work
NoughtsAndCrossesGame play button doesn't work   /* * To change this template, choose Tools | Templates * and open the template in the editor...); //TODO } // Register the same listener for each button as the action
Calling Action on form load - Struts
Calling Action on form load  Hi all, is it possible to call... this list is coming from the action which i m calling before the page is being... to direct user directly to this page i m calling an action which is preparing a list
Checking elsewhere with correctly blocked code and question
Checking elsewhere with correctly blocked code and question  Hi I have already posted this question but realised I had made a few mistakes. So... what ever they have typed to the same page used to enter it on. However it has
Action and ActionSupport
Action and ActionSupport  Difference between Action and ActionSupport.... The developer implements this interface of accessing string field in action... for implements Action and some other interfaces and provides some feature like data
Why doesn't Java allow overriding of static methods?
Why doesn't Java allow overriding of static methods?  Why doesn't Java allow overriding of static methods
Action form
Action form  how to store details from user and how to create asp file or etc
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'jpa.sequence' doesn't exist
' doesn't exist  Hi, I am developing an application using JPA 2.1... 'jpa.sequence' doesn't exist Error Code: 1146 Call: UPDATE SEQUENCE SET SEQ...: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: T able 'jpa.sequence' doesn't exist Error
Action Tag (Data Tag) Example
tag that is used to call actions directly from a JSP page by specifying the action.... The action tag  is used to call actions directly from a JSP page... Action Tag (Data Tag) Example      
standard action - JSP-Servlet
action passes the request to another page,page may be a html page or jsp page..." /> :- This tag is used to embed a file in a jsp page at the run time...; hi friend.. Action Allow you to specify components from a tag library
SQL select statement doesn't return any rows,
SQL select statement doesn't return any rows,  When an SQL select statement doesn't return any rows, is an SQLException thrown

Ads