2 Replies Latest reply on Feb 18, 2010 5:29 PM by Andrei Broflovsky

    EntityQuery and @DataModelSelection

    Andrei Broflovsky Newbie

      Hi


      I'm trying to use @DataModelSelection from EntityQuery to get selected row from ExtendedDataTable but it doesn't work for me.
      Here's part of code:


         
      <h:outputText value="#{data.dataModelSelection.id}" id="text2" />
        <rich:extendedDataTable
                      id="exdt"
                      value="#{data.dataModel}" var="zl" 
                      sortMode="multi" selectionMode="single"
                      height="650px" >
      



      and ajax


                     <a4j:support reRender="outcomment, text, text2"
                              event="onselectionchange" />
      



      When page loads, i see id of element in first row.
      Then if i click i get null pointer exception :(


      Could someone give me working example ?