Hi Igor,

Thanks for the information. I implemented the CheckBoxColumn with a
HeaderCheckBoxPanel, do you mean that I should do the same and create e.g. a
RadioButtonPanel and a RadioModel similar to the CheckBoxModel?

Additionally, if you don't mind, I have some questions regarding filtering
the Ajax DataTable:

1) What would be the correct way to implement the FilterToolbar /
GoAndClearFilter for the Ajax DataTable? I added the code used in the
DataTable, and although I'm able to filter the table once, the Go button
doesn't work again (and of course it refereshes the page since it doesn't
use Ajax).
2) How do you set a Renderer for the ChoiceFilteredPropertyColumn?
3) When using the PropertyColumn with a Sort property, I get an error when I
use properties such as "status.description". The Display property works
using this property selection format, however the Sort Property gets an
exception saying the property isn't found. Using just "status" works for the
Sort property, however this is not ideal since the sorting isn't using the
proper display property to sort.

Thanks again!


Regards,

Ces

On Tue, Dec 29, 2009 at 1:16 AM, Igor Vaynberg <[email protected]>wrote:

> On Mon, Dec 28, 2009 at 4:49 AM, Early Morning <[email protected]>
> wrote:
> > Hi all,
> >
> > I created a custom DataTable based on AjaxFallbackDefaultDataTable, as
> well
> > as a ChecBoxColumn based on the CheckBoxColumn in wicket-phonebook. My
> > questions:
> >
> > 1. Would it be also possible to create a RadioColumn for the DataTable?
> From
> > what I've read, I need to add the entire DataTable to the RadioGroup, so
> I'm
> > not sure if it's possible to implement this as a column. How would I
> > implement this as a column?
>
> it is possible without a RadioGroup/Radio components, simply write
> your own component that represents the input type="radio".
>
> > 2. Relatedly, is there a way for me to implement the CheckBoxColumn
> having a
> > CheckGroup with a select all checkbox in the header?
>
> you dont need a CheckGroup for this also, it is trivial to write a
> simple javascript. every CheckBoxColumn should create a uuid when it
> is constructed, either using UUID.randomUUID or Session.nextUuid().
> then append this uuid as a class to the input type="checkbox" you are
> using. once this is done you have a way to identify all related
> checkboxes in the page. then it is simply a matter of creating a
> checkbox that in onclick does some javascript like
> $("."+myuuid).checked=this.checked; and putting it into a panel that
> is used as a header of the column. phew.
>
> -igor
>
>
> >
> >
> > Thanks!
> >
> >
> > Regards,
> >
> > Ces
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to