I am currently using pretty faces 1.2.6 and encounter the problem that a page action is executed twice. So when i go to the defined url (e.g. http://localhost:8080/name/project/a/start) then i see two invocations of the given method with a short delay (10ms) between.
Below you see the defined entry in the config file:
What can cause the duplicate requests? I am using JSF 1.2 together with RichFaces 3.3.3 and MyFaces 1.2.9.
I saw that a completely new version (3.3.x) is available but i have currently the problem that an API that i am using is not existing any more and i do not find a replacement hint. Maybe somebody can given me a hint so that i can upgrade.
Are you sure that there is only one request sent to the server? You could verify this using Firebug or something like this.
However I strongly suggest to update PrettyFaces to the most recent version. The version you are using is very very very old and the recent versions of PrettyFaces contain many important bugfixes.
What did prettyContext.getCurrentCalculatedUri() return in 1.2.6? The original request URI? In this case you could try prettyContext.getRequestURL().toString(). Or you could use prettyContext.getCurrentMapping() to get the current URL mapping.
I hope this helps.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Comments are closed.
Do you play Magic?
Get TopDecked MTG, the essential all-in-one Magic App, built by players, for players. Free to use, forever.
Deck Simulator (3d)
Cards & Prices
Top 8 Decks & Metagame
Get updates from OCPSoft
If you find our tools useful, please consider making a donation to help us stay online and building software!