myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Commented) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3422) f:ajax execute="@all" ist not processing all forms on the page
Date Fri, 16 Dec 2011 14:52:31 GMT

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

Leonardo Uribe commented on MYFACES-3422:
-----------------------------------------

I have checked this issue and the server side code is ok. @all is recognized and the components
are processed as expected. But if you take a look to the values send on the ajax request,
you can see only the fields coming from one form are sent. If the button in form1 is clicked,
the value of the first input field is sent but the second one is not, because it is on another
form, even if it belongs to the same page. Since the value is never received, the response
prints the same information.

The only solution I can see for now is do something when myfaces.config.no_portlet_env flag
is enabled:

  <script type="text/javascript">
      //fixup for an issue of the jsf2.0 and 2.1 ajax spec to deal
with multiple forms per page
      window.myfaces = window.myfaces || {};
      myfaces.config = myfaces.config || {};
      myfaces.config.no_portlet_env = true;
  </script>

Other alternative is introduce a hidden field on each form that identify the "view" or "window"
they belong, to make possible from the client side to detect which fields should be included.
But I think at least in jsf 2.0/2.1 we should fix it using the flag and adding the code to
handle this on the client side. 
                
> f:ajax execute="@all" ist not processing all forms on the page
> --------------------------------------------------------------
>
>                 Key: MYFACES-3422
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3422
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.5
>            Reporter: Michael Dietrich
>         Attachments: MyFaces215AjaxTest.war
>
>
> Hi,
> according to our understanding, setting execute="@all" for a f:ajax tag should submit
and process entries of all forms on the page, instead of submitting only entries of the surroundig
form, if execute="@form" is set. Unfortunately, this seems not to work. I attached a small
project to reproduce the issue.
> Kind regards,
> Michael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message