See the examples at http://www.wicket-library.com/wicket-examples/customresourceloading/
On Tue, May 15, 2012 at 10:36 AM, kjarbr <kja...@gmail.com> wrote: > I'm trying to use setMarkup with a panel. This is from my panel's > constructor: > > String panelMarkup = StringBuilder... > StringResourceStream stream = new StringResourceStream(panelMarkup, > "text/html"); > MarkupResourceStream markupStream = new MarkupResourceStream(stream); > IMarkupFragment fragment = new Markup(markupStream); > setMarkup(fragment); > > This throws WicketNotSerializableException: Unable to serialize class: > org.apache.wicket.markup.Markup > > Does anyone know how to do this right? > > Thanks. > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-use-setMarkup-tp4634090.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