Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

how do you render indexed property input components?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,

I've looked for this in a lot of places and can't seem to find a solution. I'm trying to do a form with a table that has a dynamic number of rows each with an input radio and input text field which are indexed properties.

Unfortunately I'm on JSP 2.0 and don't currently have the option to switch to 2.1 and upgrade my EL version.

My question is how do you do a for loop or a c:forEach so that these input fields with have a value attribute that is either:

1. indexed like value="#{myBean.values[index].type}"

OR as part of a Collection like

2. c:forEach var='nxt' items='#{myBean.values}'
and then value='#{nxt.type}'

or something to that effect?

Any insight would be greatly appreciated.

Amarish
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
    Bookmark Topic Watch Topic
  • New Topic