You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by eaglei22 <jc...@gmail.com> on 2014/07/28 16:46:19 UTC
Dynamic HTML page with Wicket?
Hello,
I have an old application to re-write. It is a provisioning tool for
different companies, and each company can create their own main page which
tells a little about themselves, contact information etc.. This
functionality is done by using a text box, and letting the user write free
html, and then the code just renders the html..
If I wanted to do this with Wicket, what would be the most efficient way? Is
it better to not use Wicket to do this? And use PrintWriter? Or is there a
better way to have the user create the html, and store it to a file, and
then feed it in to let Wicket create the page each time?
Thanks!
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-HTML-page-with-Wicket-tp4666769.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Dynamic HTML page with Wicket?
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Maybe you can also use?
-------------------------------------------
/**
* To be implemented by MarkupContainer which wish to implement their own
algorithms for loading the
* markup resource stream.
* <p>
* Since 1.5 you may also use Component.setMarkup() or getMarkup() to
attach Markup to your
* component.
* <p>
* Note: IResourceStreamLocators should be used in case the strategy to
find a markup resource is
* meant to be applied to ALL components of your application.
* <p>
* Note: See IMarkupCacheKeyProvider if you wish to implement your own
cache key algorithm, which
* sometimes is useful when the MarkupContainer implements its own
IMarkupResourceStreamProvider as
* well.
*
* @see IMarkupCacheKeyProvider
*
* @author Juergen Donnerstag
*/
public interface IMarkupResourceStreamProvider {
---------------------------------------------------------------------------------
On Mon, Jul 28, 2014 at 10:23 PM, eaglei22 <jc...@gmail.com> wrote:
> great. Thanks!
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Dynamic-HTML-page-with-Wicket-tp4666769p4666778.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Regards - Ernesto Reinaldo Barreiro
Re: Dynamic HTML page with Wicket?
Posted by eaglei22 <jc...@gmail.com>.
great. Thanks!
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-HTML-page-with-Wicket-tp4666769p4666778.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Dynamic HTML page with Wicket?
Posted by Andrea Del Bene <an...@gmail.com>.
If you decide to go with Wicket, you could simply use a Label component
to display the saved HTML. You just have to call
setEscapeModelStrings(false) to tell the label to not escape the HTML
you want to display.
> Hello,
>
> I have an old application to re-write. It is a provisioning tool for
> different companies, and each company can create their own main page which
> tells a little about themselves, contact information etc.. This
> functionality is done by using a text box, and letting the user write free
> html, and then the code just renders the html..
>
> If I wanted to do this with Wicket, what would be the most efficient way? Is
> it better to not use Wicket to do this? And use PrintWriter? Or is there a
> better way to have the user create the html, and store it to a file, and
> then feed it in to let Wicket create the page each time?
>
> Thanks!
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-HTML-page-with-Wicket-tp4666769.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org