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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

Reply via email to