FYI: Nitin is asking about WebWork2 here.

I am pretty sure #1 is already supported, but I never verified personally.
Matt?

For #2, you can use the webwork:component tag and instruct it to use any
template you'd like. To have the surrounding "stuff" done for you, all you
need to do is #include the controlheader.vm and controlfooter.vm stuff in
you new velocity template you write. It should exist in
/WEB-INF/classes/decorators/xhtml, I believe.

-Pat

----- Original Message -----
From: "Nitin Patil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 7:02 PM
Subject: [OS-webwork] How to mark options as "selected" for webwork:select
tag?


> Hi,
>
> I've 2 Qs.
>
> 1. For an HTML select control, I would like to show the values that the
> user had previously selected. I couldn't find directly any support for
this
> in webwork:select. Is there a way to achieve this? Ideally, I would like
to
> have another attribute in the webwork:select tag, such as
"selectedValues",
> which accepts a list of selected values (that should match OPTION value
> attribute) or a single selected value (in case "multiple" is false).
>
> 2. The other option I see is writing the HTML select tag by myself.
> However, in that, it doesn't get rendered within the sitemesh decorator
> table. So, I have to explicitly add the "tr" and "td" tags. I would like
to
> know if there's a way to rightly render a normal HTML tag, such as
"select"
> by using a webwork tag? I checked "webwork:component", but probably that's
> more for custom UI templates.
>
> Thanks,
> - Nitin
>
> ________________________________________________________________________
> Nitin Patil
> ASTG TACWeb
> Phone: +1 408-853-8889
> Email: [EMAIL PROTECTED]
> ________________________________________________________________________
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to