For those that have a similar requirement to the one i have/ had i herewith post my (current) solution
I load the model via a separate method after i retrieved the result set from the search. ... private void loadModel() { // Get the columns from the resultset that actually contain data _searchResultFilledFieldNames = ResultManager.getFieldColumnsContainingValues(_resultSet); _myModel=_beanModelSource.createDisplayModel(ISearchResult.class, _componentResources.getMessages()); // My implementation of a BeanModelSource LuceneResultBeanModelSource lbm=new LuceneResultBeanModelSource( _beanModelSource); // Actually generate the model based on the supplied columns/ fields // In the method only those columns are added that have to be shown _myModel=lbm.generateBeanModel(_searchResultFilledFieldNames, _componentResources); } ... This does the trick i was looking for: Do not show any columns that do not contain any data! Cheers, Fermin Da Costa Gomez On Fri, Oct 16, 2009 at 9:24 PM, Fermin Da Costa Gomez < dacostago...@dcgconsultancy.nl> wrote: > > > On Fri, Oct 16, 2009 at 7:31 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Fri, 16 Oct 2009 13:40:18 -0300, Fermin Da Costa Gomez < >> dacostago...@dcgconsultancy.nl> escreveu: >> >> Hmm, mucking about in the DOM is not what i'm looking forward to .. >>> I my assumption correct that once the grid building has started it >>> *is*actually doing the rendering as such? >>> >> >> I guess so. Makes sense to think that Grid expects to render exactly what >> it received (source and model). >> > So the rendering starts where, OnPrepare or onPrepareForRender .. ? > > >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > “The reasonable man adapts himself to the world; the unreasonable one > persists in trying to adapt the world to himself. Therefore all progress > depends on the unreasonable man.” > - George Bernard Shaw (1856 - 1950) > -- “The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.” - George Bernard Shaw (1856 - 1950)