3 Replies Latest reply on Sep 29, 2008 11:21 AM by ceene.ceene.gmx.net

    View Problem

    ceene.ceene.gmx.net
      <table style="width:100%">
      <tr>
      <td style="width:50%">
              <fieldset class="usrFormPos" style="width:50%">
              <legend>Sucheingabe:</legend>
                      <h:outputLabel value="BD-Kürzel:" styleClass="" />
                      <h:inputText value="#{testhdl.suchKezi}" styleClass="usrFormValueSearch" maxlength="10"/>
                      <br />
                      <h:outputLabel value="BD-Name:" styleClass="" />
                      <h:inputText id="Name" value="#{testhdl.suchName}" styleClass="usrFormValueSearch" maxlength="10"/>
              </fieldset>
      </td>
      <td style="width:50%">
              <fieldset class="usrFormPos" style="width:22%">
              <legend>Steuerung:</legend>
                      <h:commandButton value="Suche" action="#{testhdl.userSuchen()}" styleClass="usrFormBtnSuchen"/>
                      <br />
                      <h:commandButton value="Logout" action="#{identity.logout}" styleClass="usrFormBtnSuchen" />
                      <br />
                      <h:outputLabel value=" " styleClass="" />
                      <br />
                      <h:outputLabel value=" " styleClass="" />
              </fieldset>
      </td>
      </tr>
      </table>



      If I load the Project in JBoss then I can open the Page with no Problems but if I click a Button, or load the side new I get the following errorMassage



      javax.faces.FacesException: javax.el.ELException: /pflege/LOV_User.xhtml @28,92 value="#{testhdl.suchKezi}": Error reading 'suchKezi' on type org.javassist.tmp.java.lang.Object_$$_javassist_50
      at javax.faces.component.UIOutput.getValue(UIOutput.java:176)
      at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
      ....




      I have no idea where my mistake is, I hope somebody can help me.

        • 1. Re: View Problem
          nickarls

          getters/setters visible and OK? Local interfaces OK in case of EJB?

          • 2. Re: View Problem
            ceene.ceene.gmx.net

            Nicklas Karlsson wrote on Sep 29, 2008 10:28:


            getters/setters visible and OK? Local interfaces OK in case of EJB?


            Getters and Setters are there and both Functions are also in the Local-Interface.

            • 3. Re: View Problem
              ceene.ceene.gmx.net

              The mistake comes only if I try to set a resultList.



              public void userSuchen()       { 
                              String sql;
                              Query query; 
                              
                              try     
                              {
                                      //Select für die Suche zusammensetzen
                                      sql = "SELECT ";
                                      sql+= "LOV_USR_USER, ";
                                      sql+= "LOV_USR_USER_NAME, ";
                                      sql+= "LOV_USR_USER_PASSWORD, ";
                                      sql+= "LOV_USR_ADMIN_SIGN, ";
                                      sql+= "LOV_USR_STATUS_SIGN, ";
                                      sql+= "LOV_USR_NEW_DATE, ";
                                      sql+= "LOV_USR_LAST_USER, ";
                                      sql+= "to_char(LOV_USR_UPDATE_DATE,'DD.MM.YYYY') as LOV_USR_UPDATE_DATE, ";
                                      sql+= "LOV_USR_LAST_USER, ";
                                      sql+= "LOV_USR_ORGANISATION";
                                      sql+=" FROM LOV_USER WHERE ";
                                      sql+= "LOV_USR_STATUS_SIGN = 'A' ";
                                      
                                      query = cmb.createNativeQuery(sql,"SelectUserMap"); 
                                      //Suchergebniss der Liste zuweisen
                                      users = query.getResultList(); 
                              }
                              catch(Exception e)  
                              {
                                      //Fehlermeldung ausgeben
                                      //facesMessages.add(e.getMessage());
                              }
                      }       



              users = query.getResultList()



              there comes the mistake.
              Why?