Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

binding of a var series to array members  RSS feed

 
John Applecorn
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes you want a user to have the possibility of adding fields dynamically to a form, e.g. for a gallery or sth else. With Javascript it is no problem to create new input fields dynamically.

If using PHP I would create entries like:



You see the [] after the myvar. This would cause PHP to create an array of all the myvar[] variables.

Is there a possibility to achieve that in JSF/Seam? also for multiple file upload?

best regards and thank you for any advice
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!