Hi,

I got the following error message after having deleted a item:
could not find UIData referenced by attribute [EMAIL PROTECTED] = 'data'

In my code I've a method (who work fine) :

public String deleteList() {
       ec.log("Begin - deleteList()");
       try {
           for (int i = 0; i < dataList.size(); i++) {
               selectedData = dataList.get(i);
               if (selectedData.getIsSelected()) {
currencyService.deleteCurrency(selectedData, CURRENT_USER, FROM);
                   this.deleteSelectedFromDataList();
ec.log("deleteList(), selectedData to delete:" + selectedData);
               }
           }
           selectedData = null;
           ec.log("End - deleteList()");
           return GO_LIST;
       } catch (RuntimeException ex) {
ec.handleError("Error during delete list", ErrorLevel.WARNING, ex);
           UtilGui.setJSFErrorMessage("error_delete_list", ex);
           return GO_LIST;
       }
   }

in my jsp :

       <t:dataTable id="data"
               value="#{currencyGui.dataList}"
               rendered="true"
               var="row"
               border="1"
binding="#{currencyGui.myData}" headerClass="standardTable_Header"
               preserveDataModel="false"
               rows="5"
rowId="#{row.id}" rowOnMouseOver="this.style.backgroundColor='#A5CBFF'" rowOnMouseOut="this.style.backgroundColor='#FFFFFF'" id="data"> <h:column>
               <f:facet name="header">
<h:outputText value="#{text.common_selected}" styleClass="text_subtitle"/>
               </f:facet>
<h:selectBooleanCheckbox id="chkSelected" value="#{row.isSelected}" rendered="true"/>
           </h:column>

           <t:column>
               <f:facet name="header">
<h:outputText value="#{text.common_code}" styleClass="text_subtitle"/>
               </f:facet>
<t:commandLink action="#{currencyGui.displayRecord}" immediate="true"> <h:outputText value="#{row.id}" /> ยง <f:param name="selectCurrencyId" value="#{row.id}" />
               </t:commandLink>
           </t:column>
           <t:column>
               <f:facet name="header">
<h:outputText value="#{text.common_libelle}" styleClass="text_subtitle"/>
               </f:facet>
<h:outputText id="fieldDescription" value="#{row.description}"/>
           </t:column>
           <t:column>
               <f:facet name="header">
<h:outputText value="#{text.common_iso}" styleClass="text_subtitle"/>
               </f:facet>

               <h:outputText id="fieldIsoCode" value="#{row.isoCode}"/>
           </t:column>
           <t:column>
               <f:facet name="header">
</f:facet> <h:commandLink id="lnkDisplay" action="#{currencyGui.displayRecord}"> <h:graphicImage id="imgDisplay" alt="#{text.common_display}" style="border-style:none" value="/images/view.gif"></h:graphicImage>
                   <f:param name="selectCurrencyId" value="#{row.id}" />
               </h:commandLink>
           </t:column>

       </t:dataTable>

<h:panelGrid columns="1" styleClass="scrollerTable2" columnClasses="scrollerTable2" >
           <t:dataScroller id="scroll_1"
                   binding="#{currencyGui.scroll_1}"
                   for="data"
                   fastStep="10"
                   pageCountVar="pageCount"
                   pageIndexVar="pageIndex"
                   styleClass="scrollerTable2"
                   paginator="true"
                   paginatorMaxPages="9"
                   paginatorTableClass="scrollerTable2"
                   paginatorActiveColumnStyle="font-weight:bold;"
                   immediate="true"
                   actionListener="#{currencyGui.scrollerAction}"
                   >
               <f:facet name="first" >
<t:graphicImage url="/images/arrow-first.gif" border="1" />
               </f:facet>
               <f:facet name="last">
<t:graphicImage url="/images/arrow-last.gif" border="1" />
               </f:facet>
               <f:facet name="previous">
<t:graphicImage url="/images/arrow-previous.gif" border="1" />
               </f:facet>
               <f:facet name="next">
<t:graphicImage url="/images/arrow-next.gif" border="1" />
               </f:facet>
               <f:facet name="fastforward">
                   <t:graphicImage url="/images/arrow-ff.gif" border="1" />
               </f:facet>
               <f:facet name="fastrewind">
                   <t:graphicImage url="/images/arrow-fr.gif" border="1" />
               </f:facet>
           </t:dataScroller>
           <t:dataScroller id="scroll_2"
                   for="data"
                      binding="#{currencyGui.scroll_2}"
                   rowsCountVar="rowsCount"
                   displayedRowsCountVar="displayedRowsCountVar"
                   firstRowIndexVar="firstRowIndex"
                   lastRowIndexVar="lastRowIndex"
                   pageCountVar="pageCount"
                   immediate="true"
                   pageIndexVar="pageIndex"
                   >
<h:outputFormat value="blabla" styleClass="standard" rendered="false">
                   <f:param value="#{rowsCount}" />
                   <f:param value="#{displayedRowsCountVar}" />
                   <f:param value="#{firstRowIndex}" />
                   <f:param value="#{lastRowIndex}" />
                   <f:param value="#{pageIndex}" />
                   <f:param value="#{pageCount}" />
               </h:outputFormat>
           </t:dataScroller>
       </h:panelGrid>
   </h:panelGroup>

Any idea where I'm wrong ?

my best regards

Reply via email to