[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4639) In JSF2, Seam sets JSF view Id to null for postback requests

Marek Novotny (JIRA) jira-events at lists.jboss.org
Wed Dec 15 08:06:18 EST 2010


    [ https://issues.jboss.org/browse/JBSEAM-4639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12570339#comment-12570339 ] 

Marek Novotny commented on JBSEAM-4639:
---------------------------------------

This seems to be a problem of JSF 2 changed the process in restoring view and Seam 2 is still working according to JSF 1.2 process. This is also mentioned in http://primefaces.prime.com.tr/forum/viewtopic.php?f=3&t=2151#p10510, but unfortunately it uses new JSF2 API method Viewhandler.deriveViewId(FacesContext context, String rawViewId). 

After 2.2.1 release I will create new branch for JSF2 changes.

> In JSF2, Seam sets JSF view Id to null for postback requests
> ------------------------------------------------------------
>
>                 Key: JBSEAM-4639
>                 URL: https://issues.jboss.org/browse/JBSEAM-4639
>             Project: Seam
>          Issue Type: Bug
>          Components: JSF Integration
>    Affects Versions: 2.2.0.GA, 2.2.1.CR1
>         Environment: JSF 2 RI (Mojarra) v.2.0.2.FCS
>            Reporter: Alex Savitsky
>            Priority: Critical
>              Labels: seam-ui
>         Attachments: test-bug-2.2.1.war, test-bug-clean.war
>
>
> Run attached test-bug-2.2.1.war (I've been using Tomcat 6.0, but any web container will do). Access index.jsf in the context root (usually http://localhost:your-startup-port/your-context-root/index.jsf) and click the "Add" button. Note the exception, and also note the debug output in the system console:
> Before phase RESTORE_VIEW 1, view id = N/A (no root)
> After phase RESTORE_VIEW 1, view id = /index.xhtml
> Before phase RENDER_RESPONSE 6, view id = /index.xhtml
> TestBean created
> After phase RENDER_RESPONSE 6, view id = /index.xhtml
> Before phase RESTORE_VIEW 1, view id = N/A (no root)
> After phase RESTORE_VIEW 1, view id = null
> Before phase APPLY_REQUEST_VALUES 2, view id = null
> After phase APPLY_REQUEST_VALUES 2, view id = null
> Before phase PROCESS_VALIDATIONS 3, view id = null
> After phase PROCESS_VALIDATIONS 3, view id = null
> Before phase UPDATE_MODEL_VALUES 4, view id = null
> After phase UPDATE_MODEL_VALUES 4, view id = null
> Before phase INVOKE_APPLICATION 5, view id = null
> After phase INVOKE_APPLICATION 5, view id = null
> The very same setup without Seam (test-bug-clean.war, with no Seam JAR in WEB-INF/lib, and with Seam commented out in web.xml) has the button working (validation messages appear) as well as different debug output:
> Before phase RESTORE_VIEW 1, view id = N/A (no root)
> After phase RESTORE_VIEW 1, view id = /index.xhtml
> Before phase RENDER_RESPONSE 6, view id = /index.xhtml
> TestBean created
> After phase RENDER_RESPONSE 6, view id = /index.xhtml
> Before phase RESTORE_VIEW 1, view id = N/A (no root)
> After phase RESTORE_VIEW 1, view id = /index.xhtml
> Before phase APPLY_REQUEST_VALUES 2, view id = /index.xhtml
> After phase APPLY_REQUEST_VALUES 2, view id = /index.xhtml
> Before phase PROCESS_VALIDATIONS 3, view id = /index.xhtml
> After phase PROCESS_VALIDATIONS 3, view id = /index.xhtml
> Before phase RENDER_RESPONSE 6, view id = /index.xhtml
> After phase RENDER_RESPONSE 6, view id = /index.xhtml
> The debug phase listener source can be found in /WEB-INF/classes/test/TestListener.java

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list