You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (JIRA)" <de...@myfaces.apache.org> on 2010/11/22 16:39:15 UTC
[jira] Created: (MYFACES-2980) f:ajax wrapped around component(s)
does not work as expected
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čí
Priority: Critical
<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.
[jira] Resolved: (MYFACES-2980) f:ajax wrapped around component(s)
does not work as expected
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ 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.
[jira] Commented: (MYFACES-2980) f:ajax wrapped around component(s)
does not work as expected
Posted by "Martin Kočí (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934499#action_12934499 ]
Martin Kočí commented on MYFACES-2980:
--------------------------------------
Problem in build view/component tree re-construction, because if h:form id="form1" is re-rendered, it contains no children - getChildrenCount is 0.
> 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čí
> Priority: Critical
>
> <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.