Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EL functions with user defined arguments.

 
John Eipe
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a EL functions defined as follows.


I have the following entry in functions.tld


User is not recognized inside the tld. Isn't it possible to use EL functions in this way?

Regards,
John
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't tried writing my own EL functions, but in what you posted I don't see any way for the system to deduce that "User" really means "data.User". So perhaps

might work?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The method implementing the function must also be static.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!