How can we access a static method from JSF page in ADF .I don't see that method in the expression builder. Any pointers on how to excess it. TIA.
Asked
Active
Viewed 1,041 times
1
-
possible duplicate of [How to call a static method in JSP/EL?](http://stackoverflow.com/questions/6395621/how-to-call-a-static-method-in-jsp-el) – Aritz Jan 09 '14 at 12:13
-
@XtremeBiker: just added an answer, because e.g. the namespace is declared differently. – L-Ray Jan 09 '14 at 12:27
-
Did the solution Below get your static function callable? – L-Ray Jan 11 '14 at 09:51
-
1@L-Ray : Hey , sry for late reply , found another way by creating a public non static getXXX() method and called static method from it. Will try your solution as well and post it . Thanks . – Sid Jan 15 '14 at 05:01
1 Answers
0
Basically, just generate an EL Function like described in How to call a static method in JSP/EL? under paragraph two. It works the same way in JSF. Just the namespace has to be declared like you would with every other NS in JSF (... xmlns:f="http://example.com/functions" ...
)
Hope it helps...