[JBoss JIRA] (RF-12320) f:ajax / a4j:ajax destroys rich:tooltips displayed in a rich:tree when render="@form" (when closing popup)
by Karsten Wutzke (JIRA)
Karsten Wutzke created RF-12320:
-----------------------------------
Summary: f:ajax / a4j:ajax destroys rich:tooltips displayed in a rich:tree when render="@form" (when closing popup)
Key: RF-12320
URL: https://issues.jboss.org/browse/RF-12320
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: JBoss AS 7.1.1.Final, RichFaces 4.2.2.Final, Mojarra 2.1.7
Reporter: Karsten Wutzke
The following code displays a root node with a name + link to display a popup
{code} <h:body>
<h:form>
<rich:tree value="#{nodeManager.rootTreeNode}"
var="treeNode"
nodeType="#{treeNode.emitCode}"
toggleType="client">
<rich:treeNode type="root">
<h:panelGrid columns="4">
<h:outputText value="#{treeNode.name}" id="node-name" />
<rich:tooltip value="The name is..." direction="bottomRight" target="node-name" />
<h:commandLink value="Add...">
<rich:tooltip value="Add chapter" direction="bottomRight" />
<a4j:ajax render="root-add-chapter-popup" oncomplete="#{rich:component('root-add-chapter-popup')}.show()" />
</h:commandLink>
</h:panelGrid>
</rich:treeNode>
</rich:tree>
<rich:popupPanel modal="true"
domElementAttachment="form"
onmaskclick="#{rich:component('root-add-chapter-popup')}.hide(); return false;"
id="root-add-chapter-popup">
<f:facet name="header">
<h:outputText value="Add Chapter" />
</f:facet>
<h:panelGrid columns="1" style="margin: 0px auto;">
<h:commandButton value="Rerender form and hide!">
<!--a4j:ajax render="@form" onclick="#{rich:component('root-add-chapter-popup')}.hide(); return true;" /--> <!-- works -->
<!--f:ajax render="@form" onclick="#{rich:component('root-add-chapter-popup')}.hide(); return true;" /--> <!-- breaks tooltips -->
<a4j:ajax render="@form" oncomplete="#{rich:component('root-add-chapter-popup')}.hide(); return true;" /> <!-- breaks tooltips -->
</h:commandButton>
</h:panelGrid>
</rich:popupPanel>
</h:form>
</h:body>
{code}
When rerendering the form (h:commandButton render="@form") via f:ajax onclick="" or a4j:ajax oncomplete="" the rich:tooltip elements on the rich:treeNode are lost. Note that a4j:ajax onclick="" is working.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-12312) rich:select - duplicate labels
by Denis Kniazhev (JIRA)
Denis Kniazhev created RF-12312:
-----------------------------------
Summary: rich:select - duplicate labels
Key: RF-12312
URL: https://issues.jboss.org/browse/RF-12312
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-selects
Affects Versions: 4.2.2.Final
Environment: Ubuntu 12.04, Mojarra 2.1.8 OR MyFaces 2.1.7
Reporter: Denis Kniazhev
Given rich:select:
<rich:select value="#{bean.testValue}">
<f:selectItem itemLabel="1" itemValue="1"/>
<f:selectItem itemLabel="1" itemValue="abcdef"/>
<f:selectItem itemLabel="2" itemValue="2"/>
<f:ajax event="selectitem" listener="#{bean.testListener}"/>
</rich:select>
and the bean:
@ManagedBean
@ViewScoped
public class Bean implements Serializable {
private String testValue;
public String getTestValue() {
return testValue;
}
public void setTestValue(String testValue) {
System.out.println("setter: " + testValue);
this.testValue = testValue;
}
public void testListener(AjaxBehaviorEvent e) {
System.out.println("listener: " + testValue);
}
}
Whatever item with label "1" is selected, the output is the same:
setter: abcdef
listener: abcdef
setter: abcdef
listener: abcdef
setter: abcdef
listener: abcdef
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (RF-12286) selectOneMenu with f:ajax cause a OutOfMemory under IE and slowdown under Firefox - listener
by Jean ANDRE (JIRA)
Jean ANDRE created RF-12286:
-------------------------------
Summary: selectOneMenu with f:ajax cause a OutOfMemory under IE and slowdown under Firefox - listener
Key: RF-12286
URL: https://issues.jboss.org/browse/RF-12286
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.2.Final
Environment: JSF Mojarra 2.1.7 - FireFox 12 or IE 8 - annotations-4.2.0.Final - aspectjrt-1.6.12 - cglib-nodep-2.2.2 - commons-collections-3.2.1 - commons-lang-2.4 - commons-logging-1.1.1 - commons-validator-1.4.0 - cssparser-0.9.6 - guava-11.0.1 - hibernate-validator-4.2.0.Final - junit-4.10 - log4j-1.2.16 - org.springframework.xxx-3.0.6.RELEASE - richfaces-xxxx-xxx-4.2.0.Final - sac-1.3 - slf4j-api-1.6.4 - slf4j-log4j12-1.6.4
Reporter: Jean ANDRE
Priority: Critical
We got an "Out of memory at line 249" under IE and a deep slowdown when we use f:ajax with <h:selectOneMenu> tag.
{code}
<h:selectOneMenu id="McMpList" value="#{currentUser.businessUnit}" immediate="true">
<f:ajax event="change" listener="#{menuController.doChangeDesktop}" render="@all" />
<f:selectItems value="#{menuController.businessUnits}" />
</h:selectOneMenu>
{code}
When we remove the f:ajax, the behavior is "normal".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month