s:textfield question

2007-04-27 Thread meeboo
Hey all I am trying to populate the value of a s:textfield with some data from a method via OGNL. I tried value=getTagsAsString(movie.id) which doesn't work at all (the textfield is populated with getTagsAsString(movie.id)). Then I tried the JSTL approach, by writing

Re: s:textfield question

2007-04-27 Thread Felipe Rodrigues
Is the method you're calling binded in some action that result in this form? I mean, to call some method by OGNL this method should be on the stack. Make sure it is on the stack, if it is and keeps not working, post the code of your action and your form here. Regards, Felipe meeboo wrote:

Re: s:textfield question

2007-04-27 Thread meeboo
I'm sure that it's on the stack. I am using another method call via OGNL where I do s:property value=getMovieCategory(category)/ and that works fine. But when I write s:textfield value=getMovieCategory(category)/ it only prints out getMovieCategory(category). Is this expected behaviour or a bug?

Re: s:textfield question

2007-04-27 Thread Dave Newton
--- meeboo [EMAIL PROTECTED] wrote: But when I write s:textfield value=getMovieCategory(category)/ it only prints out getMovieCategory(category). Does %{getMovieCategory(category)} work? d. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

Re: s:textfield question

2007-04-27 Thread Felipe Rodrigues
Well, when you're calling a method you should use %{} or #, otherwise it would print as a literal. I'm not sure about what of % or # will work. Dave Newton-4 wrote: --- meeboo [EMAIL PROTECTED] wrote: But when I write s:textfield value=getMovieCategory(category)/ it only prints out

Re: s:textfield question

2007-04-27 Thread meeboo
value=%{getTagsAsString(id)} works like a charm. I'm still a bit confused on whether to use the # prefix or not in certain places, but i'm glad it works now :D Thanks! Felipe Rodrigues wrote: Well, when you're calling a method you should use %{} or #, otherwise it would print as a literal.

Re: s:textfield question

2007-04-27 Thread Dave Newton
--- meeboo [EMAIL PROTECTED] wrote: value=%{getTagsAsString(id)} works like a charm. I'm still a bit confused on whether to use the # prefix or not in certain places, but i'm glad it works now :D The # indicates non-root OGNL stack access. When an Action is executed it's pushed on to the