You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Sneha Shah (JIRA)" <de...@myfaces.apache.org> on 2007/10/03 00:02:53 UTC

[jira] Created: (TRINIDAD-751) Issues with deleting a row in child table

Issues with deleting a row in child table
-----------------------------------------

                 Key: TRINIDAD-751
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-751
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.0.2-core
         Environment: Windows XP
            Reporter: Sneha Shah
            Priority: Minor


I have a parent table and a child table. Each child table row has a delete button. When i try to delete any of the rows in the child table, it displays as though it has deleted the last row. Though it deletes the correct row on the backing bean list that populates the table. 

Below is the code for the child table.

<tr:table var="row" value="#{bagrow.prop}" id="clothingTable"
									width="100%" rows="5"
									binding="#{ClothingManagementProcessBean.uixTable}"
									emptyText="#{prop.nodatafound}">
									<tr:column align="center" headerText="#{prop.item}" width="15%">
										<tr:selectOneChoice required="true" id="item" label="#{prop.item}" unselectedLabel="-Select One-" value="#{row.propItemId}">
											<tr:forEach var="item" items="#{ClothingManagementProcessBean.itemList}">
												<tr:selectItem label="#{item.propItemName}" value="#{item}"></tr:selectItem>
											</tr:forEach>
										</tr:selectOneChoice>
									</tr:column>
									<tr:column align="center" headerText="#{prop.description}" width="35%">
										<tr:inputText required="true" label="#{prop.description}"
											value="#{row.propDesc}"
											columns="50" rows="2"></tr:inputText>
									</tr:column>
									<tr:column align="center" headerText="#{prop.kept}" width="15%">
										<tr:selectBooleanCheckbox label="#{prop.kept}"
											value="#{row.propKept}"></tr:selectBooleanCheckbox>
									</tr:column>
									<tr:column align="center" headerText="#{prop.quantity}" width="20%">
										<tr:inputText showRequired="true" required="true" label="#{prop.quantity}"
											value="#{row.propQuantIn}"></tr:inputText>
									</tr:column>
									<tr:column align="center" width="15%">
										<tr:commandButton text="#{prop.deleteitem}"
												action="#{ClothingManagementProcessBean.deleteItemRow}"
												id="deleteClothing" immediate="true"/>
									</tr:column>
									<f:facet name="footer">
										<tr:panelButtonBar halign="center">
										<tr:commandButton text="#{prop.additem}"
												actionListener="#{ClothingManagementProcessBean.addItemRow}"
												id="addClothing" />
										</tr:panelButtonBar>
									</f:facet>
								</tr:table>


Let me know if you need any further info or explanation regarding the same.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.