WWB select rows in DataBeanListPanel?

5 views
Skip to first unread message

Chris

unread,
Apr 11, 2012, 11:04:25 AM4/11/12
to wicket-w...@googlegroups.com
Hi everybody!

I'm trying to select rows in a DataBeanListPanel and am stuck.
I added a boolean field to the Contact bean in the wwb databinder example

    @Transient
    @Property
    public boolean isSelected() {
        logger.info("calling isSelected(()");
        return selected;
    }
       
    public void setSelected(boolean selected) {
      logger.info("calling setSelected"); 
      this.selected = selected;
    }
   
My idea was to record when the user clicks the checkbox and store the ID in a session varialbe
And later on let the user download all selected rows, which might be on different pages..
But setSelected() is never called when clicking in the user interface. Only when  trying to edit a row.
What am I missing? i hope somebody can help

 Regards
 Chris

Reply all
Reply to author
Forward
0 new messages