Interesting question and I'm not sure if it is possible, but my guess would be to start off looking at the IMarkupLoader and IMarkupResourceStreamProvider interfaces and implementing classes and see how far you get from there I'd be interested in anything you find / implement that actually gets this done!
Interesting question and I'm not sure if it is possible, but my guess would be to start off looking at the IMarkupLoader and IMarkupResourceStreamProvider interfaces and implementing classes and see how far you get from there. I'd be interested in anything you find / implement that actually gets this done!
2 Thanks for the hint. That did it! The MarkupContainer has to implement IMarkupResourceStreamProvider and its method getMarkupResourceStream().
Also, you create a class that derives (for example) from AbstractResourceStream. There, you can implement a method that just returns an InputStream. GetMarkupResourceStream() then just returns an instance of this new class.
The javadoc says this was even transparent to caching. – Wolfgang Jan 18 '10 at 15:38.
You can read more about this here and here.
Another (simpler) way to do it would be to use a label with disabled markup escaping : Label label = new Label("id", "foobar"); label. SetEscapeModelStrings(false); add(label); Be careful though, as this might lead to security breaches (HTML/JS injection).
Thanks for your idea. I'm not sure if it's what I was looking for, though. I want to use the dynamic markup to be used by a MarkupContainer, i.e.
I expect certain wicket:ids in the markup and I want to add further components to the container which should then be mapped to those ids. I'm afraid that's not possible with your solution. – Wolfgang Jan 23 '10 at 11:44 Yup, you are right, my bad.
– Jawher Jan 26 '10 at 7:42.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.