I'm not sure I understand the question and/or problem. Can you explain it in
simpler terms?

On Tue, Oct 5, 2010 at 3:54 AM, <t...@dds.nl> wrote:

>
> i had an infinite loop and could find why. after some debugging a found
> this very unexpectedly.
> matt did you know??
> jsp file:
> <s:radio key="verbruikvergelijker.stadsverwarming"
> list="stadsverwarmingOpties"/>
>
> corresponding action has this method
>
>   public List<String> getStadsverwarmingOpties() {
>       List<String> list = new ArrayList<String>();
>       list.add(getText("stadsverwarmingOpties.ja")); // 1
>       list.add(getText("stadsverwarming.opties.nee")); // 2
>       return list;
>    }
>
> well line with comment 1 will call the method itself probably because the
> first part in gettext corresponds to the method name (prepended with 'get')
>
> i did not know this worked this why. thought getText would only search in
> the ApplicationResources.properties
>
> when i do this:
>
>    public List<String> getStadsverwarmingOpties() {
>        List<String> list = new ArrayList<String>();
>        // TODO (tibi) create enum
>        list.add(getText("test.stadsverwarming.opties.ja"));
>        list.add(getText("test.stadsverwarming.opties.nee"));
>        return list;
>    }
>
>    public String getTest() {
>        return "test";
>    }
>
> the getTest method is called form the getText method. in the jsp this ends
> up:
> 'test.stadsverwarming.opties.nee'
> so the test text is not shown suggesting that the getText method is still
> searching (and not finding because i did not put it there) the string
> 'test.stadsverwarming.opties.nee' in the ApplicationResources.properties...
>
> is this a feature or a bug??
>
>
> tibi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to