[solved] Release date for 3.0.2??

Splash Forums PrettyFaces Users [solved] Release date for 3.0.2??

This topic contains 16 replies, has 4 voices, and was last updated by  thanhtung90 6 years ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #17772

    balteo
    Participant

    Hello,

    I am interested in prettyfaces with annotation support. I understand this is due in release 3.0.2. Can anyone please provide a release date for 3.0.2?

    Thanks in advance,

    Julien.

    #20107

    Julien,

    we are currently discussing this on the prettyfaces-dev list. If we don’t find any major blockers you will probably see a release VERY soon. Until this point you may try the snapshots. There won’t be any major changes to the code and the snapshots are very stable. I’m using the snapshots myself on customer project right now.

    You can get the snapshots here:

    http://ocpsoft.com/repository/com/ocpsoft/

    Let us know if you have any issues.

    Christian

    #20108

    balteo
    Participant

    Thanks for your reply,

    I actually want to move to pretty faces from another similar framework. Pretty faces seem very nice.

    I am trying to integrate the 3.0.2-snapshot into my app but I have encountered the following issue with the @Named annotation:

    ***********************

    incompatible types

    required: java.lang.annotation.Annotation

    found: com.ocpsoft.pretty.faces.el.processor.Named

    ***********************

    Here is my code:

    ***********************

    @Component(“accueilView”)

    @Scope(“request”)

    @Named(“accueilView”)

    @RequestScoped

    @URLMapping(id = “rootAction”, pattern = “lang/#{accueilView.language}/”, viewId = “/accueil.xhtml”)

    ***********************

    Any comment welcome,

    Julien.

    #20109

    You are using: com.ocpsoft.pretty.faces.el.processor.Named when you should be using @javax.inject.Named

    #20110

    balteo
    Participant

    thanks Lincoln,

    do I need to upgrade to tomcat 7 and JEE6 for javax.inject.Named?

    J.

    #20111

    You need CDI(Weld) or Java EE 6 in order for @Named to work, yes. But I believe you may be trying to use the @Named annotation incorrectly, based on the way you stated your situation, apologies if I am wrong.

    @Named(“something”) is for assigning a name to a CDI/JavaEE6 Managed Bean class. Not directly anything to do with PrettyFaces (except that the name defined is how you must then reference the bean in any PrettyFaces configuration.)

    http://seamframework.org/Weld

    #20112

    It seems you are using both Spring and CDI annotations on the same bean. If you want to use Spring instead of CDI just drop @Named and @RequestScoped as they are CDI annotations that have the same meaning as @Component and @Scope in a CDI environment.

    #20113

    balteo
    Participant

    I’ll try those and let you know how it worked.

    Thanks again,

    Julien.

    #20114

    3.1.0 is now available in the ocpsoft repository (will sync to central in at most 1 day)

    #20115

    balteo
    Participant

    thanks!

    #20116

    thanhtung90
    Participant

    Hi everybody, after 1 year of this topic, although current version is 3.3.0 but i have trouble with it. I did read but still do not know how can solve this problem. I hope have soon reply. Thank.

    PS: i think reason, prettyfaces cannot found my class so error before i add Named:


    PropertyNotFoundException: Target Unreachable, identifier ‘danhmucController’ resolved to null


    #20117

    Could you please tell us a little but more about your application? Which components do you use (Spring, CDI, etc?). Which container do you deploy to? And could you please send us the configuration of the mapping for which the problem occurs?

    #20118

    thanhtung90
    Participant

    Ah! thank you for reply. Sorry about details information: I use Netbeans, Spring 3.0.1, JSF 2.1, and prettyfacesjsf2-3.3.0, tomcat 7. I use Spring’s context.xml for injection, when i use javax.inject.jar and add annotation @Named and receive error something like class re-declared because I see in your document about @Named annotation but above note if declare by Spring no need CDI… Current i want my url like:

    http:\abc.comdef-ghijklm-nop-qrs.html
    def-ghi: my catalog, is dynamic url return when call any method return url.
    jklm-nop-qrs.html: my page .xhtml, dynamic too.

    but seem this code error:

    <url-mapping id="catalog">
    <pattern>/#{/[a-z-]+/}/</pattern>
    <view-id>#{danhmucController.navigator()}</view-id>
    <!-- <action >#{danhmucController.navigator()}</action>--> // usually is a page .xhtml
    </url-mapping>

    Thank you, and hopy for soon reply.

    #20119

    The @Named annotation in our documentation is just an example. You don’t need to use it. You can safety go with Spring’s @Component if you like.

    Another point I see in your configuration is that you use () behind your method name. You don’t need to add this and I’m note sure if it may cause the problems you are having.

    Try:

    <url-mapping id="catalog">
    <pattern>/#{/[a-z-]+/}/</pattern>
    <view-id>#{danhmucController.navigator}</view-id>
    </url-mapping>

    If this don’t work, could you please send the relevant parts of your DanhmucController class?

    #20120

    thanhtung90
    Participant

    Thank you, actual in my code i don’t use () behind method, i give when post because i fear you confuse my think ^^. Here is shortcut my project https://picasaweb.google.com/lh/photo/5YLhQNByBGFrhTs5YwzSqg?feat=directlink. and here if previous pic to small.

    Here i post full stack trace for you, hope this help debug:

    Sep 13, 2011 10:23:54 AM com.sun.faces.context.ExceptionHandlerImpl throwIt
    INFO: Exception when handling error trying to reset the response.
    com.ocpsoft.pretty.PrettyException: Could not forward to view: #{danhmucController.navigator}
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'danhmucController' resolved to null
    at org.apache.el.parser.AstValue.getTarget(AstValue.java:98)
    at org.apache.el.parser.AstValue.invoke(AstValue.java:244)
    at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
    at com.ocpsoft.pretty.faces.util.FacesElUtils.invokeMethod(FacesElUtils.java:70)
    at com.ocpsoft.pretty.faces.util.FacesElUtils.invokeMethod(FacesElUtils.java:62)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.calculateDynaviewId(DynaviewEngine.java:149)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.computeDynaViewId(DynaviewEngine.java:132)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:95)
    ... 38 more

    Sep 13, 2011 10:23:54 AM com.sun.faces.renderkit.RenderKitUtils renderHtmlErrorPage
    WARNING: JSF1087: Unable to generate Facelets error page as the response has already been committed.
    Sep 13, 2011 10:23:54 AM com.sun.faces.renderkit.RenderKitUtils renderHtmlErrorPage
    SEVERE: javax.faces.FacesException: Could not forward to view: #{danhmucController.navigator}
    javax.faces.FacesException: Could not forward to view: #{danhmucController.navigator}
    at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:141)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: com.ocpsoft.pretty.PrettyException: Could not forward to view: #{danhmucController.navigator}
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:109)
    at com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:104)
    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
    ... 35 more
    Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'danhmucController' resolved to null
    at org.apache.el.parser.AstValue.getTarget(AstValue.java:98)
    at org.apache.el.parser.AstValue.invoke(AstValue.java:244)
    at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
    at com.ocpsoft.pretty.faces.util.FacesElUtils.invokeMethod(FacesElUtils.java:70)
    at com.ocpsoft.pretty.faces.util.FacesElUtils.invokeMethod(FacesElUtils.java:62)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.calculateDynaviewId(DynaviewEngine.java:149)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.computeDynaViewId(DynaviewEngine.java:132)
    at com.ocpsoft.pretty.faces.config.dynaview.DynaviewEngine.processDynaView(DynaviewEngine.java:95)
    ... 38 more

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.

Comments are closed.