Hi,
I am trying to use s:token and I have the following scenario where I think
token doesn't behave as I expect (I accept I might be wrong). In a few words
the token value is not refreshed as I expected.
I use shale 1.0.3, myfaces 1.1.5. The org.apache.shale.component.Token class is
the same in shale 1.0.3 and 1.0.4 (except comments).
The page that I have contains a table and a link for deleting the rows from the
table. I select a row by clicking on it then I click on the delete link to
delete the row. All these actions are posts to the same page. Selecting a row
is an "immediate" event and it bypasses any validation (in the action listener
method I call getFacesContext().renderResponse() to bypass any validation). The
delete link has immediate set to false. The problem is that after I delete one
row, the value of the token is not refreshed, and I cannot delete any other
row!
I would have thought that after the validation is passed the token value should
be refreshed but that is not the case. The token value is saved in the
component attributes map and the attributes map is saved and restored to/from
the state, and then used in Token.getToken(). One could trigger the refresh by
removing the TOKEN_ATTRIBUTE_KEY attribute but I think it is a hack.
Any thoughts?
Thanks
---------------------------------
All new Yahoo! Mail
---------------------------------
Get news delivered. Enjoy RSS feeds right on your Mail page.