Try this an let me know how it works:
<tr:table
id="mytable"
var="row"
value="#{listBean.items}"
partialTriggers="::mytable:myselection">
<tr:column>
<f:facet
name="header"
headerText="Select">
<tr:selectBooleanCheckbox
id="myselection"
label="Select All"
autoSubmit="true"
valueChangeListener="#{listBean.selectAll}" />
</f:facet>
<tr:selectBooleanCheckbox
id="selectRow"
value="#{row.select}"/>
</tr:column>
</tr:table>
If that doesn't work try partialTriggers="::mytable:selectRow" to try
to trigger off of the value change event.
-Andrew
On 10/26/07, Paul Mander <[EMAIL PROTECTED]> wrote:
>
> I'm trying get get a table to update itself via PPR on the back of an event
> source from the header facet of a table column.
>
> <tr:table var="row" id="mytable" value="#{listBean.items}"
> partialTriggers="myselection">
> <tr:column>
> <f:facet name="header" headerText="Select">
> <tr:selectBooleanCheckbox label="Select All" autoSubmit="true"
> id="myselection" valueChangeListener="#{listBean.selectAll}" />
> </f:facet>
> <tr:selectBooleanCheckbox id="selectRow" value="#{row.select}"/>
> </tr:column>
> </tr:table>
>
> The problem appears to be that the real id of the input in the header is
> "mytable:myselection". I can get this working by setting the partial
> triggers on the table to this value. I am then relying on the way that
> trinidad/myfaces generates id's for components. Should I be doing this?
>
>
> --
> View this message in context:
> http://www.nabble.com/-Trinidad--PPR-table-header-facet-tf4697400.html#a13427448
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>