Re: Insert dynamic/external HTML string in a page

2008-03-20 Thread mmocnik
Thank you all. Works like a charm. Regards, Marko -- View this message in context: http://www.nabble.com/Insert-dynamic-external-HTML-string-in-a-page-tp16141336p16177878.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Martijn Dashorst
://www.nabble.com/Insert-dynamic-external-HTML-string-in-a-page-tp16141336p16141336.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Erik van Oosten
You were on the right track, label is the right choice. You need to provide Label a model that retrieves the string from your db. How you write that model is up to you. (I guess you already have this part.) If you do not want the encoding, call setEscapeModelStrings(false) on the label.

Insert dynamic/external HTML string in a page

2008-03-19 Thread mmocnik
any Component, that would fit here. Any sugestions on a component or alternate aproaches? Thanks and regards, Marko -- View this message in context: http://www.nabble.com/Insert-dynamic-external-HTML-string-in-a-page-tp16141336p16141336.html Sent from the Wicket - User mailing list archive

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Martin Makundi
I have a somewhat similar situation without a solution (yet). I have some static resources (images and css files) on the server. Whenever I deploy the application, the URL of those resources depend on the environment as the application context root changes. What is the best/only way to tackle

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread James Carman
On 3/19/08, Martin Makundi [EMAIL PROTECTED] wrote: I have a somewhat similar situation without a solution (yet). I have some static resources (images and css files) on the server. Whenever I deploy the application, the URL of those resources depend on the environment as the application

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Martijn Dashorst
remove the /APPLICATION_CONTEXT/ from the src field. If they are in your HTML document when Wicket reads it into the cache, these attributes will be made context relative automatically. Obviously this doesn't work for img tags that are inserted through a label, as Wicket doesn't know what you

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Martin Makundi
Well.. my specific experience is from having html head script type=css.. .body { background : url(images/bgimage.jpg); } /script I have had difficulties in getting he bg image to display properly if defined as above without proper context path, because it is different from the application

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Matthew Young
background : url(images/bgimage.jpg); I think you need to put a / in front of images like: background : url(/images/bgimage.jpg); On Wed, Mar 19, 2008 at 8:54 AM, Martin Makundi [EMAIL PROTECTED] wrote: Well.. my specific experience is from having html head script type=css.. .body {

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Martin Makundi
/images will point to the server root localhost/images without the contextRoot, i.e., it should be /contextRoot/images .. Now I must manually update the contextRoot depending on where I deploy it. ** Martin 2008/3/19, Matthew Young [EMAIL PROTECTED]: background : url(images/bgimage.jpg); I