You don't have to add empty elements to the list.

You just need to create a model that always returns multiples of 10
items, automatically providing an "empty" item for empty rows.

On 2/8/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> I'm afraid that adding empty elements in the list is not possible for me...
> I'll take a look at a custom table-renderer.
>
> Thanks!
>
> Roland
>
>
>
> On Wednesday 08 February 2006 14:17, Volker Weber wrote:
> > Martin Marinschek wrote:
> > > No-o
> > >
> > > don't think so.
> > >
> > > You'd have to write a custome table-renderer, sorry.
> >
> > Alternativly you can make model always adding a kind of empty rendered
> > elements to the end of the list.
> >
> > > regards,
> > >
> > > Martin
> > >
> > > On 2/8/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
> > >>What good will this do me? I mean, in the generated HTML-code, there's
> > >> just 3 <tr>-tags and I want to have all 10 of them!
> > >>
> > >>Anybody else have any ideas on how to solve this?
> > >>
> > >>Roland
> > >>
> > >>
> > >>
> > >>
> > >>Use CSS to set the height of the rows/cells.
> > >>
> > >>Dennis Byrne
> > >>
> > >>>-----Original Message-----
> > >>
> > >>From: Roland Asmann [mailto:[EMAIL PROTECTED]
> > >>
> > >>>Sent: Tuesday, February 7, 2006 02:22 PM
> > >>>To: [email protected]
> > >>>Subject: How to render the empty rows of a dataTable
> > >>>
> > >>>Hi,
> > >>>
> > >>>I was just wondering if it is possible to render the empty rows of a
> > >>>dataTable. We have a lot of pages where we use dataTables, and our
> > >>> customers almost always want them to be a default size (say 10 rows).
> > >>>Now, if we only have 3 rows of data, I can only get the dataTable to
> > >>> show those 3 and not the remaining 7 empty ones.
> > >>>Can I somehow turn this on?
> > >>>
> > >>>Roland
> > >>>
> > >>>PS
> > >>>Part of the definition of my current dataTable:
> > >>><t:dataTable id="data" rows="10">
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
>
>

Reply via email to