Another tag works well for me :-) - we have our own customised versions of
struts tags to do this.

I submitted a Bugzilla to make tags more "granular" so that individual bits
of behaviour (like generating the name )could be overriden. Unfortunately
:-(  it didn't make it into Struts 1.0 and I think quite a few of the
classes have been changed since, so it may have been wasted effort.

http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01450.html



> -----Original Message-----
> From: Jeff Trent [mailto:[EMAIL PROTECTED]]
> Sent: 20 June 2001 21:59
> To: [EMAIL PROTECTED]
> Subject: Re: Struts 1.0 Released - Looking forward to 1.1!!!!!!!
>
>
> I hear what you are saying Niall, but again, I'd sooner introduce
> a new tag
> like 'html2' before I'd change existing tags/property names -
> especially now
> that struts 1.0 is out and feels "more formally defined" if you
> know what I
> mean.  Too bad there was no way to label something 'depcrecated' in a
> taglib!  Imagine seeing output to System.err stating that a tag has been
> deprecated - pretty cool I think...
>
>
>
> ----- Original Message -----
> From: "Niall Pemberton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 20, 2001 4:23 PM
> Subject: RE: Struts 1.0 Released - Looking forward to 1.1!!!!!!!
>
>
> > Jeff,
> >
> > You might be right, but the question is "is it the right thing to do?" -
> if
> > it is, then it would be a shame to have to code
> "indexed='true'" from now
> to
> > eternity - perhaps there could be a way of specifying the default
> behaviour
> > in the struts-config.
> >
> > Niall
> >
> > > -----Original Message-----
> > > From: Jeff Trent [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 June 2001 14:09
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Struts 1.0 Released - Looking forward to 1.1!!!!!!!
> > >
> > >
> > > Niall,
> > >
> > > Your approach is simpler.  However, I believe a lot of legacy
> code would
> > > break if that kind of change were to be made.  I think a separate
> property
> > > name is warranted here.
> > >
> > > - jeff
> > >
> > >
> > > ----- Original Message -----
> > > From: "Niall Pemberton" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 19, 2001 7:58 PM
> > > Subject: RE: Struts 1.0 Released - Looking forward to 1.1!!!!!!!
> > >
> > >
> > > > Martin,
> > > >
> > > > Ideally I would like Struts html tags (text, checkbox,
> hidden etc.) to
> > > > automatically generate the "name" with the subscript if its
> > > embedded in an
> > > > IterateTag so that iterated beans are automatically updated
> by Struts.
> > > >
> > > > For example:
> > > >
> > > >     <logic:iterate id="list" name="formExample"
> property="beanArray">
> > > >        <tr><td><html:text name="list" property="desc"/></td>
> > > >     </logic:iterate>
> > > >
> > > > generates:
> > > >     <input type="text" name="beanArray[0].desc" value=".."/>
> > > >     <input type="text" name="beanArray[1].desc" value=".."/>
> > > >     <input type="text" name="beanArray[2].desc"
> value=".."/> etc. etc.
> > > >
> > > > I realise you can do this with the indexId scripting variable,
> > > but this is
> > > > simpler. I raised it before (prior to indexId and getIndex
> > > method) in the
> > > > following messages:
> > > >
> > > >
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05231.html
> > > >
> http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg00975.html
> > > >
> > > > What do you think?
> > > >
> > > > Niall
> > > >
> > > > > -----Original Message-----
> > > > > From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 19 June 2001 05:28
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: Struts 1.0 Released - Looking forward to 1.1!!!!!!!
> > > > >
> > > > >
> > > > > Niall,
> > > > >
> > > > > Regarding "auto-generating a subscript", what do you have in mind?
> The
> > > > > indexId attribute was added to the iterate tag recently (just
> > > > > before Struts
> > > > > 1.0) so that a scripting variable can be created containing the
> > > > > value of the
> > > > > current index. However, from the description in the TODO list,
> > > > > I'm not sure
> > > > > if that's the same thing or not.
> > > > >
> > > > > Thanks!
> > > > >
> > > > > --
> > > > > Martin Cooper
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Niall Pemberton" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 6:46 PM
> > > > > Subject: Struts 1.0 Released - Looking forward to 1.1!!!!!!!
> > > > >
> > > > >
> > > > > > Congratulations and thank you for Struts 1.0 - a great product.
> > > > > >
> > > > > > Now I know you guys deserve a well earned rest now Struts 1.0
> > > > > is released,
> > > > > > but what sort of timescale do you envisage work starting on 1.1?
> > > > > >
> > > > > > I am particularly interested for starters in:
> > > > > >
> > > > > > 1) ActionForms with dynamic properties.
> > > > > > 2) If/Else and Switch/Case tags (I submitted tags which do this
> > > > > to the dev
> > > > > > list a while ago).
> > > > > > 3) Improved Iteration Support - auto-generating a subscript.
> > > > > >
> > > > > > These areas are currently unassigned on the ToDo list and
> > > > > presumably need
> > > > > a
> > > > > > committer to take control. If someone is assigned I am more than
> > > willing
> > > > > to
> > > > > > contribute to these (and other) areas.
> > > > > >
> > > > > > Niall
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: 16 June 2001 01:23
> > > > > > > To: [EMAIL PROTECTED];
> [EMAIL PROTECTED];
> > > > > > > [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > > > > Subject: [ANNOUNCEMENT] Struts 1.0 (Final) Released
> > > > > > >
> > > > > > >
> > > > > > > As promised at JavaOne, the Struts project team is proud to
> > > > > announce the
> > > > > > > availability of Version 1.0 (final release) of the Struts
> > > Framework.
> > > > > The
> > > > > > > binary distribution is available at:
> > > > > > >
> > > > > > >
> http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/
> > > > > > >
> > > > > > > and the source distribution is available at:
> > > > > > >
> > > > > > >
> > > http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/src/
> > > > > > >
> > > > > > >
> > > > > > > Craig McClanahan
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
>

Reply via email to