Re: T4 ajax select menu bug

2013-10-15 Thread George Christman
Some additional information, this appears to last work correctly in version 5.4-alpha-20, but becomes broken in 5.4-alpha-21 - current. On Tue, Oct 15, 2013 at 11:09 PM, George Christman wrote: > Hello, I have a year, make, model select menu in my application. I set the > model of the current me

T4 ajax select menu bug

2013-10-15 Thread George Christman
Hello, I have a year, make, model select menu in my application. I set the model of the current menu based on the previous select menu using the onValueChanged event and ajax zone component. The select menu in T.4.22 appears to be calling the SelectModel before it calls the onValueChanged event re

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Thiago H de Paula Figueiredo
Also, see @PostInjection: /** * Annotation for methods that should be invoked after injection. This occurs last: after constructor injection and * after field injection. It should be placed on a public method. Any return value from the method is * ignored. The order of invocation for class

Re: [Eloquentia] Failed to execute goal on project eloquentia

2013-10-15 Thread Chris Mylonas
Sweetness! Updated, [INFO] BUILD SUCCESS Thanks Thiago. My project website used to run on drupal for content/forum and trac for pretty much code viewing. With the delinquencies (constant upgrades, performance dragging, spaminess) of php and CMS like it - I had made the decision to run with tape

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 19:06:17 -0300, Martin Kersten wrote: AFAIK, just set the tapestry.production-mode symbol to true and service reloading is turned off.< Wasn't this also turning of the template realoading and Page/Component replacement? Which I would like to have enabled. See my other

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 19:18:51 -0300, Martin Kersten wrote: And If I remember my diggin into the code session of tapestry's IOC correctly, binding a concrete (implementation) class is just binding the class to all its (super)interfaces. The only way of getting something concrete out of tapestri

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Cezary Biernacki
Even if do not own the interface, you can still create a new interface extending the original one. Than in your code you can inject your new interface to ger access to your extra methods. I am not at the computer now, so I do not have any examples, but I used such approach to "add" some methods to

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Martin Kersten
I do not own the interface. Currently I just use reflection to get the concrete service instance from the proxy and use reflection to call my method. And If I remember my diggin into the code session of tapestry's IOC correctly, binding a concrete (implementation) class is just binding the class t

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Martin Kersten
>AFAIK, just set the tapestry.production-mode symbol to true and service reloading is turned off.< Wasn't this also turning of the template realoading and Page/Component replacement? Which I would like to have enabled. Ok I use Screenshots and a Firefox Selenium Driver with a trigger so the testca

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 18:34:09 -0300, Lance Java wrote: I don't recommend this at all, in fact I think it is a terrible idea but if you really want to stop tapestry from creating reloadable proxies, you can declare your services by concrete class instead of by interface in your AppModule.

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Lance Java
Reloadable services are a development only feature that are aimed at improving developer productivity by reducing down time. As Thiago has said, casting to the concrete type is not good OO practice. If you need to access methods on the concrete class it's probably a sign that you need to add metho

Re: Service Override Problems

2013-10-15 Thread Martin Kersten
> I'm trying to override a few Tapestry services in order to gain access to the configurations but I'm not having much luck. For example< What are you trying to achieve? 2013/10/15 Thiago H de Paula Figueiredo > On Tue, 15 Oct 2013 14:49:35 -0300, Barry Books wrote: > > It's in another modul

Re: [Eloquentia] Failed to execute goal on project eloquentia

2013-10-15 Thread Thiago H de Paula Figueiredo
Me again. I've just released versions 2.0.0 for generic-dao and generic-controller and pushed the JARs through the Sonatype OSS Nexus instance. It'll probably take a couple hours for them to reach the Maven Central Repository. Please also update your Eloquentia code, as I've updated its p

Re: Service Override Problems

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 14:49:35 -0300, Barry Books wrote: It's in another module. I did comment it out and it does the same thing If the EMultipartDecoder isn't declared as a service anymore, it should work or at least fail with another exception. On Tuesday, October 15, 2013, Thiago H de

Re: Service Override Problems

2013-10-15 Thread Barry Books
It's in another module. I did comment it out and it does the same thing On Tuesday, October 15, 2013, Thiago H de Paula Figueiredo wrote: > On Tue, 15 Oct 2013 08:27:55 -0300, Barry Books wrote: > > Caused by: java.lang.RuntimeException: Service interface >> org.apache.tapestry5.upload.**servi

Re: Service Override Problems

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 08:27:55 -0300, Barry Books wrote: Caused by: java.lang.RuntimeException: Service interface org.apache.tapestry5.upload.services.MultipartDecoder is matched by 2 services: EMultipartDecoder, MultipartDecoder. Where does this EMultipartDecoder service comes from? -- Thiago

Re: Switching off Reloading of Service Implemenation?

2013-10-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Oct 2013 13:01:51 -0300, Martin Kersten wrote: I struggle a bit with the class loader supporting service implemenation reloading. AFAIK, just set the tapestry.production-mode symbol to true and service reloading is turned off. I dont need this and I would love to be able to c

Switching off Reloading of Service Implemenation?

2013-10-15 Thread Martin Kersten
I struggle a bit with the class loader supporting service implemenation reloading. I dont need this and I would love to be able to cast my Service instances to the impl class which is quite a good way. Sometimes I think I want to go with a meta service object storing all the services that are per

Re: Dynamic Loading of Templates

2013-10-15 Thread Martin Kersten
I dont want to cache it actually I will dig into it today to see if this becomes a problem. My Goal is to provide a string and let it be parsed as template. Therefore every test case can have its own 'template' for the same page. This way I could set up the component environment to test it easily.

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-15 Thread Lenny Primak
form-horizontal will look correctly on mobile platform as well. It wil 'revert' to stacked form on mobile, but maintain it's horizontal-ness on desktop. col-XX-X attributes can be configured as symbols, or can be passed along as a model of some kind. Sensible defaults can be pre-configured. On

Autocomplete mixin Typeahead 0.9.3 add result limit parameter

2013-10-15 Thread George Christman
Hello all, is there any chance we could add limit to the tapestry core autocomplete mixin? I need to return a few more than 5 results and it's looking like I'd need to create a new mixin to handle this. It appears to be pretty simple based on the example on typehead.js examples page. http://tapes

Service Override Problems

2013-10-15 Thread Barry Books
I'm trying to override a few Tapestry services in order to gain access to the configurations but I'm not having much luck. For example * public* *class* BindingSourceOverride *extends* BindingSourceImpl * implements* BindingSource { *public* BindingSourceOverride(Map factories, StringInterne

Re: [T5.4] BeanEditor and Friends don't look as good as in Tap 5.3

2013-10-15 Thread Barry Books
If you are building sites that work on mobile the default is correct. If you are starting from scratch it's OK also but converting an existing site can be a problem. I do have one non mobile site I'm converting so I looked at my old 2.3 mixin and the at the example http://getbootstrap.com/css/#for

Re: Dynamic Loading of Templates

2013-10-15 Thread Lance Java
I'm interested to see if it works. It's worth noting that your Resource implementation should have a proper hashCode() and equals() to take advantage of template caching.