Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataTable

 
rouhieh sham
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To put a link in a DataTable you have to use the h:commandlink component
 
A. Dusi
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To identify which row was clicked check this site:
Apache MyFaces Wiki
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic