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
Related Tutorials/Questions & Answers:
.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 Beginnershello .. 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
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
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-ServletUnable 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-Servletdifference 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 write data to a pdf file when i run jsp pagewrite 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 pagewrite 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 pagewrite 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 pagewrite 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 ExampleStruts2.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 arrayxor 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 arrayxor 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
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
xor operator not working correctly with arrayxor 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 TagStruts 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
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 Beginnersconvert 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
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 - StrutsCalling
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
Action and ActionSupportAction 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
Action formAction form how to store details from user and how to create asp file or etc
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