Bjørn-
can you take a look at the rendered output (source view of the page,
shown in your browser)?
I am interested in the rendered ids of "checkboxes"
Thx,
Matthias
On 4/25/06, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> Ok, tried that but no difference..
>
>
> On Tue, 25 Apr 2006 09:24:35 +0200
> "Matthias Wessendorf" <[EMAIL PROTECTED]> wrote:
>
> > Ah, I see.
> >
> > so, can you please change
> >
> > <htm:td colspan="3" styleClass="inputgeneral">
> > <h:selectBooleanCheckbox id="leveringer_selected"
> > value="#{var.selected}"/>
> > </htm:td>
> >
> > to
> >
> > <htm:td id="checkboxes" colspan="3" styleClass="inputgeneral">
> > <h:selectBooleanCheckbox id="leveringer_selected"
> > value="#{var.selected}"/>
> > </htm:td>
> >
> > I am interested in the generated ids for <htm:td id="checkboxes".../>
> >
> > Thx,
> > Matthias
> >
> > On 4/25/06, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> > > Not in this original version....
> > >
> > > On Tue, 25 Apr 2006 09:17:06 +0200
> > > "Matthias Wessendorf" <[EMAIL PROTECTED]> wrote:
> > >
> > > > that's becuase value binding is used inside the id attribute :-(
> > > >
> > > > On 4/25/06, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> > > > > No one knows why this is happening?
> > > > >
> > > > >
> > > > > On Mon, 24 Apr 2006 10:13:02 +0200
> > > > > Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > > I am using t:dataList to display a repeated "record", like this..:
> > > > > >
> > > > > > <t:dataList id="listLeveringer" var="var"
> > > > > > value="#{orderBean.ordre.leveringer}" layout="simple" >
> > > > > > ...........
> > > > > > <htm:tr>
> > > > > > <htm:td styleClass="labelgeneral">
> > > > > > <h:outputLabel value="Andre merknader:"
> > > > > > for="notes"></h:outputLabel>
> > > > > > </htm:td>
> > > > > > <htm:td colspan="3" styleClass="inputgeneral">
> > > > > > <h:inputTextarea id="notes" cols="100" rows="3"
> > > > > > value="#{var.notes}">
> > > > > > <f:validateLength minimum="0" maximum="255"/>
> > > > > > </h:inputTextarea>
> > > > > > </htm:td>
> > > > > > </htm:tr>
> > > > > > <htm:tr>
> > > > > > <htm:td styleClass="labelgeneral">
> > > > > > <h:outputLabel value="Velg:"
> > > > > > for="leveringer_selected"></h:outputLabel>
> > > > > > </htm:td>
> > > > > > <htm:td colspan="3" styleClass="inputgeneral">
> > > > > > <h:selectBooleanCheckbox id="leveringer_selected"
> > > > > > value="#{var.selected}"/>
> > > > > > </htm:td>
> > > > > > </htm:tr>
> > > > > > </t:dataList>
> > > > > >
> > > > > > The problem is that when I mark one of the records as selected
> > > > > > (doesn't matter which one), it always
> > > > > > sets the first record as selected and all the others as not
> > > > > > selected.
> > > > > >
> > > > > > Shouldn't this work or am I doing something wrong?
> > > > > > Or is there another and better way of doing this?
> > > > > >
> > > > > >
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > BTJ
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > > Aechterhoek 18
> > > > 48282 Emsdetten
> > > > http://jroller.com/page/mwessendorf
> > > > mwessendorf-at-gmail-dot-com
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Aechterhoek 18
> > 48282 Emsdetten
> > http://jroller.com/page/mwessendorf
> > mwessendorf-at-gmail-dot-com
>
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com