• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF Datatable equivalent in Struts2

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there a JSF Datatable equivalent in Struts2? if yes..then any examples?
 
Manjesh Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>


 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
for your requirement you can go for display tag that is mlore easier and customized also ....

for that search in google display tag excample
reply
    Bookmark Topic Watch Topic
  • New Topic