You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by mraible <ma...@raibledesigns.com> on 2007/04/03 21:34:20 UTC

Using doesn't seem to work

Any idea why <s:label> does not work for me with Struts 2.0.6?

<s:label key="user.username"/>

The following works fine:

<fmt:message key="user.username"/>

As does:

<s:text name="user.username"/>

Is the "key" attribute of <s:label> supposed to write the body?  It seems to
write the label tag just fine, but it has no body.

Thanks,

Matt
-- 
View this message in context: http://www.nabble.com/Using-%3Cs%3Alabel-key%3D%22%22-%3E-doesn%27t-seem-to-work-tf3521861.html#a9824656
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Using doesn't seem to work

Posted by mraible <ma...@raibledesigns.com>.
I've discovered some more information on this:

If I have theme="simple" on my <s:form> the labels aren't rendered. Changing
it to theme="xhtml" makes it show up, but causes duplicate <labels>

<label for="signupForm_user_username" class="desc">E-Mail
address</label><label id="signupForm_user_username"></label>

I've deleted all my freemarker customizations insrc/main/webapp/template,
but it still seems to happen.  This is quite strange since class="desc"
shows up on my label.  This is a customization I had in my xhtml template -
does Struts have the same customization?

Thanks,

Matt


mraible wrote:
> 
> Any idea why <s:label> does not work for me with Struts 2.0.6?
> 
> <s:label key="user.username"/>
> 
> The following works fine:
> 
> <fmt:message key="user.username"/>
> 
> As does:
> 
> <s:text name="user.username"/>
> 
> Is the "key" attribute of <s:label> supposed to write the body?  It seems
> to write the label tag just fine, but it has no body.
> 
> Thanks,
> 
> Matt
> 

-- 
View this message in context: http://www.nabble.com/Using-%3Cs%3Alabel-key%3D%22%22-%3E-doesn%27t-seem-to-work-tf3521861.html#a9825650
Sent from the Struts - User mailing list archive at Nabble.com.


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