Re: Threading wicket

2007-10-04 Thread swaroop belur
If i understand correctly , I think clock example does not work for you because your first ajax request - to handle the files - has to first finish. Until that finishes the self updating behavior which is a separate ajax request will not fire. So prob you will have to do ur file stuff in a

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-04 Thread Fabio Fioretti
P.S.: I'm using Wicket 1.2.6. Fabio Fioretti - WindoM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Update of datepicker value with ajax

2007-10-04 Thread Per Newgro
Hi *, I present a date by 3 DropDownChoices (year, month, day). Additionally i want to provide a datepicker. The sync from datepicker selection to dropdownchoises is working as expected. On the other hand if i change the dropdownchoise the datepicker value will be changed, but it is

Re: How to match File Pattern?

2007-10-04 Thread Edi
any body have an Idea regarding this.?? Edi wrote: Hello Guys, I have different file patterns like *.xls (all the xls files) n*.xls (xls file starts with n) - all the xls files starts with n How can we do this pattern matching in wicket? Please let me know. Thanking

Re: Update of datepicker value with ajax

2007-10-04 Thread Gerolf Seitz
Per, a temporary fix for now would be to instead of adding the DateTextField to the AjaxRequestTarget, add text.getParent() i'll fix this misbehavior with something similar what matej did with the IndicatingAjaxButton Gerolf On 10/4/07, Per Newgro [EMAIL PROTECTED] wrote: Hi *, I present

RE: Wicket Meetup Amsterdam: a proposal

2007-10-04 Thread Arje Cahn
Hi Johan, all, i also have been asking around for a big room. And Servoy is willing to sponser a big room if needed (if there are really comming 30+ people) That's excellent news! :) Do you think the dates and location I suggested will work? These are the dates I made a reservation for:

Re: How to match File Pattern?

