I had similar problems with labels, most times they where related to themes.

http://struts.apache.org/2.x/docs/themes-and-templates.html

For example, if you turn on simple theme you'll have to provide your own tags for the labels as struts won't generate this markup.

Em 08-04-2010 08:18, RogerV escreveu:

Hi

I'm iterating over a list in my jsp. The relevant code looks like;

<s:iterator status="blockStatus" value="blocks" var="block">
<s:select
                  label="blocks[%{#blockStatus.index}].name"
                  name="blocks[%{#blockStatus.index}].value"
                  list="%{blocks[#blockStatus.index].options}"
                  listKey="value"
                  listValue="text">
</s:select>
</s:iterator>

The select box displays correctly populated, but I cannot get the label to
display! I've tried the above code and I've tried
label="%{blocks[#blockStatus.index].name}" which doesn't work either. I've
stuck a System.out.println in my getName() method and with both examples,
the getName() method on my block class get called and return the correct
value.

What on earth am I doing wrong?

Regards




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

Reply via email to