You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2006/04/24 10:13:02 UTC

Checkbox inside dataList not working?

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

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------

Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
well, normally it should look like

<table id="data" ..>
<tbody id="data:tbody_element">
<div id="data:0:_idxxx">AUSTRIA</a>
</tbody>
</table>


On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> Yes...
>
> On Tue, 25 Apr 2006 10:42:46 +0200
> "Matthias Wessendorf" <ma...@apache.org> wrote:
>
> > for each ?
> >
> > > Looks like the id is "content:formOrder:listLeveringer:checkboxes"
> >
> > ^
>
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
Yes...

On Tue, 25 Apr 2006 10:42:46 +0200
"Matthias Wessendorf" <ma...@apache.org> wrote:

> for each ?
> 
> > Looks like the id is "content:formOrder:listLeveringer:checkboxes"
> 
> ^


Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
for each ?

> Looks like the id is "content:formOrder:listLeveringer:checkboxes"

^

Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
Can you try a switch ?
Perhaps it helps (having in mind Volkers message)

-Matthias

On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> I am using RI impl... Maybe I should switch or is it a workaround or a fix somewhere?
>
> BTJ
>
> On Tue, 25 Apr 2006 10:48:33 +0200
> Volker Weber <us...@weber-oldenburg.de> wrote:
>
> > Did you use RI or MyFaces implementation? Which version?
> >
> > If i remember correct there was an issue with missing row ids when using
> > tomahawk datatable with the RI impl.
> >
> >
> >
> > Regards,
> >   Volker
> >
> >
> > Bjørn T Johansen wrote:
> > > Looks like the id is "content:formOrder:listLeveringer:checkboxes"
> > >
> > > On Tue, 25 Apr 2006 10:29:07 +0200
> > > "Matthias Wessendorf" <ma...@apache.org> wrote:
> > >
> > >
> > >>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 <bt...@havleik.no> wrote:
> > >>
> > >>>Ok, tried that but no difference..
> > >>>
> > >>>
> > >>>On Tue, 25 Apr 2006 09:24:35 +0200
> > >>>"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> > >>>>
> > >>>>>Not in this original version....
> > >>>>>
> > >>>>>On Tue, 25 Apr 2006 09:17:06 +0200
> > >>>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
> > >>>>>
> > >>>>>
> > >>>>>>that's becuase value binding is used inside the id attribute :-(
> > >>>>>>
> > >>>>>>On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > >>>>>>
> > >>>>>>>No one knows why this is happening?
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>On Mon, 24 Apr 2006 10:13:02 +0200
> > >>>>>>>Bjørn T Johansen <bt...@havleik.no> 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
> > >
> > >
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
Ok, I wil l try to switch to myfaces when I get the time.
Anything I should be aware of or should it just work?


BTJ

On Tue, 25 Apr 2006 11:59:33 +0200
"Matthias Wessendorf" <ma...@apache.org> wrote:

