Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

adding row per row using javascript

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi expert btw how to adding row in the table in jsf
i mean when add button is clicked the row is apear in the table and where the content of the row can be edited

would you help me guys,,
and made a simple example so i could learn from that
thanks alot
gb
 
Ranch Hand
Posts: 41
Google Web Toolkit Tomcat Server Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would need to work with Richfaces or some other 3rd party libraries because they will give you the facility to use ajax. Once you get there you will be able to dynamically add rows to a datatable.
Are you using JSF 1.2 or JSF 2.0
JSF2.0 comes with inbuilt ajax support so I think using the core libaries (jsf core) you can perform dynamic rows
 
leonardo ginting
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

H Jetly wrote:You would need to work with Richfaces or some other 3rd party libraries because they will give you the facility to use ajax. Once you get there you will be able to dynamically add rows to a datatable.
Are you using JSF 1.2 or JSF 2.0
JSF2.0 comes with inbuilt ajax support so I think using the core libaries (jsf core) you can perform dynamic rows




hi jetly
btw do you have YM?? or some stuff like that ??
btw i'm using 1.2 and the ive been read max katz blog about this and when add is clicked it worked i mean the row is appear
but the problem is the content on the row i couldn't edit directly,, i mean like in-place edit where we could edit the content in the row
 
H Jetly
Ranch Hand
Posts: 41
Google Web Toolkit Tomcat Server Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this out for inplace input
http://livedemo.exadel.com/richfaces-demo/richfaces/inplaceInput.jsf?c=inplaceInput&tab=usage
 
Those are the largest trousers in the world! Especially when next to this ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic