Answered my own question.

I put it in a directory called rubicon, in the basedir of my war. From your
comments I would have expected it to be in template/rubicon, so I'm not sure
it works the way you expected... but it works.

Thanks,
Alex

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Alex Radka
Sent: Thursday, February 19, 2004 10:14 AM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Newbie question - how to change the tags


That's what I was looking for, thanks.

Where do I put the template dir?  Do I need to rebuild webwork.jar or can I
put it in my war somewhere?  I tried the basedir and under /WEB-INF/classes
but I get
Fatal exception caught in com.opensymphony.webwork.views.jsp.ui.SelectTag
tag class, doEndTag: Unable to find resource 'rubicon/select.vm'

Thanks,
Alex

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Tim O'Donnell
Sent: Wednesday, February 18, 2004 7:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] Newbie question - how to change the tags


Alex,

At the beginning and end of select.vm, there should be something like:

#parse("/template/xhtml/controlheader.vm")
...
#parse("/template/xhtml/controlfooter.vm")

Those header and footer files contain the tags to setup the control in
the table row/cell. Your best bet is to create your own select.vm file
without those controlheader/footer calls.

You can even create your own "theme" for this kind of thing and pass
the theme name in the select tag, e.g.:

<ww:select label="'Current Competitive Set'" ... theme="standard"/>

Your theme's files would then be located in /template/standard.

Hope that helps,

Tim

On Feb 18, 2004, at 3:29 PM, Alex Radka wrote:

> What is the easiest way to change the output of the tags?  For
> instance the
> select tag creates a select surrounded by <tr> and <td> tags.  I can
> create
> my own <tr> and <td> tags, but I would like to be able to use the API
> to
> JUST give me the select.  I looked at select.vm and it isn't obvious
> where
> the extra tags are coming from.  Is there an easy way to turn them off?
>
>  <ww:select label="'Current Competitive Set'"
>                name="'subscribed_prop'"
>                list="subscribedProps"
>                listKey="customerPropertyId"
>                listValue="propertyName"/>
>
> gives me
>
> <tr>
>    <td align="right" valign="top">
>      <span class="label">Current Competitive Set:</span>
>    </td>
>    <td>
>      <select name="subscribed_prop">
>         <option value="1">Marriott NW</option>
>         <option value="2">Atlanta Hilton</option>
>         <option value="3">New York Hilton</option>
>      </select>
>   </td>
> </tr>
>
> I'd like to not have the extra <td> and <tr> tags.
>
> Thanks,
> Alex
>
>
>
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to