> Here is the RI ticket on this issue
> 
> https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230
> 
> -Matthias
> 
> On 4/25/06, Volker Weber <us...@weber-oldenburg.de> wrote:
> > This should fixed in RI see
> >
> > http://issues.apache.org/jira/browse/MYFACES-1010
> >
> > If this is not already done you neet to switch to myfaces.
> >
> > Regards,
> >   Volker
> >
> >
> > Bjørn T Johansen wrote:
> > > I am using RI impl... Maybe I should switch or is it a workaround or a fix somewhere?
> > >
> > > BTJ
> > >
> > > On Tue, 25 Apr 2006 10:48:33 +0200
> > > Volker Weber <us...@weber-oldenburg.de> wrote:
> > >
> > >
> > >>Did you use RI or MyFaces implementation? Which version?
> > >>
> > >>If i remember correct there was an issue with missing row ids when using
> > >>tomahawk datatable with the RI impl.
> > >>
> > >>
> > >>
> > >>Regards,
> > >>  Volker
> > >>
> > >>
> > >>Bjørn T Johansen wrote:
> > >>
> > >>>Looks like the id is "content:formOrder:listLeveringer:checkboxes"
> > >>>
> > >>>On Tue, 25 Apr 2006 10:29:07 +0200
> > >>>"Matthias Wessendorf" <ma...@apache.org> wrote:
> > >>>
> > >>>
> > >>>
> > >>>>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 <bt...@havleik.no> wrote:
> > >>>>
> > >>>>
> > >>>>>Ok, tried that but no difference..
> > >>>>>
> > >>>>>
> > >>>>>On Tue, 25 Apr 2006 09:24:35 +0200
> > >>>>>"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> > >>>>>>
> > >>>>>>
> > >>>>>>>Not in this original version....
> > >>>>>>>
> > >>>>>>>On Tue, 25 Apr 2006 09:17:06 +0200
> > >>>>>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>>that's becuase value binding is used inside the id attribute :-(
> > >>>>>>>>
> > >>>>>>>>On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>>>>No one knows why this is happening?
> > >>>>>>>>>
> > >>>>>>>>>
> > >>>>>>>>>On Mon, 24 Apr 2006 10:13:02 +0200
> > >>>>>>>>>Bjørn T Johansen <bt...@havleik.no> 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
> > >>>
> > >>>
> > >
> >
> > --
> > Don't answer to From: address!
> > Mail to this account are droped if not recieved via mailinglist.
> > To contact me direct create the mail address by
> > concatenating my forename to my senders domain.
> >
> 
> 
> --
> Matthias Wessendorf
> Aechterhoek 18
> 48282 Emsdetten
> http://jroller.com/page/mwessendorf
> mwessendorf-at-gmail-dot-com

Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
Here is the RI ticket on this issue

https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=230

-Matthias

On 4/25/06, Volker Weber <us...@weber-oldenburg.de> wrote:
> This should fixed in RI see
>
> http://issues.apache.org/jira/browse/MYFACES-1010
>
> If this is not already done you neet to switch to myfaces.
>
> Regards,
>   Volker
>
>
> Bjørn T Johansen wrote:
> > I am using RI impl... Maybe I should switch or is it a workaround or a fix somewhere?
> >
> > BTJ
> >
> > On Tue, 25 Apr 2006 10:48:33 +0200
> > Volker Weber <us...@weber-oldenburg.de> wrote:
> >
> >
> >>Did you use RI or MyFaces implementation? Which version?
> >>
> >>If i remember correct there was an issue with missing row ids when using
> >>tomahawk datatable with the RI impl.
> >>
> >>
> >>
> >>Regards,
> >>  Volker
> >>
> >>
> >>Bjørn T Johansen wrote:
> >>
> >>>Looks like the id is "content:formOrder:listLeveringer:checkboxes"
> >>>
> >>>On Tue, 25 Apr 2006 10:29:07 +0200
> >>>"Matthias Wessendorf" <ma...@apache.org> wrote:
> >>>
> >>>
> >>>
> >>>>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 <bt...@havleik.no> wrote:
> >>>>
> >>>>
> >>>>>Ok, tried that but no difference..
> >>>>>
> >>>>>
> >>>>>On Tue, 25 Apr 2006 09:24:35 +0200
> >>>>>"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> >>>>>>
> >>>>>>
> >>>>>>>Not in this original version....
> >>>>>>>
> >>>>>>>On Tue, 25 Apr 2006 09:17:06 +0200
> >>>>>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>that's becuase value binding is used inside the id attribute :-(
> >>>>>>>>
> >>>>>>>>On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>No one knows why this is happening?
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>On Mon, 24 Apr 2006 10:13:02 +0200
> >>>>>>>>>Bjørn T Johansen <bt...@havleik.no> 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
> >>>
> >>>
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Re: Checkbox inside dataList not working?

Posted by Volker Weber <us...@weber-oldenburg.de>.
This should fixed in RI see

http://issues.apache.org/jira/browse/MYFACES-1010

If this is not already done you neet to switch to myfaces.

Regards,
  Volker


