You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by DavidWei <xi...@rrd.com> on 2008/03/01 16:44:36 UTC

How to add table id into the Grid

I need to add a table id to the grid to display user list. 

Here is what I try to do:
<table  id="userList" t:type="Grid" t:source="userGridDataSource"
t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
t:rowClass="rowCssClass" >

I found the id field is not there in the table tag when I viewed source. It
is displayed as 
<table class="t-data-grid">

How can I do? Thanks in advance.



-- 
View this message in context: http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add table id into the Grid

Posted by DavidWei <xi...@rrd.com>.
Thanks Davor. It works for now.

Davor Hrg wrote:
> 
> for quick fix, you can
> add an element around the table and give id to it,
> 
> then you get the element by calling
> (this code works if table is direct child... not that is hard to look
> recursively for it)
> 
> var div = $(id);
> var elem = div.firstChild;
> while(elem && elem.tagName != "TABLE") elem=elem.nextSibling;
> if(!elem) return;//no table is direct child
> do you table initialization here
> 
> 
> Davor Hrg
> 
> On Sun, Mar 2, 2008 at 4:58 AM, DavidWei <xi...@rrd.com> wrote:
>>
>>  Thanks Howard.
>>
>>  I have tried the suggestion Davor provided to use t:id instead before,
>> but
>>  without any luck. Since you think it is a bug, I would like to report
>> this.
>>  Can you tell me how to add this as a bug? I have not done this before.
>> Since
>>  I am working on adding the "drag-and-drop" table row to the grid, it
>> would
>>  not work without a table id. Can you tell me usually how long it will
>> take
>>  to get this kind of bugs fixed? Thanks a lot.
>>
>>
>>
>>
>>  Howard Lewis Ship wrote:
>>  >
>>  > Please add this as a bug; the Grid component should render informal
>>  > parameters into the <table> element it renders.
>>  >
>>  > On Sat, Mar 1, 2008 at 9:04 AM, Davor Hrg <hr...@gmail.com> wrote:
>>  >> I think you need to put t:id="userList" instead of id="userList"
>>  >>
>>  >>  Davor Hrg
>>  >>
>>  >>
>>  >>
>>  >>  On 3/1/08, DavidWei <xi...@rrd.com> wrote:
>>  >>  >
>>  >>  > I need to add a table id to the grid to display user list.
>>  >>  >
>>  >>  > Here is what I try to do:
>>  >>  > <table  id="userList" t:type="Grid" t:source="userGridDataSource"
>>  >>  > t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
>>  >>  > t:rowClass="rowCssClass" >
>>  >>  >
>>  >>  > I found the id field is not there in the table tag when I viewed
>>  >> source. It
>>  >>  > is displayed as
>>  >>  > <table class="t-data-grid">
>>  >>  >
>>  >>  > How can I do? Thanks in advance.
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>  > --
>>  >>  > View this message in context:
>>  >>
>> http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
>>  >>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>  >>  >
>>  >>  >
>>  >>  >
>> ---------------------------------------------------------------------
>>  >>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  >>  > For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>  >
>>  >>  >
>>  >>
>>  >> 
>> ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  >>  For additional commands, e-mail: users-help@tapestry.apache.org
>>  >>
>>  >>
>>  >
>>  >
>>  >
>>  > --
>>  > Howard M. Lewis Ship
>>  >
>>  > Creator Apache Tapestry and Apache HiveMind
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  > For additional commands, e-mail: users-help@tapestry.apache.org
>>  >
>>  >
>>  >
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15784108.html
>>
>>
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15808353.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add table id into the Grid

Posted by Davor Hrg <hr...@gmail.com>.
for quick fix, you can
add an element around the table and give id to it,

then you get the element by calling
(this code works if table is direct child... not that is hard to look
recursively for it)

var div = $(id);
var elem = div.firstChild;
while(elem && elem.tagName != "TABLE") elem=elem.nextSibling;
if(!elem) return;//no table is direct child
do you table initialization here


