hello.

thank you for your replay.

but I use autosortable table and therefore I don't have any
<t:commandSortHeader>
my t:datatable
-----------------------------------------------------------------
                            <t:dataTable var="customer"
                       
value="#{ReportingBackBean.customersValuesAsCollection}" >
                        
                    <f:facet name="header">
                        <h:outputText
value="#{bundle.reporting_MonthlyReporting}"/>
                    </f:facet>
                                       
                    <t:column sortable="true">
                        <f:facet name="header">
                                <h:outputText value="#{bundle.reporting_id}"/>
                        </f:facet>
                        <h:outputText value="#{customer.customerCppk}"/>
                    </t:column>
............




Baker,Jonathan wrote:
> 
> I believe the problem you are having is that commandSortHeaders are set
> by default to immediate.  This is from the tomahawk documentation:
>  
> Clickable sort column header. Must be nested inside an extended
> data_table tag. This tag is derived from the standard command_link tag
> and has the additional attributes columnName and arrow. Note: In
> contrast to normal command links, the default for the "immediate"
> attribute is "true". This is desirable as it avoids validating all input
> fields in the enclosing form when the column sort order changes. HOWEVER
> when the table contains input components "immediate" must be set to
> false; otherwise input fields will render blank after a sort, or will
> show their old values (ie will not appear to sort though output fields
> in the table will sort) when sort ordering is changed. Unless otherwise
> specified, all attributes accept static values or EL expressions.
>  
> If you set immediate="false" on your command sort header then your
> backing bean will get populated when you bind a backing bean field to
> your textbox.
>  
> 
> JB 
> 
>  
> 
> ________________________________
> 
> From: Murat Hazer [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 11, 2006 11:45 AM
> To: MyFaces Discussion
> Subject: Re: update dataTable data
> 
> 
> Hi,
> 
> you can save dataTable data with <t:saveState> so your sort algorithm
> works.. or try preserveDataModel attribute of the t:dataTable it should
> also work.
> 
> regards..
> 
> 
> On 8/11/06, vasiliy.kiryanov <[EMAIL PROTECTED]> wrote: 
> 
> 
>       Hello.
>       
>       I have auto sortable dataTable and backbean in the request scope
> that
>       receives data when user enter date and clink on the button.
>       
>       When I click on header in order to restort page is refreshed and
> data is 
>       empy in the table.
>       
>       What is the good aproch to invoke method in the backbean that
> receives data
>       when I click on table header for restort?
>       
>       thank you.
>       --
>       View this message in context:
> http://www.nabble.com/update-dataTable-data-tf2091344.html#a5764492
>       Sent from the MyFaces - Users forum at Nabble.com.
>       
>       
> 
> 
> 
> 
> -- 
> Murat HAZER 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/update-dataTable-data-tf2091344.html#a5792861
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to