...but if you don't like using your html file as a package resource you
can place it in a web app folder and use ContextRelativeResource
Hi,
you can place HTML file next to page class, then use PackageTextTemplate
PackageTextTemplate textTemplate = new PackageTextTemplate(pageClass,
"yourHTMLfile.html");
textTemplate.getString() ;
I have a fancy wicket app...
I have a textarea on a page...
I have an HTML file full of text..
I want the HTML content to go in the textarea....
Q1: where exactly in my web app folder hierarchy should I put my
source HTML
file ?
Q2: what is the best way to then read the contents of that file into the
model of my textarea component?
TIA
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/read-html-file-to-string-tp4651906.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]