Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-08-08 Thread Tremelune
Have you come up with workable code? I'm about to do what you have just done with freemarker. Thanks again igor (you always seem to be able to fix any problems I'm having getting to grasps with wicket) I've now got a basic IResponseFilter running that will stick data into freemarker tags. At

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-08-08 Thread Tremelune
Hm, still a good question. How do you get the IResponseFilter in there? There doesn't seem to be a way to do anything with the RequestCycle, and getApplication().getRequestCycleSettings() doesn't seem to have a place to set the IResponseFilter...I would also like to ensure that the custom

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-08-08 Thread Igor Vaynberg
it is a global thing, so it will be applied to all request. getRequestCycleSettings().getResponseFilters().add(new MyFIlter()); -igor On 8/8/07, Tremelune [EMAIL PROTECTED] wrote: Hm, still a good question. How do you get the IResponseFilter in there? There doesn't seem to be a way to do

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-08-08 Thread Andrew Moore
Hi, I didn't find a solution, I ended up just using freemarker and servlets for pages where I needed to do this which isn't too bad for me as I've two main sections to my application one uses wicket and the other uses freemarker. Have you come up with workable code? I'm about to do what you

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-08-08 Thread Igor Vaynberg
you couldve used a freemarkerpanel i suppose. depends on the usecase. -igor On 8/8/07, Andrew Moore [EMAIL PROTECTED] wrote: Hi, I didn't find a solution, I ended up just using freemarker and servlets for pages where I needed to do this which isn't too bad for me as I've two main

[Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Andrew Moore
Hi, I'm currently writing a CMS in wicket. One of the things I'm wanting to do is make it nice and flexible to be able to design new templates for rendering the page. I'm looking at producing an image gallery at the moment. For the moment I'm using dummy.jpg or something similar in the html

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Erik van Oosten
Hi Andrew, Your use-case is exactly what Wicket is about. In the template file, use wicket:id attributes on the img tag. Place these tags in some kind of container (span or div element) to be able to repeat it. In the code you can attach an instance of Image (or variations, see javadoc). Use a

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Andrew Moore
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

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Erik van Oosten
Hi Andrew, I see. Yes that makes it quite different. I am not knowledgeable enough on dynamic templates. So other could help you better. There are a few other attempt to write Wicket components for a CMS. Perhaps you can learn from those. http://burgerweeshuis.sourceforge.net/

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Eelco Hillenius
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

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Andrew Moore
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

Re: [Wicket-user] Replace non-wicket attributed sections of a html document

2007-04-24 Thread Igor Vaynberg
see IResponseFilter, install your own and you are good to go. -igor On 4/24/07, Andrew Moore [EMAIL PROTECTED] wrote: 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