RE: Freemarker+ExtJS vs Wicket questions

2011-12-06 Thread Wilhelmsen Tor Iver
Plus another problem I see is if I have to use separate templates for each script tag I may end up with lots of small files so my logic will be peppered around. How is that much different from using a bunch of Wicket classes with templates instead of placing all webapp logic in a

Re: Freemarker+ExtJS vs Wicket questions

2011-12-05 Thread Brian Mulholland
As a Wicket neophyte myself I can't comment on most of this, but we did just look deeply into the notion of subclassing components for the purpose of making them render as rich text widgets from ExtJS. Having just done that I will say that there are ALOT of little hidden nits and difficulties

Re: Freemarker+ExtJS vs Wicket questions

2011-12-05 Thread Martin Grigorov
Hi, On Mon, Dec 5, 2011 at 1:23 PM, Brian Mulholland blmulholl...@gmail.com wrote: As a Wicket neophyte myself I can't comment on most of this, but we did just look deeply into the notion of subclassing components for the purpose of making them render as rich text widgets from ExtJS.  Having

Re: Freemarker+ExtJS vs Wicket questions

2011-12-05 Thread Brian Mulholland
I'm not sure what exactly you tried but here is how I'd approach it: - create a Wicket component that purpose is to render just the HTML needed by the ExtJS component e.g. div id=someId/div for this simple HTML snipper you can just use WebMarkupContainer, but for something more complex

Re: Freemarker+ExtJS vs Wicket questions

2011-12-05 Thread Andrei Voden
I think using String.format for that is breaking idea of MVC where you endup writing JScript code in Java. Sounds really awkward. I guess I can hookup Velocity or Freemarker but isnt whole point of Wicket is to replace that? Plus another problem I see is if I have to use separate templates for

Re: Freemarker+ExtJS vs Wicket questions

2011-12-05 Thread Martin Grigorov
On Mon, Dec 5, 2011 at 7:52 PM, Andrei Voden are...@gmail.com wrote: I think using String.format for that is breaking idea of MVC where you endup writing JScript code in Java. Sounds really awkward. I guess I can hookup Velocity or Freemarker but isnt whole point of Wicket is to replace that?

Re: Freemarker+ExtJS vs Wicket questions

2011-12-04 Thread Martin Grigorov
Hi, I don't want to convince you anyhow. Just responding to your questions/observations. On Sun, Dec 4, 2011 at 6:30 AM, Andrei Voden are...@gmail.com wrote: Hi. I have been developing for a while using Freemarker + some JS frameworks (like ExtJS, Dojo and JQuery) and Java as Model building on

Re: Freemarker+ExtJS vs Wicket questions

2011-12-04 Thread Andrei Voden
Thank you for your input. Really helping me to grasp it. Question on #4 in Cons: what I ment is to generate templated content outside of the tags. Like for example I have: script .templated code. /script Is that doable? Sorry if that sounds newbeesh. Andrei

Re: Freemarker+ExtJS vs Wicket questions

2011-12-04 Thread Martin Grigorov
o.a.w.Component and Behavior classes have method #renderHead(IHeaderResponse) with IHeaderResponse#renderXyz methods you can contribute JS, CSS and plain text to the page. It is up to you how you'll generate the constribution. In TagIt component I used TextTemplate to prepare the template and

Freemarker+ExtJS vs Wicket questions

2011-12-03 Thread Andrei Voden
Hi. I have been developing for a while using Freemarker + some JS frameworks (like ExtJS, Dojo and JQuery) and Java as Model building on back-end. Now I hear lots of talks about Wicket so Im trying to understand pros and cons. After reading intro in Wicket I have mixed feelings. Below are my