You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by marcin <to...@gmail.com> on 2012/05/15 18:36:30 UTC
Re: EJB Injection in JSF Managed Bean
I am replying to my original post because I was not subscribed to mailing
list at the time when I posted my problem. I'd like everybody to know about
existence of this topic.
--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4634823.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Injection in JSF Managed Bean
Posted by anykeystudio <an...@hotmail.com>.
Hi, thanks for the link to the Beta version. I also had the same problem with
the @EJB injection. When is the final release planned for Tomee Plus 1.0 ?
Thanks for a great job, Chris.
--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4641386.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Injection in JSF Managed Bean
Posted by Romain Manni-Bucau <rm...@gmail.com>.
add in your web.xml:
<context-param>
<param-name>org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME</param-name>
<param-value>true</param-value>
</context-param>
However please see https://issues.apache.org/jira/browse/MYFACES-3454 for
the reason why it changed
- Romain
2012/5/16 Romain Manni-Bucau <rm...@gmail.com>
> can you share your app.
>
> IMO xhtml shouldnt be in the url
>
> - Romain
>
>
>
> 2012/5/16 marcin <to...@gmail.com>
>
>> After all I think that there is some bug with resources.
>>
>> The following URL properly loads image:
>>
>> /MyApplication/javax.faces.resource/welcome.png.xhtml?ln=imgs
>>
>> and the following URL doesn't:
>>
>> /MyApplication/javax.faces.resource/okBtn.png.xhtml?ln=imgs/buttons
>>
>> It looks like there is some bug when a resource is in subdirectory.
>>
>> Note that both URLs worked fine on beta-2.
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4641169.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
>
Re: EJB Injection in JSF Managed Bean
Posted by Romain Manni-Bucau <rm...@gmail.com>.
can you share your app.
IMO xhtml shouldnt be in the url
- Romain
2012/5/16 marcin <to...@gmail.com>
> After all I think that there is some bug with resources.
>
> The following URL properly loads image:
>
> /MyApplication/javax.faces.resource/welcome.png.xhtml?ln=imgs
>
> and the following URL doesn't:
>
> /MyApplication/javax.faces.resource/okBtn.png.xhtml?ln=imgs/buttons
>
> It looks like there is some bug when a resource is in subdirectory.
>
> Note that both URLs worked fine on beta-2.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4641169.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: EJB Injection in JSF Managed Bean
Posted by marcin <to...@gmail.com>.
After all I think that there is some bug with resources.
The following URL properly loads image:
/MyApplication/javax.faces.resource/welcome.png.xhtml?ln=imgs
and the following URL doesn't:
/MyApplication/javax.faces.resource/okBtn.png.xhtml?ln=imgs/buttons
It looks like there is some bug when a resource is in subdirectory.
Note that both URLs worked fine on beta-2.
--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4641169.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Injection in JSF Managed Bean
Posted by marcin <to...@gmail.com>.
Hmm, this is a good question. It is the only way it worked on beta-2. Maybe
it is somehow connected with my declaration of servlet mapping, i.e.:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4635066.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Injection in JSF Managed Bean
Posted by Romain Manni-Bucau <rm...@gmail.com>.
why did you add .xhtml?
- Romain
2012/5/15 marcin <to...@gmail.com>
> Thanks for the link. I've downloaded snapshot and deployed my application
> on
> this new server. The problem with injection of EJB indeed is no longer
> present, but I have found another bug.
>
> On beta-2 resources of JSF application can be accessed with URL such as:
>
> http://localhost:8080/MyApplication/javax.faces.resource/client.png.xhtml?ln=imgs/buttons
>
> On the snapshot it doesn't work.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4634945.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: EJB Injection in JSF Managed Bean
Posted by marcin <to...@gmail.com>.
Thanks for the link. I've downloaded snapshot and deployed my application on
this new server. The problem with injection of EJB indeed is no longer
present, but I have found another bug.
On beta-2 resources of JSF application can be accessed with URL such as:
http://localhost:8080/MyApplication/javax.faces.resource/client.png.xhtml?ln=imgs/buttons
On the snapshot it doesn't work.
--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4634945.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Injection in JSF Managed Bean
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Here it is
https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-3-SNAPSHOT/
Ignore the beta-3 we have to fix versions on trunk
- Romain
Le 15 mai 2012 19:07, "marcin" <to...@gmail.com> a écrit :
> Thanks for help. I've tried to find new snapshot in binary form but
> without a
> success. Do I have to build OpenEJB from head revision from SVN in order to
> acquire fixed version?
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4634892.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: EJB Injection in JSF Managed Bean
Posted by marcin <to...@gmail.com>.
Thanks for help. I've tried to find new snapshot in binary form but without a
success. Do I have to build OpenEJB from head revision from SVN in order to
acquire fixed version?
--
View this message in context: http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4634892.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: EJB Injection in JSF Managed Bean
Posted by Romain Manni-Bucau <rm...@gmail.com>.
it is a bug of the 1.0.0, there is a JIRA about it explaining it was during
the jsf optimization phase when we refactored the scanning logic (jira is
offline for maintance so i can't find the link back, sorry)
it is already fixed on the snapshot
- Romain
2012/5/15 marcin <to...@gmail.com>
> I am replying to my original post because I was not subscribed to mailing
> list at the time when I posted my problem. I'd like everybody to know about
> existence of this topic.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/EJB-Injection-in-JSF-Managed-Bean-tp4634407p4634823.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>