On Tue 18.02.2014 04:15, BenHoit wrote:
> i have tried it but i don't know how to replace the new
> PackageResourceStream(HomePage.class, "ScalaOverview.pdf")
> i haven't a resourceStream but a string (or a byte[])

Try this:

private final IResource resource;

/**
 * Constructor.
 * 
 * @param id ID of component
 *
 */
public AbstractXmlContentIframe(final String id) {
        super(id);

        resource = new ResourceStreamResource(new 
AbstractStringResourceStream("text/xml") {
                private static final long serialVersionUID = 1L;

                @Override
                protected String getString() {
                        // Return your XML here
                }
        });
}


  -Timo

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

Reply via email to