Re: EmittingRSSFeeds Using Tapestry 5.0.16
could you give a simple example how to use StreamResponse or any lint that provide that information... thnx u very much On 11/24/08, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Sun, 23 Nov 2008 16:30:45 -0300, dwi ardi irawan > <[EMAIL PROTECTED]> escreveu: > >> have somebody tried integrating rome using tapestry 5? >> i read on wiki : >> http://wiki.apache.org/tapestry/EmittingRSSFeeds >> but when i tried it. it broken cos lot's of deprecated method and >> annotation >> like : >> >> @InjectObject( "infrastructure:markupWriterSource" ) >> @Parameter( defaultValue = "literal:rss_2.0" ) > > That wiki pages is about Tapestry 4.x, not Tapestry 5, and they are > implemented in very different ways. > A way to do a Rome integration (or any other integration with packages > that generate output) is to create a page that returns a StreamResponse on > it onActivate method. > (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/StreamResponse.html). > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Simple Component Question?
Following solution posted before by others should help, but I am wondering the performance comparing to the internal support like t4 $content$ in 5.1. BTW, what's the relationship of 5.0 and 5.1, are they developped parallelly now? This is quite a pattern like Layout. In your header, tml like this, note the component T4content http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xmlns="http://www.w3.org/1999/xhtml"; t:type="T4content"> // your true code And in your T4content.java, like: public class T4content { @Parameter @Property private Block body; Object beginRender() { return body; } // I don't want template to be rendered. @BeforeRenderTemplate boolean renderTemplate() { return false; } } Thanks! DH > This was possible in Tapestry 4, and something equivalent will be > available in 5.1. For the moment, you are out of luck. > > On Fri, Nov 21, 2008 at 4:26 PM, Ben Wong <[EMAIL PROTECTED]> wrote: >> Hi everyone, >> >> >> >> I have been picking up Tapestry 5 quickly in the last few weeks. I got >> quite far but hit a brick wall. This should be simple but I cannot find the >> solution. Basically, I have a Layout page/component. Inside the Layout >> page/component, it has a Header component. The Header component will have a >> .tml template that will render the header portion of the page. However, to >> make it viewable by designers etc, I want to also mark up the .tml file as a >> full HTML page. I just want the component however to only render the >> necessary part. >> >> >> >> How can I do that? I thought the wrapping what I want to render inside a >> would do the trick but the whole markup got render. >> >> >> >> Thanks for any help in advance, >> >> Ben >> >> > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
[T5] Palette NPE
Hey All, I'm getting a NullPointerException when the palette component in 5.0.16: Caused by: java.lang.NullPointerException at org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49) at org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$RenderPhaseEventHandler$1.render(ComponentPageElementImpl.java:164) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) I'm populating the palette using the code below: selectEncoder = new GenericValueEncoder(this.spreadsheetHeaders); selectModel = new GenericSelectModel(this.spreadsheetHeaders, StringBean.class, "value", "value", propertyAccess); Am I using this correctly? Thanks, Zack -- View this message in context: http://www.nabble.com/-T5--Palette-NPE-tp20652729p20652729.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EmittingRSSFeeds Using Tapestry 5.0.16
Em Sun, 23 Nov 2008 16:30:45 -0300, dwi ardi irawan <[EMAIL PROTECTED]> escreveu: have somebody tried integrating rome using tapestry 5? i read on wiki : http://wiki.apache.org/tapestry/EmittingRSSFeeds but when i tried it. it broken cos lot's of deprecated method and annotation like : @InjectObject( "infrastructure:markupWriterSource" ) @Parameter( defaultValue = "literal:rss_2.0" ) That wiki pages is about Tapestry 4.x, not Tapestry 5, and they are implemented in very different ways. A way to do a Rome integration (or any other integration with packages that generate output) is to create a page that returns a StreamResponse on it onActivate method. (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/StreamResponse.html). -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EmittingRSSFeeds Using Tapestry 5.0.16
have somebody tried integrating rome using tapestry 5? i read on wiki : http://wiki.apache.org/tapestry/EmittingRSSFeeds but when i tried it. it broken cos lot's of deprecated method and annotation like : @InjectObject( "infrastructure:markupWriterSource" ) @Parameter( defaultValue = "literal:rss_2.0" ) etc could somebody help me ? thnx u very much... -- http://dwiardiirawan.blogspot.com "cos everyone could be extraordinary...lighten up !"
Re: IoC Question with Alias
though I have no idea what you're trying to do :) have you considered using decorators? Those work well in most cases where you want to "override" a default service, and it always seems easier to understand.. [EMAIL PROTECTED] wrote: This happens to me in one Tapestry5 project when I start it using the Jetty plugin and eclipse. If I start it up using mvn jetty:run, this does not occur - so it might be something with Maven or the classpath as well. Sun, 21 Sep 2008 23:41:37 -0700 hi michael, happened to me several times too :) first you could try to define your services as proxy: from: binder.bind(HttpdRequestSecurityManager.class).withId("HttpdRequestSecurityManager"); to: binder.bind(RequestSecurityManager.class, HttpdRequestSecurityManager.class).withId("HttpdRequestSecurityManager"); if this is not enough try to break the dependency cycle by injecting the ObjectLocator and creating the proxy manually eg: configuration.add( AliasContribution.create( RequestSecurityManager.class, locator.proxy( RequestSecurityManager.class, HttpdRequestSecurityManager.class)) ); see also following post http://tapestry-user.markmail.org/search/?q=kristian+marinkovic#query:kristian%20marinkovic%20order%3Adate-backward+page:1+mid:pmmti5eoegosg2n5+state:results g, kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with 5.0.16/17
Hi, I have the same problem as you, and I have traced it to be the fault of commons/hidden component. If you replace it with t:textfield for testing purposes the problem should go away. Can you verify? So the problem is not your linking or anything else, the hidden component breaks things. - Ville Ps. I have filed issue to T5 commons website, so hopefully it will be fixed soon. Joachim Van der Auwera wrote: > > Hi, > > When I run my application in 5.0.15 everyting works just fine. > In 5.0.16 (and also 17) I get an exception saying "No object of type > org.apache.tapestry5.services.FormSupport is available from the > Environment. Available types are > org.apache.tapestry5.services.ComponentEventResultProcessor." > > This happens when clicking on an actionlink with the following code > > link to mypage > > public Object onActionFromCreateMyPage() > { > mypage.setObject( null ); > mypage.setReturnPage( resources.createPageLink( > resources.getPageName(), false ) ); > return mypage; > } > > The actionlink is not part of a form, but the exception seems to > indicate an excerpt of code in the returned page (where that case *is* > inside the form) > > The stacktrace indicates : > > # > org.apache.tapestry5.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73) > # > org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.findFormatter(FieldTranslatorSourceImpl.java:109) > # > org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createTranslator(FieldTranslatorSourceImpl.java:83) > # > org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:77) > # > org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:56) > # > org.apache.tapestry5.internal.services.ComponentDefaultProviderImpl.defaultTranslator(ComponentDefaultProviderImpl.java:123) > # > org.apache.tapestry.commons.components.Hidden.defaultTranslate(Hidden.java:82) > # > org.apache.tapestry.commons.components.Hidden.containingPageDidLoad(Hidden.java) > # > org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.run(ComponentPageElementImpl.java:101) > # > org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:925) > # > org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:779) > # > org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:145) > # > org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:405) > # > org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59) > # > org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) > # > org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) > # > org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) > # > org.apache.tapestry5.internal.services.ComponentSourceImpl.getPage(ComponentSourceImpl.java:79) > # > be.synergetics.ca.gui.components.Layout._$read_inject_page_assessedCompetencyEdit(Layout.java) > > Anybody has an idea of the cause/solution of this exception? > > Thanks, > Joachim > > -- > Joachim Van der Auwera > PROGS bvba, progs.be > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problem-with-5.0.16-17-tp20641146p20647982.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with 5.0.16/17
Please contact the author of org.apache.tapestry.commons.components.Hidden, as that appears to be the problem. On Sun, Nov 23, 2008 at 3:57 AM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: > Thanks for the reply. > > I am not rendering a part of a form. I have an actionlink which returns a > page. > This is not an ajax call, so it should just redirect to that page. > I cannot use a pagelink because I need to set some data on the page to be > rendered. > It all worked fine in previous versions of tapestry. It breaks now when > using 5.0.16 or 5.0.17. > Inside the page, the component which gives the exception is contained in a > form. > > Joachim > > Howard Lewis Ship wrote: >> >> You can't render a portion of a Form, except for specialized cases >> such as AjaxFormLoop and FormInjector. >> >> On Sat, Nov 22, 2008 at 2:20 PM, Joachim Van der Auwera >> <[EMAIL PROTECTED]> wrote: >> >>> >>> Hi, >>> >>> When I run my application in 5.0.15 everyting works just fine. >>> In 5.0.16 (and also 17) I get an exception saying "No object of type >>> org.apache.tapestry5.services.FormSupport is available from the >>> Environment. >>> Available types are >>> org.apache.tapestry5.services.ComponentEventResultProcessor." >>> >>> This happens when clicking on an actionlink with the following code >>> >>> link to mypage >>> >>> public Object onActionFromCreateMyPage() >>> { >>> mypage.setObject( null ); >>> mypage.setReturnPage( resources.createPageLink( >>> resources.getPageName(), false ) ); >>> return mypage; >>> } >>> >>> The actionlink is not part of a form, but the exception seems to indicate >>> an >>> excerpt of code in the returned page (where that case *is* inside the >>> form) >>> >>> The stacktrace indicates : >>> >>> # >>> >>> org.apache.tapestry5.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73) >>> # >>> >>> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.findFormatter(FieldTranslatorSourceImpl.java:109) >>> # >>> >>> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createTranslator(FieldTranslatorSourceImpl.java:83) >>> # >>> >>> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:77) >>> # >>> >>> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:56) >>> # >>> >>> org.apache.tapestry5.internal.services.ComponentDefaultProviderImpl.defaultTranslator(ComponentDefaultProviderImpl.java:123) >>> # >>> >>> org.apache.tapestry.commons.components.Hidden.defaultTranslate(Hidden.java:82) >>> # >>> >>> org.apache.tapestry.commons.components.Hidden.containingPageDidLoad(Hidden.java) >>> # >>> >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.run(ComponentPageElementImpl.java:101) >>> # >>> >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:925) >>> # >>> >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:779) >>> # >>> org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:145) >>> # >>> >>> org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:405) >>> # >>> >>> org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59) >>> # >>> >>> org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) >>> # >>> >>> org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) >>> # >>> >>> org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) >>> # >>> >>> org.apache.tapestry5.internal.services.ComponentSourceImpl.getPage(ComponentSourceImpl.java:79) >>> # >>> >>> be.synergetics.ca.gui.components.Layout._$read_inject_page_assessedCompetencyEdit(Layout.java) >>> >>> Anybody has an idea of the cause/solution of this exception? >>> >>> Thanks, >>> Joachim >>> >>> -- >>> Joachim Van der Auwera >>> PROGS bvba, progs.be >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> >> >> > > > -- > Joachim Van der Auwera > PROGS bvba, progs.be > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Components do not refresh after redirect
Hi all! I couldn't find a thread about this problem: After logging in with spring security I get correctly redirected to the landing page, in this case Index, but the layout components, namely the main menu, which has entries shown depending on the user roles do not get refreshed. Only when I click on one of the links the whole page is reloaded and the menu is, as it should be. This phenomenon occurs if I use a normal form (not tapestry) and also if I use a tapestry form and construct a redirect link like in Shams phb1.0.2. Anybody knows this problem and a solution?
RE: Help Loop
Post what you have in both .tml and .java files. It's not clear what you are looking for, because Sven's answer seemed appropriate based on your initial request. Jonathan > -Original Message- > From: Gutemberg A. Da Silva [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 22, 2008 16:27 > To: Tapestry users > Subject: Re: Help Loop > > Hi, > >I did this, but I didn't get. >What need I to have in my java class to display my items of list? > > Thanks. > > 2008/11/22 Sven Homburg <[EMAIL PROTECTED]> > > > > >${item} > > > > > > or > > > > > > > >${item} > > > > > > > > 2008/11/22 Gutemberg A. Da Silva <[EMAIL PROTECTED]> > > > > > Hi guys, > > > > > > Could anybody help me with loop componets? I'd to know how in html > each > > > item of List<> in each line using . > > > > > > For example: > > > > > > ${item} > > > > > > > > > Cause I didn't get display the items. Only display so: > > > > > > [item #1, item #2, item #3, item #4, item #5] > > > [item #1, item #2, item #3, item #4, item #5] > > > [item #1, item #2, item #3, item #4, item #5] > > > [item #1, item #2, item #3, item #4, item #5] > > > [item #1, item #2, item #3, item #4, item #5] > > > > > > But I'd like to display so: > > > > > > item #1 > > > item #2 > > > item #3 > > > item #4 > > > item #5 > > > > > > Thanks. > > > > > > -- > > > Gutemberg A. Da Silva > > > > > > > > > > > -- > > with regards > > Sven Homburg > > http://www.chenillekit.org > > http://tapestry5-components.googlecode.com > > > > > > -- > Gutemberg A. Da Silva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Global (application state) data
You say "read-only". At what point are the values set? Is this something where you can read values from an application wide properties file? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 23, 2008 07:28 > To: Tapestry users > Subject: Global (application state) data > > How do you define and use data that is shared across all users (read-only > data) in Tapestry5 ? > > Thanks! > > Toby > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap 5.0.16 : How to pass in a validator to an embedded TextField componet.
I have created a component, SingleInputRowTable, which is just a loop over a TextField component for inputting a list of numbers. The validation on the input numbers varies from case to case. So, I would like to pass in a validator to SingleInputRowTable for the embedded TextField component. When I added parameter @Parameter(defaultPrefix = BindingConstants.VALIDATE,required=false) private FieldValidator validate; to SingleInputRowTable.java and specified the embedded TextField.valdate to inherit from above, the following exception occurred. Could not convert 'required,min=0' into a component parameter binding: Component 'credit/CDSSpread:singleinputrowtable' is not a field (it does not implement the Field interface) and may not be used with the validate: binding prefix. The SingleInputTableRow.java does not implement the interface Field. Is there an easy way to pass in a validator to SingleInputRowTable (or do away with hardcoding the validate parameter of the embedded TextField)? Thanks in advance for any assistance ! Shing Home page : http://www.lombok.demon.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Global (application state) data
How do you define and use data that is shared across all users (read-only data) in Tapestry5 ? Thanks! Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with 5.0.16/17
Thanks for the reply. I am not rendering a part of a form. I have an actionlink which returns a page. This is not an ajax call, so it should just redirect to that page. I cannot use a pagelink because I need to set some data on the page to be rendered. It all worked fine in previous versions of tapestry. It breaks now when using 5.0.16 or 5.0.17. Inside the page, the component which gives the exception is contained in a form. Joachim Howard Lewis Ship wrote: You can't render a portion of a Form, except for specialized cases such as AjaxFormLoop and FormInjector. On Sat, Nov 22, 2008 at 2:20 PM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: Hi, When I run my application in 5.0.15 everyting works just fine. In 5.0.16 (and also 17) I get an exception saying "No object of type org.apache.tapestry5.services.FormSupport is available from the Environment. Available types are org.apache.tapestry5.services.ComponentEventResultProcessor." This happens when clicking on an actionlink with the following code link to mypage public Object onActionFromCreateMyPage() { mypage.setObject( null ); mypage.setReturnPage( resources.createPageLink( resources.getPageName(), false ) ); return mypage; } The actionlink is not part of a form, but the exception seems to indicate an excerpt of code in the returned page (where that case *is* inside the form) The stacktrace indicates : # org.apache.tapestry5.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73) # org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.findFormatter(FieldTranslatorSourceImpl.java:109) # org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createTranslator(FieldTranslatorSourceImpl.java:83) # org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:77) # org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:56) # org.apache.tapestry5.internal.services.ComponentDefaultProviderImpl.defaultTranslator(ComponentDefaultProviderImpl.java:123) # org.apache.tapestry.commons.components.Hidden.defaultTranslate(Hidden.java:82) # org.apache.tapestry.commons.components.Hidden.containingPageDidLoad(Hidden.java) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.run(ComponentPageElementImpl.java:101) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:925) # org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:779) # org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:145) # org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:405) # org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59) # org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210) # org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99) # org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51) # org.apache.tapestry5.internal.services.ComponentSourceImpl.getPage(ComponentSourceImpl.java:79) # be.synergetics.ca.gui.components.Layout._$read_inject_page_assessedCompetencyEdit(Layout.java) Anybody has an idea of the cause/solution of this exception? Thanks, Joachim -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IoC Question with Alias
This happens to me in one Tapestry5 project when I start it using the Jetty plugin and eclipse. If I start it up using mvn jetty:run, this does not occur - so it might be something with Maven or the classpath as well. Sun, 21 Sep 2008 23:41:37 -0700 hi michael, happened to me several times too :) first you could try to define your services as proxy: from: binder.bind(HttpdRequestSecurityManager.class).withId("HttpdRequestSecurityManager"); to: binder.bind(RequestSecurityManager.class, HttpdRequestSecurityManager.class).withId("HttpdRequestSecurityManager"); if this is not enough try to break the dependency cycle by injecting the ObjectLocator and creating the proxy manually eg: configuration.add( AliasContribution.create( RequestSecurityManager.class, locator.proxy( RequestSecurityManager.class, HttpdRequestSecurityManager.class)) ); see also following post http://tapestry-user.markmail.org/search/?q=kristian+marinkovic#query:kristian%20marinkovic%20order%3Adate-backward+page:1+mid:pmmti5eoegosg2n5+state:results g, kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]