Name

JSF Plugin

Publisher

Apache Software Foundation

License

Open Source (ASL2)

Version

Bundled with Struts 2

Homepage

http://struts.apache.org/2.x/docs/jsf-plugin.html

Download

http://struts.apache.org/downloads.html

Error formatting macro: rate: java.lang.NoSuchMethodError: 'java.lang.String com.atlassian.confluence.setup.BootstrapManager.getDomainName()'

The JSF Plugin provides support for JavaServer Faces components with no additional configuration.

  • No labels

1 Comment

  1. Hi Brown:

    I have a case about the JSF. I my faces-config.xml, setting is as appendex A1. I get start with my first page, index.faces. But when I do some static navigation based on JSF, it fails. I trace on it, it show me the error as appendex A2. Detial code is :
    ActionConfig config = ctx.getActionInvocation().getProxy().getConfig();

    ctx.getActionInvocation() is got null. So I want to know what shall I set if I want to use the normal navigation above JSF.

    Thanks
    Watson
    If any result, please mail to me: chen_x_y@hotmail.com

    Appendix A1:

    <faces-config>
    <navigation-rule>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>success.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>again</from-outcome>
    <to-view-id>question/again.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-view-id>jsf/question/failure.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>done</from-outcome>
    <to-view-id>/jsf/question/done.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>startOver</from-outcome>
    <to-view-id>/jsf/question/index.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>

    <managed-bean>
    <managed-bean-name>quiz</managed-bean-name>
    <managed-bean-class>com.corejsf.QuizBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>

    Appendix A2:

    Servlet.service() for servlet faces threw exception
    java.lang.NullPointerException
    at org.apache.struts2.jsf.StrutsNavigationHandler.handleNavigation(StrutsNavigationHandler.java:62)
    at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:82)
    at javax.faces.component.UICommand.broadcast(UICommand.java:109)
    at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
    at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
    at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
    at java.lang.Thread.run(Unknown Source)