Hi, After clicking on an image, the user is redirected to a new page like:
/viewPalermoUser.seam?accountId=100245
with the code:
<s:link title="#{messages['palermo.userlist.view']}" view="/portal/custom/palermo/administration/viewPalermoUser.xhtml"
propagation="none">
<f:param name="accountId" value="#{account.id}"/>
<img src="/static/portal/customer/palermo/find.png" style="border:none"/>
</s:link>
There is a backing bean where i take the account id and print the account information for that user (when the page is first rendered all it's ok).
BUT have a rich tab panel and a search button. Whenever i press one of this, the accountId value is NULL, although in the url it is the OK, so it has a real value.
I do not understand why the accountId's value is lost if a postback occurs?
I take the accountId like:
@RequestParameter
private Long accountId;
Can anyone give me a clue?
UPDATE: Finally it works. Use page param like Petar suggested. Had problems until i realized that:
A seam page param is not available in @Create method of the backing bean. Workaround: create a page action to use this param. (must be usefull for others)
Thanks.