Re: CAS (or single sign on): how to?

2012-02-14 Thread Sam Zilverberg
A couple of implementation questions: 1) Do you use the RestartResponseAtInterceptPageException to redirect users to the cas site when the user is not logged in and the cookie is not present, or something else? 2) Do you allow loging in also through the normal sites, not using the cas? 3) Shared

Re: refresh and AjaxFallbackDefaultDataTable

2012-02-14 Thread Sven Meier
Hi, in Ajax requests the page id is not incremented, to keep the page version in the browser's url in sync with the state on the server. When the page is refreshed (F5), the following happens: - WebPageRenderer#respond() checks whether the url has changed, which it has not yet. So no

Link URLs (with JSessionID) truncated during URL rewriting

2012-02-14 Thread Ian Marshall
Hello All, Has anyone else apart from me suffered from this problem of URLs being truncated to become invalid? I would appreciate it if anyone else shared my pain! Ian Marshall Ian Marshall wrote Hello All, A user's first visit to my app's home page results in the URL http://[My

RE: jQuery form validation with wicket ajax

2012-02-14 Thread Paul Jackson
Thanks for that link! I never managed to work out how to get jquery events to override the buttons onClick attribute. This should simplify our validation code a lot. Paul -Original Message- From: Alec Swan [mailto:alecs...@gmail.com] Sent: 13 February 2012 16:38 To:

Re: 1.5.4: Rather curious case of the IInitializer List

2012-02-14 Thread Sven Meier
Hi Richard, you're right, this implementation looks 'curious' but it was intentional. Note the javadoc of Collection.unmodifiableList(): 'Query operations on the returned list read through to the specified list' Sven Am 13.02.2012 23:58, schrieb richard emberson: While looking at the

Last cause: $Proxy153 cannot be cast to org.omg.CORBA.Object

2012-02-14 Thread Ivan V. Kokhan
Hello All, I have a Wicket application on the JBoss-4.2.2 GA server. User visits the link: https://name_of_host.com:8443/webform/?code=c30bd05e-da65-45ab-9217-fcb72969 1138 And receive the error message in the browser: == Unexpected

Re: Problem with date format on changing locale

2012-02-14 Thread cosmindumy
I actually want to know if I can set date format. I want to set it after submit. There is #forDatePattern(...) but this can be used at page initialization, instead of constructor. Thnaks. -- View this message in context:

Re: modal window takes very long time to close

2012-02-14 Thread James Carman
This is what I was trying to find: http://mail-archives.apache.org/mod_mbox/wicket-users/200904.mbox/%3ca737c1240904170336h2231a4aej48e6f3ec783bd...@mail.gmail.com%3E On Mon, Feb 13, 2012 at 11:08 AM, fachhoch fachh...@gmail.com wrote: any help with this , My modal window is taking too long to

RE: refresh and AjaxFallbackDefaultDataTable

