is it possible to   modify  html at runtime and add  new components ? for
example I have a panel,   html code below.

<wicket:panel>
    <div class="contentTittle">
        <label wicket:id="pageTittle" />
    </div>
    <div class="pageheader">
        <div align="center">
            <table style="margin-bottom: 0.5em;">
                <tbody>
                    <tr>
                        <td>Audit Number:</td>go
                        <td><label wicket:id="auditNumber"/></td>
                    </tr>
                    <tr>
                        <td>Grantee:</td>
                        <td><label wicket:id="grantee"/></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="pagedescription">
        <p><span wicket:id="pageDescription" /></p>
    </div>
</wicket:panel>

I use this panel  in several  pages,  but for one page I have to add
additional information    between wicket:id="grantee"  and
wicket:id="pageDescription"  , so I am wondering If I can I create a new
class which extends from this panel and if this new class can add a new
component to this html  and add the component to hirearchy , something  like
this  ,html below has a third   tr tag  ?

<wicket:panel>
    <div class="contentTittle">
        <label wicket:id="pageTittle" />
    </div>
    <div class="pageheader">
        <div align="center">
            <table style="margin-bottom: 0.5em;">
                <tbody>
                    <tr>
                        <td>Audit Number:</td>go
                        <td><label wicket:id="auditNumber"/></td>
                    </tr>
                    <tr>
                        <td>Grantee:</td>
                        <td><label wicket:id="grantee"/></td>
                    </tr>
                    <tr>
                        <td>Program:</td>
                        <td><label wicket:id="program"/></td>
                    </tr>

                </tbody>
            </table>
        </div>
    </div>
    <div class="pagedescription">
        <p><span wicket:id="pageDescription" /></p>
    </div>
</wicket:panel>


please suggest me if it is possible to do this , I donot want to add the
third tr tag and call set visible false for all pages and only for one page
set it to true ?

Reply via email to