Hi All
I have very recently stated using Struts Framwork and
being a part of a development team lot of web sites i
have always had to create combo boxes and list boxes
with prefilled values from databases.
For eg In a Shopping mall there is a possiblity of
providing a list of all delivery locations which r
picked from the database as the shop may keep on
adding locations.
>From the source code of stuts downloaded from the site
i found that there is no provision for this. If
already this has been implemented then please inform
me or I would appreciate if there is any other way of
doing the same.
Thanks
Lokesh
--- Martin Cooper <[EMAIL PROTECTED]>
wrote:
> +1 for 'indexed="true"'
>
> +1 for 'indexId'
>
> --
> Martin Cooper
>
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Oleg V
> Alexeev" <[EMAIL PROTECTED]>
> Sent: Monday, July 09, 2001 9:35 AM
> Subject: Re: Re[2]: Indexed tags - proposal to add
> changes
>
>
> >
> >
> > Hi. Does anyone have any comments on this?
> Personally I would opt for
> leaving
> > includeIndex="yes" as indexed="true" to match
> other syntax.
> >
> > But, do we want to provide both types of indexed
> links?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > Oleg V Alexeev
> <[EMAIL PROTECTED]> on
> 07/07/2001
> 02:03:25 AM
> >
> > Please respond to
> [EMAIL PROTECTED];
> Please
> > respond to Oleg V Alexeev
> <[EMAIL PROTECTED]>
> >
> > To:
> [EMAIL PROTECTED]
> > cc: (bcc: David Hay/Lex/Lexmark)
> > Subject: Re[2]: Indexed tags - proposal to add
> changes
> >
> >
> >
> > Hello dhay,
> >
> > Link tag must build name of some parameter on base
> of index value or
> > use it as separate parameter (I agree with you...
> 8) )
> >
> > <html:link forward="news" paramName="sell"
> parampProperty="when"
> > paramId="whenSell"
> includeIndex="yes"></html:index>
> >
> > with result as -
> http://.../news.do?whenSell=today[30]
> >
> > Or
> >
> > <html:link forward="news" name="bean"
> property="linkMap"
> > includeIndex="yes" indexId="myIndex"></html:link>
> >
> > with result as -
> http://.../news.do?id=2&myIndex=30
> >
> > Friday, July 06, 2001, 10:10:33 PM, you wrote:
> >
> >
> >
> > dlc> Oleg,
> >
> > dlc> Hi. Agree that the link tag is different,
> but think that it is due
> to its
> > dlc> nature! Unlike the other tags, adding index
> as a query param seems
> to me
> > the
> > dlc> only reasonable way to provide access to the
> index in the link. Not
> sure
> > how
> > dlc> else to do it (if you try and use name,
> obviously you change the link
> into
> > an
> > dlc> anchor!).
> >
> > dlc> If you (or anyone else) has any suggestions
> to handle it in a better
> way
> > would
> > dlc> like to hear them - maybe I missed something!
> >
> > dlc> Cheers,
> >
> > dlc> Dave
> >
> >
> >
> >
> >
> > dlc> Oleg V Alexeev
> <[EMAIL PROTECTED]> on
> 07/06/2001
> > 01:47:47 PM
> >
> > dlc> Please respond to
> [EMAIL PROTECTED];
> > Please
> > dlc> respond to Oleg V Alexeev
> <[EMAIL PROTECTED]>
> >
> > dlc> To:
> [EMAIL PROTECTED]
> > dlc> cc: (bcc: David Hay/Lex/Lexmark)
> > dlc> Subject: Re: Indexed tags - proposal to add
> changes
> >
> >
> >
> > dlc> Hello dhay,
> >
> > dlc> I think it useful addition with minimal
> changes of existing code -
> > dlc> good solution. But there is one problem for
> my mind - html:link with
> > dlc> index=x. All another tag proposals are simple
> and transparent.
> >
> > dlc> Friday, July 06, 2001, 9:31:21 PM, you wrote:
> >
> >
> >
> > dlc>> Hi everyone.
> >
> > dlc>> I have been posting to the user list for
> some time now regarding
> creating
> > dlc>> indexed names within an iterate tag. From
> feedback from that list,
> this
> > dlc> seems
> > dlc>> to be an important addition to the current
> tags.
> >
> > dlc>> While looking to write my own additional
> tags which would do this
> (eg
> > dlc>> html:indexedText etc), I discovered that
> this functionality could
> easily
> > be
> > dlc>> added to the current tags, now that the
> getIndex() method is
> available, by
> > dlc>> creating an extra parameter 'indexed' which
> when set to true would
> create
> > dlc> the
> > dlc>> indexed names. The necessary additions to
> current code were small
> and
> > dlc> quite
> > dlc>> clean, as follows:
> >
> > dlc>> - added 'indexed' as a parameter in
> BaseHandlerTag, with appropriate
> > dlc>> setter/getter
> > dlc>> - added if statement which checks for
> 'indexed=true', and if so,
> appends
> > dlc> "[x]"
> > dlc>> to the name, before appending property eg
> myProperty[x].value.
> > dlc>> This was added to BaseFieldTag (to cover
> tags which extend this)
> and
> > dlc>> CheckBoxTag, & SelectTag
> > dlc>> as follows:
> > dlc>> //if "indexed=true" parameter, create
> indexed name for this tag
> eg
> > dlc>> name="myCollection[x].myproperty"
> > dlc>> if ("true".equals(indexed))
> > dlc>> {
> > dlc>> // look for outer iterate tag
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/