Re: Wicket as a templating engine

2012-02-18 Thread pkc
Interesting. I may try to make a generic wicket:insert=quot;abc.xyzquot; tag that uses the page's default property model to resolve the abc.xyz. Will this work? Two other cool things I'm looking for: 1) Does wicket:extend support a codeBehind attribute? Say I have 20 stateless pages and I

Re: Slow rendering

2012-02-18 Thread Jürgen Lind
Hi, thank you for your input on how to attack my problem... As it turned out, the simplest way to see where the time is spent, was to override the render method of various components. I had used onBeginRender and onAfterRender before, but they seem to be called asymetrically so I was not able

Component specific JavaScript

2012-02-18 Thread Jürgen Lind
Hi, I was wondering if there is any kind of best practice to add specific javascript to a component. I often have the case, where a piece of javascript needs to run when the component is rendered as part of full-page request, and then subsequently as part of a self-triggered Ajax-Request or as

Re: Component specific JavaScript

2012-02-18 Thread Christoph Leiter
Hello Juergen, you can register a function that gets called when wicket creates a new element in the DOM: Wicket.Event.subscribe('/dom/node/added', function(element) { // do stuff }); You can also use the '/dom/node/removing' channel. Hope this helps. Christoph Jürgen Lind

Re: Component specific JavaScript

2012-02-18 Thread Jürgen Lind
Hi Christoph, thank you for your reply, I did not know that such a method exists (does it for 1.4 or is this already Wicket 1.5). An secondly: are these handlers fired on a ajax update of an existing DOM Element or only when it is added? And where would I put the Javascript that registers the

no input when using a link

2012-02-18 Thread lang
I made a login form. The user can click on the link I forgot my password In the program I want to read the input email address field. But it is always empty. When I use the ok button i can read the email field succesfully. What to do? -- View this message in context:

RE: no input when using a link

2012-02-18 Thread Chris Colman
What Wicket class did you use for the I forgot my password button. I think it has to be one of the 'submitting' types for the model to be updated. -Original Message- From: lang [mailto:delan...@telfort.nl] Sent: Sunday, 19 February 2012 8:48 AM To: users@wicket.apache.org Subject: no

AjaxLink.onClick() Not Triggered

2012-02-18 Thread Richard W. Adams
I have an Ajax link in a drop down menu, created like this: final MenuChoice item = new MenuChoice(Delete) { private static final long serialVersionUID = 1L; @Override protected AbstractLink newLink(final String id) {

Re: no input when using a link

2012-02-18 Thread Jeremy Thomerson
Chris is right - use SubmitLink On Sat, Feb 18, 2012 at 4:52 PM, Chris Colman chr...@stepaheadsoftware.comwrote: What Wicket class did you use for the I forgot my password button. I think it has to be one of the 'submitting' types for the model to be updated. -Original Message-

Re: Serving different content depending on User Agent

2012-02-18 Thread Jeremy Thomerson
On Mon, Feb 13, 2012 at 8:21 AM, Richard W. Adams rwada...@up.com wrote: Could someone explain the meaning of the string argument to Session.setStyle()? Unfortunately, the javadocs give no clue, other saying that a skin can be used. Is the string the name of a stylesheet file, or something

Re: Serving different content depending on User Agent

2012-02-18 Thread Martin Makundi
Also there is: https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html https://cwiki.apache.org/OOOUSERS/branding-style-guide.html 2012/2/19 Jeremy Thomerson jer...@wickettraining.com: On Mon, Feb 13, 2012 at 8:21 AM, Richard W. Adams rwada...@up.com wrote: Could