Re: How to update a Component from Javascript

2011-10-26 Thread Julian Sinai
, Julian Sinai jsi...@gmail.com wrote: This should be easy, but I'm striking out... I want to use a new Javascript feature (EventSourcehttp://dev.w3.org/html5/eventsource/, part of HTML5 WebSockets) to push notifications from the server to the browser. Getting the basic mechanism to work

How to update a Component from Javascript

2011-10-24 Thread Julian Sinai
This should be easy, but I'm striking out... I want to use a new Javascript feature (EventSourcehttp://dev.w3.org/html5/eventsource/, part of HTML5 WebSockets) to push notifications from the server to the browser. Getting the basic mechanism to work was easy. What I can't figure out how to do is

Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Hi, I really could use some advice on how to solve this problem: In our webapp, we have a wicket filter as well as a couple of other servlets. The url pattern for the wicket filter is the usual /*. The problem is that because of this, all urls, including those of the other servlets, go through

Re: Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
understanding your setup. How did your non-Wicket servlet get a Wicket-proxied Spring bean? Dan On Mon, Aug 8, 2011 at 12:14 PM, Julian Sinai jsi...@gmail.com wrote: Hi, I really could use some advice on how to solve this problem: In our webapp, we have a wicket filter as well as a couple

Re: Wicket filter chain and other servlets

2011-08-08 Thread Julian Sinai
Dan, thanks for your reply. You may be right, though I can't imagine what could be putting the proxy somewhere the servlet can access it. I'll take another look. And your suggestion to put a breakpoint in the SpringComponentInjector is a good one. Julian On Mon, Aug 8, 2011 at 12:49 PM, Dan

Re: DateTimeField and setOutputMarkupId()

2011-07-22 Thread Julian Sinai
component with id hours then investigate the stacktrace. As last resort you can create a quickstart with plain Wicket components and if it still fails with this error send it to us in a ticket. On Thu, Jul 21, 2011 at 11:49 PM, Julian Sinai jsi...@gmail.com wrote: Hi Martin Thanks

DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
We have a need to update a DateTimeField via Ajax, but its fields are private, and they don't have setOutputMarkupId() set on them. The result is an exception upon Ajax update. Is there any solution other than cloning and owning DateTimeField? We are using Wicket 1.4.17 (and we can't upgrade to

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
itself? -igor On Thu, Jul 21, 2011 at 10:57 AM, Julian Sinai jsi...@gmail.com wrote: We have a need to update a DateTimeField via Ajax, but its fields are private, and they don't have setOutputMarkupId() set on them. The result is an exception upon Ajax update. Is there any solution other

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
It is the hours component of the DateTimeField. From DateTimeField.html: input type=text wicket:id=hours size=2 /nbsp;: Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is hours ? -igor On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai jsi

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Nothing is adding it, we add the DateTimeField itself to the target. Julian On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is adding that to the target? -igor On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai jsi...@gmail.com wrote: It is the hours

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
it. target.addComponent(startField); target.addComponent(startField.getComponent()); } }); Julian On Thu, Jul 21, 2011 at 12:30 PM, Martin Grigorov mgrigo...@apache.orgwrote: Show some code. On Thu, Jul 21, 2011 at 10:09 PM, Julian Sinai jsi...@gmail.com wrote: Nothing is adding it, we add the DateTimeField

OutputStreams and Panels

2011-07-08 Thread Julian Sinai
I am using the BIRT Report Engine API. It generates html that I want to display in a Panel or a WebMarkupContainer. The API requires me to hand it a java.io.OutputStream, which it then writes to. How do I obtain a stream from Wicket in a way that the BIRT output can be inserted in my Panel? Any

ModalWindow form, autocomplete, and default button.

2010-03-08 Thread Julian Sinai
Hi, I'm having some trouble with modal forms. As advised by Matej in this post: http://markmail.org/thread/kmrsg2kvywpyf5dh, I am nesting my modal form inside another form. That works fine, but I now have two other problems: because Form.onComponentTag() rewrites my inner form tag as a div,

AutoCompleteTextField stops showing completions

2009-10-01 Thread Julian Sinai
I'm having trouble with AutoCompleteTextField. It works great most of the time, but occasionally the autocompletions won't show up. This seems to be more of a problem on Safari and IE6. It happens either when the page first renders, or after clicking OK to take action based on the user's

CheckGroup and AjaxPagingNavigator

2009-05-29 Thread Julian Sinai
I'm having trouble with my usage of CheckGroup and AjaxPagingNavigator. If the user checks one or more checkboxes on one page of my data table, then navigates to the next page, the choices on the first page are forgotten. In my application, they need to be remembered. This was not a problem

Defer call to preDecorateScript() till onSubmit() is called?

2009-04-21 Thread Julian Sinai
Hi, I need to display a confirmation message to the user before submitting a form. It's pretty standard to use the code below when the message is known at the time of button or link construction. But what about when the message must be synthesized at the time of the button click? I've tried