[EJB 3.0] - Re: Question about injecting env-entry into interceptor
by sbivol
Actually, it works for me only if I specify in the ejb-jar.xml the injection target, as shown in the original message (I use @Resource annotation without any parameters though)
However, If I understand the spec correctly, it should work without specifying the <injection-target>, just env-entry name, type, and value. Also, as long as the name is the same as the interceptor's property in the java class, it should work with @Resource, no parameters.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998359#3998359
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998359
19 years, 3 months
[JBoss Seam] - EL enhancements
by monkeyden
Is the "parameterized EL" enhancement only available for action handlers, or can it be used for accessors too? Suppose I have an entity which has the following field:
STATUS NUMBER(1)
...and there are two possible values for status(0=OK, 1=BAD). I retrieve a list of these entities within my action and outject it using @DataModel. Within dataTable, resolve that status number to a String value.
JSF
<h:outputText value="#{loginAction.getStringValue(0)}"/>
Action
public String getStringValue(int code){
| if(code == 0 ){
| return "OK";
| }else{
| return "BAD";
| }
| }
I supect that I'm not going to hear what I want to, but it was worth a try.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998333#3998333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998333
19 years, 3 months