-
1. Refresh of the page, resends the last action.
nbelaevski Jan 25, 2011 4:14 AM (in response to ashwaja)Hi Harish,
Refreshing page just after POST request causes it to be resent (BTW, browser should warn you about that). To resolve this, make navigation rule do a redirect to the original page.
-
2. Refresh of the page, resends the last action.
ashwaja Jan 25, 2011 4:24 AM (in response to nbelaevski)Thanks Nick, but my navigation is set to redirect the original page.
Thanks,
Harish.
-
3. Refresh of the page, resends the last action.
ilya40umov Jan 25, 2011 4:27 AM (in response to ashwaja)Do you have <redirect/> element inside your navigation rule?
-
4. Refresh of the page, resends the last action.
ashwaja Jan 25, 2011 4:28 AM (in response to ilya40umov)Yes.
-
5. Refresh of the page, resends the last action.
ashwaja Jan 25, 2011 4:31 AM (in response to ashwaja)This is how I have coded.
[code]
<navigation-case>
<from-outcome>policy</from-outcome>
<to-view-id>/jsp/policy.faces</to-view-id>
<redirect />
</navigation-case>
[/code]
Thanks,
Harish.
-
6. Refresh of the page, resends the last action.
ilya40umov Jan 25, 2011 4:35 AM (in response to ashwaja)As a workaround you can pass an ID of the selected entity with a4j:actionparam and hence if won't work at the second time cause the entity doesn't exist any more.
-
7. Refresh of the page, resends the last action.
ashwaja Jan 25, 2011 10:38 AM (in response to ilya40umov)Hi,
We got this resolved.
I just replaced the delete component from <h:commandButton> to <a4j:commandButton>.
Thanks,
Harish.