Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2737

JSF Scaffold throws java.lang.IllegalArgumentException: forgeview:display(_itemProfile)

XMLWordPrintable

    • Show
      Generate an app by running: https://github.com/sgilda/eap-quickstarts/blob/JBEAP-9446/forge-from-scratch/generate.fsh
    • Workaround Exists
    • Hide

      Remove the id attribute in the

      <h:outputText id="forgeview:display(_itemProfile)" value="#{forgeview:display(_item.profile)}"/>

      element

      Show
      Remove the id attribute in the <h:outputText id= "forgeview:display(_itemProfile)" value= "#{forgeview:display(_item.profile)}" /> element

      After the application is deployed, some of the entities return "Oops, That's going to leave a mark!" instead the form as stated in readme.

      An error is logged: ERROR [io.undertow.request] (default task-26) UT005023: Exception handling request to /forge-example/faces/productOrder/search.xhtml: javax.servlet.ServletException: forgeview:display(_itemCustomer)

      Full stack trace:

      Caused by: java.lang.IllegalArgumentException: forgeview:display(_itemProfile)
      	at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:593)
      	at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:413)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.assignUniqueId(ComponentTagHandlerDelegateImpl.java:442)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:179)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      	at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:202)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      	at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:202)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      	at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:202)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      	at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:202)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      	at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:106)
      	at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:206)
      	at com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:395)
      	at com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:366)
      	at com.sun.faces.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:111)
      	at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:202)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      	at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:95)
      	at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      	at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:87)
      	at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:312)
      	at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:371)
      	at com.sun.faces.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:350)
      	at com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:199)
      	at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:174)
      	at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
      	at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:87)
      	at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:161)
      	at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:1006)
      	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:99)
      	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
      	... 40 more
      

              rhn-support-ggastald George Gastaldi
              rhn-support-ggastald George Gastaldi
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: