I'm just about finished implementing a base set of Velocity based UI
tags:

checkbox
component
label
password
radio
select
textarea
textfield

However, I'd like to modify the checked-in implementation in the
following ways.  In each Tag libraries doStartTag:

* don't call stack.push(this) 
* pass both the stack and the tag into the VelocityContext as "stack"
and "tag" respectively

Here's the problem I'm trying to solve.  In the checked in code, the
instance of the Tag library is pushed onto the OgnlValueStack before the
template is called.  This makes [0] and #this reference the Tag and not
the Action being called which makes the order of resolution behave
oddly.

<ui:select label="Choose you age bracket " name="age" list="list"/>

What I want is MyAction.getList() to be called to populate the select
list.  What I will get is the literal String, "list".  I could write
list="[1].list", but this would be extremely unintuitive.

Thoughts?

--
Matt Ho
Principal
Indigo Egg, Inc.
http://www.indigoegg.com/






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to