Yes, the MyFaces example works fine. I intentionally modeled my
dataTable after the example but it's still not working.

Does <x:saveState value="#{countryForm.id}" /> in countryForm.jsp in the
example fit into this? I'm still fairly new at JSF/myfaces and I'm not
totally clear on what the <x:saveState> is used for.

Thanks

-----Original Message-----
From: Manfred Geiler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 2:44 PM
To: MyFaces Discussion
Subject: Re: commandLink, updateActionListener or dataTable issue


Hm, curious, there is no significant difference to the MyFaces example 
page as I see.
The master/detail MyFaces example works for you?

Manfred



Matt Crockett 8441 wrote:
> Hi all,
> 
> I am having a problem with submitting the correct value to the 
> 'detail' portion of a master/detail. It keeps submitting the id of the

> last element displayed in the table.
> 
> The generated html looks something like this this:
> <a href="#" onclick="....." id="data:_id25";>239109</a>
> <a href="#" onclick="....." id="data:_id25";>317089</a>
> <a href="#" onclick="....." id="data:_id25";>810569</a> ...etc...
> 
> But I think is should look like this:
> <a href="#" onclick="....." id="data_1:_id25">239109</a>
> <a href="#" onclick="....." id="data_2:_id25">317089</a>
> <a href="#" onclick="....." id="data_3:_id25">810569</a>
> 
> I'm out of ideas. Any suggestions? I am using myfaces-1.0.7.
> 
> Thanks,
> 
> Matthew Crockett
> [EMAIL PROTECTED]
> 
> -------------------------------
> <x:dataTable
>       styleClass="scrollerTable"
>       headerClass="standardTable_Header"
>       footerClass="standardTable_Header"
>       rowClasses="standardTable_Row1,standardTable_Row2"
>       columnClasses="standardTable_ColumnCentered"        
>       id="data" 
>       var="customer"
>       value="#{customerSearch.customers}" 
>       preserveDataModel="true">
>       
>       <h:column>
>               <f:facet name="header">
>                       <h:outputText value="Cust ID" />
>               </f:facet>
>               <x:commandLink action="go_customer" immediate="true">
>                       <h:outputText value="#{customer.customer_id}" />
>                       <x:updateActionListener 
> property="#{customerSearch.selectedCustomerID}"
>                               value="#{customer.customer_id}" />
>               </x:commandLink>
>       </h:column>
> 
> </x:dataTable>
> 
> 
> 

Reply via email to