logo       

Re: XMLC Table question: msg#00001

java.enhydra.xmlc

Subject: Re: XMLC Table question

On Wednesday 12 February 2003 15:59, markus.lehmann@xxxxxxxxxx wrote:
> Hi all,
>
> I read the XMLC doku but i have a problem:
>
> I use xmlc with tomcat and servlets.
>
> I know how create multiple rows for a table at runtime of the servlet.
>
> Element table = page.getElementList_table();
>
> Element sampleRow = page.getElementList_row();
> table.removeChild(sampleRow),
>
> while (....) {
>
> ......
>
> Node clonedRow = sampleRow.cloneNode( true );
> table.appendChild(clonedRow);
>
> }
>
> Question:
>
> How can I remove the whole table with the id="List_table" at runtime ?


table.getParentNode().removeChild(table);

Hope this helps,

--
Richard Kunze

[ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg
Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1
http://www.tivano.de, kunze@xxxxxxxxx

Attachment: pgpXSzK1YlaWF.pgp
Description: signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise