Tapestry IOC: Multiple bindings for same interface

2014-02-21 Thread Michael Gagauz
Is it possible in T5 to inject multiple services which implemented same interface into array field? I.e: @Inject private SomeService[] services; - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional com

Re: Forms require that the request method be POST and that the t:formdata query parameter have values.

2013-12-02 Thread Michael Gagauz
I'm sure there are GET requests from search bots. Make sure you exclude action/event links and form actions in robots.txt (like Disallow: /*?t:ac=*, Disallow: */pagename.component:action* 02.12.2013 17:41, Ben Titmarsh пишет: Hi Guys, I'm getting quite a lot of these exceptions in my logs.

Re: Renaming options in select menu using .properties

2013-09-19 Thread Michael Gagauz
You must correct the following errors before continuing. - Selected option is not listed in the model. It works perfectly fine with the encoder, I'm assuming it's not converting the client string back to a boolean. Any thoughts? On Thu, Sep 19, 2013 at 10:00 AM, Michael Gagauz wrot

Re: Renaming options in select menu using .properties

2013-09-19 Thread Michael Gagauz
You can't do it using SelectModelFactory unless you'll create some kind of wrapper for Boolean. Try to create SelectModel manually: List tardies = new ArrayList(); tardies.add(new OptionModelImpl("Y", true)); tardies.add(new OptionModelImpl("N", false)); new Sel

Re: Redirection afer ajax call when session timeout.

2013-09-18 Thread Michael Gagauz
It's hard to tell why... Try to debug js code - is it called or not. But this sample is real one, I use it in several projects. 18.09.2013 17:23, ANDRE Christophe пишет: I tryed with this: $(document).ajaxComplete(function(event, xhr, options){ if (xhr&& xhr.getResponseHeader("Locati

Re: Redirection afer ajax call when session timeout.

2013-09-18 Thread Michael Gagauz
Another options to return from page/component event: 1. Link object 2. String with page url 3. JSON containing {redirectURL:"/desired/location"} 18.09.2013 16:22, ANDRE Christophe пишет: Hi, I have an application that use a lot of Ajax. When my session has expired, my server redirect me on my d

Re: Redirection afer ajax call when session timeout.

2013-09-18 Thread Michael Gagauz
If you're using jquery add following code to the page: $j(document).ajaxComplete(function(event, xhr, options){ if (xhr && xhr.getResponseHeader("Location")) { window.location = xhr.getResponseHeader("Location"); } }); 18.09.2013 16:22, ANDRE Christophe пишет: Hi, I have an app

Re: how to configure jquery/autocomplete for ssl?

2013-09-17 Thread Michael Gagauz
Hi. Make sure you added SymbolConstants.SECURE_ENABLED to your app configuration. In AppModule there should be method: protected static void contributeApplicationDefaults(final MappedConfiguration configuration) { configuration.add(SymbolConstants.SECURE_ENABLED, "true"); 17.09.20