Hi,

I modified the OpenDataList.java and openDataTable.jsp in order to have a selectbox from where can change the number of columns that are displayed. The same behaviour :(. I can send the sources.

Alin.


Sorry, didn' t realize that.

yes, try if you find some difference to the examples.

regards,

Martin

On 8/16/05, Alin Dosoniu <[EMAIL PROTECTED]> wrote:
Martin,

Thank you for quick answer but I already used t:columns tag. I also used
t:commandSortHeader in header facet. I removed it, but the problem persists.

I am a little curious why the Paged and Sortable (dynamic number of columns; mouseover) from simple.war doesn't have an example similar with what I need. In my opinion, what I am trying to do is one of the examples where t:columns should be easy to be used. I am thinking to modify a little this example to
see if the same thing is happening in example from simple.war.

I will write if find something.

Alin.

Use the x:columns tag inside the dataTable for dynamic amounts of columns;
e.g:
<t:datatable value="#{rows}" var="row">
    <t:columns value="#{cols}" var="column">
        <f:facet name="header" value="#{column.name}"/>
        <h:outputText value="#{row.columnValue}"/>
    </t:columns>
</t:datatable>

regards,

Martin

On 8/16/05, Alin Dosoniu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am using t:dataTable on a page and need to change its number of > columns > when change value of a selectbox. Something like want to show 3 months > and
> from a selectbox select value 6, so I want to display a table with 6
> columns
> instead of 3.
>
> The problem that I have is that first time after modify the number of
> columns (now have january, february, march), I modify the columnHeaders
> list
> but in browser I get a table with only 3 columns as header (and the data
> from header is the old data - january, february, march) but with all 6
> columns for data. If I click on a link from scroller (go to second page
> for
> example), the page is showing the header correctly, it has 6 columns -
> january, february, march, april, may, june.
>
> Something similar is happening when changing the number of columns from > 6
> to
> 3. I get a table with 6 columns as header and only 3 columns as data.
>
> Do I have to call a specific method after changing the list of header
> values? Or is this a known problem of t:dataTable in this scenario?
>
> Thanks,
> Alin.


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German



--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German

Reply via email to