I tried Eelco's approach and it's quite simple with Label,
just do some tweak on it:

   label.setRenderBodyOnly(true);
   label.setEscapeModelStrings(false);

It works !
Thank for the advice.

On 12/7/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Or do something like Velocity panel does (or even simpler, put your
contents in a Label) and wrap it in a bookmarkable page (which you
could mount if you want).

Eelco


On 12/7/05, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> Creata a subclass of DynamicByteArrayResource and implement byte[] getData()
> which returns your html file.
>
> You will need to register your resource with the application before you can
> use. Would look something like that:
> Application.get().getSharedResources().add("exportResource",
> new ExportResource());
>
> After its registered you can build a url for it using the key
> "exportResource" by calling urlFor on the page   String
> url="">>
> and then you can use the ExternalLink to link to that url.
>
> Hope this helps,
> -Igor
>
>
>
>
>
> On 12/6/05, Ingram Chen < [EMAIL PROTECTED]> wrote:
> > Dear all,
> >
> >     We have a requirement which needs to load plain html data from
> database (CLOB)
> > and then a user can directly view loaded html page via click a hyperlink
> on the page.
> > I think the concept is similar to DynamicImageResource, but have no idea
> how to do
> > it with plain text.
> >
> > Any help is appreciated and many thanks in advance!
> >
> > --
> > Ingram Chen
> > Java [EMAIL PROTECTED]
> > Institue of BioMedical Sciences Academia Sinica Taiwan
> > blog: http://www.javaworld.com.tw/roller/page/ingramchen
>
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen

Reply via email to