• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing JSF Bean for custom JSP Tag  RSS feed

 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a <h atatable> tag that loops over a list of values. To render a particular column, I have a custom jsp tag. I am trying to pass the value of the current iterated element to the jsp tag but am unable to do so.



The "#{item.getId()}" is not being evaluated. I have set <retrexpr>true</retrexpr> in the tag defintion. Thanks....
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had this problem because of the getters in my component. If the getter just returns the local variable from the component, you could add some code to check for a value binding. And of course you need to set up the value binding in the tag handler, as well.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!