• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

row id to display tag

 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i pass row id to display table ?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please make sure whether it is display tag or table. I suspect display tag provide a param name and param value attributes. Please confirm from display tag site.
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m using display:table can i set rowid using display:setProperty
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't help you in that regard, never used display tag, and as I already said, you've to consult display tag tlds/docs.
 
divya kundapur
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case it helps anybody in future i have my code below which worked, i wanted a row id to be in this pattern ROW_NUMtrID

so theres a arraylist which gives me the row count and the other Test_id is a property from the bean which is used to populate display table

include the dyndecorator in your display:table decorator attribute ... decorator="dyndecorator"

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good and I hope this code is for testing purpose, because using scriptlet in JSP is considered as bad practice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic