yeah, i didnt really want to do this, but i didnt see any other way.
 
what i am doing currently is something like this
 
add(Component c) {
  AdapterPanel p=new AdapterPanel("id");
  add(p);
  p.add(c);
}
 
i dont see how to do that with the transparent component resolver because it internally adds a different object.
 
for my usecase it is enough to just have add() but you are right the remove methods would also have to be opened, but maybe not until someone wants them opened.
 
do you see another way to do what i want? cause if you can i am all for it. i will also try to rethink how i am doing things if you really think it is important to have those finalized.
 
-Igor


 
On 3/3/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
Igor,

I think there is a better way because you would need to remove final
from remove(), removeAll() etc. as well. If you do
panel.setTransparent(true) it is all done for you.

Juergen

---------- Forwarded message ----------
From: Igor Vaynberg <[EMAIL PROTECTED] >
Date: Mar 4, 2006 8:20 AM
Subject: [Wicket-autocvs] wicket/src/java/wicket
MarkupContainer.java,1.112,1.113
To: [EMAIL PROTECTED]


Update of /cvsroot/wicket/wicket/src/java/wicket
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30480/src/java/wicket

Modified Files:
       MarkupContainer.java
Log Message:
made add() nonfinal. for example, if i have a panel that acts as an
adapter for a repeater, i might want to forward the add call to the
repeater instead of adding the child directly to the panel.

Index: MarkupContainer.java
===================================================================
RCS file: /cvsroot/wicket/wicket/src/java/wicket/MarkupContainer.java,v
retrieving revision 1.112
retrieving revision 1.113
diff -C2 -d -r1.112 -r1.113
*** MarkupContainer.java        4 Mar 2006 00:31:47 -0000       1.112
--- MarkupContainer.java        4 Mar 2006 07:20:23 -0000       1.113
***************
*** 129,133 ****
        * @return This
        */
!       public final MarkupContainer add(final Component child)
       {
               if (log.isDebugEnabled())
--- 129,133 ----
        * @return This
        */
!       public MarkupContainer add(final Component child)
       {
               if (log.isDebugEnabled ())



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-autocvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-autocvs


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to