6 Replies Latest reply on Apr 3, 2007 7:44 PM by Dustin Norlander

    what if your number of text input fields is dynamic?

    joe blah Newbie

      as far as i know jsf/ajax4jsf requires you to have every form field on your page have a private bean property associated with it.

      for example every text input field would have a private String on the class associated with that page.

      what if your number of text fields is dynamic? ie you want to have it do a web service call which returns some data that lets you know how many text fields there are.

      the only thing i can think of is maybe an array of strings can be populated and then somehow use JSF or JSTL to iterate through that array and draw text fields and labels?

      some example code would be great, thanks.