Bjørn T Johansen wrote:
> I am using RI impl... Maybe I should switch or is it a workaround or a fix somewhere?
> 
> BTJ
> 
> On Tue, 25 Apr 2006 10:48:33 +0200
> Volker Weber <us...@weber-oldenburg.de> wrote:
> 
> 
>>Did you use RI or MyFaces implementation? Which version?
>>
>>If i remember correct there was an issue with missing row ids when using
>>tomahawk datatable with the RI impl.
>>
>>
>>
>>Regards,
>>  Volker
>>
>>
>>Bjørn T Johansen wrote:
>>
>>>Looks like the id is "content:formOrder:listLeveringer:checkboxes" 
>>>
>>>On Tue, 25 Apr 2006 10:29:07 +0200
>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
>>>
>>>
>>>
>>>>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 <bt...@havleik.no> wrote:
>>>>
>>>>
>>>>>Ok, tried that but no difference..
>>>>>
>>>>>
>>>>>On Tue, 25 Apr 2006 09:24:35 +0200
>>>>>"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
>>>>>>
>>>>>>
>>>>>>>Not in this original version....
>>>>>>>
>>>>>>>On Tue, 25 Apr 2006 09:17:06 +0200
>>>>>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>that's becuase value binding is used inside the id attribute :-(
>>>>>>>>
>>>>>>>>On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>>No one knows why this is happening?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Mon, 24 Apr 2006 10:13:02 +0200
>>>>>>>>>Bjørn T Johansen <bt...@havleik.no> 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
>>>
>>>
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
I am using RI impl... Maybe I should switch or is it a workaround or a fix somewhere?

BTJ

On Tue, 25 Apr 2006 10:48:33 +0200
Volker Weber <us...@weber-oldenburg.de> wrote:

> Did you use RI or MyFaces implementation? Which version?
> 
> If i remember correct there was an issue with missing row ids when using
> tomahawk datatable with the RI impl.
> 
> 
> 
> Regards,
>   Volker
> 
> 
> Bjørn T Johansen wrote:
> > Looks like the id is "content:formOrder:listLeveringer:checkboxes" 
> > 
> > On Tue, 25 Apr 2006 10:29:07 +0200
> > "Matthias Wessendorf" <ma...@apache.org> wrote:
> > 
> > 
> >>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 <bt...@havleik.no> wrote:
> >>
> >>>Ok, tried that but no difference..
> >>>
> >>>
> >>>On Tue, 25 Apr 2006 09:24:35 +0200
> >>>"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> >>>>
> >>>>>Not in this original version....
> >>>>>
> >>>>>On Tue, 25 Apr 2006 09:17:06 +0200
> >>>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
> >>>>>
> >>>>>
> >>>>>>that's becuase value binding is used inside the id attribute :-(
> >>>>>>
> >>>>>>On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> >>>>>>
> >>>>>>>No one knows why this is happening?
> >>>>>>>
> >>>>>>>
> >>>>>>>On Mon, 24 Apr 2006 10:13:02 +0200
> >>>>>>>Bjørn T Johansen <bt...@havleik.no> 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
> > 
> > 

Re: Checkbox inside dataList not working?

Posted by Volker Weber <us...@weber-oldenburg.de>.
Did you use RI or MyFaces implementation? Which version?

If i remember correct there was an issue with missing row ids when using
tomahawk datatable with the RI impl.



Regards,
  Volker


Bjørn T Johansen wrote:
> Looks like the id is "content:formOrder:listLeveringer:checkboxes" 
> 
> On Tue, 25 Apr 2006 10:29:07 +0200
> "Matthias Wessendorf" <ma...@apache.org> wrote:
> 
> 
>>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 <bt...@havleik.no> wrote:
>>
>>>Ok, tried that but no difference..
>>>
>>>
>>>On Tue, 25 Apr 2006 09:24:35 +0200
>>>"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
>>>>
>>>>>Not in this original version....
>>>>>
>>>>>On Tue, 25 Apr 2006 09:17:06 +0200
>>>>>"Matthias Wessendorf" <ma...@apache.org> wrote:
>>>>>
>>>>>
>>>>>>that's becuase value binding is used inside the id attribute :-(
>>>>>>
>>>>>>On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
>>>>>>
>>>>>>>No one knows why this is happening?
>>>>>>>
>>>>>>>
>>>>>>>On Mon, 24 Apr 2006 10:13:02 +0200
>>>>>>>Bjørn T Johansen <bt...@havleik.no> 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
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
Looks like the id is "content:formOrder:listLeveringer:checkboxes" 

On Tue, 25 Apr 2006 10:29:07 +0200
"Matthias Wessendorf" <ma...@apache.org> wrote:

> 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 <bt...@havleik.no> wrote:
> > Ok, tried that but no difference..
> >
> >
> > On Tue, 25 Apr 2006 09:24:35 +0200
> > "Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> > > > Not in this original version....
> > > >
> > > > On Tue, 25 Apr 2006 09:17:06 +0200
> > > > "Matthias Wessendorf" <ma...@apache.org> wrote:
> > > >
> > > > > that's becuase value binding is used inside the id attribute :-(
> > > > >
> > > > > On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > > > > > No one knows why this is happening?
> > > > > >
> > > > > >
> > > > > > On Mon, 24 Apr 2006 10:13:02 +0200
> > > > > > Bjørn T Johansen <bt...@havleik.no> 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

Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
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 <bt...@havleik.no> wrote:
> Ok, tried that but no difference..
>
>
> On Tue, 25 Apr 2006 09:24:35 +0200
> "Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> > > Not in this original version....
> > >
> > > On Tue, 25 Apr 2006 09:17:06 +0200
> > > "Matthias Wessendorf" <ma...@apache.org> wrote:
> > >
> > > > that's becuase value binding is used inside the id attribute :-(
> > > >
> > > > On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > > > > No one knows why this is happening?
> > > > >
> > > > >
> > > > > On Mon, 24 Apr 2006 10:13:02 +0200
> > > > > Bjørn T Johansen <bt...@havleik.no> 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

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
Ok, tried that but no difference.. 


On Tue, 25 Apr 2006 09:24:35 +0200
"Matthias Wessendorf" <ma...@apache.org> 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 <bt...@havleik.no> wrote:
> > Not in this original version....
> >
> > On Tue, 25 Apr 2006 09:17:06 +0200
> > "Matthias Wessendorf" <ma...@apache.org> wrote:
> >
> > > that's becuase value binding is used inside the id attribute :-(
> > >
> > > On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > > > No one knows why this is happening?
> > > >
> > > >
> > > > On Mon, 24 Apr 2006 10:13:02 +0200
> > > > Bjørn T Johansen <bt...@havleik.no> 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

Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
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 <bt...@havleik.no> wrote:
> Not in this original version....
>
> On Tue, 25 Apr 2006 09:17:06 +0200
> "Matthias Wessendorf" <ma...@apache.org> wrote:
>
> > that's becuase value binding is used inside the id attribute :-(
> >
> > On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > > No one knows why this is happening?
> > >
> > >
> > > On Mon, 24 Apr 2006 10:13:02 +0200
> > > Bjørn T Johansen <bt...@havleik.no> 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

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
Not in this original version....

On Tue, 25 Apr 2006 09:17:06 +0200
"Matthias Wessendorf" <ma...@apache.org> wrote:

> that's becuase value binding is used inside the id attribute :-(
> 
> On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> > No one knows why this is happening?
> >
> >
> > On Mon, 24 Apr 2006 10:13:02 +0200
> > Bjørn T Johansen <bt...@havleik.no> 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

Re: Checkbox inside dataList not working?

Posted by Matthias Wessendorf <ma...@apache.org>.
that's becuase value binding is used inside the id attribute :-(

On 4/25/06, Bjørn T Johansen <bt...@havleik.no> wrote:
> No one knows why this is happening?
>
>
> On Mon, 24 Apr 2006 10:13:02 +0200
> Bjørn T Johansen <bt...@havleik.no> 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

Re: Checkbox inside dataList not working?

Posted by Werner Punz <we...@gmx.at>.
Bjørn T Johansen schrieb:
> It's a HTML Layout Tag Library containing components for almost all of the standard HTML tags and
> attributes based on the HTML 4.01 specification.
> 
> But no, I haven't tried without it, because then I have to rewrite my whole page using another table tag; I
> will do that if I have to...
> 
> 
The html stuff is uncritical except for the div tag.


Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
It's a HTML Layout Tag Library containing components for almost all of the standard HTML tags and
attributes based on the HTML 4.01 specification.

