[
http://www.stripesframework.org/jira/browse/STS-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11182#action_11182
]
Frank Das commented on STS-306:
-------------------------------
Let's say you had nested forms defined as:
class FormA {
List<FormB> formBList;
}
class FormB {
List<FormC> formCList;
}
class FormC {
String attr1;
String attr2;
String attr3;
}
Struts nested keeps track of the current form properties and indexex through
its (iterate, nest) such the the html below:
<nested:form action="/example.do>
<nested:iterate property="formBList">
<nested:iterate property="formCList">
<nested:text property="attr1"/>
<nested:text property="attr2"/>
<nested:text property="attr3"/>
</nested:iterate>
</nested:iterate>
</nested:form>
Will produce the relevant text input properties:
<input type="text" name="FormA.formBList[0].formCList[0].attr1">
<input type="text" name="FormA.formBList[0].formCList[0].attr2">
<input type="text" name="FormA.formBList[0].formCList[0].attr3">
<input type="text" name="FormA.formBList[0].formCList[1].attr1">
<input type="text" name="FormA.formBList[0].formCList[1].attr2">
<input type="text" name="FormA.formBList[0].formCList[1].attr3">
<input type="text" name="FormA.formBList[1].formCList[0].attr1">
<input type="text" name="FormA.formBList[1].formCList[0].attr2">
<input type="text" name="FormA.formBList[1].formCList[0].attr3">
<input type="text" name="FormA.formBList[1].formCList[1].attr1">
<input type="text" name="FormA.formBList[1].formCList[1].attr2">
<input type="text" name="FormA.formBList[1].formCList[1].attr3">
This may seem trivial but ends up being quite a big time saver.
> Need an equivalent of the Struts Nested taglib
> ----------------------------------------------
>
> Key: STS-306
> URL: http://www.stripesframework.org/jira/browse/STS-306
> Project: Stripes
> Issue Type: New Feature
> Reporter: Frank Das
> Assignee: Tim Fennell
>
> IMO, a major flaw in JSTL is how unnecessarily complicated nested forms are
> to deal with. Given it isn't going to happen in JSTL in a hurry or maybe
> ever, an equivalent of the Struts nested taglib would go well in Stripes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development