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
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:
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?
--- 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
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
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.
--- 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
7 matches
Mail list logo