Is changing component hierarchy in onBeforeRender not recommended ?

2007-12-06 Thread rkanadam

Hi,

I am using onBeforeRender for setting the visibility of some children. 
Wanted to know if this was ok or was dangerous and not recommended. 
Could someone more knowledgeable help please ?


Thanks,
Raghu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Border support broken ?

2007-12-05 Thread rkanadam
Is perchance border support broken in 1.3 rc1 or am I using it in the 
wrong way... ?


BoxBorder border = new BoxBorder (borderId);
border.add (new Label (label, Hello World));

gives a Did you forget to add it to the markup... ? exception.

Thanks,
Raghu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Border support broken ?

2007-12-05 Thread rkanadam

Igor Vaynberg wrote:

what does your markup look like?

-igor

On Dec 5, 2007 9:25 PM, rkanadam [EMAIL PROTECTED] wrote:
  

Is perchance border support broken in 1.3 rc1 or am I using it in the
wrong way... ?

BoxBorder border = new BoxBorder (borderId);
border.add (new Label (label, Hello World));

gives a Did you forget to add it to the markup... ? exception.

Thanks,
 Raghu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  
I am sorry looks like something is totally wrong with the way I am using 
borders

will appreciate any help

HomePage.java

import wicket.markup.html.WebPage;
import wicket.markup.html.border.BoxBorder;

@SuppressWarnings(serial)
public class HomePage extends WebPage {
   public HomePage() {
   final BoxBorder border = new BoxBorder (container);
   add (border);
   border.add(new Label(label, Hello World));
   }

   public boolean isAccessible() {
   return true;
   }
}



HomePage.html
html
   body
   span wicket:id = container/span
   /body
/html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]