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/06/05 14:32:50 UTC
reads wrong key from i18n bundle
I have a Company object that's attached to my User object with the following
JPA configuration:
@ManyToOne(cascade = CascadeType.ALL, optional=true)
@JoinColumn(name="company_id")
public Company getCompany() {
return company;
}
In my userForm.jsp, I'm trying to render allow users to edit the company
name with the following textfield:
<s:textfield key="user.company.name" required="false" cssClass="text large"
/>
In my i18n bundle, I have two keys:
company.name=Acme, Inc.
user.company.name=Company Name
For some reason, "Acme, Inc." is getting rendered as the label instead of
"Company Name". As far as I can tell, this is a bug in Struts 2.0.6. Should
I enter an issue for it in JIRA?
Thanks,
Matt
--
View this message in context: http://www.nabble.com/%3Cs%3Atextfield-key%3E-reads-wrong-key-from-i18n-bundle-tf3871460.html#a10968459
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