Hi all Thank you for your great support.
@Igor Yes I'm talking about spring beans and yes RequestFilter is a tapestry interface. I wanted to use it like this in the spring context: <bean id="handsetGroupRequestFilter" class="xxx.yyy.HandsetGroupRequestFilter"> </bean> <bean id="deviceRecognitionRequestFilter" class="xxx.yyy.DeviceRecognitionRequestFilter"> <property name="deviceService" ref="deviceService" /> </bean> Consider the deviceRecognitionRequestFilter is using the spring bean deviceService. On 26.07.2010, at 19:09, Igor Drobiazko wrote: > Hi Christian, > > are you sure you are talking about Spring beans? RequestFilter is a Tapestry > interface. You should provide implementations for this interface inside a > Tapestry module. As Thiago suggested you should use @InjectService to > disambiguate both implementations. > > On Mon, Jul 26, 2010 at 4:54 PM, Christian Koller <ko...@swissonline.ch>wrote: > >> Hi all >> >> I want to use two different spring beans with same interface in my module >> class, like the example shows: >> >> public void contributeRequestHandler(OrderedConfiguration<RequestFilter> >> configuration, >> @Inject RequestFilter handsetGroupRequestFilter, >> @Inject RequestFilter deviceRecognitionRequestFilter) { >> >> configuration.add("HandsetGroupRequestFilter", handsetGroupRequestFilter); >> configuration.add("DeviceRecognitionRequestFilter", >> deviceRecognitionRequestFilter); >> } >> >> Of course i get an exception like: >> Spring context contains 2 beans assignable to type >> org.apache.tapestry5.services.RequestFilter: deviceRecognitionRequestFilter, >> handsetGroupRequestFilter. >> >> >> How can I solve this problem? Somehow I have to provide the spring bean id. >> thx >> chris >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > > -- > Best regards, > > Igor Drobiazko > http://tapestry5.de Christian Koller Sofwareentwickler net mobile Schweiz AG Seestrasse 45 CH ñ 8702 Zollikon Tel: + 41 (0) 44 918 99 99 Fax: + 41 (0) 44 918 99 98 Direkt: + 41 (0) 44 918 99 72 Mail: christian.kol...@net-m.ch Web: www.net-m.ch --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org