File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes adding row per row using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "adding row per row using javascript" Watch "adding row per row using javascript" New topic
Author

adding row per row using javascript

leonardo ginting
Ranch Hand

Joined: Jul 25, 2011
Posts: 48
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

Joined: Aug 26, 2010
Posts: 41

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


Harsh Jetly
leonardo ginting
Ranch Hand

Joined: Jul 25, 2011
Posts: 48
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

Joined: Aug 26, 2010
Posts: 41

check this out for inplace input
http://livedemo.exadel.com/richfaces-demo/richfaces/inplaceInput.jsf?c=inplaceInput&tab=usage
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding row per row using javascript