Re: [appfuse-user] struts taglib select with foreach example

2009-07-27 Thread tibi
and the value actually is an string[] so making it this: /** Creating a map for holding the selected tickets */ final Map chosenTickets = new HashMap(); public Map getA() { return chosenTickets; } tibi wrote: > i found it. > the trick is there is no set method. > there i

Re: [appfuse-user] struts taglib select with foreach example

2009-07-27 Thread tibi
i found it. the trick is there is no set method. there is a get method needed wich will need to get a map. the values are added to this map directly without the need of a set method. so this wil do the trick: public Map getA() { return map; } and it the map is prefilled. like this

Re: [appfuse-user] struts taglib select with foreach example

2009-07-27 Thread tibi
and now the next step howto post the data to the action: i have this working nice: this wil give select boxes with name a[0] and a[1] etc... in my action i have a method like this: public void setA(Object o){ } this method is called nicely 3 times (i have 3 select boxes) and i get

Re: [appfuse-user] struts taglib select with foreach example

2009-03-23 Thread tibi
mraible wrote: > > You cannot mix and match JSTL with Struts 2 tags. If you use a Struts > 2 iterator tag with the , it should work. > and right you are! here is a working example: it is quite confusing the two styles intermixing. and somehow i have an old project wich is

Re: [appfuse-user] struts taglib select with foreach example

2009-03-19 Thread tibi
mraible wrote: > > Have you tried using OGNL syntax? I believe it's something like > %{price.name}. > > Matt > i tried this: but then the id and name are empty... is there a OGNL expert in the house ;) i have a work arround: ${option}

Re: [appfuse-user] struts taglib select with foreach example

2009-03-19 Thread Matt Raible
You cannot mix and match JSTL with Struts 2 tags. If you use a Struts 2 iterator tag with the , it should work. Matt On Thu, Mar 19, 2009 at 12:52 PM, tibi wrote: > > > > mraible wrote: >> >> Have you tried using OGNL syntax? I believe it's something like >> %{price.name}. >> >> Matt >> > i trie

Re: [appfuse-user] struts taglib select with foreach example

2009-03-19 Thread Matt Raible
Have you tried using OGNL syntax? I believe it's something like %{price.name}. Matt On Thu, Mar 19, 2009 at 9:10 AM, tibi wrote: > > when i look at my code from a year ago i did something like this: >   > > but this gives me this error: > "According to TLD or attribute directive in tag file, at

Re: [appfuse-user] struts taglib select with foreach example

2009-03-19 Thread tibi
when i look at my code from a year ago i did something like this: but this gives me this error: "According to TLD or attribute directive in tag file, attribute name does not accept any expressions" with google i found that there is a security 'fix'. and now it is not possible to inject code

[appfuse-user] struts taglib select with foreach example

2009-03-19 Thread tibi
hi list, maybe i'm a bit rusty or there is some upgrade or something. i hope some of you can fix this example. i have a list of prices and each price has a name.(standerd vip child etc). [${price.name}] the ${price.name} works fine. it prints out the name. but the select is not working