Redirect to External Application

2011-10-17 Thread martin.dilger
Hi, we have the following use case - we need to redirect to an external application, that handles authorization for us (cookie creation etc.). For this, we need to redirect to this application and handle a callback url, where this external application redirects after succesful login. I tried

~ as separator in urls

2011-10-28 Thread martin.dilger
Hi, since https://issues.apache.org/jira/browse/WICKET-4061, we use ~ as url-separator, this leads to enormous problems and prevents us from upgrading from 1.5.0 to 1.5.1. We have an apache which has mod_security enabled, and all Ajax-Requests are blocked, the same could happen if an apache is

Re: ~ as separator in urls

2011-10-28 Thread martin.dilger
Hi Martin, thanks for your reply. Well, could be, I´m not sure, what all these apache modules do, our problem is, that mod_security in apache denies all request with '~' in the URL, what we get is 404, which per Default looks like the Application would not respond on Button clicks, since no

Re: Hide page version query parameters

2011-12-30 Thread martin.dilger
hi, you could try to change your render strategy to redirect to render, that would dismiss the page parameters version. regards martin dilger -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Hide-page-version-query-parameters-tp4163099p4246959.html Sent from the

Re: Hide page version query parameters

2012-01-01 Thread martin.dilger
Yes, thats right, stateless pages do not have version number, but normally it is not so easy to make pages stateless, we always had problems with that. But if you change your render strategy to redirect to render, the uri in the browser does not change and you always have clean uris. Thats how

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: 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: 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.

Wicket in PHP

2012-10-23 Thread martin.dilger
Hi, I´m a freelance software developer in germany. I recently got a problem, since my webhoster only provides php. I´m used to work with wicket, so i didnt want to miss this pleasure for my own website. So, the only solution was to implement wicket in php and call it (picket):). This is just a

Re: JPA annotations

2012-12-23 Thread martin.dilger
Hi, I really don't understand your question. You want to know how to get jpa-annotations to work. Well, you just need to get hold of an entitymanager. If you ask me, go with spring, it's easier than jee or even Guice. Regards Martin -- View this message in context:

Re: BeanValidation - IllegalStateException: Could not resolve Property from component

2013-01-06 Thread martin.dilger
Your Code does not show where the PropertyValidator is added. If you work with CompoundPropertyModels, you need to explicitely configure the Property, since no Model is available to retrieve the Information. Wicket expects a Model of Type IPropertyReflectionAwareModel to work. Just do the

Re: Injecting proxy services in page.

2013-06-18 Thread martin.dilger
To be honest, I dont understand exactly what the Problem is. If you work with Spring-Beans, they are normally safe to serialize, as its only the proxy. We´ve done this all the time (even with older wicket versions) without any problems. It looks like you have some Classpath-Issue here. The

Re: Form submit without redirection

2013-06-18 Thread martin.dilger
If you work with JQuery and Validation, why dont you use Ajax to Submit your form? You could attach your errors to the AjaxRequestTarget as JavaScript / JSON and process it on the client-side, which would be far better that using PageParameters instead? -- View this message in context:

Re: Empy choices durring unit tests with DropDownChoice

2013-06-18 Thread martin.dilger
Dmitriy, Dmitriy...:) Never ever call getObject() on your LoadableDetachable Model in the Constructor of your Component (I taught you better!!:)). Should be: new DropDownChoice(aWicketId, yourModel,new ChoicesModel(), myOwnChoicesRenderer) Mind the second Parameter, as this is your Model that

Wicket CDI 1.1 and Wicket Tester

2013-11-30 Thread martin.dilger
There are a couple of Posts but none that answers my Question. How is a Unit Test for a Wicket CDI Application supposed to be written? For the CDI Module itself there is CDIUnit from JGlue, but this does not work for ApplicationTests as the Classes are not found and some are marked as Package

Re: Wicket CDI 1.1 and Wicket Tester

2013-11-30 Thread martin.dilger
I have a very simple testcase running, described here http://www.effectivetrainings.de/blog/2013/11/30/wicket-und-cdi-1-1-auf-den-richtigen-kontext-kommt-es-an/. But I´m pretty sure there must be an easier way. -- View this message in context: