Hi Dave,
Instead of defining getters for each field, you can make your backing bean
implement the Map interface.
So override the get method of the managed bean and return the corresponding
value in your own map.
Cagatay
On 9/29/07, Dave <[EMAIL PROTECTED]> wrote:
>
> I have a Map (name --> value), and prefer to access values (from JSF page)
> using "#{myMap.Foo}" where Foo is the key, which is the same as how to
> access resource bundle "#{bundle.Foo}".
>
> There are 100+ values in the map, and I do not like to write 100+ getter
> methods. Please help. Thanks!
>
> David
>
> ------------------------------
> Check out
> <http://us.rd.yahoo.com/evt=51201/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE5NWVzZGVyBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDYXV0b3MtbmV3Y2Fy%0A>the
> hottest 2008 models today at Yahoo! Autos.
>
>