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 DataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "DataTable" Watch "DataTable" New topic
Author

DataTable

rouhieh sham
Greenhorn

Joined: Aug 29, 2007
Posts: 1
I am writing a web application(using JSF) which name is "Online Computer Hardware Store".I want to show hardwares in a table.For this reason I used DataTable .Each row should have a link.When a user click on a link ,it goes to the next page and shows all features of the selected hardware.My problem is in this part .I mean I don't know how to put a link in a DataTable which can identifies the selected hardware .PLEASE HELP ME AS SOON AS POSSIBLE .
I also attached a part of my code.
Regards
Ruhiyyih









Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
To put a link in a DataTable you have to use the h:commandlink component
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
To identify which row was clicked check this site:
Apache MyFaces Wiki
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataTable