You are correct about the "theme" attribute but incorrect with template. Template is not currently looked
up from the value stack. Matt has an outstanding issue in JIRA claiming that it should be.

I think it is wrong to look everything up from the valuestack but I can see the convienence of doing so.

The idea is that theme is something most likely to be common for all tags in the JSP whereas template
isn't. So template isn't going to be set the same for all tags unlike theme. Template doesn't need to be looked
up in the valuestack since it's different for each tag and so should be an regular tag attribute set via it's setAttribute method.

Another question I have relates to velocity's root template path.

I currently have my velocity views in a templates/vm directory and webwork has a configuration as to
where they should be loaded from but my tag's templates are in a template/velocity directory. This causes
problems with webwork because then you cannot load them without changing the file.resource.loader.path
for velocity. This really impacts the use of "#parse" in your tag templates meaning that you have to add
run time specific paths to the #parse because by default "/" is the root template path and I'm sure webwork
generates it's velocity paths relative to this but velocity wants paths relative to "/" which means that you have
to hardcode your velocity tag template directory in your #parse statements..

So, I think this pretty much forces all ie. webwork views and tag templates for velocity under the same
parent directory.

Pretty trivial but also a little frustrating.

On Friday, January 24, 2003, at 12:41 AM, Scott Farquhar wrote:

<ui:textfield template="text.vm" theme="velocity" label="'Description'" name="'description'"/>
Is 'velocity' on the valueStack?  If not, I think you need to quote it?

  theme="'velocity'"

AFAICT all webwork parameters are lookup up on the valuestack.

Cheers,
Scott

--

ATLASSIAN - http://www.atlassian.com
Expert J2EE Software, Services and Support
-------------------------------------------------------
Need a simple, powerful way to track and manage issues?
Try JIRA - http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to