This content has been marked as final. Show 11 replies
You will break the MVC 'rules' that way.
Yes I will break MVC rule but this is part of one of the requirements in our project so can't help it . But is there a way to call JAVA code from jsff without managed bean ?
You can use servlet to invoke your java code.
for call java you don't need always a bean, you have EL expression.
as in the above responses, is bad practice mixes UI and logic.
970756 wrote:What's the specific use case you're attempting to tackle here? Are you trying to do something with a JSP 'scriptlet'?
Can anyone let me know how to call a java method (not through managed bean ) from jsff ?
("Calling" Java code in JSF apps usually involves having a listener that is part of a managed bean at some scope.)
Hi Can you give me some reference EL to call java code from View
+1 for Chads answer
Please give us a (the) use case and we might be able to figure something out.
Can you give me some reference EL to call java code from Viewview in sense? db view/materilizsed view (or) else view object.. i cant you get.
are you trying to call java stored procedure from dbview.
Edited by: user707 on Nov 24, 2012 10:12 PM
No the want to call java method (not a bean method) from jsff
Then it's either using EL or a managed been.
so where does this java method exisit? in the application? or is it a class outside the context of this application?
also why do you insist it be called this way. what is stopping you from doing what the others suggest?