Re: Label not updating on AJaxButton submit

2012-01-16 Thread Martin Grigorov
Hi, I think the Ajax calls are serialized. The page instance can be used by a single request at any time. So you submit the form and this request acquires the lock on the page. AjaxSelfTimerUpdatingBehavior cannot use the page until the first request unlock it. Additionally the Ajax calls are

CompoundPropertyModel and FormComponent

2012-01-16 Thread Schlärmann , Bob
Hi list, I've created a reusable form component for editing an address, called AddressPanel. It inherits from FormComponent and consists of multiple text fields for inputting data, instances of the component get added to a Form instance. How do I use this component together with a

WiQuery disabling tabs

2012-01-16 Thread Marco Springer
Hi all, *The problem: * tabs not disabled on first render. *The source:* I'm adding the Tabs class from WiQuery 1.2.4 like so: tabs = new Tabs(tabs); tabs.setOutputMarkupId(true); CompoundPropertyModelWafer waferModel = new CompoundPropertyModelWafer(getDefaultModel()); tabs.add(new

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Hi, I think you need to build a CompoundPropertyModel inside the component itself. Override onInitialize method of AddressPanel and try with something like this: @Override protected void onInitialize() { super.onInitialize(); setDefaultModel(new

Update component after background thread is finished

2012-01-16 Thread humcasma
Hi, I have a simple form. When I submit it I launch a thread that runs on the background. When the thread is finished, I would like to update a DropdownChoice with the result generated by the thread. I manage to update the choice, but the changes are only visible when I refresh the page. To avoid

RE: CompoundPropertyModel and FormComponent

2012-01-16 Thread Schlärmann , Bob
Thanks for your reply. I've tried it but it still gave the same error. However I also tried the following modified version of your idea: In AddressPanel.java: @Override protected void onInitialize() { super.onInitialize(); Object o = getDefaultModelObject();

response.renderJavaScriptReference immediately after head tag

2012-01-16 Thread Rahman USTA
Hi, im using on a page that contains ; @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderCSSReference(css/ui-lightness/jquery-ui-1.8.17.custom.css); response.renderJavaScriptReference(js/jquery-1.7.1.min.js);

Re: CompoundPropertyModel and FormComponent

2012-01-16 Thread Andrea Del Bene
Yes, I think you are doing it the Wicket way, but your snippet and mine should work. Do you modify components' model somewhere else? Which model do you get if you call getDefaultModel() inside oninitialize? Thanks for your reply. I've tried it but it still gave the same error. However I also

Re: how to get https port number in Wicket 1.5

2012-01-16 Thread armhold
Hmm, I spoke too soon. It seems that the reason I was running into the *method* mismatch (not *protocol* mismatch) with the StatelessForm is due to having installed an HttpsMapper in my WicketApplication. If you try to post a form over https from an http page, the HttpsMapper apparently discards

Re: Update component after background thread is finished

2012-01-16 Thread Igor Vaynberg
start a timer behavior that polls and waits for the thread to finish, and only when its finished it updates the select. -igor On Mon, Jan 16, 2012 at 8:47 AM, humcasma humca...@gmail.com wrote: Hi, I have a simple form. When I submit it I launch a thread that runs on the background. When the

Re: how to get https port number in Wicket 1.5

2012-01-16 Thread Martin Grigorov
Looking at the impls of org.apache.wicket.request.mapper.parameter.IPageParametersEncoder#decodePageParameters we can see that only QueryParameters are read. I personally don't know what is the reason for that. File a ticket and if no one says that this is the intended behavior then we will fix

RE: Javascript resources and jsessionid

2012-01-16 Thread Chris Colman
JIRI issue 4334 has fixed this now which is great. The next issue is that while Wicket is able to avoid establishing a session for requests for package resources it would be good if their URL made it easy for other filters (eg., Open Persistence Provider in View) to also ignore them to allow them

Re: Javascript resources and jsessionid

2012-01-16 Thread Martin Grigorov
See org.apache.wicket.request.mapper.BasicResourceReferenceMapper#mapHandler All IStaticCacheableResource are passed to org.apache.wicket.request.resource.caching.IResourceCachingStrategy#decorateUrl. There you can tag them as you wish. On Mon, Jan 16, 2012 at 9:09 PM, Chris Colman

Re: Javascript resources and jsessionid

2012-01-16 Thread Martin Grigorov
Another approach is to mount explicitly all your resources which you think need the session. This way you can exclude /wicket/resource/... in your filter. On Mon, Jan 16, 2012 at 9:18 PM, Martin Grigorov mgrigo...@apache.org wrote: See

RE: Javascript resources and jsessionid

2012-01-16 Thread Chris Colman
I'm trying to think of any resources we have mounted that *do* need a session. I'm pretty sure they're all static package resources. Does Wicket itself mount non static references that would be mounted at /wicket/resource ? -Original Message- From: Martin Grigorov

Re: Javascript resources and jsessionid

2012-01-16 Thread Martin Grigorov
On Mon, Jan 16, 2012 at 9:25 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I'm trying to think of any resources we have mounted that *do* need a session. I'm pretty sure they're all static package resources. Does Wicket itself mount non static references that would be mounted at

Re: Update component after background thread is finished

2012-01-16 Thread humcasma
Igor Vaynberg-2 wrote start a timer behavior that polls and waits for the thread to finish, and only when its finished it updates the select. Thanks Igor. Yes, that is a solution that I have also considered and forgot to talk about. Indeed, I already have a timer behavior that I use to

Re: Update component after background thread is finished

2012-01-16 Thread Martin Grigorov
On Mon, Jan 16, 2012 at 9:38 PM, humcasma humca...@gmail.com wrote: Igor Vaynberg-2 wrote start a timer behavior that polls and waits for the thread to finish, and only when its finished it updates the select. Thanks Igor. Yes, that is a solution that I have also considered and forgot to

RE: Javascript resources and jsessionid

2012-01-16 Thread Chris Colman
I'm trying to think of any resources we have mounted that *do* need a session. I'm pretty sure they're all static package resources. Does Wicket itself mount non static references that would be mounted at /wicket/resource ? Wicket doesn't mount anything by itself. Your code initiates such

Controlling URL of static cacheable resources

2012-01-16 Thread Chris Colman
I'm trying to make static resources have a distinguishable part of their URL near the beginning of the URL to enable easy configuration of third party filters that need to ignore requests for static resources and just proceed along the filter chain. I've looked up the operation of

Re: how to get https port number in Wicket 1.5

2012-01-16 Thread armhold
Thanks Martin! https://issues.apache.org/jira/browse/WICKET-4338 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-get-https-port-number-in-Wicket-1-5-tp4295139p4301617.html Sent from the Users forum mailing list archive at Nabble.com.

RE: Controlling URL of static cacheable resources

2012-01-16 Thread Chris Colman
Forget that last bit about wicketstuff not using the 'wicket' namespace for its resources. I was confused by some old files in the browser cache from Dec 2011. From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 17 January 2012 8:49 AM To:

Re: Controlling URL of static cacheable resources

2012-01-16 Thread Martin Grigorov
On Mon, Jan 16, 2012 at 11:08 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Forget that last bit about wicketstuff not using the 'wicket' namespace for its resources. I was confused by some old files in the browser cache from Dec 2011. /resources/ in 1.4 is the same as /wicket/resource/

RE: Controlling URL of static cacheable resources

2012-01-16 Thread Chris Colman
chr...@stepaheadsoftware.com wrote: Forget that last bit about wicketstuff not using the 'wicket' namespace for its resources. I was confused by some old files in the browser cache from Dec 2011. /resources/ in 1.4 is the same as /wicket/resource/ in 1.5 Which project exactly in wicketstuff do

Shibboleth Integration

2012-01-16 Thread Jered Myers
I am attempting to integrate with Shibboleth using Tomcat 6 and Wicket 1.4.18. I don't want to get into too much detail on Shibboleth in this list, but I was wonder in anybody had already done this and is able to get the eppn attribute back after successfully logging in. I need to know the

RE: CompoundPropertyModel and FormComponent

2012-01-16 Thread Schlärmann , Bob
Yes, I think you are doing it the Wicket way, but your snippet and mine should work. Do you modify components' model somewhere else? No, I don't think so. The page to which the component is added is constructed as follows: CompoundPropertyModelHomePage model = new

Re: Label not updating on AJaxButton submit

2012-01-16 Thread malebu
Martin, Would you be kind enough to give an example? I tried the following: ajaxSimpleUploadForm.add(new AjaxButton(uploadVideoSubmit) { @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { AbstractResourceStreamWriter writer = new