incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kuni <k...@muschkoten-berlin.de>
Subject Re: updating datamodel using af:table
Date Sat, 29 Jul 2006 22:47:32 GMT
no ideas? ... does anybody understand my problem?  :-)

Kuni schrieb:
> Hello,
>
> i'm developing a jsf page which display's a 'simple' table, and the 
> table content and layout depends on several properties. the user could 
> change these properties on the same jsf, which should updates the 
> table....(onChange=form.submit())
>
> the jsf consists of two parts.. one main-jsf which display some input 
> and select-fields for updating the values... and the <af:table> which 
> is included by <jsp:include ..page="<%= session..getA....%.>". >
>
> the table columns are like:
> <af:table ...>
>    <column rendered="#{map['key']!=null}">...
>    <h:outputText ../>
>    </column>
> </af:table>
> to provide content-dependent columns. :)
>
> when the properties where changed (via input fields)...a db-query is 
> executetd to update the table content (datamodel)
> the new table could have more or less columns an the table should be 
> completely updates... but an indexOutOfBound Exception will be 
> thrown... when the <table> component tries to display a columns-which 
> not exists...(in the new table..)
>
> how can i 'reset' the table..so that the table is rendered again using 
> the new columns....
>
> ..any ideas?
>
> thanks,
> kuni
>
>


Mime
View raw message