This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

links inside display:column tags in table  RSS feed

 
Karol Waga
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP page that displays table using
I need to make the title of the column a link to another page that opens in a new tab/window. I tried for example following
and
and
but the organization.id is undefined although I can see the proper url when I define it as a variable outside of <a> tags.
 
K. Tsang
Bartender
Posts: 3628
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I see you are using the display tag library. Have you looked at the docs here?

Just curious, did you set those variables accordingly?
 
Karol Waga
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!

Yes, I went through the docs you linked earlier.

As I understood from them if property for display:column is null it should put HTML from inside <display:column> tag.

As for the variables, if for example I put organization.id or organization.name in display:column tag's property i.e. property="organization.id" I can see proper value. however in url="/app/organization/${organization.id}" organization.id is empty.
 
K. Tsang
Bartender
Posts: 3628
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karol Waga wrote:
As for the variables, if for example I put organization.id or organization.name in display:column tag's property i.e. property="organization.id" I can see proper value. however in url="/app/organization/${organization.id}" organization.id is empty.


Don't know much about the display tags but have you tried not enclosing the variable in ${} or make the entire url into a variable and plug that in instead?

I noticed the property field in the <display:column> tag you didn't use ${} yet the title field you do (cos maybe it's a defined variable?)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!