Olof Næssén wrote:
Hello!
I have a jsp page which is reached by using a commandLink with a
parameter. In the page I have a form with validation. If validation
fails, and the user is redirected back to the page, the parameter is
lost. Is this expected behavior? Is there a way around this?
Hmm..you have page A which has a commandLink that encodes a URL for page
B with a parameter?
Why would you use an f:param tag rather than using t:updateActionListener?
Anyway, in page B, obviously no validation is going to occur on first
access, because this is not a "postback" to page B; this is simply a
"first render" of the page. The special parameter value *will* be
accessable at this point.
Are you somehow then expecting this parameter to continue to exist as
page B is submitted? It won't be. Instead, just copy it into the
"backing bean" for page B on the first render...
Regards,
Simon