ScrollabeDataTable selection not working.
qwertywin Jul 20, 2009 5:01 AMOk so this is starting to do my head in,
I can't get selection's to work, It seams that the form never submits when im doing a selection, so it is never set in my bean, when I do column sorting however, it makes the call and sets the selection to null.
<a:form >
<rich:scrollableDataTable id="portalLadderTable"
                                                                                             rendered="#{portalHome.ladders.size > 0}"
                                                                                                  value="#{portalHome.ladders}"
                                                                                                  var="_ladder"
                                                                                                  width="550px"
                                                                                                  height="160px"
                                                                                                  selection="#{portalAdmin.selection}"
                                                                                                  rowKeyVar="rkv"
                                                                                                  sortMode="single"
                                                                                                  frozenColCount="1"
                                                                                              >      
                                                                         <rich:column >
                                                                             <f:facet name="header">Ladder Name</f:facet>
                                                                            <h:outputText value="#{_ladder.ladderName}"/>
                                                                        </rich:column>                     
                                                                                                                                        </rich:scrollableDataTable>
                                                                    
                                                                                                </a:form>and my bean
@Name("portalAdmin")
@Scope( ScopeType.CONVERSATION )
public class PortalAdmin {
     
     @In PortalHome portalHome;
     
     private Selection selection = new SimpleSelection();
     
     public Selection getSelection(){
          System.out.println("get selection");
          return this.selection;
     }
     
     public void setSelection( Selection selection ){
          System.out.println("set selection");
          this.selection = selection;
     }
}
I have been racking my brain for 3 days over this, still nothing, if anyone can point me in the right direction that'd be great.
 
    