Davor Hrg

On Sun, Mar 2, 2008 at 4:58 AM, DavidWei <xi...@rrd.com> wrote:
>
>  Thanks Howard.
>
>  I have tried the suggestion Davor provided to use t:id instead before, but
>  without any luck. Since you think it is a bug, I would like to report this.
>  Can you tell me how to add this as a bug? I have not done this before. Since
>  I am working on adding the "drag-and-drop" table row to the grid, it would
>  not work without a table id. Can you tell me usually how long it will take
>  to get this kind of bugs fixed? Thanks a lot.
>
>
>
>
>  Howard Lewis Ship wrote:
>  >
>  > Please add this as a bug; the Grid component should render informal
>  > parameters into the <table> element it renders.
>  >
>  > On Sat, Mar 1, 2008 at 9:04 AM, Davor Hrg <hr...@gmail.com> wrote:
>  >> I think you need to put t:id="userList" instead of id="userList"
>  >>
>  >>  Davor Hrg
>  >>
>  >>
>  >>
>  >>  On 3/1/08, DavidWei <xi...@rrd.com> wrote:
>  >>  >
>  >>  > I need to add a table id to the grid to display user list.
>  >>  >
>  >>  > Here is what I try to do:
>  >>  > <table  id="userList" t:type="Grid" t:source="userGridDataSource"
>  >>  > t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
>  >>  > t:rowClass="rowCssClass" >
>  >>  >
>  >>  > I found the id field is not there in the table tag when I viewed
>  >> source. It
>  >>  > is displayed as
>  >>  > <table class="t-data-grid">
>  >>  >
>  >>  > How can I do? Thanks in advance.
>  >>  >
>  >>  >
>  >>  >
>  >>  > --
>  >>  > View this message in context:
>  >> http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
>  >>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>  >>  >
>  >>  >
>  >>  > ---------------------------------------------------------------------
>  >>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  >>  > For additional commands, e-mail: users-help@tapestry.apache.org
>  >>  >
>  >>  >
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  >>  For additional commands, e-mail: users-help@tapestry.apache.org
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Howard M. Lewis Ship
>  >
>  > Creator Apache Tapestry and Apache HiveMind
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  > For additional commands, e-mail: users-help@tapestry.apache.org
>  >
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15784108.html
>
>
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add table id into the Grid

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi David,

I added an issue:
https://issues.apache.org/jira/browse/TAPESTRY-2218

-Filip

DavidWei skrev:
> Thanks Howard.
> 
> I have tried the suggestion Davor provided to use t:id instead before, but
> without any luck. Since you think it is a bug, I would like to report this.
> Can you tell me how to add this as a bug? I have not done this before. Since
> I am working on adding the "drag-and-drop" table row to the grid, it would
> not work without a table id. Can you tell me usually how long it will take
> to get this kind of bugs fixed? Thanks a lot.
> 
> 
> Howard Lewis Ship wrote:
>> Please add this as a bug; the Grid component should render informal
>> parameters into the <table> element it renders.
>>
>> On Sat, Mar 1, 2008 at 9:04 AM, Davor Hrg <hr...@gmail.com> wrote:
>>> I think you need to put t:id="userList" instead of id="userList"
>>>
>>>  Davor Hrg
>>>
>>>
>>>
>>>  On 3/1/08, DavidWei <xi...@rrd.com> wrote:
>>>  >
>>>  > I need to add a table id to the grid to display user list.
>>>  >
>>>  > Here is what I try to do:
>>>  > <table  id="userList" t:type="Grid" t:source="userGridDataSource"
>>>  > t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
>>>  > t:rowClass="rowCssClass" >
>>>  >
>>>  > I found the id field is not there in the table tag when I viewed
>>> source. It
>>>  > is displayed as
>>>  > <table class="t-data-grid">
>>>  >
>>>  > How can I do? Thanks in advance.
>>>  >
>>>  >
>>>  >
>>>  > --
>>>  > View this message in context:
>>> http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
>>>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>  >
>>>  >
>>>  > ---------------------------------------------------------------------
>>>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>  > For additional commands, e-mail: users-help@tapestry.apache.org
>>>  >
>>>  >
>>>
>>>  ---------------------------------------------------------------------
>>>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>  For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>> -- 
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add table id into the Grid

Posted by DavidWei <xi...@rrd.com>.
Thanks Howard.

I have tried the suggestion Davor provided to use t:id instead before, but
without any luck. Since you think it is a bug, I would like to report this.
Can you tell me how to add this as a bug? I have not done this before. Since
I am working on adding the "drag-and-drop" table row to the grid, it would
not work without a table id. Can you tell me usually how long it will take
to get this kind of bugs fixed? Thanks a lot.


Howard Lewis Ship wrote:
> 
> Please add this as a bug; the Grid component should render informal
> parameters into the <table> element it renders.
> 
> On Sat, Mar 1, 2008 at 9:04 AM, Davor Hrg <hr...@gmail.com> wrote:
>> I think you need to put t:id="userList" instead of id="userList"
>>
>>  Davor Hrg
>>
>>
>>
>>  On 3/1/08, DavidWei <xi...@rrd.com> wrote:
>>  >
>>  > I need to add a table id to the grid to display user list.
>>  >
>>  > Here is what I try to do:
>>  > <table  id="userList" t:type="Grid" t:source="userGridDataSource"
>>  > t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
>>  > t:rowClass="rowCssClass" >
>>  >
>>  > I found the id field is not there in the table tag when I viewed
>> source. It
>>  > is displayed as
>>  > <table class="t-data-grid">
>>  >
>>  > How can I do? Thanks in advance.
>>  >
>>  >
>>  >
>>  > --
>>  > View this message in context:
>> http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
>>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>  >
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  > For additional commands, e-mail: users-help@tapestry.apache.org
>>  >
>>  >
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>  For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15784108.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add table id into the Grid

Posted by Howard Lewis Ship <hl...@gmail.com>.
Please add this as a bug; the Grid component should render informal
parameters into the <table> element it renders.

On Sat, Mar 1, 2008 at 9:04 AM, Davor Hrg <hr...@gmail.com> wrote:
> I think you need to put t:id="userList" instead of id="userList"
>
>  Davor Hrg
>
>
>
>  On 3/1/08, DavidWei <xi...@rrd.com> wrote:
>  >
>  > I need to add a table id to the grid to display user list.
>  >
>  > Here is what I try to do:
>  > <table  id="userList" t:type="Grid" t:source="userGridDataSource"
>  > t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
>  > t:rowClass="rowCssClass" >
>  >
>  > I found the id field is not there in the table tag when I viewed source. It
>  > is displayed as
>  > <table class="t-data-grid">
>  >
>  > How can I do? Thanks in advance.
>  >
>  >
>  >
>  > --
>  > View this message in context: http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
>  > Sent from the Tapestry - User mailing list archive at Nabble.com.
>  >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  > For additional commands, e-mail: users-help@tapestry.apache.org
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to add table id into the Grid

Posted by Davor Hrg <hr...@gmail.com>.
I think you need to put t:id="userList" instead of id="userList"

Davor Hrg

On 3/1/08, DavidWei <xi...@rrd.com> wrote:
>
> I need to add a table id to the grid to display user list.
>
> Here is what I try to do:
> <table  id="userList" t:type="Grid" t:source="userGridDataSource"
> t:row="user"  t:model="userModel"t:rowsPerPage="10" t:lean="true"
> t:rowClass="rowCssClass" >
>
> I found the id field is not there in the table tag when I viewed source. It
> is displayed as
> <table class="t-data-grid">
>
> How can I do? Thanks in advance.
>
>
>
> --
> View this message in context: http://www.nabble.com/How-to-add-table-id-into-the-Grid-tp15777353p15777353.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org