Use html from url as markup

2011-07-11 Thread Marieke Vandamme
Hello, 

Is it possible to use html from an url as Markup-code for a WebPage? 
I thought of doing something like this: 

/public class MarkupTestPage extends WebPage implements
IMarkupResourceStreamProvider {

public MarkupTestPage(){
}

public IResourceStream getMarkupResourceStream(MarkupContainer mc,
Class? type) {
  return new UrlResourceStream(new
URL(http://myserver.tvh.com/test.html;));
}
}/

This works, but I want to use this as parent html, and include the html from
wicket:head and wicket:extend tags inside my MarkupTestPage.html.
My html returned from location http://myserver.tvh.com/test.html has a
wicket:child/ tag inside. 
So somehow before returning the UrlResourceStream, it should be merged.

Thanks for any help! Kind regards, Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-html-from-url-as-markup-tp3658921p3658921.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Use html from url as markup

2011-07-11 Thread Martin Grigorov
Create a base page which includes its html from URL and a child page
which has wicket:head and wicket:extend/. And grand-child page if
needed.

On Mon, Jul 11, 2011 at 10:16 AM, Marieke Vandamme
marieke.vanda...@tvh.be wrote:
 Hello,

 Is it possible to use html from an url as Markup-code for a WebPage?
 I thought of doing something like this:

 /public class MarkupTestPage extends WebPage implements
 IMarkupResourceStreamProvider {

    public MarkupTestPage(){
    }

    public IResourceStream getMarkupResourceStream(MarkupContainer mc,
 Class? type) {
          return new UrlResourceStream(new
 URL(http://myserver.tvh.com/test.html;));
    }
 }/

 This works, but I want to use this as parent html, and include the html from
 wicket:head and wicket:extend tags inside my MarkupTestPage.html.
 My html returned from location http://myserver.tvh.com/test.html has a
 wicket:child/ tag inside.
 So somehow before returning the UrlResourceStream, it should be merged.

 Thanks for any help! Kind regards, Marieke Vandamme

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Use-html-from-url-as-markup-tp3658921p3658921.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Use html from url as markup

2011-07-11 Thread Marieke Vandamme
I've tried, 
but only getting the html from the parent page. What's between
wicket:extend-tags is'nt on it...

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-html-from-url-as-markup-tp3658921p3659001.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Use html from url as markup

2011-07-11 Thread Marieke Vandamme
I think that the html from the page is just rendered through the
UrlResourceStream, and that this one clears the non-html standard tags like
wicket:child/. Then the child-page tries to put the code between this
wicket:child-tags, but they are lost. Is that possible?

Thanks again for any help! Kind Regards, Marieke Vandamme

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-html-from-url-as-markup-tp3658921p3659156.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org