1 Reply Latest reply on Mar 7, 2011 3:10 AM by ashok kumar

    Form Value not submit, Severity Error

    ashok kumar Newbie
      Hi All,

      I am facing the issue of Form values not submitting.
      My code is,

      manageShipCash.xhtml

      <rich:dataGrid value="#{manageShipCash.requestUserList}"
                                                                      var="reqUser" columns="1" elements="10"
                                                                      rendered="#{manageShipCash.requestUserList.size()>0 and
                                                                      manageShipCash.requestUserList != null}"
                                                                      columnClasses="dataTableColumn" styleClass="rich-dataTable"
                                                                                      style="margin-left: 4px;margin-right: 4px;"
                                                                                      headerClass="dataTableHeader" id="userAmountListId">
                                                                   <rich:panel>
                                                                       <h:panelGrid columns="2">
                                                                                                      <h:selectOneListbox id="userListId" size="1"
                                                                                                              styleClass="smallSelect" value="#{reqUser.userMaster}">
                                                                                                              <s:selectItems value="#{manageShipCash.userObjList}"
                                                                                                                      var="m" label="#{m.strFirstName} #{m.strLastName}" />
                                                                                                              <s:convertEntity />
                                                                                                      </h:selectOneListbox>
                                                                                                      <s:decorate id="ReqAmountDecorate5"
                                                                                                              template="../layout/edit.xhtml">
                                                                                                              <h:inputText id="advAmountId"
                                                                                                              value="#{reqUser.fltRequestedAmount}" style="width:60px"
                                                                                                              required="true" requiredMessage="#{messages['message.required.shipCash.amount']}"/>
                                                                                                      </s:decorate>
                                                                       </h:panelGrid>
                                                                   </rich:panel>
                                                              </rich:dataGrid>





      manageShipCashAction.java

              @DataModel
              private List<UserMaster> userObjList;

              public List<UserMaster> getUserObjList() {
                      return userObjList;
              }

              public void setUserObjList(List<UserMaster> userObjList) {
                      this.userObjList = userObjList;
              }

              public void loadUserObjList(){
                      log.info("----- enter into loadUserObjList() method");
                      SeamResourceBundle srb = new SeamResourceBundle();
                      try{
                              this.userObjList = new ArrayList<UserMaster>();
                              StringBuffer query = new StringBuffer();
                              query.append("select user from UserMaster user where user.flgDeleted='0' ");
                             
                              //If Ship, not show admin user
                              if(srb.getString("IS_SHIP").equals("1"))
                              query.append(" and user.tenant <> 1 ");
                             
                              query.append(" order by user.iuserId asc");
                             
                              this.userObjList = getEntityManager()
                              .createQuery(query.toString())
                              .getResultList();
                             
                              log.info("---- Query :"+query);
                      }catch(Exception e){
                              log.error("---- User Obj Exception :"+e.getMessage());
                              e.printStackTrace();
                      }
                      log.info("----- exit from loadUserObjList() method");
              }


      UserMaster.java - Entity bean.

      DropDown List Populating fine. But values are not submitted to the Save() method.


      Error Message :

      severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)



      Please help me to find out the issue