-Igor
On 10/19/06, blackboy zabaha <[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
_______________________________________________
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