But no, I haven't tried without it, because then I have to rewrite my whole page using another table tag; I
will do that if I have to...


On Tue, 25 Apr 2006 09:23:41 +0200
Volker Weber <us...@weber-oldenburg.de> wrote:

> Don't know what this <htm:...> stuff is, have you tryed without this?
> 
> 
> Regards,
>   Volker
> 
> 
> Bjørn T Johansen wrote:
> > No one knows why this is happening?
> > 
> > 
> > On Mon, 24 Apr 2006 10:13:02 +0200
> > Bjørn T Johansen <bt...@havleik.no> 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
> >>
> > 
> > 

Re: Checkbox inside dataList not working?

Posted by Volker Weber <us...@weber-oldenburg.de>.
Don't know what this <htm:...> stuff is, have you tryed without this?


Regards,
  Volker


Bjørn T Johansen wrote:
> No one knows why this is happening?
> 
> 
> On Mon, 24 Apr 2006 10:13:02 +0200
> Bjørn T Johansen <bt...@havleik.no> 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
>>
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
No one knows why this is happening?


On Mon, 24 Apr 2006 10:13:02 +0200
Bjørn T Johansen <bt...@havleik.no> 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
> 

Re: Checkbox inside dataList not working?

Posted by Werner Punz <we...@gmx.at>.
Bjørn T Johansen schrieb:

> Well, I just tried and I ended up with an org.apache.jasper.JasperException...
> 
> I tried to change my t:datalist tag to:
> 
> <t:dataList id="listLeveringer" var="var" rowIndexVar="counter" value="#{orderBean.ordre.leveringer}"
> layout="simple" > (which if I understand the documentation correct, should work..)
> 
> and then the checkbox tag to:
> 
> <h:selectBooleanCheckbox id="leveringer_selected#{counter}" value="#{var.selected}"/>
> 
> 
Ok sorry for the false information... :-(


Re: Checkbox inside dataList not working?

Posted by Bjørn T Johansen <bt...@havleik.no>.
On Mon, 24 Apr 2006 10:57:40 +0200
Werner Punz <we...@gmx.at> wrote:

> Werner Punz schrieb:
> 
> >>
> > Hi you basically generate a component with the same id over and over
> > again...
> > something like
> >  <h:selectBooleanCheckbox id="leveringer_selected#{counter}"
> > value="#{var.selected}"/>
> > 
> > and a counter coming from the datalist works better ;-)
> > 
> > 
> > 
> Takt it with a grain of salt though I am not 100% sure if it works ;-)
> but it should
> 

Well, I just tried and I ended up with an org.apache.jasper.JasperException...

I tried to change my t:datalist tag to:

<t:dataList id="listLeveringer" var="var" rowIndexVar="counter" value="#{orderBean.ordre.leveringer}"
layout="simple" > (which if I understand the documentation correct, should work..)

and then the checkbox tag to:

<h:selectBooleanCheckbox id="leveringer_selected#{counter}" value="#{var.selected}"/>


BTJ

Re: Checkbox inside dataList not working?

Posted by Werner Punz <we...@gmx.at>.
Werner Punz schrieb:

>>
> Hi you basically generate a component with the same id over and over
> again...
> something like
>  <h:selectBooleanCheckbox id="leveringer_selected#{counter}"
> value="#{var.selected}"/>
> 
> and a counter coming from the datalist works better ;-)
> 
> 
> 
Takt it with a grain of salt though I am not 100% sure if it works ;-)
but it should


Re: Checkbox inside dataList not working?

Posted by Werner Punz <we...@gmx.at>.
Bjørn T Johansen schrieb:
> 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?
> 
> 
Hi you basically generate a component with the same id over and over
again...
something like
 <h:selectBooleanCheckbox id="leveringer_selected#{counter}"
value="#{var.selected}"/>

and a counter coming from the datalist works better ;-)