Re: Efficiency of 1.5 MountMapper weighted/matching algorithm

2011-10-17 Thread Martin Grigorov
We have already discussed this problem before. I agree that caching will improve the performance and I'll try to implement it soon. Topicus' (Martijn's daily job) biggest application have ~ 700 mounted pages and this code is not a hotspot for them, that's why no one spend time on optimizing it so

Re: NonCachingImage not showing image with GAE

2011-10-17 Thread Martin Grigorov
On Fri, Oct 14, 2011 at 8:33 PM, Ian Marshall ianmarshall...@gmail.com wrote: I have solved my problem by using a class that descends from ByteArrayResource and which overrides getData(IResource.Attributes). I supply an instance of this class to my NonCachingImage instead of a model. I thank

Wicket 1.4.19 released

2011-10-17 Thread Martin Grigorov
This is the nineteenth maintenance release of the Wicket 1.4.x series. This release brings over 13 bug fixes and 5 improvements. Subversion tag http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.19 Changelog

can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread TimmyDeng
I need to use DropdownChoice in a ModelWindow, but if i get the selected value in the onSubmit method of a form, the ModelWindow will be closed. Can you please tell me another way to get the selected value, not in the onSubmit method of a form -- View this message in context:

Re: can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread manuelbarzi
add ajax behavior, listen to onchange event, and then capture the new value. . On Mon, Oct 17, 2011 at 12:18 PM, TimmyDeng dengxiaoxiax...@gmail.com wrote: I need to use DropdownChoice in a ModelWindow, but if i get the selected value in the onSubmit method of a form, the ModelWindow will be

Re: can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread TimmyDeng
Thanks for your quick reply. However, if the dropdownchoice is not in a form, then the onSelectionChanged() method will not be executed. So cannot get the changed value. Do you have further suggestion? -- View this message in context:

Re: Retain Focus After Ajax Update

2011-10-17 Thread vineet semwal
use ajaxforcomponentupdatingbehavior for the event onblur/onchange or any other depending on your need set the focus on the formcomponent ajaxrequesttarget.focuscomponent(component) On Mon, Oct 17, 2011 at 5:04 PM, SreedharGanduri sreedhar.gand...@gmail.com wrote: Hi, I have a form, and list

Re: can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread manuelbarzi
please, note that wicket-users forum is plenty full of examples like this, so the forum, and so the official wicket-examples. a good suggestion is to deeply look there for an answer before posting. as suggested before, may you add onchangeajaxbehaviour to your dropdownchoice, as shown in the

Re: Retain Focus After Ajax Update

2011-10-17 Thread Martin Grigorov
On Mon, Oct 17, 2011 at 3:17 PM, vineet semwal vineetsemwal1...@gmail.com wrote: use ajaxforcomponentupdatingbehavior for the event onblur/onchange or any other depending on your need set the focus on the formcomponent ajaxrequesttarget.focuscomponent(component) Or just tell Wicket to not

Re: UTF-8 not working

2011-10-17 Thread Mihai Postelnicu
What i did to make sure this works is everything you did + encodeURIComponent(value) http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp Never had any other encoding problems in any browser afterwards. On Sun 16 Oct 2011 11:56:14 AM EEST, Attila Király wrote: Please provide a small

Re: Strange issue in RequestCycle

2011-10-17 Thread Igor Vaynberg
On Sun, Oct 16, 2011 at 8:56 PM, Kent Tong sm-k...@cpttm.org.mo wrote: Hi Igor, Thanks for the reply! the usecase is simple, one requesthandler handing work off to another one. an easy example is a request handler that handles a callback (such as a link being clicked) scheduling the handler

Validating in form returns always error but textfield has a value

2011-10-17 Thread rawe
I'm using a LinkTree and to each node a panel is referenced. Both is embedded in a form component. The panels have textfields. When using a submit button or a SubmitLink the input of the textfields is valid and then also validation is valid. But: My intension is also to validate the form each

Re: Validating in form returns always error but textfield has a value

2011-10-17 Thread manuelbarzi
is the form submitted each time a node is changed? if not, then it could be normal you read nulls, as the values are still on browser, but havent flown to server. On Mon, Oct 17, 2011 at 5:11 PM, rawe ralph.wey...@dachser.com wrote: I'm using a LinkTree and to each node a panel is referenced.

Re: Validating in form returns always error but textfield has a value

2011-10-17 Thread rawe
Yes, each time I change the node the form is submitted. The textfields in the panel are initialized via PropertyModel and are set to required. When I want to change the node I call validate() but the rawInput of textfields is null. -- form.hasError() is always true, but there are values in the

Re: Validating in form returns always error but textfield has a value

2011-10-17 Thread manuelbarzi
may you provide a code shot for review? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Redirect to External Application

2011-10-17 Thread martin.dilger
Hi, we have the following use case - we need to redirect to an external application, that handles authorization for us (cookie creation etc.). For this, we need to redirect to this application and handle a callback url, where this external application redirects after succesful login. I tried

Re: Redirect to External Application

2011-10-17 Thread Igor Vaynberg
your url is missing the query string -igor On Mon, Oct 17, 2011 at 12:22 PM, martin.dilger martin.dil...@googlemail.com wrote: Hi, we have the following use case - we need to redirect to an external application, that handles authorization for us (cookie creation etc.). For this, we need to

RE: Efficiency of 1.5 MountMapper weighted/matching algorithm

2011-10-17 Thread Chris Colman
We have already discussed this problem before. I agree that caching will improve the performance and I'll try to implement it soon. Cool! Topicus' (Martijn's daily job) biggest application have ~ 700 mounted pages and this code is not a hotspot for them, that's why no one spend time on

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-17 Thread exl
Martin Grigorov-4 wrote: What do you think? I think this problem deserves a ticket to be discussed in more details. I'd like to see this resolved for the dynamic image case. Example use case: 1. I have a form that I'd like to re-use between two roles - Admin and Read-only User. That is,