[JBoss JIRA] Created: (RF-3598) dataTable does not re-render correctly after deleting a row with immediate="true"
by Jonck van der Kogel (JIRA)
dataTable does not re-render correctly after deleting a row with immediate="true"
---------------------------------------------------------------------------------
Key: RF-3598
URL: http://jira.jboss.com/jira/browse/RF-3598
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: JBoss 4.0.5, JSF 1.2
Reporter: Jonck van der Kogel
Priority: Critical
Given the following sample code:
<t:div id="testDiv">
<rich:dataTable
value="#{backingBean.holders}"
var="holder">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="TestColumn">
</rich:column>
<rich:column>
<h:outputText value="DeleteColumn">
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:outputText value="#{holder.testValue}" />
</rich:column>
<rich:column>
<a4j:commandLink action="#{backingBean.deleteRow}"
reRender="testDiv"
value="testLink"
immediate="true">
<f:setPropertyActionListener
value="#{holder}"
target="#{backingBean.toBeDeletedHolder}" />
</a4j:commandLink>
</rich:column>
</rich:dataTable>
</t:div>
The Java code in the backingBean to remove the row is:
public void deleteRow() {
holders.remove(toBeDeletedHolder);
}
Let's say this table has 4 rows. When you now press the delete link of the second row, the model gets updated correctly, indeed the second row is removed. But in the view, it appears like the 3d row (always the row directly below the row that was intended) is removed, not the second. Removing the immediate="true" attribute resolves the issue, but is undesirable since then validation comes into play, which is precisely why you put immediate="true" on such a component in the first place.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (RF-3419) contextMenu doesn't appears after specified event
by Ilya Shaikovsky (JIRA)
contextMenu doesn't appears after specified event
-------------------------------------------------
Key: RF-3419
URL: http://jira.jboss.com/jira/browse/RF-3419
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
If you using demosite page without modifications - works ok.
But after I've added some components to page:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<style>
.cent {
text-align: center;
}
.rich-menu-item {
text-align: left;
}
.rich-menu-group {
text-align: left;
}
</style>
<h:form>
<h:panelGrid columns="1" columnClasses="cent">
<h:panelGroup id="picture">
<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic"
style="border : 5px solid #E4EAEF" />
<rich:contextMenu event="oncontextmenu" attachTo="pic"
submitMode="none">
<rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"></rich:menuItem>
<rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"></rich:menuItem>
</rich:contextMenu>
</h:panelGroup>
</h:panelGrid>
<script type="text/javascript">
function enlarge(){
document.getElementById('pic').width=document.getElementById('pic').width*1.1;
document.getElementById('pic').height=document.getElementById('pic').height*1.1;
}
function decrease(){
document.getElementById('pic').width=document.getElementById('pic').width*0.9;
document.getElementById('pic').height=document.getElementById('pic').height*0.9;
}
</script>
<rich:panel id="panel">
<h:outputText value="panel" />
</rich:panel>
<rich:contextMenu attached="true" attachTo="panel" event="onclick">
<rich:menuItem value="Item 1" />
</rich:contextMenu>
</h:form>
</ui:composition>
second menu appears ok. But the first menu for pic appears only after double right click and doesn't appears after single right click anymore.
If you'll remove last panel and menu for this panel - first menu will works ok again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months