Re: uncaught exception in wicket-ajax.js

2010-05-16 Thread Igor Vaynberg
ive seen these types of things happen because of invalid markup -igor On Thu, May 13, 2010 at 10:20 AM, Ivan Zinchenko izinche...@gmail.com wrote: Hi all, I'm using ajax with wizard component and have a following problem. On one of my steps, I have a listview with check boxes inside and

Re: src tag changing

2010-05-16 Thread Igor Vaynberg
in your markup you should not try and account for the filter nesting, wicket will do it for you. so removing the ../ from your markup should fix the problem -igor On Fri, May 14, 2010 at 6:15 PM, hill180 hill...@gmail.com wrote: I have searched the web and all example don't seem to match with

Re: proble with AjaxLazyLoad in IE7 and IE8

2010-05-16 Thread Igor Vaynberg
are you using wicket 1.4.8? -igor On Sun, May 9, 2010 at 10:09 PM, Yadav yadav...@rediffmail.com wrote: Hi, I am using AjaxLazyLoad panel and it's working fine in mozilla firefox but in IE7 and IE8, it's not working. when i press F5 ( refresh page) than it's work. Please help !!! Thanks in

Re: Check and CheckGroup

2010-05-16 Thread Igor Vaynberg
the jira is open to everyone, please create the ticket yourself. -igor On Fri, May 14, 2010 at 11:13 AM, Zilvinas Vilutis cika...@gmail.com wrote: Overall - the Javadoc does not explain how it supposed to be used, please create a ticket for that. Thank you Žilvinas Vilutis Mobile:  

Implement Check Availability link

2010-05-16 Thread Apple Grew
I need to implement a Check Availability link. When this link is clicked it will check if the entered username exists for not For this link I have used AjaxLink. The problem is in AjaxLink's onClick I am not sure how will I fetch the value of the text filed - username? The model seems not to hold

Re: Implement Check Availability link

2010-05-16 Thread Martin Makundi
Use ajaxButton : form wicket:id=nameform input type=text wicket:id=namefield/ input type=button wicket:id=ajax-button-for-name-form/ /form ** Martin 2010/5/16 Apple Grew appleg...@gmail.com: I need to implement a Check Availability link. When this link is clicked it will check if the

jWicket 0.5.10

2010-05-16 Thread Stefan Lindner
jWicket 0.5.10 is now available at wicketstuff: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent Upgraded jQuery-ui to version 1.8.1 Stefan

Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
They already are in a form along with other text fields. I tired playing with AjaxSubmitLink, but here too I fail to fetch the username from model as other fields still do not have the required inputs, causing the form to report error. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On

Re: Implement Check Availability link

2010-05-16 Thread Martin Makundi
Make smaller NESTED form with only components that you need. ** Martin 2010/5/16 Apple Grew appleg...@gmail.com: They already are in a form along with other text fields. I tired playing with AjaxSubmitLink, but here too I fail to fetch the username from model as other fields still do not have

Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
They already are in a form along with other text fields. I tired playing with AjaxSubmitLink, but here too I fail to fetch the username from model as other fields still do not have the required inputs, causing the form to report error. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On

Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
Is there any other way around? Adding nested form will change my markup which I don't want to do just for this purpose. The solution I am looking for, is there any way I can capture the username's value using javascript and send to my component via Wicket's Ajax? Regards, Apple Grew my blog @

GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Alexandros Karypidis
Hi, I am unsing GMap2 from WicketStuff (http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2) and need to display a map in a pop-up dialog. I use JQuery for the dialog. When the Dialog comes up, the map's viewport is offset in relation to the window and only the

Re: GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Martin Funk
sorry my mind is in Sunday afternoon mode, and not able to wrap itself around this... could you come up with a Quickstart example? mf Am 16.05.2010 um 14:55 schrieb Alexandros Karypidis: Hi, I am unsing GMap2 from WicketStuff

Re: GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Alexandros Karypidis
Ok, looking at the sources, I found that WicketStuff adds a WebMarkupContainer which is used for the actual map. Unfortunately, it hides this object from its client code, so there's no way to access it and call gmap2container.getMarkupId(). It does however assign the class gmap to the

Re: GMap2 from wicketstuff: how to dynamically resize?

2010-05-16 Thread Alexandros Karypidis
I guess the description was rather complicated... Anyway, the thing is: the Map2 class from the Google Maps API, apparently looks at the location and size of a div tag used as its canvas, to do some setup at page load time. When the div it targets is hidden, its size/position attributes are

Re: Implement Check Availability link

2010-05-16 Thread vineet semwal
you can just do textfield.updateModel(),that will update textfield model for you,you can do it inside onerror of ajaxsubmitlink or inside a validator that you have written. if you just want to read textfield's user input use textfield.getconvertedinput(). On Sun, May 16, 2010 at 4:40 PM, Apple

