Hi Zied,

yes reload the sheet with ajax is possible, and easy, in tobago.

but not with the tc:columnSelector tag.

if you use a serverSideController with a tc:selectBooleanCheckbox in each row
you can do it like:

<tc:page id="page">
...
<tc:sheet id="phones" columns="50px;15*;18px;18px" value=
"#{personCtrl.current.bean.phones}" var="phone" >

...

 <tc:column label="#{i18n.main}" sortable ="true">

   <tc:selectBooleanCheckbox value="#{phone.main}">
      <f:facet name="click">
        <tc:command actionListener="#{personCtrl.selectMain}">
          <tc:attribute name="renderedPartially" value=":page:phones"/>
        </tc:command>
      </f:facet>
   </tc:selectBooleanCheckbox>

 </tc:column>



Regards,
   Volker

2007/6/19, Zied Hamdi <[EMAIL PROTECTED]>:
Thanks Udo,

The workaround for the moment should be a server side controller, so before
I begin to search, can you please tell me if it is possible with ajax in
tobaggo (eg. to reloadonly the sheet), eventually if tobago works well with
Ajax4JSF.

Thanks,


2007/6/18, Udo Schnurpfeil <[EMAIL PROTECTED]>:
> Hallo Zied,
>
> there is a special tag for almost this job: tc:columnSelector.
> But AFAIK in the moment the only selection model is "multiselect". This
> tag should be extended to other selection models like "singleselect".
>
> You may add a JIRA issue for this.
>
> Regards
>
> Udo
>
> Zied Hamdi schrieb:
> > is it possible to do sth like:
> >
> > <tc:sheet id="phones" columns="50px;15*;18px;18px" value=
> > "#{personCtrl.current.bean.phones}" var="phone" >
> >
> > ...
> >
> >   <tc:column label="#{ i18n.main}" sortable ="true">
> > <tc:selectOneRadio id= "main" value="#{phone.main}">
> > <f:selectItem id= "mainPhone" itemValue="false" itemLabel= ""/>
> > </tc:selectOneRadio>   </tc:column>
> >
> > ...
> >
> > </tc:sheet> and join occurences with a group name (to have the radio
> > buttons behaviour) ???. Note: maybe if it's not possible today, may we
> > extend the taglib selectOneRadio  to see if the same id is many times
> > in the sheet...
> >
> >
> >
> >
> >
> >
------------------------------------------------------------------------
> >
>
>



--
Zied Hamdi
zatreex.sourceforge.net

Reply via email to