Re: wicket 1.5, css resourcereference from string?

2010-10-10 Thread m j
I actually just made a youtube video how to add css/js to a page. See it here: http://www.youtube.com/watch?v=9toRTCFJf3Y Though I did not cover textemplateresourcereference. It is just as Igor described but now you can see the complete code if necessary. On Fri, Oct 8, 2010 at 12:50 PM, nino

Re: wicket 1.5, css resourcereference from string?

2010-10-08 Thread nino martinez wael
Has someone an idea? I am just trying to read a custom css from a string and render it as a reference on the page. Do I need to register the reference somewhere or sormething? 2010/10/7 nino martinez wael nino.martinez.w...@gmail.com Hi I cant get below working: public void

Re: wicket 1.5, css resourcereference from string?

2010-10-08 Thread Igor Vaynberg
what you are trying to do doesnt make sense, think about it. how is wicket supposed to build a url to your anonymous reference instance? you have two options, use renderCssReference(String url) to output the url to your custom css or if you need to stream it from somewhere inaccessible by the

Re: wicket 1.5, css resourcereference from string?

2010-10-08 Thread nino martinez wael
hmm right, could I just embed it in the html page then, I guess the answer is yes? I guess the reason I took this path was because of the texttemplateresourcereference which seems to do something much like this. regards Nino 2010/10/8 Igor Vaynberg igor.vaynb...@gmail.com what you are trying

wicket 1.5, css resourcereference from string?

2010-10-07 Thread nino martinez wael
Hi I cant get below working: public void renderHead(IHeaderResponse response) { super.renderHead(response); if (wallboardConfigurationModel.getObject().hasCustomCss()) { final StringResourceStream stringResourceStream = new StringResourceStream(