the trick is to use a border not a panel - that way you can put anything you want into it.

then via ajax control setrenderborderbody property and repaint the border - pretty simple

-Igor


On 10/19/06, blackboy zabaha <[EMAIL PROTECTED]> wrote:
Hi,
I think do via ajax would be nice.
Indeed, I dont have much problem with how to do it,
but my problem is how to create a custom component
that need a panel as
parameter..
how to associate folder's markup (that should be
fixed? for reuse) with
the panel's id? Do I have to fix the panel's id to fit
with my folder's
markup? any better way?
Thanks,
Black zabaha


Igor Vaynberg wrote:
> do you want this to work via ajax or just
_javascript_?
>
> -Igor
>
>
> On 10/19/06, *blackboy zabaha*
<[EMAIL PROTECTED]
> <mailto: [EMAIL PROTECTED]>> wrote:
>
>     Hi,
>
>         I need a custom component that is a box of
content
>     with a title bar,
>     when I click or double click on title bar, it
will
>     collapse/expand its
>     content, I don't know the good name for it, so I
just
>     call it a
>     'folder', also it could remember its
collapse/expand
>     state when form
>     submitted.
>
>         Ex.
>
>        <!-- Markup file of this component may look
like
>     this. -->
>         <script>
>         function collapseOrExpand() {
>            var elm =
document.getElementById('folder');
>            var disp = elm.style.display;
>            elm.style.display = (disp == 'none' )?
'block'
>     : 'none';
>         }
>         </script>
>
>         <table>
>            <tr>
>               <td
><span
>     wicket:id="folderTitle">xxx</span></td>
>               <td id='folder' style='display:block'>
>                  <!-- Put a panel here -->
>                  <span wicket:id="aPanel">xxx</span>
>               </td>
>             </tr>
>         </table>
>
>         /**
>          * Java code : Give it a title and the
custom
>     panel as its content..
>          */
>         form.add(new Folder(folderTitle, aPanel));
>
>
>            Please give me some example how to start
to do
>     this..
>
>
>         Thanks,
>         Black zabaha
>
>
__________________________________________________
>     Do You Yahoo!?
>     Tired of spam?  Yahoo! Mail has the best spam
protection around
>     http://mail.yahoo.com
>
>
-------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to
support web services,
>     security?
>     Get stuff done quickly with pre-integrated
technology to make your
>     job easier
>     Download IBM WebSphere Application Server
v.1.0.1 based on Apache
>     Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto: Wicket-user@lists.sourceforge.net>
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support
web services, security?
> Get stuff done quickly with pre-integrated
technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/wicket-user
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to