I thought you could only specify properties files for action beans,
not model ones. So in your case try specifying
PersonneFilterAction.properties
Zarar
On 10/8/07, pilou <[EMAIL PROTECTED]> wrote:
>
> hi
> I noticed that the property bundles named with the Model Bean class name
> does not seem to work.
> Here is my example :
> the bean class and bundle and action class are in the same package,
>
> Bundles name => PersonneFilterBean.properties
>
> Java sources for the bean =>
> ======================
>
> package exemple.action.admin;
>
> public class PersonneFilterBean {
>
> private String nom;
> private Integer age;
>
> public String getNom() {
> return nom;
> }
>
> public void setNom(String nom) {
> this.nom = nom;
> }
>
> public Integer getAge() {
> return age;
> }
>
> public void setAge(Integer age) {
> this.age = age;
> }
> }
>
>
> Java source for the ACTION =>
> ======================
>
> public class PersonneFilterAction extends ExempleAction implements
> ModelDriven<PersonneFilterBean> {
>
> private static final long serialVersionUID = -2355406819601885551L;
> private PersonneFilterBean m_personneFilterBean = new
> PersonneFilterBean();
>
> @Override
> public String execute() throws Exception {
> getLog().debug("OK success !");
> return SUCCESS;
> }
>
> public PersonneFilterBean getModel() {
> getLog().debug("OK success !");
> return m_personneFilterBean;
> }
> }
>
>
> thanks for help
> --
> View this message in context:
> http://www.nabble.com/ModelDriven-Resource-Bundle-not-working---tf4588469.html#a13097564
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]