Re: Dynamic s:checkbox name?

2009-01-18 Thread KE LI
Got it, quite useful. Thanks for all you guys' help!

2009/1/18 

> Makes perfect sense if interested in matching the values from checkbox
> list. Another variation, I think in that case would be to use the
> 'fieldValue' instead of name; that way the set values can  be easier
> to retrieve as a list using the name encapsulator.
>
> 
> 
>   
>
> - Abhijit Sulhyan
>
> On 1/18/09, Wes Wannemacher  wrote:
> > On Sunday 18 January 2009 00:47:51 Nuwan Chandrasoma wrote:
> >>   
> >> 
> >>   
> >>
> >> Thanks,
> >>
> >> Nuwan C
> >>
> >
> > Nuwan,
> >
> > I'm not sure if that is what he is intending. It will work, but for what
> > seems
> > to be the wrong reasons. If "test_list" contains the values to iterate
> over,
> > then I would use those, rather than the loop index.
> >
> > 
> >  
> >   
> >
> > This is a slightly different variation of the OGNL, as I enclosed the
> whole
> > expression. Also, "top" will point to the value on the top of the Value
> > Stack,
> > which will contain the value pushed onto it by the s:iterator tag.
> >
> > -Wes
> > --
> >
> > Wes Wannemacher
> > Author - Struts 2 In Practice
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Best Regards,
Licco


Re: Dynamic s:checkbox name?

2009-01-18 Thread abhijit . sulhyan
Makes perfect sense if interested in matching the values from checkbox
list. Another variation, I think in that case would be to use the
'fieldValue' instead of name; that way the set values can  be easier
to retrieve as a list using the name encapsulator.


 
   

- Abhijit Sulhyan

On 1/18/09, Wes Wannemacher  wrote:
> On Sunday 18 January 2009 00:47:51 Nuwan Chandrasoma wrote:
>>   
>> 
>>   
>>
>> Thanks,
>>
>> Nuwan C
>>
>
> Nuwan,
>
> I'm not sure if that is what he is intending. It will work, but for what
> seems
> to be the wrong reasons. If "test_list" contains the values to iterate over,
> then I would use those, rather than the loop index.
>
> 
>  
>   
>
> This is a slightly different variation of the OGNL, as I enclosed the whole
> expression. Also, "top" will point to the value on the top of the Value
> Stack,
> which will contain the value pushed onto it by the s:iterator tag.
>
> -Wes
> --
>
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Dynamic s:checkbox name?

2009-01-17 Thread abhijit . sulhyan
Licco:

Try as:


 
   

- Abhijit Sulhyan


On 1/18/09, KE LI  wrote:
> Dear All,  I am confusing about how to write dynamic s:checkbox names in s2.
> For example,
>   
> 
>   
>
>   I want to achieve the result as:
>   
>   
>   
>   
>   
>   etc.
>
>   The main problem is that i dont know how to write the right ognl
> expression in the code above(around the "?" position). Can anyone help me?
> Thanks in advance.
>
> --
> Best Regards,
> Licco
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Dynamic s:checkbox name?

2009-01-17 Thread Wes Wannemacher
On Sunday 18 January 2009 00:47:51 Nuwan Chandrasoma wrote:
>   
> 
>   
>
> Thanks,
>
> Nuwan C
>

Nuwan, 

I'm not sure if that is what he is intending. It will work, but for what seems 
to be the wrong reasons. If "test_list" contains the values to iterate over, 
then I would use those, rather than the loop index. 


 
  

This is a slightly different variation of the OGNL, as I enclosed the whole 
expression. Also, "top" will point to the value on the top of the Value Stack, 
which will contain the value pushed onto it by the s:iterator tag.

-Wes
-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Dynamic s:checkbox name?

2009-01-17 Thread Nuwan Chandrasoma

 
   
 

Thanks,

Nuwan C


KE LI wrote:

Dear All,  I am confusing about how to write dynamic s:checkbox names in s2.
For example,
  

  

  I want to achieve the result as:
  
  
  
  
  
  etc.

  The main problem is that i dont know how to write the right ognl
expression in the code above(around the "?" position). Can anyone help me?
Thanks in advance.

  



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Dynamic s:checkbox name?

2009-01-17 Thread KE LI
Dear All,  I am confusing about how to write dynamic s:checkbox names in s2.
For example,
  

  

  I want to achieve the result as:
  
  
  
  
  
  etc.

  The main problem is that i dont know how to write the right ognl
expression in the code above(around the "?" position). Can anyone help me?
Thanks in advance.

-- 
Best Regards,
Licco