I'm looking over the CD store example and I notice an inconsistency in the docs.

The code for cdlist.jsp shows

<%@ taglib uri="webwork" prefix="webwork" %>

<webwork:action name="'i18n.ComputePrice'" id="pricer"/>

<select name="album">
<webwork:iterator value="CDList">
<option value="<webwork:property value="album"/>">
<webwork:property value="album"/>,
<webwork:property value="artist"/>, <webwork:property value="country"/>,
<webwork:text name="'price'" value0="@pricer/computePrice(price)"/>
</option>
</webwork:iterator>
</select>

where's the docs (views-jsp.jsp) show

<webwork:action name="'webwork.action.test.i18n.ComputePrice'" id="pricer"/>

<select name="album">
<webwork:iterator value="CDList">
<option value="<webwork:property value="album"/>">
<webwork:property value="album"/>,
<webwork:property value="artist"/>, <webwork:property value="country"/>,
<webwork:property value="@pricer/computePrice(price)"/>
</option>
</webwork:iterator>
</select>

Note: the pricer

....

Now I don't know which one is correct but I what I was looking for was how it determines what to use for the parameter to computePrice. In the second syntax does it automatically take the "current" object from the iterator which will presumably be on the ValueStack?

I think it would be very instructional to be able to view the Value Stack when running an example so what code snippet does that? I would like to see the contents as it's iterating through CDList in this example.



-------------------------------------------------------
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