Anyone?
I really would like to see this included sooner than later and would appreciate 
any feedback.

On Thursday 11 December 2008 13:18:20 Andreas Joseph Krogh wrote:
> Hi all!
> One of the most usefull things about (2.0 < Struts >= 1.1) is the 
> nested-tag-library. It allows you to do:
> 
> <nested:form name="myForm">
>   <nested:nest property="person.address">
>     <nested:text property="street"/>
>   </nested:nest>
> </nested:form>
> 
> And it will render the following:
> <input type="text" name="person.address.street"/>
> 
> Strust-2.x lacks this feature and you're responsible for producing the 
> correct "nested-prefix" yourself.
> Questing; Was the decition to make the Struts2-tags not work as the 
> nested-tags made on purpose? If so, what the retional for it?
> 
> I propose adding this functionality to the existing 2.1 src by doing the 
> following:
> 
> - Introduce a property in struts.properties (default false in 2.1, but shold 
> be true or removed in future versions of Struts)
>   struts.tag.nested_support=true
>   If set to "true", the struts-tags will behave like the good ol' nested-tags.
> - Modify existing sources
> 
> The s:form equivalent of the nested-example above should be something like:
> 
>       <s:form name="myForm">
>         <s:push value="person.address">
>               <s:textfield name="street"/>
>         </s:push>
>       </s:form>
> 
> I believe this is quite simple to implement given that the valuestack is 
> always available and contains everything we need.
> 
> Is anyone working on this? Will the community accept such a patch and apply 
> it to mainstream?
> 



-- 
Andreas Joseph Krogh <andr...@officenet.no>
Senior Software Developer / CEO
------------------------+---------------------------------------------+
OfficeNet AS            | The most difficult thing in the world is to |
Karenslyst Allé 11      | know how to do a thing and to watch         |
PO. Box 529 Skøyen      | somebody else doing it wrong, without       |
0214 Oslo               | comment.                                    |
NORWAY                  |                                             |
Tlf:    +47 24 15 38 90 |                                             |
Fax:    +47 24 15 38 91 |                                             |
Mobile: +47 909  56 963 |                                             |
------------------------+---------------------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to