Did you confirm that this approach works?

-----Original Message-----
From: Jonas Eriksson [mailto:[EMAIL PROTECTED]
Sent: den 1 december 2003 12:44
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] WebWork and CSS.


Then you put something like

#if ($parameters.css) class="$!webwork.htmlEncode($parameters.css)" #end

in your local copy of text.vm for example.

Then you can use
#tag (TextField "params.css='input1'" ...)

Jonas

Dag Liodden wrote:
> Alternatively, you can create a templates/xhtml directory in your 
> webroot and override the default velocity templates (*.vm) by copying 
> the templates from the ww distribution into this folder, and modify 
> them. It is also possible to change the template path in 
> webwork.properties.
> 
> Cheers,
> 
> Dag
> 
> Daniel Pfeifer wrote:
> 
>> I asked for exactly the same just some weeks ago, unfortunately no one
>> responded. A workaround is to create several .vm templates (which 
>> implement
>> class="input1") and use them when you want to have a textfield on your 
>> page.
>> I.e. <ww:textfield template="text50px.vm" ... />
>>
>> /Daniel
>>
>> -----Original Message-----
>> From: Sergiy Barlabanov [mailto:[EMAIL PROTECTED]
>> Sent: den 1 december 2003 12:08
>> To: [EMAIL PROTECTED]
>> Subject: [OS-webwork] WebWork and CSS.
>>
>>
>> Hi,
>> How can I apply css classes to WW tags? In the resulting HTML I want 
>> to have
>> something like this
>> <input type="text" name="email" value="xx" class="input1" />
>> but i have no idea how i can manage this with webwork:input tag.
>>
>> Regards,
>> Sergey
>>
>> -----Original Message-----
>> From: Robert Nicholson [mailto:[EMAIL PROTECTED]
>> Sent: Monday, December 01, 2003 8:10 AM
>> To: [EMAIL PROTECTED]
>> Subject: Re: [OS-webwork] XDoclet and XWork validators
>>
>>
>> Validators are tied to their action when defined in 
>> ActionName-Validation.xml files right?
>>
>> So, why not generate these files from javadoc comments in the code?
>>
>> I'm only familiar with them as they are defined/explained in the JOSP 
>> book.
>>
>> If I'm not mistake XDoclet already supports struts validators which I 
>> assume work the same way as webwork?
>>
>> I haven't see any cases were you'd define multiple validators for the 
>> same property of the same action and use each in a different context.
>>
>> On Nov 30, 2003, at 6:46 PM, Hani Suleiman wrote:
>>
>>  
>>
>>> I'm missing something here....
>>>
>>> so you want external validators, specified in an external xml 
>>> configuration file...and you want to generate this file by adding 
>>> javadoc comments to the source file that needs the validation, thus 
>>> putting in validation code right alongside the code that needs it, 
>>> without the benefits of type safety and suchlike?
>>>
>>> On Nov 30, 2003, at 7:41 PM, Robert Nicholson wrote:
>>>
>>>   
>>>
>>>> Can XDoclet currently generate these from javadoc comments in your 
>>>> action?
>>>>
>>>> I don't see any references to doing this in the JOSP book.
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> This SF.net email is sponsored by: SF.net Giveback Program.
>>>> Does SourceForge.net help you be more productive?  Does it
>>>> help you create better code?  SHARE THE LOVE, and help us help
>>>> YOU!  Click Here: http://sourceforge.net/donate/
>>>> _______________________________________________
>>>> Opensymphony-webwork mailing list
>>>> [EMAIL PROTECTED]
>>>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>>>>
>>>>     
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.net email is sponsored by: SF.net Giveback Program.
>>> Does SourceForge.net help you be more productive?  Does it
>>> help you create better code?  SHARE THE LOVE, and help us help
>>> YOU!  Click Here: http://sourceforge.net/donate/
>>> _______________________________________________
>>> Opensymphony-webwork mailing list
>>> [EMAIL PROTECTED]
>>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>>>   
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: SF.net Giveback Program.
>> Does SourceForge.net help you be more productive?  Does it
>> help you create better code?  SHARE THE LOVE, and help us help
>> YOU!  Click Here: http://sourceforge.net/donate/
>> _______________________________________________
>> Opensymphony-webwork mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: SF.net Giveback Program.
>> Does SourceForge.net help you be more productive?  Does it
>> help you create better code?  SHARE THE LOVE, and help us help
>> YOU!  Click Here: http://sourceforge.net/donate/
>> _______________________________________________
>> Opensymphony-webwork mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: SF.net Giveback Program.
>> Does SourceForge.net help you be more productive?  Does it
>> help you create better code?  SHARE THE LOVE, and help us help
>> YOU!  Click Here: http://sourceforge.net/donate/
>> _______________________________________________
>> Opensymphony-webwork mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>>  
>>
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to