myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2881) Server state saving with two forms, ajax and normal request is broken
Date Sat, 14 Aug 2010 15:57:17 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898601#action_12898601
] 

Martin Kočí commented on MYFACES-2881:
--------------------------------------

Hi Werner, 

yes I'm aware about multiform problem handling: your mail here: http://www.mail-archive.com/jsr-314-open@jcp.org/msg00043.html
and spec issue: https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=790

I've reported similiar bug (but it was regression): MYFACES-2762.  But in mojarra it is working
without any additions: just try example from MYFACES-2877 with mojarra 2.0.3 or 2.1 SNAPSHOT.

I don't fully understand why myfaces shouldn't support it now:
- RI supports it
- it's a specification bug
- not supporting this makes JSF ajax unsuable - ajax and partial lifecycle is designed for
minimizing network traffic - adding all h:form as targets for render is step back and puts
additional burden to users.

I think this is similar case as coercion in EL (https://jsp-spec-public.dev.java.net/issues/show_bug.cgi?id=183):
specification contains bug and this bug costs hours of time (http://www.irian.at/blog/blogid/unifiedElCoercion/#unifiedElCoercion)

 


> Server state saving with two forms, ajax and normal request is broken
> ---------------------------------------------------------------------
>
>                 Key: MYFACES-2881
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2881
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.1, 2.0.2-SNAPSHOT
>         Environment: myfaces 2.0.1 or trunk; 
>            Reporter: Martin Kočí
>            Priority: Blocker
>             Fix For: 2.1.0
>
>
> Use simple xhtml with: 
> <h:form id="form1">
>             <h:commandButton value="Partial">
>                <f:ajax execute="@this" render="@this" />
>             </h:commandButton>
> </h:fom>
> </h:form>
>   <h:form id="form2">
>   <h:commandButton value="Full" />
> </h:form>
> then:
> 1) click "Partial" button 20x or more
> 2) click "Full" button
> -> ViewExpiredException appears. If you click "Partial" 19 times or less ViewExpiredException
does not appear. 
> 20 is default for NUMBER_OF_VIEW_IN_SESSION - it you set this param to 1 you reproduce
this problem with two clicks. Maybe there is more simple test case for reproducing this issue
but I didn't find it yet. 
> This bug is present in 2.0.1 already and is related to server state saving:
> myfaces 2.0.1:
> PSS + server: failed
> PSS + client: ok
> FSS + server:  failed
> FSS + client: ok
> myfaces 2.0.2-SNAPSHOT:
> PSS + server: failed
> PSS + client: ok
> FSS + server:  failed
> FSS + client: ok
> Very likely this causes MYFACES-2877 too. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message