Jump to content
We've recently updated our Privacy Statement, available here ×

Using JSF plugin gets NoSuchReportComponentInViewException


david.hickman

Recommended Posts

Hi

I have created a report which is deployed to a reports directory under the Application Context of a web app ie. reports/customer_facilities.jasper.

Using the JSF plugin jasperreports-jsf-1.0-beta-4.jar I have added the following to a jsp:

<a:outputPanel id="customerFacilitiesPanel" >
                    <r:panel rendered="#{reportBean.renderCustomerFacilitiesReport}" >
                        <f:facet name="header" >
                            <h:outputText value="Report"  styleClass="default-header"  />
                        </f:facet>
                        <h:form>
                            <jr:reportFrame value="/reports/customer_facilities.jasper"   source="#{reportBean.datasource}" >
                                <f:param name="P_CUSTOMER_SHORT_NAME" value="#{reportBean.selectedCustomer}" />                    
                            </jr:reportFrame>
                        </h:form>
                    </r:panel>
                </a:outputPanel>

However, when I try to run this I get

Caused by: net.sf.jasperreports.jsf.lifecycle.NoSuchReportComponentInViewException: j_id_jsp_732117051_1:j_id_jsp_732117051_26
    at net.sf.jasperreports.jsf.lifecycle.RenderResponsePhaseListener.beforePhase(RenderResponsePhaseListener.java:108)
    at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
 

As I am new to Jasper Reports after having been totally disillusioned with the documentation of BIRT reports, any help would be greatly appreciated

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...