Re: Check and CheckGroup

2010-05-16 Thread Zilvinas Vilutis
I wasn't aware, that anyone can register to ASF JIRA Done: https://issues.apache.org/jira/browse/WICKET-2873 Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Sun, May 16, 2010 at 12:32 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: the jira is open to everyone,

Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
Unfortunately textfield.getconvertedinput() return null. That's why I am stuck. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Sun, May 16, 2010 at 7:28 PM, vineet semwal vineetsemwal1...@gmail.comwrote: you can just do textfield.updateModel(),that will update textfield model

Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
Because the form was not submitting. You can use formcomponentupdatingbehavior. -- Jeremy Thomerson http://www.wickettraining.com On Sun, May 16, 2010 at 12:32 PM, Apple Grew appleg...@gmail.com wrote: Unfortunately textfield.getconvertedinput() return null. That's why I am stuck.

Re: Implement Check Availability link

2010-05-16 Thread Martin Makundi
Or you can convert the raw input /** * @param T * @param formComponent * @return T */ @SuppressWarnings(unchecked) public static T T getConvertedValue(FormComponentT formComponent) { try { if (formComponent instanceof AbstractSingleSelectChoice) { return (T)

Re: Implement Check Availability link

2010-05-16 Thread vineet semwal
should work,have you tried it in onerror method? On Sun, May 16, 2010 at 11:02 PM, Apple Grew appleg...@gmail.com wrote: Unfortunately textfield.getconvertedinput() return null. That's why I am stuck. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Sun, May 16, 2010 at 7:28

Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
It's not going to work if he's not using a form submitting behavior or else a custom behavior that grabs the value of the textfield and adds it to the URL as a query param, then his behavior can get this from the request. But the simplest way (as mentioned earlier) is to use

Re: Implement Check Availability link

2010-05-16 Thread vineet semwal
he is using the textfield inside form,ajaxsubmitlink itself has formsubmittingbehavior so i think it should work.. btw ajaxformcomponentupdatingbehavior is nice for this usecase. On Mon, May 17, 2010 at 2:44 AM, Jeremy Thomerson jer...@wickettraining.com wrote: It's not going to work if

Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
Ah, but he's *not* using the ajaxsubmitlink - which (again) is the problem. He said he tried it and it didn't work for him because other fields failed validation. Which is why he needs the behavior that only validates a single field. -- Jeremy Thomerson http://www.wickettraining.com On Sun,

Fwd: [Travel Assistance] - Applications Open for ApacheCon NA 2010

2010-05-16 Thread Jeremy Thomerson
Dear Wicket Community, Please look at the following message if you would like to apply for travel assistance to the upcoming ApacheCon North America, to be held November 1-5, 2010 in Atlanta, GA. The travel assistance committee tries to help members of the community attend who could not

Re: Implement Check Availability link

2010-05-16 Thread Apple Grew
Thanks a lot to all. Finally it worked. I added AjaxFormUpdatingBehavior (triggered on onblur) to the textfield and used AjaxSubmitLink for the link, and now it works. One confusion though. I tried using AjaxLink and it didn't work. As I understand that AjaxFormUpdatingBehavior should be invoked

Re: Best practises question

2010-05-16 Thread Rik van der Kleij
Hi Bernard and Mike, According to https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-AnonymousInnerclasses sharing models could eventually lead to Out of memory error. Holding a page reference in an instance field that points to another page looks the

Re: Implement Check Availability link

2010-05-16 Thread Jeremy Thomerson
The link doesn't submit the form if it's not a form submitting link. Thus, there are no form values when the form is not submitted. -- Jeremy Thomerson http://www.wickettraining.com On Sun, May 16, 2010 at 9:19 PM, Apple Grew appleg...@gmail.com wrote: Thanks a lot to all. Finally it

Re: Best practises question

2010-05-16 Thread Jeremy Thomerson
In general, you should not pass references to components to other pages. That section on anonymous inner classes is telling you that when you create an anonymous inner class and pass it to another page, you will inadvertently be passing a reference to the outer class, which is typically a page.

Re: Best practises question

2010-05-16 Thread Zilvinas Vilutis
Speaking of performance, my pages are using quite a bunch of technologies and session size varies ~30-40 KB, sometimes it raises to 80-90 KB. Is that a considerable amount? Previously I've been working with JSF where session size was 2-6 MB - so comparing to that it seems to be almost zero :) But

Re: Best practises question

2010-05-16 Thread Rik van der Kleij
Hi Jeremy, So an instance field inside a page that points to another page is also something you should avoid? In our application we using this pattern a lot (for going back to previous page) but it never seems to be any problem. So probably because our pages don't consume a lot of memory.