Like I just answered (probably didn't come through yet): use an
AttributeModifier.
Eelco
On 8/23/05, flemming <[EMAIL PROTECTED]> wrote:
> Hi
>
> I will try with an example.
>
> Here is the example. and the javascript file which gets included on the
> pages I want to use this panel/border.
>
> Now the problem I have is that the Id of the DIV must match the id in
> the onclick in the <img onclick.
>
> Is there any way that I can set the id in the DIV from wicket?
>
>
>
>
>
> <wicket:border>
> <table width="100%" border="0" cellpadding="0" cellspacing="0">
> <tr bgcolor="#6495ed">
> <td align="left"><span wicket:id="title">sample
> title</span></td>
> <td align="right"><img wicket:id="closeBtn" alt="hide/show"
> onclick="closeMe(panelBody);" /></td>
> </tr>
> <tr>
> <td colspan="2">
> <div id="panelBody" style="visibility: visible;">
> <table width="100%" border="0" cellpadding="0"
> cellspacing="0" style="border-style:solid; border-color:#6495ed;
> border-width:thin;">
> <tr>
> <td>
> <wicket:body />
> </td>
> </tr>
> </table>
> </div>
>
> </td>
> </tr>
> </table>
>
> </wicket:border>
>
>
>
> ====================================
> default.js
>
> function closeMe(obj) {
> if (obj.style.visibility == 'collapse')
> obj.style.visibility = "visible";
> else
> obj.style.visibility = "collapse";
>
> }
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user