You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Jason Knox <jk...@bea.com> on 2006/05/19 05:02:36 UTC

question using the footer in the data-grid

I'm having a bit of an issue getting the footer to display at the bottom
of a datagrid according to the documentation.

 

"The Footer tag is used to render a table row after the data grid has
rendered the header and rows regions demarcated by the
<netui-data:header>
<http://beehive.apache.org/docs/1.0m1/apidocs/taglib/beehive.apache.org/
netui/tags-databinding-1.0/header.html> and <netui-data:rows>
<http://beehive.apache.org/docs/1.0m1/apidocs/taglib/beehive.apache.org/
netui/tags-databinding-1.0/rows.html> tags respectively."  

 

With this code - 

 

<netui-data:dataGrid name="foo" dataSource="pageFlow.foodata">

      <netui-data:configurePager pagerFormat="firstPrevNextLast"
disableDefaultPager="true"/>

      <netui-data:header>

            <netui-data:headerCell headerText="Owner"
sortAction="sortGrid" sortExpression="FOOCOLUMN"/>

            <netui-data:headerCell headerText="1"/>   

      </netui-data:header>

      <netui-data:rows>

            <netui-data:headerCell value="${container.item.owner}"/>

            <netui-data:spanCell value="${container.item.1}"/>

      </netui-data:rows>

      <netui-data:footer>

            <netui-data:renderPager/>

      </netui-data:footer>

</netui-data:dataGrid>

 

I end up with the pager rendered at the top instead of the bottom of the
grid - even though the <netui-data:renderPager/> is in the footer.  How
do I make the footer appear where I want it to, at the bottom of the
grid, short of using css positioning?

 

Thanks in advance,

Jason.

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Re: question using the footer in the data-grid

Posted by Eddie O'Neil <ek...@gmail.com>.
  Correct -- the <footer> tag doesn't necessarily know the number of
columns or layout of the rest of the data grid, so it is simply a
rendering boundary for containing the HTML <tfoot> section of a table.
 Inside of that, your page needs to create all of its own markup.

Eddie


On 5/18/06, Carlin Rogers <ca...@gmail.com> wrote:
> Jason,
>
> It looks like the footer tag creates a <tr> element but not the <td> within
> it. When the footer is rendered like this it seems the browser doesn't
> handle it correctly in the table. Take a look at the source of your page
> after it is rendered. I think that you just need to have a footer like the
> following...
>
>      <netui-data:footer>
>        <td colspan="2" align="right">
>          <netui-data:renderPager/>
>        </td>
>      </netui-data:footer>
>
> Hope that helps,
> Carlin
>
> On 5/18/06, Jason Knox <jk...@bea.com> wrote:
> >
> > I'm having a bit of an issue getting the footer to display at the bottom
> > of a datagrid according to the documentation.
> >
> >
> >
> > "The Footer tag is used to render a table row after the data grid has
> > rendered the header and rows regions demarcated by the
> > <netui-data:header>
> > <http://beehive.apache.org/docs/1.0m1/apidocs/taglib/beehive.apache.org/
> > netui/tags-databinding-1.0/header.html> and <netui-data:rows>
> > <http://beehive.apache.org/docs/1.0m1/apidocs/taglib/beehive.apache.org/
> > netui/tags-databinding-1.0/rows.html> tags respectively."
> >
> >
> >
> > With this code -
> >
> >
> >
> > <netui-data:dataGrid name="foo" dataSource="pageFlow.foodata">
> >
> >       <netui-data:configurePager pagerFormat="firstPrevNextLast"
> > disableDefaultPager="true"/>
> >
> >       <netui-data:header>
> >
> >             <netui-data:headerCell headerText="Owner"
> > sortAction="sortGrid" sortExpression="FOOCOLUMN"/>
> >
> >             <netui-data:headerCell headerText="1"/>
> >
> >       </netui-data:header>
> >
> >       <netui-data:rows>
> >
> >             <netui-data:headerCell value="${container.item.owner}"/>
> >
> >             <netui-data:spanCell value="${container.item.1}"/>
> >
> >       </netui-data:rows>
> >
> >       <netui-data:footer>
> >
> >             <netui-data:renderPager/>
> >
> >       </netui-data:footer>
> >
> > </netui-data:dataGrid>
> >
> >
> >
> > I end up with the pager rendered at the top instead of the bottom of the
> > grid - even though the <netui-data:renderPager/> is in the footer.  How
> > do I make the footer appear where I want it to, at the bottom of the
> > grid, short of using css positioning?
> >
> >
> >
> > Thanks in advance,
> >
> > Jason.
> >
> > _______________________________________________________________________
> > Notice:  This email message, together with any attachments, may contain
> > information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
> > entities,  that may be confidential,  proprietary,  copyrighted  and/or
> > legally privileged, and is intended solely for the use of the individual
> > or entity named in this message. If you are not the intended recipient,
> > and have received this message in error, please immediately return this
> > by email and then delete it.
> >
> >
>

Re: question using the footer in the data-grid

Posted by Carlin Rogers <ca...@gmail.com>.
Jason,

It looks like the footer tag creates a <tr> element but not the <td> within
it. When the footer is rendered like this it seems the browser doesn't
handle it correctly in the table. Take a look at the source of your page
after it is rendered. I think that you just need to have a footer like the
following...

     <netui-data:footer>
       <td colspan="2" align="right">
         <netui-data:renderPager/>
       </td>
     </netui-data:footer>

Hope that helps,
Carlin

On 5/18/06, Jason Knox <jk...@bea.com> wrote:
>
> I'm having a bit of an issue getting the footer to display at the bottom
> of a datagrid according to the documentation.
>
>
>
> "The Footer tag is used to render a table row after the data grid has
> rendered the header and rows regions demarcated by the
> <netui-data:header>
> <http://beehive.apache.org/docs/1.0m1/apidocs/taglib/beehive.apache.org/
> netui/tags-databinding-1.0/header.html> and <netui-data:rows>
> <http://beehive.apache.org/docs/1.0m1/apidocs/taglib/beehive.apache.org/
> netui/tags-databinding-1.0/rows.html> tags respectively."
>
>
>
> With this code -
>
>
>
> <netui-data:dataGrid name="foo" dataSource="pageFlow.foodata">
>
>       <netui-data:configurePager pagerFormat="firstPrevNextLast"
> disableDefaultPager="true"/>
>
>       <netui-data:header>
>
>             <netui-data:headerCell headerText="Owner"
> sortAction="sortGrid" sortExpression="FOOCOLUMN"/>
>
>             <netui-data:headerCell headerText="1"/>
>
>       </netui-data:header>
>
>       <netui-data:rows>
>
>             <netui-data:headerCell value="${container.item.owner}"/>
>
>             <netui-data:spanCell value="${container.item.1}"/>
>
>       </netui-data:rows>
>
>       <netui-data:footer>
>
>             <netui-data:renderPager/>
>
>       </netui-data:footer>
>
> </netui-data:dataGrid>
>
>
>
> I end up with the pager rendered at the top instead of the bottom of the
> grid - even though the <netui-data:renderPager/> is in the footer.  How
> do I make the footer appear where I want it to, at the bottom of the
> grid, short of using css positioning?
>
>
>
> Thanks in advance,
>
> Jason.
>
> _______________________________________________________________________
> Notice:  This email message, together with any attachments, may contain
> information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
> entities,  that may be confidential,  proprietary,  copyrighted  and/or
> legally privileged, and is intended solely for the use of the individual
> or entity named in this message. If you are not the intended recipient,
> and have received this message in error, please immediately return this
> by email and then delete it.
>
>