« Return to Thread: Replace non-wicket attributed sections of a html document

Re: Replace non-wicket attributed sections of a html document

by Andrew Moore :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

I've had a go with the freemarker panel, and can get a simple example going.

The thing is, instead of having a panel with a span tag, I'd like to actually parse the whole .html template file that gets generated by wicket. Does anyone know if it's possible to do that?

Is there a way of getting at the whole markup response that's been generated and modifying it before it's rendered?


Eelco Hillenius wrote:
> Hi,
> Thanks for your reply.
> I'm familiar with wicket (reasonably anyway), that may not have been clear
> from the post.
> The admin of the CMS system is all using wicket, and I'm fairly happy with
> that.
>
> The situation is where the CMS content template pages are unknown in
> structure, but I just want to be able to insert a marker into the page to
> replace certain values (as I'm not sure which component the references may
> be in - ie in the src attribute of an img tag, or in a parameter passed to
> some javascript etc), so I can't map wicket components to the dynamic
> content.
>
> I've noticed the wicket velocity and wicket freemarker contrib projects,
> would these accomplish what I want?

Yep, I think that's the way to go. Or something similar. You basically
expose limited funcionality (e.g. via Velocity tools) and let the
users decide what they want to do with it.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

 « Return to Thread: Replace non-wicket attributed sections of a html document