ject: Ognl expressions in Struts 2.1
Hi all,
I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
I was setting a value in a checkbox like this:
inside a displayTag iterator.
I read this link https://issues.apache.org/struts/browse/WW-2107 and
understood the situation.
But, is there another wa
Sorry guys, my mistake.
I don't know how, but the "theme" attribute of s:checkBox was "item", then I
changed to "simple" (:
Jeromy it works! The generated checkBox has value!
Tanks for your help.
Tanks also Wes!
2008/4/7, Márcio Gurgel <[EMAIL PROTECTED]>:
>
> Jeromy,
>
> I tried as you said, bu
Jeromy,
I tried as you said, but now I have the following exception:
01:02:36,640 WARN OgnlValueStack:46 - Could not find property [templateDir]
01:02:36,640 WARN OgnlValueStack:46 - Could not find property [templateDir]
01:02:36,640 WARN OgnlValueStack:46 - Could not find property
[#attr.temp
In addition to Wes' comment, as you're using display:table and have used
the uid attribute, the current row of the table is placed into the
PageContext.
You can access the page context in OGNL via #attr, so your expression
becomes this:
Wes Wannemacher wrote:
Your problem isn't OGNL in p
Hi all!
Wes, tanks for your explanation, it was helpful.
I tryed to use %{ - %{item.id} inside my display:table, but it still
doesn't work.
The iterated object is a bean, the attribute "cd" has a getCd()
Folow the generated html:
2008/4/6, Wes Wannemacher <[EMAIL PROTECTED]>:
>
> You
Your problem isn't OGNL in parameters, you are using EL in your
examples. By default, EL expressions are disabled, but you could easily
switch your expressions to OGNL. I'm guessing that if you use '%'
instead of '$' it will probably work. If your action has a getItem(),
and the returned object has
Hi all,
I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
I was setting a value in a checkbox like this:
inside a displayTag iterator.
I read this link https://issues.apache.org/struts/browse/WW-2107 and
understood the situation.
But, is there another way to set a value in my checkB
7 matches
Mail list logo