5 Replies Latest reply on Oct 8, 2006 7:20 AM by Pete Muir

    Cryptic id's in error log

    Martin Dames Newbie

      Hey,

      I just get sometimes the following error:

      22:02:10,453 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: Error calling action method of component with id _id4_0:_id7
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
       at javax.faces.component.UICommand.broadcast(UICommand.java:106)
       at javax.faces.component.UIData.broadcast(UIData.java:338)
       at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
      ...
      


      Hmm... I really would like to know how can I match the _id4_0:_id7 name to my program? Has anyone a suggestion?

      Thanks guys.

        • 1. Re: Cryptic id's in error log
          Pete Muir Master

          Just look at the JSF component tree (facelets you have it on the debug page) and match it to the component

          • 2. Re: Cryptic id's in error log
            Martin Dames Newbie

            Could you give me a hint, where I can find the debug page?

            • 4. Re: Cryptic id's in error log
              Martin Dames Newbie

              Hey,

              thank you.

              But, it doesnt run. I am not a Facelets specialist... uhm... actually I did nothing with Facelets yet, so I need some help for this.

              So, I put the stuff from your site to my jsp page:

              <?xml version="1.0"?>
              <html xmlns:jsp="http://java.sun.com/JSP/Page"
               xmlns:h="http://java.sun.com/jsf/html"
               xmlns:f="http://java.sun.com/jsf/core"
               xmlns:s="http://jboss.com/products/seam/taglib"
               xmlns:ui="http://java.sun.com/jsf/facelets"
               xmlns="http://www.w3.org/1999/xhtml">
               <jsp:output doctype-root-element="html"
               doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
               doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
               <jsp:directive.page contentType="text/html"/>
               <head>
               <title>Successfully Registered New User</title>
               </head>
               <body>
               <f:view>
               <h3>Welcome, <h:outputText value="#{person.name}"/>,</h3>
               you are successfully registered as <h:outputText value="#{person.username}"/>.
               <h:outputText value="No persons to display" rendered="#{personList.rowCount==0}"/>
               <h:outputText value="#{person.name}"/>
               <h:dataTable var="person" value="#{personList}" rendered="#{personList.rowCount>0}">
               <h:column>
               <f:facet name="header">
               <h:outputText value="Real name"/>
               </f:facet>
               <h:commandLink value="#{person.username}" action="#{registeredManager.select}"/>
               </h:column>
               <h:column>
               <f:facet name="header">
               <h:outputText value="User name"/>
               </f:facet>
               <h:outputText value="#{person.name}">
               </h:outputText>
               </h:column>
               <h:column>
               <h:commandButton value="Delete" action="#{registeredManager.delete}"/>
               </h:column>
               </h:dataTable>
               Passwort:
               <h:outputText value="#{person.password}"/>
               <ui:debug hotkey="d"/>
               </f:view>
               </body>
              </html>
              


              I got rid of the rendered paramater in <ui:debug> cause I dont know what I have to write in the web.xml file to turn debug on. But it should run so.

              When I am now running this page, and I want to debug this.. I press CTRL+SHIFT+d and nothing happens in my Firefox window?!

              Is there a wiki page how turning debug in seam on? I didnt find anything and it would be an important page I think.

              Thank you guys,

              Im just a beginner.

              • 5. Re: Cryptic id's in error log
                Pete Muir Master

                For the facelets debug page to work you need to be using facelets not jsp as your view handler, and you are using jsp by the looks of it. So, you can always look at the generated source to find which bit of your page your id refers to.