MBUNITED
asked on
DisplayTag or Struts-Layout - want editable tables
Hi,
I need to you use something like DisplayTag but I need the tables to be editable.
StrutsLayout looks like what I need but according to many people on the web Struts-Layout does not work with Struts 2
Is there anything similar?
Can someone send me on links to tutorials or sample JSP code?
I have a list for these Review Objects. I want somone way of listing these Review Objects in a editable table?
I am using Struts 2/Tiles 2.
Have been looking at displayTag. I have the List<Reviews> displaying with displayTag but want to edit the approved and review fields.
The changes must persisit back to the Review object
Im not sure what to do. Any thoughts?
Thanks,
Alan
I need to you use something like DisplayTag but I need the tables to be editable.
StrutsLayout looks like what I need but according to many people on the web Struts-Layout does not work with Struts 2
Is there anything similar?
Can someone send me on links to tutorials or sample JSP code?
I have a list for these Review Objects. I want somone way of listing these Review Objects in a editable table?
I am using Struts 2/Tiles 2.
Have been looking at displayTag. I have the List<Reviews> displaying with displayTag but want to edit the approved and review fields.
The changes must persisit back to the Review object
Im not sure what to do. Any thoughts?
Thanks,
Alan
public class Review{
int reviewID ;
int approved;
String review;
....//getters and setters
}
The jsp is
. <s:form method="post" action="save.action" validate="true">
<display:table name="${requestScope.reviewList}" requestURI="" defaultsort="1" id="review">
<display:column property="reviewID" title="Review" sortable="true"/>
<display:column property="approved" title="Approved" sortable="true">
<display:column property="review" title="Review" sortable="true">
. <display:column title="View Post"><a >Edit</a></display:column> <%-- Can I do something here to populate a <s:textarea> --%>
</display:table>
<s:textarea/>
</s:form>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks alot. I have seen EXT JS in the past. I have heard of DOJO. Never heard of prototype. I will look into these. Thanks
in addition to @mrjoltcola comments , here is an already running post on this Display tag,
https://www.experts-exchange.com/questions/24393594/Display-tag.html
i have made comments and suggested an work around which is NOT a proven one, but you can give a try.
-Murali*