• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding row per row using javascript

 
leonardo ginting
Ranch Hand
Posts: 48
  • 0
  • 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
 
H Jetly
Ranch Hand
Posts: 41
Google Web Toolkit Redhat Tomcat Server
  • 0
  • 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
  • 0
  • 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 Redhat Tomcat Server
  • 0
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic