Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically adding textboxes

 
Nipun Bahr
Ranch Hand
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Harsha,

Basically I want to implement this in Icefaces.
 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic