Re: OGNL problem in s:checkbox

2009-03-09 Thread justin2zj
hi,i think i maybe like this:when you set a var attribute on the iterator,i was saved under top level in the ActionContext object,which contains ValueStack,parameters,attr,etc. and when you refer the value using OGNL later,you have to specify the data objects that you're refering,which by

Re: OGNL problem in s:checkbox

2009-03-09 Thread Ignacio de Córdoba
Hi, I fond the answer to my problem. Maybe it helps anyone here... if "service" is the var from a s:iterator doing %{serviceNames.contains(service)} will not work but %{serviceNames.contains(#attr.service)} will work. I don't know how. Must be related of how objects are set into OGNL valueSt

OGNL problem in s:checkbox

2009-03-08 Thread Ignacio de Córdoba
Hi there, I am trying to activate some checkboxes if a certain condition is matched: service is a String var which contains my site service names. I get it iterating over a collection. checkbox should be checked when serviceNames contains the String in "service" var. It works OK if I replace "