2007-10-04 Thread Jan Kriesten
what's exactly wicket's role in this? you should take a look at java.io.File / java.io.FilenameFilter and/or java.util.regex.* regards, --- jan. Edi wrote: any body have an Idea regarding this.?? Edi wrote: Hello Guys, I have different file patterns like *.xls (all the xls

Re: Threading wicket

2007-10-04 Thread Vit Rozkovec
swaroop belur wrote: But mind u- that thread may not have references to stuff like ur session,application objects- they might be null. So you will have to first get the reqd stuff (any dependecies- say something from ur service layer for example) and then start the thread. -swaroop Would

FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
I've created a FormComponentPanel that wraps three text fields, to mimic a phone number. I created a custom validator, which I have added to the panel. When I submit the form, the validator does not seem to be fired. If I attach the validator to another form component, it fires without a

Re: FormComponentPanel and Validators

2007-10-04 Thread Igor Vaynberg
did you properly override convertintput() on the formcomponentpanel to generate an object based on the 3 children? by default it returns null and validators do not run on null values... -igor On 10/4/07, Michael Laccetti [EMAIL PROTECTED] wrote: I've created a FormComponentPanel that wraps

Re: Page.detachModels() not working like it used to

2007-10-04 Thread Dan Syrstad
Actually, Page.detach() is not callable from a JUnit test that uses WicketTester in 1.3.0beta3. It throws an exception: org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set! at org.apache.wicket.Component.getRequest(Component.java:1443) at

Re: RequestCycle?

2007-10-04 Thread Sam Hough
I think it is setup with ThreadLocal so you can get it easily with RequestCycle.get(). You can also provide your own version from Application.newRequestCycle which might be more what you need to hook in start/end events. Stanczak Group wrote: How can I access the request cycle so I can open

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
I take it back. It is the validator itself that isn't functioning as expected. In my panel, I did not override convertInput(), as expected. The JavaDoc suggests that I call setConvertedInput() from within convertInput(), except that setConvertedInput() does not exist. Has this been

DateTimeField problem

2007-10-04 Thread giladgaron
Hi, I'm new to wicket, and I will appreciate if could help me! I'm having problems using DateTimeField, i'm getting the following exception: WicketMessage: Unknown tag name with Wicket namespace: 'panel'. Might be you haven't installed the appropriate resolver? I've tried to google it, but

Re: RequestCycle?

2007-10-04 Thread Stanczak Group
I'm not for sure what to use. I tried to override the newRequestCycle() but I had trouble understanding it. I'm doing something like what DataBinder does, but with 1.3. DataBinder seems to be 1.2. Either way I'd rather use my own. Does anyone have an example of providing my own request cycle,

Adding a label when I add a FormComponent.

2007-10-04 Thread Clay Lehman
Hey Everyone, I want to create a subclass of a Form Component (Let's use TextField for this example) which takes a String in the constructor, and automatically adds the HTML for a Label before the field. I want to provide all the default functionality of a TextField (like adding behaviors,

Re: RequestCycle?

2007-10-04 Thread Stanczak Group
If I create my own request cycle, then what class do I extend? RequestCycle, WebRequestCycle or... ? RequestCycle requires you to implement other methods? Is there a wrapper class? Stanczak Group wrote: I'm not for sure what to use. I tried to override the newRequestCycle() but I had trouble

Re: FormComponentPanel and Validators

2007-10-04 Thread Igor Vaynberg
setconvertedinput() is still there. it is public final void on the formcomponent. -igor On 10/4/07, Michael Laccetti [EMAIL PROTECTED] wrote: I take it back. It is the validator itself that isn't functioning as expected. In my panel, I did not override convertInput(), as expected. The

Re: RequestCycle?

2007-10-04 Thread Stanczak Group
I see DataBinder is just casting them and using WebRequestCycle, is that the right way? Stanczak Group wrote: If I create my own request cycle, then what class do I extend? RequestCycle, WebRequestCycle or... ? RequestCycle requires you to implement other methods? Is there a wrapper class?

Re: Graceful handling of ajax after session expiration

2007-10-04 Thread leok
I looked into this a bit more, and it looks like WebRequestCycleProcessor.resolve(RequestCycle, RequestParameters) always checks to see if an Ajax request is being made before a Page gets to be instantiated and stored in the session. If the Page doesn't exist in the PageMap, the request simply

Re: Adding a label when I add a FormComponent.

2007-10-04 Thread Igor Vaynberg
see icomponentborder -igor On 10/4/07, Clay Lehman [EMAIL PROTECTED] wrote: Hey Everyone, I want to create a subclass of a Form Component (Let's use TextField for this example) which takes a String in the constructor, and automatically adds the HTML for a Label before the field. I want

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it doesn't seem to exist. Do I have a versioning issue? Igor Vaynberg wrote: setconvertedinput() is still there. it is public final void on the formcomponent. -igor

Re: FormComponentPanel and Validators

2007-10-04 Thread Gwyn Evans
Some form of issue - it's definitely in 1.3.0b3 (D:\Wicket\apache-wicket-1.3.0-beta3\src\jdk-1.4\wicket\src\main\java\org\apache\wicket\markup\html\form\FormComponent.java) On Thursday, October 4, 2007, 4:15:39 PM, Michael [EMAIL PROTECTED] wrote: I am using 1.3.0-beta2 - I popped open

Re: FormComponentPanel and Validators

2007-10-04 Thread Igor Vaynberg
what javadoc are you looking at? The one online is based on trunk -igor On 10/4/07, Michael Laccetti [EMAIL PROTECTED] wrote: I am using 1.3.0-beta2 - I popped open FormComponent in Eclipse and it doesn't seem to exist. Do I have a versioning issue? Igor Vaynberg wrote:

Null values in Lists question

2007-10-04 Thread Doug Leeper
I am sure there is a more elegant way than what I am doing so I thought I would throw out the following question. I have a List that displays a date in one of its columns. If that date is null, nothing is displayed...fine and dandy. However, when applying a style to the table, aka border to

Re: DateTimeField problem

2007-10-04 Thread giladgaron
Ok, Sorry, it seems it was a dependency issue... I forgot to add to JBoss wicket-extension.jar Sorry!! Thanks for you help :blush: giladgaron wrote: It seems that the DateTimeField is a panel: DateTimeField java: package org.apache.wicket.extensions.yui.calendar; ... ... public class

Re: FormComponentPanel and Validators

2007-10-04 Thread Michael Laccetti
Yeah, trunk JavaDoc, 1.3b2 code. I'll seek to keep the two sync'd in future. Thx. Igor Vaynberg wrote: what javadoc are you looking at? The one online is based on trunk -igor - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Threading wicket

2007-10-04 Thread Eelco Hillenius
how can I force from a middle of the loop, which may run up to few minutes to update a component's value? I am manipulating a lot of files and I would like to let the user know how much of the processing is already done. I would like to start processing the files when user reaches certain

Re: Null values in Lists question

2007-10-04 Thread Martijn Dashorst
http://www.w3schools.com/css/tryit.asp?filename=trycss_table_empty-cells On 10/4/07, Doug Leeper [EMAIL PROTECTED] wrote: I am sure there is a more elegant way than what I am doing so I thought I would throw out the following question. I have a List that displays a date in one of its

Re: Null values in Lists question

2007-10-04 Thread Sebastiaan van Erk
Cool, thanks Martijn, learned something useful today! (which is a pleasant escape from my philosophy homework where I have to try understand what stuff like It follows that trying to give tensed thoughts or sentences non-token-reflexive truth-conditions, tensed or tenseless, always leads to

Re: RequestCycle?

2007-10-04 Thread Eelco Hillenius
On 10/4/07, Stanczak Group [EMAIL PROTECTED] wrote: How can I access the request cycle so I can open and close a Hibernate session on each request? In your application class: @Override public RequestCycle newRequestCycle(Request request, Response response) {

Re: Null values in Lists question

2007-10-04 Thread Martijn Dashorst
On 10/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: (which is a pleasant escape from my philosophy homework where I have to try understand what stuff like It follows that trying to give tensed thoughts or sentences non-token-reflexive truth-conditions, tensed or tenseless, always leads to

Re: Null values in Lists question

2007-10-04 Thread Sebastiaan van Erk
Well I only have up to chapter 4 so far... too bad, maybe it would have helped :-)) Sebastiaan Martijn Dashorst wrote: On 10/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: (which is a pleasant escape from my philosophy homework where I have to try understand what stuff like It follows

Re: Null values in Lists question

2007-10-04 Thread Doug Leeper
Much more elegant than I ever thought. Thank you very much! -- View this message in context: http://www.nabble.com/Null-values-in-Lists-question-tf4569676.html#a13043323 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: RequestCycle?

2007-10-04 Thread Stanczak Group
Ok, thanks. This is what I did. public class RequestCycleImpl extends WebRequestCycle { private Session hibernateSession; public RequestCycleImpl(Application application, Request request, Response response) { super(application, (WebRequest) request, response); } @Override

Going back after save or cancel method?

2007-10-04 Thread Stanczak Group
I have a classic list and edit page setup. You select an object that you then pass to the edit page. My hang up is how to I return the user to the list page, if the list page took a constructor parameter so it knows what to list? In other words the list page has a constructor parameter, so how

Re: Going back after save or cancel method?

2007-10-04 Thread Martijn Dashorst
pubic class ListPage { ... @override void onClick() { setResponsePage(new EditPage(getModelObject(), ListPage.this)); } } public class EditPage { private Page previousPage; public EditPage(Foo edit, Page back) { previousPage = back; ...

Re: Going back after save or cancel method?

2007-10-04 Thread Stanczak Group
Great, thanks. Martijn Dashorst wrote: pubic class ListPage { ... @override void onClick() { setResponsePage(new EditPage(getModelObject(), ListPage.this)); } } public class EditPage { private Page previousPage; public EditPage(Foo edit, Page back) {

More on Wicket/Hibernate...

2007-10-04 Thread Neil B. Cohen
I suspect I'm biting off more than I can chew conveniently but maybe someone can push me in the right direction... I'm attempting to build a fairly simple web application with Wicket, and I'd like to use Hibernate to manage the database access (although other frameworks like Cayenne have been

Javadocs download?

2007-10-04 Thread Stanczak Group
I can't seem to find a download versions of the javadocs, anyone know? Do I need to use maven? -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke

Re: Javadocs download?

2007-10-04 Thread Stanczak Group
Thanks. Igor Vaynberg wrote: http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/ -igor On 10/4/07, Stanczak Group [EMAIL PROTECTED] wrote: I can't seem to find a download versions of the javadocs, anyone know? Do I need to use maven? -- Justin Stanczak

Re: More on Wicket/Hibernate...

2007-10-04 Thread Stanczak Group
It's really very simple. I'm doing the same thing here. You simple use the HibernateUtil example that is in the Hibernate documentation. Then you simple create a custom RequestCycle by overriding this method in your application. With the request cycle you can open and close Hibernate seesion.

Re: More on Wicket/Hibernate...

2007-10-04 Thread Neil B. Cohen
Martijn Dashorst wrote: According to me you can use Hibernate's thread local session if you want (you still need the custom request cycle though!). This removes the need for all the casting and getting. Session.get().createCriteria(SysUser.class).add(.).uniqueResult(); Hibernate

Re: More on Wicket/Hibernate...

2007-10-04 Thread Martijn Dashorst
According to me you can use Hibernate's thread local session if you want (you still need the custom request cycle though!). This removes the need for all the casting and getting. Session.get().createCriteria(SysUser.class).add(.).uniqueResult(); Hibernate session, not Wicket's

RE: Adding a label when I add a FormComponent.

2007-10-04 Thread Clay Lehman
I implemented a simple IComponentBorder, and anything I put in the beforeRender gets added again every time I try to update the component with AJAX. My IcomponentBorder has: public void renderBefore(Component component) { Response resp = component.getResponse();

Re: More on Wicket/Hibernate...

2007-10-04 Thread Igor Vaynberg
this can all be done independently of wicket using a servletcontextlistener for sessionfactory start/shutdown and a servlet filter for closing the session at the end of requests. go for the simplest things first :) -igor On 10/4/07, Stanczak Group [EMAIL PROTECTED] wrote: Another piece I

Re: Adding a label when I add a FormComponent.

2007-10-04 Thread Igor Vaynberg
put a container around your component and update that via ajax instead -igor On 10/4/07, Clay Lehman [EMAIL PROTECTED] wrote: I implemented a simple IComponentBorder, and anything I put in the beforeRender gets added again every time I try to update the component with AJAX. My

A button that does NOT submit form?

2007-10-04 Thread Stanczak Group
I don't want the cancel button to submit the form, is this the best method? I'm not sure I see how to do this. Is there examples? @Override protected void delegateSubmit(IFormSubmittingComponent component) { } -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary

Re: More on Wicket/Hibernate...

2007-10-04 Thread Michael Laccetti
If you are using Spring, you may be interested in a Servlet Filter that supports opening/closing sessions on a per-request basis: http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html Mike Neil B. Cohen wrote: I suspect

Re: More on Wicket/Hibernate...

2007-10-04 Thread Stanczak Group
Another piece I forgot to add is the config and shutting down of the factory. I use this in the WebApplication: @Override protected void init() { try { HibernateUtil.setSessionFactory(new Configuration().configure().buildSessionFactory()); } catch (Throwable e)

Can we chain WebRequestCodingStrategies (CryptedUrlWebRequestCodingStrategy and an SSL coding strategy)

2007-10-04 Thread Chris Lintz
Hi, Can we chain WebRequestCodingStrategies? I want to use the CryptedUrlWebRequestCodingStrategy and an SSL coding strategy as seen on http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html#HowtoswitchtoSSLmode-CreateNewResponseStrategy . Is this possible to use multiple

Re: A button that does NOT submit form?

2007-10-04 Thread Igor Vaynberg
best method is to add a Link to input type=button -igor On 10/4/07, Stanczak Group [EMAIL PROTECTED] wrote: I don't want the cancel button to submit the form, is this the best method? I'm not sure I see how to do this. Is there examples? @Override protected void

Re: A button that does NOT submit form?

2007-10-04 Thread Stanczak Group
Really new, but do you mean use the new Link() and input... ? Like this: in code: add(new Link(cancel){...}); in html: input type=button wicket:id=cancel... Like that? Igor Vaynberg wrote: best method is to add a Link to input type=button -igor On 10/4/07, Stanczak Group [EMAIL PROTECTED]

Re: More on Wicket/Hibernate...

2007-10-04 Thread Nathan Hamblen
Neil B. Cohen wrote: Anyone have a really simple MySQL example like that? Or an online tutorial that I could follow? We have one of those: http://databinder.net/site/show/baseball-players I don't know if you want to use Databinder or not, but you aren't going to find a lot of code or

Re: More on Wicket/Hibernate...

2007-10-04 Thread Neil B. Cohen
Michael Laccetti wrote: If you are using Spring, you may be interested in a Servlet Filter that supports opening/closing sessions on a per-request basis: http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.html Mike

Re: More on Wicket/Hibernate...

2007-10-04 Thread Michael Laccetti
I'm not sure if Spring is something that really requires much learning - More than anything it is a good way of tying together a bunch of disparate frameworks for use together. Neil B. Cohen wrote: Michael Laccetti wrote: If you are using Spring, you may be interested in a Servlet Filter

Re: RequestCycle?

2007-10-04 Thread ChuckDeal
Stanczak Group wrote: I'm not for sure what to use. I tried to override the newRequestCycle() but I had trouble understanding it. I'm doing something like what DataBinder does, but with 1.3. DataBinder seems to be 1.2. Either way I'd rather use my own. Does anyone have an example of

Re: A button that does NOT submit form?

2007-10-04 Thread Stanczak Group
Ah, yes. Link-O-Matic. Use the docs, that's what they're there for. Sorry. Stanczak Group wrote: Really new, but do you mean use the new Link() and input... ? Like this: in code: add(new Link(cancel){...}); in html: input type=button wicket:id=cancel... Like that? Igor Vaynberg wrote: best

Re: RequestCycle?

2007-10-04 Thread Stanczak Group
Probably not. I'll probably use it when I get a chance. I just downloaded the 1.0 tar and saw it's using 1.2 Wicket. Shot me the link and I'll see if I can give it a shot tonight. ChuckDeal wrote: Stanczak Group wrote: I'm not for sure what to use. I tried to override the newRequestCycle()

Re: Adding a label when I add a FormComponent.

2007-10-04 Thread ChuckDeal
If you are going to have to add extra containers anyway, you could try it the way we do it on my project. In the html, we add both a label and input element with wicket ids. to keep it simple, the label's id is the same as the related component's id with label appended to it. Then, we have a

Re: RequestCycle?

2007-10-04 Thread ChuckDeal
I don't know that 1.1 has a tar. My project uses maven, so it was a snap to add the Databinder bits to our pom. Here is the page that gives the databinder snapshot repo info: http://databinder.net/site/show/faq#updates If you don't use maven, I could always send a 1.1-SNAPSHOT directly to

RE: Adding a label when I add a FormComponent.

2007-10-04 Thread Clay Lehman
Is there a way to tell if a request is coming via AJAX instead of a normal request? If there is a way to do this, I could disable my ComponentBorder on secondary AJAX requests, and only use it on the original request... Thanks, -Clay -Original Message- From: Igor Vaynberg

Re: Is Wicket suitable for my CMS?

2007-10-04 Thread pierobo
Eelco Hillenius wrote: On 9/28/07, pierobo [EMAIL PROTECTED] wrote: I.e., in the parent HTML page he could put a block representing a browse able list of childs. Yeah, I think Wicket is very suitable for what you want to do. So, I need a heavy component oriented framework, and Wicket

Adding to response header (filename)?

2007-10-04 Thread Stanczak Group
How can I do this in Wicket? I'm writing a csv generated file to the output, but I don't know how to tell the client what file name to use. This is what I was using before, is there another way? getResponse().setHeader(Content-Disposition, attachment;filename=\export_ +

Re: Adding a label when I add a FormComponent.

2007-10-04 Thread Eelco Hillenius
WebRequest.isAjax() Eelco On 10/4/07, Clay Lehman [EMAIL PROTECTED] wrote: Is there a way to tell if a request is coming via AJAX instead of a normal request? If there is a way to do this, I could disable my ComponentBorder on secondary AJAX requests, and only use it on the original

Re: Wicket training:50% discount this weekend on next 3 bookings

2007-10-04 Thread Stanczak Group
Off you subject here, but is there any US training? jweekend wrote: The 2 day London http://jweekend.co.uk/dev/JW703/ Wicket 1.3 course this weekend still has plenty of room! Since it has been scheduled on demand and without much notice, and to give people a chance who maybe wouldn't

Re: Adding to response header (filename)?

2007-10-04 Thread Stanczak Group
This works: getWebRequestCycle().getWebResponse().setContentType(text/csv); getWebRequestCycle().getWebResponse().setHeader(Content-Disposition, attachment;filename=\export_ + formatFile.format(Calendar.getInstance().getTime()) + .csv\);

Wicket training:50% discount this weekend on next 3 bookings

2007-10-04 Thread jweekend
The 2 day London http://jweekend.co.uk/dev/JW703/ Wicket 1.3 course this weekend still has plenty of room! Since it has been scheduled on demand and without much notice, and to give people a chance who maybe wouldn't otherwise get the opportunity to be professionally trained in Wicket, we are

Re: Adding to response header (filename)?

2007-10-04 Thread Stanczak Group
This maybe? Should I be using getWebRequestCycle().getWebResponse() instead of getResponse().? getWebRequestCycle().getWebResponse().setHeader() Stanczak Group wrote: How can I do this in Wicket? I'm writing a csv generated file to the output, but I don't know how to tell the client what file

How to NOT cause a hot redeploy with Jetty when HTML files change

2007-10-04 Thread Jason Mihalick
I have been successfully developing a Wicket application with Eclipse, Maven, and the Maven Jetty plugin with hot redeploy enabled. However, I don't want Jetty to do a hot redeploy of the application when I make a change to my HTML files. I assume that Wicket will pick up these changes

Re: webpage instance scope?

2007-10-04 Thread Eelco Hillenius
I think I understand your explanations yet I struggle to see how scenario I was describing is optimization-only. Consider these scenarios: Shopping w/o signing in. 1.I go to amazon.com and fill my shopping cart with stuff without signing in. 2.I navigate away to somewhere else and short

Re: Wicket Meetup Amsterdam: a proposal

2007-10-04 Thread Erik van Oosten
Excellent! That is only 4 blocks from where I work :) Also, all those dates are fine by me. Just an opinion: I do not expect any presentations; just a get together for a couple of hours is nice. Erik. -- Erik van Oosten http://2008.rubyenrails.nl/ http://day-to-day-stuff.blogspot.com/

Best approach to localization

2007-10-04 Thread Cristina
Hello, the *pub* example (http://wicketstuff.org/wicket13/pub/) shows how a localized string can be retrieved from a properties file and then dinamically inserted in a page. Still, with the exception of that string, the remaining markup is kept static, which results in separated, localized HTML

Re: Best approach to localization

2007-10-04 Thread Eelco Hillenius
the *pub* example (http://wicketstuff.org/wicket13/pub/) shows how a localized string can be retrieved from a properties file and then dinamically inserted in a page. Still, with the exception of that string, the remaining markup is kept static, which results in separated, localized HTML

Re: Best approach to localization

2007-10-04 Thread Eelco Hillenius
Best way to go is probably to use wicket:message tags for static blocks that need to be localized. To illustrate that, I just committed an alternative implementation of pub (called pub2). Please look and compare! :-) Eelco -

ModalWindow.close() results in ERROR: Exception evaluating javascript: TypeError: window.parent.setTimeout is not a function

2007-10-04 Thread skatz
I am trying to use the ModalWindow as a confirmation dialog and it works fine on one page but the same code on a different page produces the above error. Closing the ModalWindow with the X in the corner work fine. The error occurs when the AjaxCallbackLink onClick handler calls