heres the source for the attached image

 <table class="grid" cellspacing="0" cellpadding="0">
<ww:label label="'TestStringLabel'"   name="'testString'" />
<ww:label label="'TestStringLabel'"   name="testString" />

<ww:textfield label="'TestStringTextField'" name="testString" value="testString" />
<ww:textfield label="'TestStringTextField'" name="testString" value="testString + ' with ognl concat'" />


<ww:label label="'Test IntegerLabel'"   name="'testInteger'" />
<ww:label label="'Test IntegerLabel'"   name="testInteger" />

<ww:textfield label="'TestIntegerTextField'" name="testInteger" value="testInteger" />
<ww:textfield label="'TestIntegerTextField'" name="testInteger" value="testInteger + ' with ognl concat'" />
</table>



Francisco Hernandez wrote:


ok i've run into a few quirks or bugs with the tag libs..
------
first of all does anyone else think that it makes more sense for the "label" tag to accept a "value" attribute instead of "name" attribute to display data?
currently I have to use:


<ww:label label="'TestStringLabel'" name="'testString'" />

when I was actually expecting to use:

<ww:label label="'TestStringLabel'" value="'testString'" />

this is minor.. but still thought i'd bring it up..
-------
another that issue with the "label" tag

now with the "textfield" tag I can do this as expected:
<ww:textfield label="'TestIntegerTextField'" name="testInteger" value="testInteger + ' with ognl concat'" />
and the value in the input form comes out to what you'd expect, but with the label tag (using name attribute) it doesnt work the same..


this displays the value of the testString property when I was actually expecting it to display 'testString' (without quotes)
<ww:label label="'TestStringLabel'" name="'testString'" />


and this doesnt display anything for the data! (i was expecting the value of testString property)
<ww:label label="'TestStringLabel'" name="testString" />


this displays the value of the testInteger property when I was actually expecting it to display 'testInteger' (without quotes)
<ww:label label="'Test IntegerLabel'" name="'testInteger'" />


while this actually works the way I was expecting it to work! (displays testInteger as the data..)
<ww:label label="'Test IntegerLabel'" name="testInteger" />


im going to attach an image of the rendered page




















------------------------------------------------------------------------





------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to