2012-02-14 Thread Wilhelmsen Tor Iver
Thus the browser still shows the old version in the URL. But all future Ajax requests are targetting a different page version than visible in the browser URL :(. Can't you fix that with a getPage().dirty(); in the Ajax request handler? - Tor Iver

Wicket 1.5 and JSP/servlet wrapping

2012-02-14 Thread Johan Isaksson
Hi! In the project I'm on we want to upgrade from Wicket 1.4 to 1.5 (1.5.4) and one major thing is not working yet. There's a need to wrap old JSP/servlets into the new Wicket based application and the old 1.4-approach is not working anymore. Simplified html output in 1.4 body div

SpringComponentInjector and non null fields

2012-02-14 Thread martin.dilger
Hi, I just realized painfully, that SpringComponentInjector only injects Beans, when the Fields are non-null. Is there a reason for this Behavior? The Reason I ask is, we use the SpringComponentInjector in all our Tests to inject Mocks with Injector.get().inject(this). This only works, if we set

Re: Header contribution from a component resolved via an IComponentResolver

2012-02-14 Thread Sven Meier
Hi, auto-components are added to the component tree not until rendering of markup, this is too late for header contributions. Sven Am 14.02.2012 07:33, schrieb Chris Colman: Added a JIRA for this: https://issues.apache.org/jira/browse/WICKET-4408 If I explicitly add the component to the

Re: SpringComponentInjector and non null fields

2012-02-14 Thread Robert Kühne
There is a remark on this here: https://cwiki.apache.org/WICKET/spring.html When doing this it is important to remember not to initialize dependencies, to null or any other value, e.g.private ContactDao dao=null;. Don't do this because the injector will run before the subclass initializes its

AW: jQuery form validation with wicket ajax

2012-02-14 Thread Gerrit Scholz | QUERPLEX.de
If I intercept the onclick event my function is called but the processing not stop. Mean that the wicket (onclick) javascript is running parallel. So I write a AttributeModifier that prepends my function to the onclick attribute. Now the validation works fine, but on the onSubmit method of the

Re: 1.5.4: Rather curious case of the IInitializer List

2012-02-14 Thread richard emberson
Since the intent is to access the latest snapshot of the Application IInitializer list, why not simply have the InitializerStringResourceLoader loadStringResource method call Application.get().getInitializers(). I would suggest that it is cleaner. And, yes, I know that Java's unmodifiableList

Re: replaceOuterHtmlSafari not working proerly

2012-02-14 Thread Igor Vaynberg
file this in our jira so it doesnt get lost -igor On Mon, Feb 13, 2012 at 9:56 PM, pmaks piyu...@live.com wrote: Hi All, Please have a look at below images before form submit http://apache-wicket.1842946.n4.nabble.com/file/n4386241/before-submit.png after form submit (it shows the

Re: SpringComponentInjector and non null fields

2012-02-14 Thread martin.dilger
Hi, thanks, this is true, but I dont think this is the Point I refer to, since I call Injector.get().inject(this) in our Test, so I explicitely request SpringBean-injection. The Problem is this Line in Class Injector: if (field.get(object) == null) {

Re: 1.5.4: Rather curious case of the IInitializer List

2012-02-14 Thread Sven Meier
I'd rather have an InitializerCollection (similar to other wicket *Collection classes). This could safely be passed around. Sven Am 14.02.2012 15:11, schrieb richard emberson: Since the intent is to access the latest snapshot of the Application IInitializer list, why not simply have the

Re: SpringComponentInjector and non null fields

2012-02-14 Thread Igor Vaynberg
that is there to give users a chance at test time to override injection partially, as in component c=new mycomponent(); c.service1=mock(service.class); injector.inject(c); injector will inject everything but service1. key here is to make sure service doesnt have to be defined in the test's

Re: SpringComponentInjector and non null fields

2012-02-14 Thread martin.dilger
ok, understood, thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-null-fields-tp4386918p4387545.html Sent from the Users forum mailing list archive at Nabble.com.

Re: jQuery form validation with wicket ajax

2012-02-14 Thread Alec Swan
Are you saying that AjaxRequestTarget is not null without your onclick attribute changes and is null with your changes? If so, please post the changes you made to onclick attribute. On Tue, Feb 14, 2012 at 7:06 AM, Gerrit Scholz | QUERPLEX.de gerrit.sch...@querplex.de wrote: If I intercept the

Re: refresh and AjaxFallbackDefaultDataTable

2012-02-14 Thread Jonathan Tougas
Can't you fix that with a getPage().dirty(); in the Ajax request handler? Hmm tried your suggestion, but no luck. How would it help anyway? It's dirty() that is causing the page to change version in the first place right? RefreshingView.onPopulate() - MarkupContainer.removeAll() -

Re: CAS (or single sign on): how to?

2012-02-14 Thread Dan Retzlaff
Hi, Sam. Responses inline. On Tue, Feb 14, 2012 at 12:07 AM, Sam Zilverberg samzilverb...@gmail.comwrote: 1) Do you use the RestartResponseAtInterceptPageException to redirect users to the cas site when the user is not logged in and the cookie is not present, or something else? 2) Do you