RE: Ognl expressions in Struts 2.1

2008-04-07 Thread Eric Nelson
I ran into this too once I upgraded to 2.0.11. I understand their concern for allowing expressions, but I know that I'm using them correctly and so I decided to modify the TLD and allow all expressions, then just re-jared everything up and all is working fine. That's one solution. The other i

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
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

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
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

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Jeromy Evans
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

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
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

Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Wes Wannemacher
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