[
https://issues.apache.org/jira/browse/MYFACES-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-2980.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.3-SNAPSHOT
Assignee: Leonardo Uribe
Yes, it happens when pss is set to false, because the components inside f:ajax
are not refreshed, but it works well with pss enabled. It is a bug, but the
solution is simple, just let the algorithm pass when wrap mode is used and only
add AjaxBehavior when the component is created (in other words when it is not
present on the tree).
Other small fixes were done like comment componentFoundInserted variable and
only add default validators for created components. It is possible to do some
more cleanup, removing the code that checks for duplicate default validators.
> f:ajax wrapped around component(s) does not work as expected
> ------------------------------------------------------------
>
> Key: MYFACES-2980
> URL: https://issues.apache.org/jira/browse/MYFACES-2980
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.3-SNAPSHOT
> Environment: myfaces current trunk
> Reporter: Martin Kočí
> Assignee: Leonardo Uribe
> Priority: Critical
> Fix For: 2.0.3-SNAPSHOT
>
>
> <h:form id="form1">
> <f:ajax render="@form">
> <h:commandButton id="button" value="Click me 1!"/>
> </f:ajax>
> </h:form>
>
> <h:form id="form2">
> <h:commandButton id="button" value="Click me 2!" >
> <f:ajax render="@form"/>
> </h:commandButton>
> </h:form>
> If you click "Click me 1" than button disappers because it is no rendered in
> ajax XML output.
> The second button with inner f:ajax work as expected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.