You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by carlo latasa <cl...@gmail.com> on 2009/01/22 19:31:37 UTC

Struts 2 - Velocity Tag reference

Hello,
I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
a list of supported parameters in the velocity struts tags like:
#stext or #slabel.

For example, passing "labelSeparator=-" - does nothing.
'labelPosition' - likewise, does nothing.

I've seen other posts relating to this issue:
http://www.mail-archive.com/user@struts.apache.org/msg83661.html

Of course I've looked in the struts documentation and don't see
anything. Putting a '#s' in front of the tags listed here:
http://struts.apache.org/2.0.14/docs/tag-reference.html, you would
think that all of the parameters listed would be supported.

Any clues?

jars:
struts2-core-2.0.11.2.jar (and all the other jars that come with 2.0.11.2)
veloticty-1.5.jar
velocity-tools-2.0-beta3.jar

Thanks,
Carlo.

Re: Struts 2 - Velocity Tag reference

Posted by carlo latasa <cl...@gmail.com>.
Ok confirmed, it appears the default is xhtml considering that when I add:
<constant name="struts.ui.theme" value="xhtml"/> to struts.xml

I get the same as without it.

On Thu, Jan 22, 2009 at 2:09 PM, carlo latasa <cl...@gmail.com> wrote:

> Yep, checked my struts.xml and I DO NOT have the following: <constant
> name="struts.ui.theme" value="simple"/>
>
>
> On Thu, Jan 22, 2009 at 2:06 PM, carlo latasa <cl...@gmail.com> wrote:
>
>> Check that, on the .vm page, I'm not calling out a theme and there's
>> nothing obvious in my struts.xml file.
>> Is there another way the theme can be set globally?
>>
>> On Thu, Jan 22, 2009 at 2:01 PM, carlo latasa <cl...@gmail.com> wrote:
>>
>>> Not sure. How do I check? It's a legacy app.
>>>
>>>
>>> On Thu, Jan 22, 2009 at 1:41 PM, Musachy Barroso <mu...@gmail.com>wrote:
>>>
>>>> you are not using the simple theme right?
>>>>
>>>> musachy
>>>>
>>>> On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa <cl...@gmail.com>
>>>> wrote:
>>>> > Hello,
>>>> > I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
>>>> > a list of supported parameters in the velocity struts tags like:
>>>> > #stext or #slabel.
>>>> >
>>>> > For example, passing "labelSeparator=-" - does nothing.
>>>> > 'labelPosition' - likewise, does nothing.
>>>> >
>>>> > I've seen other posts relating to this issue:
>>>> > http://www.mail-archive.com/user@struts.apache.org/msg83661.html
>>>> >
>>>> > Of course I've looked in the struts documentation and don't see
>>>> > anything. Putting a '#s' in front of the tags listed here:
>>>> > http://struts.apache.org/2.0.14/docs/tag-reference.html, you would
>>>> > think that all of the parameters listed would be supported.
>>>> >
>>>> > Any clues?
>>>> >
>>>> > jars:
>>>> > struts2-core-2.0.11.2.jar (and all the other jars that come with
>>>> 2.0.11.2)
>>>> > veloticty-1.5.jar
>>>> > velocity-tools-2.0-beta3.jar
>>>> >
>>>> > Thanks,
>>>> > Carlo.
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Carlo Latasa
>>> Cell: (415) 385-1567
>>>
>>
>>
>>
>> --
>> Carlo Latasa
>> Cell: (415) 385-1567
>>
>
>
>
> --
> Carlo Latasa
> Cell: (415) 385-1567
>



-- 
Carlo Latasa
Cell: (415) 385-1567

Re: Struts 2 - Velocity Tag reference

Posted by carlo latasa <cl...@gmail.com>.
Yep, checked my struts.xml and I DO NOT have the following: <constant
name="struts.ui.theme" value="simple"/>

On Thu, Jan 22, 2009 at 2:06 PM, carlo latasa <cl...@gmail.com> wrote:

> Check that, on the .vm page, I'm not calling out a theme and there's
> nothing obvious in my struts.xml file.
> Is there another way the theme can be set globally?
>
> On Thu, Jan 22, 2009 at 2:01 PM, carlo latasa <cl...@gmail.com> wrote:
>
>> Not sure. How do I check? It's a legacy app.
>>
>>
>> On Thu, Jan 22, 2009 at 1:41 PM, Musachy Barroso <mu...@gmail.com>wrote:
>>
>>> you are not using the simple theme right?
>>>
>>> musachy
>>>
>>> On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa <cl...@gmail.com> wrote:
>>> > Hello,
>>> > I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
>>> > a list of supported parameters in the velocity struts tags like:
>>> > #stext or #slabel.
>>> >
>>> > For example, passing "labelSeparator=-" - does nothing.
>>> > 'labelPosition' - likewise, does nothing.
>>> >
>>> > I've seen other posts relating to this issue:
>>> > http://www.mail-archive.com/user@struts.apache.org/msg83661.html
>>> >
>>> > Of course I've looked in the struts documentation and don't see
>>> > anything. Putting a '#s' in front of the tags listed here:
>>> > http://struts.apache.org/2.0.14/docs/tag-reference.html, you would
>>> > think that all of the parameters listed would be supported.
>>> >
>>> > Any clues?
>>> >
>>> > jars:
>>> > struts2-core-2.0.11.2.jar (and all the other jars that come with
>>> 2.0.11.2)
>>> > veloticty-1.5.jar
>>> > velocity-tools-2.0-beta3.jar
>>> >
>>> > Thanks,
>>> > Carlo.
>>> >
>>>
>>>
>>>
>>> --
>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>>
>> --
>> Carlo Latasa
>> Cell: (415) 385-1567
>>
>
>
>
> --
> Carlo Latasa
> Cell: (415) 385-1567
>



