Add Background image to Modal Window

2014-09-29 Thread Ajayi Yinka
hi all, I have been looking for means to customize modal window background. How can this be achieved? -- Ajayi S . Yinka +2348022684477

Re: Add Background image to Modal Window

2014-09-29 Thread Martin Grigorov
Hi, ModalWindow sets CSS classes for its main panel, the title, the content, etc. If you use a Panel as content then you will need to add custom CSS rule to set the background image. If you use a Page as content then set the background image in your page's CSS. Martin Grigorov Wicket Training

Re: Add Background image to Modal Window

2014-09-29 Thread Ajayi Yinka
Thanks Martin, I am actually using Panel as content. I have added to the code modalWindow.setCssClassName(css/modal.css); But this seems to have no effect. Do I have to do any other thing? Appreciate a nice response from you. On 29 September 2014 09:09, Martin Grigorov mgrigo...@apache.org

Re: Add Background image to Modal Window

2014-09-29 Thread Martin Grigorov
Hi, modalWindow.setCssClassName(myModal); in some #renderHead(IHeaderResponse) in your page do: response.render(CssHeaderItem.forCss(.myModal {background-image: 'the/path/to/the/image.png'} )) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014

Wicket Bootstrap 0.9.6 is released

2014-09-29 Thread Martin Grigorov
Hi, Wicket Bootstrap 0.9.6 has been released and soon will be available at Maven Central. We've added some new components: - Ladda buttons - http://msurguy.github.io/ladda-bootstrap/ - X-Editable behavior - http://vitalets.github.io/x-editable/ - Twitter Typeahead v 0.10 -

List editor

2014-09-29 Thread Andreas Lundblad
I have written my own FormComponentPanel for my domain object, MyObject. Now I'd like to be able to have a form component for editing ListMyObject. The best resource I can find on this subject is http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ by Igor Vaynberg However,

Re: List editor

2014-09-29 Thread Martin Grigorov
Hi, I am not aware of a newer article on this topic. - ListItem - use the one from the article - getModelObject() - getDefaultModelObject() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 3:59 PM, Andreas Lundblad andreas.lundb...@gmail.com

Re: Add Background image to Modal Window

2014-09-29 Thread Ajayi Yinka
Thanks Martin, I added the following code to my Panel in the modalwindow; @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(CssHeaderItem.forCSS(.myModal {background-image:'images/logo.png'; background-color:#A1; },

Re: Add Background image to Modal Window

2014-09-29 Thread Martin Grigorov
Hi, Open the browser Dev Tools and play with the CSS rules until you make it as you wish. Then put the working CSS rules in your code. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 29, 2014 at 4:24 PM, Ajayi Yinka iamstyaj...@googlemail.com wrote: