Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Development-process Action of h:commanLink in xhtml page doesn't run correctly

Have Programming Question? Ask it here!
 
 
 


Abdurrahman Sert
Action of h:commanLink in xhtml page doesn't run correctly
1 Answer(s)      3 years and 11 months ago
Posted in : Development process


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.

Advertisement
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
Comparing arrays not working correctly?
Comparing arrays not working correctly?  Comparing arrays not working correctly
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
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
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
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 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
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
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
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
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
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
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
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 the action name and an optional namespace.The body content of the tag is used to render
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
Identify correctly-implemented deployment descriptor elements for a CMP bean (including container-managed relationships).
Identify correctly-implemented deployment descriptor elements for a CMP bean (including container-managed... correctly-implemented deployment descriptor elements for a CMP bean
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
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
profile doesn't match application identifier
profile doesn't match application identifier  profile doesn't match application identifier
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
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
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
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
Using JSP in pure XML generating conforming XHTML
:expression> to show content on a JSP page. Since in XHTML format JSP's ... Using JSP in pure XML  generating conforming XHTML...; Example program to demonstrate using JSP in pure XML generating conforming XHTML
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets  Hi.. there if we are giving a small application to end user he does not know to run server by service runner... and he does not know
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
Differences from HTML 4.01 and XHTML 1.x
Differences from HTML 4.01 and XHTML 1.x   The HTML5 has been updated... that is only slightly related to the rest of the page. It can be used... of nav elements and is considered separate from the main content of the page
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
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
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
Multiple submit buttons in single xhtml form - Java Server Faces Questions
Multiple submit buttons in single xhtml form  Hi all, Here I am attaching the source of the page , which containig two submit buttons. Somebody suggested to keep eaxh button in different form. I am new to JSF, can anyone split
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
Multiple submit nuttons in single xhtml form - Java Server Faces Questions
Multiple submit nuttons in single xhtml form  Hi, I am facing problem in my JSF application, where in single page , we have two submit buttons. If any one of the button is clicked , then entire form is submitted. How to avoid
Action Tag (Data Tag) Example
tag that is used to call actions directly from a JSP page by specifying the action... page using <s:action> tag as shown in the success.jsp page. The action tag  is used to call actions directly from a JSP page by specifying the action
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
Advertisements
 

 

 

DMCA.com