myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhav Bhargava" <>
Subject how to call a static method via EL
Date Thu, 04 Jan 2007 12:53:04 GMT

Hi All,

I need to call a static method on an arbitrary java class. Is it
possible using EL in its current form?

There is a way in which I can call - make the class a managed bean. Call
the static method on the managed bean instance. This is a horrible
approach because:

1.	Static methods should not be called on instances of the same
2.	It means that I will have to make any java class a managed bean,
even if I do not want to make it.

Is there any other way in which I can achieve this?



**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of
the addressee(s). If you are not the intended recipient, please notify the sender by e-mail
and delete the original message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are unlawful. This e-mail
may contain viruses. Infosys has taken every reasonable precaution to minimize this risk,
but is not liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or attachment. Infosys
reserves the right to monitor and review the content of all messages sent to or from this
e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys
e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
View raw message