FAQ
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"
-----------------------------------------------------------------------------------------------

Search Discussions

  • Werner Punz at Apr 24, 2006 at 8:45 am

    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 ;-)
  • Werner Punz at Apr 24, 2006 at 9:00 am

    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
  • Bjørn T Johansen at Apr 24, 2006 at 9:07 am

    On Mon, 24 Apr 2006 10:57:40 +0200 Werner Punz 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
  • Werner Punz at Apr 24, 2006 at 9:23 am

    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... :-(
  • Bjørn T Johansen at Apr 25, 2006 at 7:06 am
    No one knows why this is happening?


    On Mon, 24 Apr 2006 10:13:02 +0200
    Bjørn T Johansen 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 at Apr 25, 2006 at 7:17 am
    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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
  • Bjørn T Johansen at Apr 25, 2006 at 7:21 am
    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:
    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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 at Apr 25, 2006 at 7:25 am
    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 wrote:
    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:
    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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
  • Bjørn T Johansen at Apr 25, 2006 at 7:57 am
    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:
    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:
    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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 at Apr 25, 2006 at 8:29 am
    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 wrote:
    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:
    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:
    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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
  • Bjørn T Johansen at Apr 25, 2006 at 8:39 am
    Looks like the id is "content:formOrder:listLeveringer:checkboxes"

    On Tue, 25 Apr 2006 10:29:07 +0200
    "Matthias Wessendorf" 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 wrote:
    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:
    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:
    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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 at Apr 25, 2006 at 8:43 am
    for each ?
    Looks like the id is "content:formOrder:listLeveringer:checkboxes"
    ^
  • Bjørn T Johansen at Apr 25, 2006 at 8:45 am
    Yes...

    On Tue, 25 Apr 2006 10:42:46 +0200
    "Matthias Wessendorf" wrote:
    for each ?
    Looks like the id is "content:formOrder:listLeveringer:checkboxes"
    ^
  • Matthias Wessendorf at Apr 25, 2006 at 8:52 am
    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 wrote:
    Yes...

    On Tue, 25 Apr 2006 10:42:46 +0200
    "Matthias Wessendorf" 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
  • Volker Weber at Apr 25, 2006 at 8:49 am
    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" 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 wrote:

    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:

    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:

    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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.
  • Bjørn T Johansen at Apr 25, 2006 at 8:58 am
    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 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" 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 wrote:

    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:

    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:

    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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 at Apr 25, 2006 at 9:15 am
    Can you try a switch ?
    Perhaps it helps (having in mind Volkers message)

    -Matthias
    On 4/25/06, 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 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" 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 wrote:

    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:

    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:

    that's becuase value binding is used inside the id attribute :-(
    On 4/25/06, 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 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
  • Volker Weber at Apr 25, 2006 at 9:30 am
    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 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" 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 wrote:

    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:

    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:


    that's becuase value binding is used inside the id attribute :-(

    On 4/25/06, 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 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 at Apr 25, 2006 at 10:00 am
    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 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 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" 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 wrote:

    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:

    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:


    that's becuase value binding is used inside the id attribute :-(

    On 4/25/06, 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 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
  • Bjørn T Johansen at Apr 25, 2006 at 10:54 am
    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" 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 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 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" 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 wrote:

    Ok, tried that but no difference..


    On Tue, 25 Apr 2006 09:24:35 +0200
    "Matthias Wessendorf" 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 wrote:

    Not in this original version....

    On Tue, 25 Apr 2006 09:17:06 +0200
    "Matthias Wessendorf" wrote:


    that's becuase value binding is used inside the id attribute :-(

    On 4/25/06, 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 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
  • Volker Weber at Apr 25, 2006 at 7:25 am
    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 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.
  • Bjørn T Johansen at Apr 25, 2006 at 8:01 am
    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 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 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
  • Werner Punz at Apr 25, 2006 at 11:45 am

    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesmyfaces
postedApr 24, '06 at 8:13a
activeApr 25, '06 at 11:45a
posts24
users4
websitemyfaces.apache.org

People

Translate

site design / logo © 2019 Grokbase