aspose file tools*
The moose likes Struts and the fly likes JSF Datatable equivalent in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSF Datatable equivalent in Struts2" Watch "JSF Datatable equivalent in Struts2" New topic
Author

JSF Datatable equivalent in Struts2

Manjesh Reddy
Greenhorn

Joined: Jan 04, 2006
Posts: 4
is there a JSF Datatable equivalent in Struts2? if yes..then any examples?
Manjesh Reddy
Greenhorn

Joined: Jan 04, 2006
Posts: 4
I got this one working...
here is an example.


<s:form theme="simple" validate="false" >
<table>
<tr>
<th>PersonNumber</th>
<th>FirstName</th>
<th>LastName</th>
<th>Delete</th>
</tr>
<s:iterator value="personsList" id="p">
<tr>
<td><s roperty value="${personNbr}"/></td>
<td><s:textfield label="FirstName" value="%{firstName}" theme="simple" name="personsList(%{personNbr}).firstName"></s:textfield></td>
<td><s:textfield label="LastName" value="%{lastName}" theme="simple" name="personsList(%{personNbr}).lastName"></s:textfield></td>
<td>
<s:url id="removePerson" action="ManjeshTestPersonsAction!processDelete">
<s aram name="personNbr" value="personNbr"></s aram>
</s:url>
<s:a href="%{removePerson}" theme="ajax">Remove</s:a>
</td>
</tr>
</s:iterator>
</table>
<s:submit name="Update" value="Update" action="PersonsAction!processUpdate" ></s:submit>
</s:form>


rupesh kumar
Greenhorn

Joined: Oct 18, 2007
Posts: 2
for your requirement you can go for display tag that is mlore easier and customized also ....

for that search in google display tag excample
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Datatable equivalent in Struts2
 
Similar Threads
Create row index in dataTable
errors.header in struts2
JSF integration with Struts2
Query on displaying User records in jsp using Struts
ModelDriven in struts2