This content has been marked as final.
Show 8 replies
-
1. Re: s:graphicImage problems with Sun JSF Impl
pmuir Jun 14, 2007 9:48 AM (in response to mustaghattack)"mustaghattack" wrote:
* NullPointerException due to getRenderType() != null
This is fixed in 1.3ALPHA1 released yesterday.* Next problem : for some reason the DynamicImageResource doesnt get the same instance of DynamicImageStore, so the image is not found !
It's weird since the DynamicImageStore is a Session scope component.
=> I gave up at this point :)
I just checked the ui example (1.3ALPHA1) - working fine for me... -
2. Re: s:graphicImage problems with Sun JSF Impl
pmuir Jun 14, 2007 9:48 AM (in response to mustaghattack)Does the ui example work for you?
-
3. Re: s:graphicImage problems with Sun JSF Impl
mustaghattack Jun 14, 2007 10:14 AM (in response to mustaghattack)Actually not : I did "ant war.tomcat" in the ui example folder. I put it in my tomcat (5.5.23) webapps. Tomcat start successfully. But when enter one of the link (fileUpload for example) on the main page I get :
15:10:49,124 ERROR [ExceptionFilter] could not roll back transaction javax.naming.NamingException: Local server is not initialized at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45) ... 15:10:50,265 ERROR [SeamPhaseListener] uncaught exception javax.faces.el.EvaluationException: Cannot set value for expression '#{personHome.id}' to a new value of type java.lang.Integer at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:310)
Thanks for your answer -
4. Re: s:graphicImage problems with Sun JSF Impl
mustaghattack Jun 14, 2007 10:19 AM (in response to mustaghattack)BTW I use the fileUpload without problem. Here's my facelets page :
<rich:panel> <f:facet name="header">#{messages['edit.file_upload']}</f:facet> <h:form enctype="multipart/form-data"> <s:fileUpload data="#{questionnaire.picture}" accept="images/png,images/jpeg,images/gif"/> <h:commandButton value="Load" /> </h:form> </rich:panel>
And a bit further I display the picture like this :<s:graphicImage value="#{questAnswer.target.picture}" rendered="#{not empty questAnswer.target.picture}"/> <h:outputText value="Picture" rendered="#{not empty questAnswer.target.picture}"/>
-
5. Re: s:graphicImage problems with Sun JSF Impl
pmuir Jun 14, 2007 10:26 AM (in response to mustaghattack)I've never tried the ui example on tomcat - if you want to raise an issue, we can fix that.
-
7. Re: s:graphicImage problems with Sun JSF Impl
mustaghattack Jun 14, 2007 11:56 AM (in response to mustaghattack)Ok I have the solution : doesn't work when cookies are not allowed. The session is destroyed regularly.
I'm not a Servlet expert but why does it happen ?? -
8. Re: s:graphicImage problems with Sun JSF Impl
pmuir Jun 14, 2007 11:59 AM (in response to mustaghattack)Thanks for chasing this up! Sorry, no idea on your question though ;)