2 Replies Latest reply on Jul 29, 2011 3:04 AM by Junior Joseph

    [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

    Junior Joseph Newbie

      Hi to the community!

       

      I have a weird problem. I have been through it for several days.

       

      In fact I have an extendeddatatable in which is embedded a rich:inplaceSelect (before I used the jsf h:selectOneMenu) which a list of elements from which the user has to make his choice. Here is the Grid:

       

       

      <tr>
                                  <td width="100%" align="left" colspan="7">
      
                                      <fieldset class="fieldSetStyle" id="StockItems">
                                          <legend>
                                              <h:outputText value="#{messages['estock.detail.stock.items.title']}"/>
                                          </legend>
      
                                          <rich:extendedDataTable
                                              id="StockItemsTable" 
                                              rendered="true" 
                                              rows="25"
                                              var="stockItem"
                                              rowKeyVar="row"
                                              width="100%"
                                              height="300px"
                                              value="#{arrangementDialog.arrangementDialogItem.stocks}"
                                              selection="#{arrangementDialog.arrangementDialogItem.selection}"
                                              rowClasses="row-style-impair, row-style-pair"
                                              cellpadding="0"
                                              selectionMode="multi"
                                              selectedClass="row-style-selected"
                                              noDataLabel="#{messages['stockitemlist.datalist.nodata']}"
                                              frozenColumns="3">
      
                                              <rich:column id="colItemStocltemProduct" width="20%" selfSorted="true">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.stock.item.list.colitem.product.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{stockItem.productConditionment.product.designation}"/>
                                              </rich:column>                        
      
                                              <rich:column id="colItemStockItemProductConditionment" width="15%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.stockitem.list.colitem.product.conditionnement.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{stockItem.productConditionment.conditionment.designation}[#{stockItem.productConditionment.quantity}]"/>
                                              </rich:column>
      
                                              <rich:column id="colItemStockItemCost" width="10%">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.stockitem.list.colitem.cost.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
                                                  <h:outputText value="#{stockItem.cost}"/>
                                              </rich:column>
      
                                              <rich:column id="colItemStocltemQuantity" width="15%" selfSorted="true">
      
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.stockitem.list.colitem.quantity.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
      
                                                  <rich:inputNumberSpinner value="#{stockItem.quantity}" step="1" minValue ="0" maxValue="#{stockItem.quantity}" styleClass="comboboxStyle"  style="width:80%;"/>
      
                                              </rich:column>        
      
                                               <rich:column id="colItemStockItemLocation" width="20%" selfSorted="true">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.stockitem.list.colitem.location.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
      
                                                  <rich:inplaceSelect value ="#{stockItem.locationHelperCode}" styleClass="labelStyle" defaultLabel="SELECTIONEZ L'EMPLACEMENT">
                                                      <f:selectItems value ="#{arrangementDialog.arrangementDialogItem.locationItems}"/>
                                                  </rich:inplaceSelect>                    
      
                                               </rich:column>
      
                                              <rich:column id="colItemStockItemProductState" width="20%" selfSorted="true">
                                                  <f:facet name="header">
                                                      <h:panelGroup>
                                                          <h:outputText value="#{messages['estock.stockitem.list.colitem.productState.title']}"/>
                                                      </h:panelGroup>
                                                  </f:facet>
      
                                                  <rich:comboBox value="#{stockItem.productState}" suggestionValues="#{stockItem.productState.product.states}" styleClass="comboboxStyle"  style="width:90%;" />
      
                                               </rich:column>
      
                                              <f:facet name="footer">
                                                  <rich:datascroller pageIndexVar="pageIndex" pagesVar="allPages">
                                                      <f:facet name="pages">
                                                          <h:outputText value="#{pageIndex}/#{allPages}" />
                                                      </f:facet>
      
                                                  </rich:datascroller>
                                              </f:facet>
      
                                          </rich:extendedDataTable>
      
                                      </fieldset>
      
                                  </td>
      
                              </tr>
      

       

      The above component is bean charged via a selectitem type:

       

       

      @Override
          public void initComponents() {
      
              //Liste des stocks
              this.stocks = new ArrayList<Stock>( parent.getCreatedStocks() );
      
              //Le magasin 
              this.store = parent.getDestinationStore();
      
              //Les emplacements
              this.locations = parent.getChildLocations();
      
              //Liste d'items d'emplacements
              locationItems = new ArrayList<SelectItem>();
      
              //Chargement de la liste d'items d'emplacements
              for(Location location : locations){
      
                  locationItems.add(new SelectItem(location.getCode(), location.getDesignation()));
              }
      
          }
      

       

      the modalpanel is being submitted by two buttons:

       

       

      <tr>
                          <td width="100%" align="right">
      
                              <h:panelGrid columns="3">
                                  <a4j:commandButton value="#{messages['estock.stock.btnstow']}" action="#{arrangementDialog.arrangementDialogItem.processRanger}" reRender="#{clientArea.ID}" styleClass="commandButtonStyle" onclick="startWaitInStyle();" oncomplete="stoptWaitInStyle();" />
                                  <rich:spacer width="5px"/>
                                  <a4j:commandButton value="#{messages['estock.stock.btncancel']}" action="#{arrangementDialog.arrangementDialogItem.close}" styleClass="commandButtonStyle" onclick="Richfaces.hideModalPanel('ArrangementDialogItem');"/>
                              </h:panelGrid>
      
                          </td>
       </tr>
      

       

      I finally have the following error in the console: 

       

       

      19:25:34,968 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

      sourceId=j_id205:j_id307:ModalDialogForm:StockItemsTable:2:j_id360[severity=(ERROR 2), summary=(Conversion error occurred.), detail=(Conversion error occurred.)]

      sourceId=j_id205:j_id307:ModalDialogForm:StockItemsTable:0:j_id360[severity=(ERROR 2), summary=(Conversion error occurred.), detail=(Conversion error occurred.)]

      sourceId=j_id205:j_id307:ModalDialogForm:StockItemsTable:1:j_id360[severity=(ERROR 2), summary=(Conversion error occurred.), detail=(Conversion error occurred.)]

      sourceId=j_id205:j_id307:ModalDialogForm:StockItemsTable:3:j_id360[severity=(ERROR 2), summary=(Conversion error occurred.), detail=(Conversion error occurred.)]

       

       

      Hope you help very soon. Thx in advance.

       

      Some screens:

       

      richextendedatatable.jpgrichextendeddatatlbe.png