Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass parameters to decorator method in TableDecorator wrapper.  RSS feed

Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for a way to pass parameters to a table decorator method from JSP.

In Controller method:
Setting 2 model attributes( object: Account and other is list of objects :List<Account>) and passing them to JSP view.
In JSP, display tag library to render table out of list of objects.

In one column of the table, i am using object's variable (as model attribute) for a condition (if-else).
Based on condition column value is rendered in row.

I want to create a DECORATOR with a method where i can pass this variable(model attributes objects variable) as a parameter.
Is there any way to do it?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!