Re: how to update a label on a tree node selection

2007-11-24 Thread Timo Rantalaiho
On Fri, 23 Nov 2007, rik rik wrote: Hi to all!I'm starting to use wicket and I'm happy using it :-)But I'm not able to update a label on a tree node selection, my code is this Label labelNode=new Label(labelNode,label value); LinkTree tree=new LinkTree(tree,dtm) {@Override

Re: Different form validation behavior for each submit button.

2007-11-24 Thread Timo Rantalaiho
On Fri, 23 Nov 2007, John Krasnay wrote: AFAIK Wicket replaces any nested forms with spans to preserve HTML correctness. So the whole form is submitted from an HTTP perspective, divs surely. Works like a charm in 1.3. Best wishes, Timo

Re: Question about JavaScript validation

2007-11-24 Thread Timo Rantalaiho
On Fri, 23 Nov 2007, Java Programmer wrote: Is there any simple way to generate javascripts to validate forms against validation rules provided by Wicket Validators e.g. RequiredValidator? I have on mind client side validators to check is fields not empty, or provided passwords match. For now

Re: Jasypt + ICrypt + ICryptFactory

2007-11-24 Thread Johan Compagner
Dont know for sure but didn't we also encrypt cookies (form data) 2007/11/22, Daniel Fernández Garrido [EMAIL PROTECTED]: Hello everyone, I am about to release a new version (1.4) of Jasypt [http://www.jasypt.org], and I am considering the addition of some wicket integration features for

Re: howto JSON Wicket works?

2007-11-24 Thread Johan Compagner
Which part goes wrong? Do you see the request being send? Why do this though json? If you need json objects on the server why not using a normal form post and create the json object on the server? 2007/11/24, Pen [EMAIL PROTECTED]: Greetings, I want to know how to handle the Jquery, JSon

Re: Question about JavaScript validation

2007-11-24 Thread Johan Compagner
I agree that is is nice to have the simple field validation done in javascript on the client side. But this is an add on, the same validation has still to be done on the server anyway. But in the further we could have some validations that also contribute some javascript to the output which does

Re: Question about JavaScript validation

2007-11-24 Thread Java Programmer
Thank you for the answers, I agree that server side validation is more important, from e.g. security reasons, but if you make something we called now Web 2.0 application is nice to have also client side validations scripts. So I can check if login is free to use via Ajax, but checking if password

Re: howto JSON Wicket works?

2007-11-24 Thread Pen
I don't know how to get the postdata from the request object in wicket. I do see the request being sent. As you see from the example I am struck there, I don't know how to proceed further. This is just a basic example of round trip using Json, AJax and wicket through form submit. You get the

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Ryan Sonnek
I'm trying to accomplish the same thing and think that wicket should provide such an API. all of the issues mentioned are well known issues and other web frameworks still provide an API and just acknowledge the limitations. This is pretty important for me as I can't necessarily hardcode the url

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-24 Thread Al Maw
Edvin Syse wrote: Johan Compagner skrev: BodyOnLoadContainer is dropped because you shouldn't try to generate body onload=xxx What you should do is have a header contributor and add call IHeaderResponse.renderOnLoadJavascript(String javascript); OK. Maybe one of you guys could remove the

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Jonathan Locke
yeah, wicket should be able to find the base url of your application. i've had to do this in a couple of projects by hand. /unfortunately/ i don't think there's any container-independent way of doing this until a first request has come in for processing. before that point in time, it seems

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Al Maw
Oliver Lieven wrote: is there a way to determine the complete, absolute URL to a mounted page (including protocol, host, port, application, filter and destination page)? I need this to be able to send a link to a Registration-Confirmation page to a user via email. Ah, yes, I've been meaning