This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Dynamically adding textboxes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamically adding textboxes" Watch "Dynamically adding textboxes" New topic
Author

Dynamically adding textboxes

Nipun Bahr
Ranch Hand

Joined: Jul 09, 2008
Posts: 55


Hi All,

Based upon the number of records in datatable, I need to display same number of textboxes and values within.

How can we achieve that?

Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

You can implement in number of ways, i have used JSTL tags "c.tld", you can iterate ir over foreach loop.

Nipun Bahr
Ranch Hand

Joined: Jul 09, 2008
Posts: 55


Hi Harsha,

Basically I want to implement this in Icefaces.
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

Well sorry dude, some one with that expertise should help you not me.

But still if you are out of options it is very easy to implement, what i said.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

Harsha Gedala wrote:Well sorry dude, some one with that expertise should help you not me.

But still if you are out of options it is very easy to implement, what i said.


And it's also very bad practice. JSTL has no business being used in JSF. It can lead to some very annoying problems and there's no need for it, since JSF can do that kind of stuff just fine without having to escape to JSTL.

If you want a tabular display with 2 columns, JSF can do that easily using the dataTable tag. Icefaces provides some extensions, I think, but just a straight core JSF dataTable is sufficient.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Consider Paul's rocket mass heater.
 
subject: Dynamically adding textboxes
 
Similar Threads
Identifying dynamically generated textboxes
javascript
Creating text boxes dynamically
Struts validation
logic iterate tag for Float array