2 Replies Latest reply on Nov 17, 2008 5:02 PM by demetrio812

    inplaceInput and filterBy

    demetrio812 Apprentice

      Hi,
      I have this code:

      <h:form>
       <rich:dataTable value="#{gestioneFilesHelper.documenti}" var="documento" >
       <f:facet name="header">Files utente</f:facet>
       <rich:column sortBy="#{documento.nome}" filterBy="#{documento.nome}">
       <f:facet name="header"> <h:outputText value="Nome" /> </f:facet>
      
       <rich:inplaceInput defaultLabel="nome" minInputWidth="200px" selectOnEdit="true" value="#{documento.nome}">
       <a:support event="onviewactivated" action="#{articoloEditorDocumenti.updateDocumento(documento)}"></a:support>
       </rich:inplaceInput>
       </rich:column>
       </rich:dataTable>
      </h:form>
      


      but when I try to filter the table became empty and doesn't work anymore...

      Deleting the inplaceInput and putting a simple outputText make the filter working...

      Is it a bug or a problem of my code?

      Thanks!

      Demetrio

        • 1. Re: inplaceInput and filterBy
          Ilya Shaikovsky Master

          checked within richfaces-demo code

           <rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="20" reRender="ds" id="simpletable">
           <f:facet name="header">
           <rich:columnGroup>
           <rich:column colspan="2" >
           <h:outputText value="Filtering Example"/>
           </rich:column>
           <rich:column breakBefore="true">
           <h:outputText value="State Name"/>
           </rich:column>
           <rich:column>
           <h:outputText value="State Capital"/>
           </rich:column>
           </rich:columnGroup>
           </f:facet>
           <rich:column filterBy="#{cap.state}" filterEvent="onkeyup" sortBy="#{cap.state}">
           <f:facet name="header">
           <h:outputText value="Cap State"></h:outputText>
           </f:facet>
           <rich:inplaceInput value="#{cap.state}"/>
           </rich:column>
          ...
          


          Works fine for me using filtering using latest jars.

          Send me war sample if you able.

          • 2. Re: inplaceInput and filterBy
            demetrio812 Apprentice

            Hi,
            thanks I'll find the time and I'll send it...

            Demetrio