-- 
Carlo Latasa
Cell: (415) 385-1567

Re: Struts 2 - Velocity Tag reference

Posted by carlo latasa <cl...@gmail.com>.
Check that, on the .vm page, I'm not calling out a theme and there's nothing
obvious in my struts.xml file.
Is there another way the theme can be set globally?

On Thu, Jan 22, 2009 at 2:01 PM, carlo latasa <cl...@gmail.com> wrote:

> Not sure. How do I check? It's a legacy app.
>
>
> On Thu, Jan 22, 2009 at 1:41 PM, Musachy Barroso <mu...@gmail.com>wrote:
>
>> you are not using the simple theme right?
>>
>> musachy
>>
>> On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa <cl...@gmail.com> wrote:
>> > Hello,
>> > I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
>> > a list of supported parameters in the velocity struts tags like:
>> > #stext or #slabel.
>> >
>> > For example, passing "labelSeparator=-" - does nothing.
>> > 'labelPosition' - likewise, does nothing.
>> >
>> > I've seen other posts relating to this issue:
>> > http://www.mail-archive.com/user@struts.apache.org/msg83661.html
>> >
>> > Of course I've looked in the struts documentation and don't see
>> > anything. Putting a '#s' in front of the tags listed here:
>> > http://struts.apache.org/2.0.14/docs/tag-reference.html, you would
>> > think that all of the parameters listed would be supported.
>> >
>> > Any clues?
>> >
>> > jars:
>> > struts2-core-2.0.11.2.jar (and all the other jars that come with
>> 2.0.11.2)
>> > veloticty-1.5.jar
>> > velocity-tools-2.0-beta3.jar
>> >
>> > Thanks,
>> > Carlo.
>> >
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> Carlo Latasa
> Cell: (415) 385-1567
>



-- 
Carlo Latasa
Cell: (415) 385-1567

Re: Struts 2 - Velocity Tag reference

Posted by carlo latasa <cl...@gmail.com>.
Not sure. How do I check? It's a legacy app.

On Thu, Jan 22, 2009 at 1:41 PM, Musachy Barroso <mu...@gmail.com> wrote:

> you are not using the simple theme right?
>
> musachy
>
> On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa <cl...@gmail.com> wrote:
> > Hello,
> > I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
> > a list of supported parameters in the velocity struts tags like:
> > #stext or #slabel.
> >
> > For example, passing "labelSeparator=-" - does nothing.
> > 'labelPosition' - likewise, does nothing.
> >
> > I've seen other posts relating to this issue:
> > http://www.mail-archive.com/user@struts.apache.org/msg83661.html
> >
> > Of course I've looked in the struts documentation and don't see
> > anything. Putting a '#s' in front of the tags listed here:
> > http://struts.apache.org/2.0.14/docs/tag-reference.html, you would
> > think that all of the parameters listed would be supported.
> >
> > Any clues?
> >
> > jars:
> > struts2-core-2.0.11.2.jar (and all the other jars that come with
> 2.0.11.2)
> > veloticty-1.5.jar
> > velocity-tools-2.0-beta3.jar
> >
> > Thanks,
> > Carlo.
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Carlo Latasa
Cell: (415) 385-1567

Re: Struts 2 - Velocity Tag reference

Posted by Musachy Barroso <mu...@gmail.com>.
you are not using the simple theme right?

musachy

On Thu, Jan 22, 2009 at 1:31 PM, carlo latasa <cl...@gmail.com> wrote:
> Hello,
> I'm using Struts 2 and Velocity 1.5/Tools 2.0-beta3 and trying to find
> a list of supported parameters in the velocity struts tags like:
> #stext or #slabel.
>
> For example, passing "labelSeparator=-" - does nothing.
> 'labelPosition' - likewise, does nothing.
>
> I've seen other posts relating to this issue:
> http://www.mail-archive.com/user@struts.apache.org/msg83661.html
>
> Of course I've looked in the struts documentation and don't see
> anything. Putting a '#s' in front of the tags listed here:
> http://struts.apache.org/2.0.14/docs/tag-reference.html, you would
> think that all of the parameters listed would be supported.
>
> Any clues?
>
> jars:
> struts2-core-2.0.11.2.jar (and all the other jars that come with 2.0.11.2)
> veloticty-1.5.jar
> velocity-tools-2.0-beta3.jar
>
> Thanks,
> Carlo.
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org