• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

links inside display:column tags in table

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?)
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic