InCell Editing in datattable with LazyModal

UI Components for JSF
Post Reply
dgeorge
Posts: 16
Joined: 11 Jan 2011, 14:49

25 Jul 2011, 15:17

Hi,
I use 3.0M3-snapshot ,and i found rowEditListener attribute of datatable is removed. Instead of that we have to use <p:ajax event="rowEdit" listener="#{bean.listener}" update="....." /> to your dataTable.

I have given like this. But bean.listener is not getting invoked.

My code is

Code: Select all

 <p:dataTable id="verview" var="Entity"
                        value="#{dataModel}" lazy="true" rows="10">

                       
                        <p:column sortBy="#{Entity.alias}">
                            <f:facet name="header">Alias</f:facet>

                            <p:cellEditor>
                                <f:facet name="output">
                                    <h:outputText value="#{Entity.alias}" />
                                </f:facet>
                                <f:facet name="input">
                                    <p:inputText value="#{Entity.alias}" style="width:100%">

                                    </p:inputText>
                                </f:facet>

                            </p:cellEditor>
                        </p:column>
                        <p:column sortBy="#{Entity.proxyHost}">
                            <f:facet name="header">Proxy Host</f:facet>
                            <p:cellEditor>
                                <f:facet name="output">
                                    <h:outputText value="#{Entity.proxyHost}" />
                                </f:facet>
                                <f:facet name="input">
                                    <p:inputText value="#{Entity.proxyHost}"
                                        style="width:100%">
                                    </p:inputText>
                                </f:facet>
                           </p:cellEditor>
                        </p:column>
                                     

                        <p:column headerText="Options">
                            <p:rowEditor />
                        </p:column>
                         <p:ajax event="rowEdit" listener="#{testHelper.editData}" update="verview" />
                    </p:dataTable>

Code: Select all

  public void editData(RowEditEvent event)
    {
        Car test =(Car ) event.getObject();
       
    }
But the control never comes to editData(_) method. What I'm doing wrong?.

dgeorge
Posts: 16
Joined: 11 Jan 2011, 14:49

26 Jul 2011, 09:16

Is support of incell editing with Lazy Modal is implemented? In this link it says it is not done.


http://code.google.com/p/primefaces/wik ... lityMatrix

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 49 guests