Dears,

I'm facing a problem with myfaces-1.4 in a framed web app under JBoss Seam 
(http://labs.jboss.com/portal/jbossseam) and it seems that the problem needs 
upstream support (you).

The problem is the following. When a page with parameters and an <h:form> in it 
is first displayed through a GET, myfaces correctly issues the phase events 
RESTORE_VIEW, then RENDER_RESPONSE. However, when a subsequent GET attempts 
showing the very same page, possibly with different parameters, myfaces invokes 
the following phases instead: RESTORE_VIEW, APPLY_REQUEST_VALUES, 
PROCESS_VALIDATIONS, UPDATE_MODEL_VALUES, INVOKE_APPLICATION and 
RENDER_RESPONSE. This basicly means that myfaces handles the subsequent GET as 
a form submission, which may not always be the case.

In my case, in example, the GET parameters are used to specify an item in a 
table. The <h:form> is then used to edit some of the fields in that item. When 
the <h:form> is submitted through a POST, the GET parameters which are used to 
identify the edited item are not supplied in the form content: they are instead 
automatically otained by a per-conversation context handled by JBoss Seam.

So, handling a GET with parameters as a form submission drives Seam to simply 
ignore the parameters and apply the values stored in the conversation context. 
The net effect is that once a page with parameters is displayed, it is not 
anymore possible to "switch" to the same page with different parameters.

Please note that the same doesn't hold when a page with <h:form> is invoked by 
a GET without parameters: it always gets a RESTORE_VIEW followed by a 
RENDER_RESPONSE cycle.

Is there any way to circumvent this problem? Is the way myfaces handles GET 
with parameters a by-design behaviour? Is so, which is the purpouse? Is there a 
way (maybe by mean of some init param) to instruct facelets to handle GETs 
always with a RESTORE_VIEW and RENDER_RESPONSE cycle, and not as a form 
submission?

Thanks,

-----------------------------------
Giampaolo Tomassoni - IT Consultant
Piazza VIII Aprile 1948, 4
I-53044 Chiusi (SI) - Italy
Ph: +39-0578-21100

MAI inviare una e-mail a:
NEVER send an e-mail to:
 [EMAIL PROTECTED]

Reply via email to