• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

adding row per row using javascript

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check this out for inplace input
http://livedemo.exadel.com/richfaces-demo/richfaces/inplaceInput.jsf?c=inplaceInput&tab=usage
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic