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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
>  >> I think you need to put t:id="userList" instead of id="userList"
>  >>
>  >>  Davor Hrg
>  >>
>  >>
>  >>
>  >>  On 3/1/08, DavidWei <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>  >>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >>  >
>  >>  >
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Howard M. Lewis Ship
>  >
>  > Creator Apache Tapestry and Apache HiveMind
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>  --
>  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: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to