Re: Spring: cannot inject bean with scope request/session

2013-07-08 Thread Alexey Mukas
Hi Martin, Here is bean config: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.springframework.org/schema/beans

Re: Spring: cannot inject bean with scope request/session

2013-07-08 Thread Alexey Mukas
Hi, Thank you very much. Now it works fine) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Spring-cannot-inject-bean-with-scope-request-session-tp4660112p4660145.html Sent from the Users forum mailing list archive at Nabble.com.

Spring: cannot inject bean with scope request/session

2013-07-07 Thread Alexey Mukas
Hi all, I'm trying to use Spring in my app. Using: - wicket 6.9 - spring 3.2.3 Injection works fine with prototype/singleton, but not with request/session scope. I have following exception: No Scope registered for scope 'request' I've added listener

Re: Spring: cannot inject bean with scope request/session

2013-07-07 Thread Alexey Mukas
Hi Paul, Thanks for the reply. I've read this guide already, as I said DI works but only for prototype/singleton beans. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Spring-cannot-inject-bean-with-scope-request-session-tp4660112p4660119.html Sent from the Users

Re: How to create https link to a page?

2013-05-28 Thread Alexey Mukas
Hi Martin, I've made further investigations and found the problem, it was an order of 'mounting pages' and 'setRootRequestMapper'. If mounting goes first everything works fine (the URL to Loging generated with HTTPS), but if I change the order the URL is generated for HTTP and there is no

Re: How to create https link to a page?

2013-05-28 Thread Alexey Mukas
Thanks Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-create-https-link-to-a-page-tp4659050p4659102.html Sent from the Users forum mailing list archive at Nabble.com. - To

How to create https link to a page?

2013-05-27 Thread Alexey Mukas
Hi all, In app I have several pages on http on those pages I need https link to the LoginPage. I have set HttpsMapper as a root mapper and added RequireHttps to the LoginPage class. I'm using Wicket 6.8.0 -- View this message in context:

Re: How to create https link to a page?

2013-05-27 Thread Alexey Mukas
Hi Martin, Thanks for the super fast reply! In my case I have no redirect, Login page opens with HTTP, but in the form (in action attribute) I see correct HTTPS url. Will try to reproduce in the Quickstart. -- View this message in context:

Re: What is your setup for Rapid Application Development?

2013-04-26 Thread Alexey Mukas
Hi Andrew, For UI we use jquery ui, select2, noty and other js components. Integration is pretty simple in wicket. We don't really need any UI designer or CRUD form generation, we just create html then bind it to the logic. CRUD generation could be added easily if needed. Basic core services as

Re: What is your setup for Rapid Application Development?

2013-04-25 Thread Alexey Mukas
In our project we are using the following tools/libs: - hibernate; - LiquiBase (db migration); - wro4j (for merging/compiling js, less and coffee script); - slf4j + logback; - selenium; - testng; - jmockit; - jmeter. -- View this message in context:

Re: how convert SimpleAttributeModifier to AttributeModifier#replace

2013-04-14 Thread Alexey Mukas
You have the answer in your question. new WebMarkupContainer(appletParam_url).add(AttributeModifier.replace(value, urlcache)) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-convert-SimpleAttributeModifier-to-AttributeModifier-replace-tp4657971p4657972.html

Generating wrong JavaScript on ajax updated

2013-04-12 Thread Alexey Mukas
Hi, Suppose I have BlinkBehaviour public static class BlinkBehaviour extends Behavior { @Override public void renderHead(Component component, IHeaderResponse response) { AjaxRequestTarget target = component.getRequestCycle().find(AjaxRequestTarget.class);

Re: Generating wrong JavaScript on ajax updated

2013-04-12 Thread Alexey Mukas
Here is a ticker with a quick start WICKET-5142 https://issues.apache.org/jira/browse/WICKET-5142 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generating-wrong-JavaScript-on-ajax-updated-tp4657921p4657923.html Sent from the Users forum mailing list archive at

Re: getPrefixToContextPath and optional named parameters

2013-04-12 Thread Alexey Mukas
Try this one UrlUtils.rewriteToContextRelative(images/icn-calendar.png,getRequestCycle()) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getPrefixToContextPath-and-optional-named-parameters-tp4657934p4657944.html Sent from the Users forum mailing list archive at

Re: Update ListView with Ajax, performance.

2013-04-12 Thread Alexey Mukas
If the list is relatively small (say 20-30 items) then it's better to pull it entirely to the clientside. Show first N items use js in the bottom link to show next items without a call to the server. see this solution

Regresion in 6.7.0-SNAPSHOT

2013-04-11 Thread Alexey Mukas
Hi, I've just checked upcoming 6.7 release and have found a regression (6.6.0 works fine). The problem appears when I'm trying to use UrlResourceReference with a url that starts with slash. Here is the code (assume the case when context path is empty) @Override public void

Re: Regresion in 6.7.0-SNAPSHOT

2013-04-11 Thread Alexey Mukas
I've found much simpler solution: use forUrl instead of forReference+UrlResourceReference like so response.render(CssHeaderItem.forUrl(style.css)); documentation says that the url is context-relative, so it will work with non-default context as well -- View this message in context:

Re: Regresion in 6.7.0-SNAPSHOT

2013-04-11 Thread Alexey Mukas
Done, WICKET-5141 https://issues.apache.org/jira/browse/WICKET-5141 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Regresion-in-6-7-0-SNAPSHOT-tp4657901p4657913.html Sent from the Users forum mailing list archive at Nabble.com.

Prevent submit

2013-03-15 Thread Alexey Mukas
Hi all, I have a form, which server-side processing takes takes 2-5 sec, at this time user can resubmit the form, this call goes to a queue and will be send right after the first one. I tried to play around the IAjaxCallListener but with no luck. How can I avoid this behaviour? -- View this

Re: Prevent submit

2013-03-15 Thread Alexey Mukas
Hi Martin, Thank for the fast reply, could you please tell me how can I manipulate it (make disable/enable) in those callbacks? Before your answer I came up with very dirty solution... public class AjaxBlockingListener extends AjaxCallListener{ public AjaxBlockingListener() {

Re: Prevent submit

2013-03-15 Thread Alexey Mukas
Did it :) onBeforeSend(this.setAttribute('disabled', 'disabled');); onComplete(this.removeAttribute('disabled');); Thanks once again -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prevent-submit-tp4657277p4657280.html Sent from the Users forum