Propper Way to Use StringResourceModel

2009-03-13 Thread Daniel Ferreira Castro
I have seen some examples of Pages that uses the StringResourceModel to read properties inside property files. But the examples that I saw shows that I need to create a StringResourceModel for each property that is inside my property file. So, If I have a Login page that have 3 properties, like

Re: Propper Way to Use StringResourceModel

2009-03-13 Thread Igor Vaynberg
each component is a resource bundle, not a model. you can use component's getstring(..) to read any resource you want. -igor On Fri, Mar 13, 2009 at 4:19 AM, Daniel Ferreira Castro dfcas...@gmail.com wrote: I have seen some examples of Pages that uses the StringResourceModel to read properties

Re: Propper Way to Use StringResourceModel

2009-03-13 Thread Daniel Ferreira Castro
If I declare *private final* StringResourceModel labelCategoriaValue = new StringResourceModel(categoria.label, *this, null, new* Object[] { getLocale() }); The labelCategoriaValue is not a ResourceBundle. The method signature getString does not have input parameters. So, as seems, it is not a

Re: Propper Way to Use StringResourceModel

2009-03-13 Thread Igor Vaynberg
i said COMPONENT not a MODEL -igor On Fri, Mar 13, 2009 at 2:50 PM, Daniel Ferreira Castro dfcas...@gmail.com wrote: If I declare *private final* StringResourceModel labelCategoriaValue = new StringResourceModel(categoria.label, *this, null, new* Object[] { getLocale() }); The