[richfaces-issues] [JBoss JIRA] Created: (RF-6424) Current row can't be resolved after item deleting from the OrderedList using Ajax

Vladimir Danko (JIRA) jira-events at lists.jboss.org
Tue Feb 24 05:59:44 EST 2009


Current row can't be resolved after item deleting from the OrderedList using Ajax
---------------------------------------------------------------------------------

                 Key: RF-6424
                 URL: https://jira.jboss.org/jira/browse/RF-6424
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: jboss-5.0.0.CR2,
Seam,
FF

            Reporter: Vladimir Danko
             Fix For: 3.3.1


After I delete the row from the OrderedList the component can't be re-rendered at all since JavaScript error:
Error: activeItem.item is undefined Source File: http://localhost:8080/Myproject/a4j/g/3_3_0.GAscripts/ListBase.js Line: 17

XHTML:
<rich:panel rendered="#{customFilterListEdit.entity.scopeDisabled}" id="grid" >
	<table width="100%">			
		<tr>
			<td colspan="7" class="tableheader leftheader">Kriterien</td>
		</tr>
		<tr>
		</tr>
		<tr>
			<rich:orderingList value="#{customFilterCriteriaList.filterCriteriasList}" 
							   var="cList"
							   listHeight="400" 
							   converter="orderingListConverter" 
							   listWidth="500" 
							   selection="#{customFilterListEdit.selection}" 
							   activeItem="#{customFilterListEdit.activeItem}"
							   >
				<rich:column width="100">
					<f:facet name="header">
						<h:outputText value="Field Name" />
					</f:facet>
					<h:outputText value ="#{cList.custom_filter_criteria_field_fn}"/>
				</rich:column>
				<rich:column width="75">
					<f:facet name="header">
						<h:outputText value="Operation" />
					</f:facet>
					<h:outputText value ="#{cList.operation == 1}"/>
				</rich:column>
					
				<rich:column width="100">
					<f:facet name="header">
						<h:outputText value="Value" />
					</f:facet>
					<h:outputText value ="#{cList.filter_value}"/>
				</rich:column>
				<rich:column width="100">
					<f:facet name="header">
						<h:outputText value="Join operation" />
					</f:facet>
						<h:outputText value ="#{cList.join_operator"/>
				</rich:column>
				<rich:column width="100" label="#{messages.ACTION_COLUMN_LABEL}">
					<f:facet id="DeleteFacet" name="header">#{messages.ACTION_COLUMN_LABEL}</f:facet>
					<a4j:commandLink ajaxSingle="true" id="deletelink" action="#{customFilterCriteriaListEdit.delete(cList.custom_filter_criteria_id))">
                   		<h:graphicImage value="/img/delete.gif" style="border:0"/>
               		</a4j:commandLink>
               		
                   	<rich:toolTip for="deletelink" value="#{messages.DELETE_LABEL}"/>
				</rich:column>
			</rich:orderingList>
		</tr>
		<tr>
			<td colspan="7">&nbsp;</td>
		</tr>
	</table>
</rich:panel>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list