Hmm...
You need to add your HeaderContributor in the panel / page that is the
content of your modal window.
(I'm not sure, but maybe you can also put it in the modal's constructor).
Not in the "onClick" method.

As for setting CSS class name, I would start by using in the CSS the wicket
classes (w_caption Text for example) and see what happens.
Then, if all is OK, I would try setting my own CSS classes.


Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Mon, Dec 8, 2008 at 7:50 AM, Ashis <[EMAIL PROTECTED]> wrote:

>
> Thanks,
> Eyal Golan
>
> But adding header contibution does not work. I have following css and code.
> ****CSS********
> span .interVeil{
> background-color:fuchsia;
> color:lime;
>
> ******CODE*******
> public void onClick(AjaxRequestTarget target) {
>                 application = (Application) getParent().getModelObject();
>                 modal1.setTitle("Edit Application");
>                 modal1.setInitialHeight(365);
>                 modal1.setInitialWidth(830);
>                 modal1.show(target);
>                 add(HeaderContributor.forCss("common.css"));
>                 modal1.setCssClassName("interVeil");
>                }
>
> Your further suggestion will be greatly appreciated.
> --
> View this message in context:
> http://www.nabble.com/Changing-appearance-of-ModalWindow--tp20880252p20889846.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to