T5: How to do partial page rendering on my own beyond 5.0.6?

2008-01-26 Thread Steven Woolley
I was using code posted to the list (see http://www.nabble.com/T5%3A- Partial-Page-Rendering-td12179365.html) for partial page rendering. It worked wonderfully. I could even render components that contain forms or grids. However, starting with 5.0.7, PageRenderInitializer is gone (it wasn

T5: How to do partial page rendering on my own beyond 5.0.6?

2008-01-26 Thread Steven Woolley
I was using code posted to the list (see http://www.nabble.com/T5%3A- Partial-Page-Rendering-td12179365.html) for partial page rendering. It worked wonderfully. I could even render components that contain forms or grids. However, starting with 5.0.7, PageRenderInitializer is gone (it wasn

Re: Exception using Tapestry-ioc in AXIS2 Service

2008-01-26 Thread Moritz Gmelin
OK, after some more trying, I think that the problem is related to the way axis2 is extracting libraries from its .aar archive files. The libraries contained inside the .aar file are extracted and renamed to the tomcat_home/work/cataline/localhost/ tree and the name is changed to with

Re: How to access the servlet context in AppModule?

2008-01-26 Thread Marcel Schepers
I think I've got it working, thanks to the overlooked @InjectService. My module constructor now looks like: public AppModule(@InjectService("messageDAO") MessageDAO messageDOA) { System.out.println("messageDOA2: " + messageDOA); } messageDAO is a Spring bean used in 'contributeBindingSource'.

Re: How to integrate Tapestry 5.0.9 with Spring

2008-01-26 Thread spamglik
Hi I have updated log4j.jar for 1.2.14 in jetty/extra/ext but that did not help . :( Christian Gorbach wrote: > > hi, > replace your/jetty log4j.jar with a newer one (which does support TRACE > log level) > http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-td12878469.html > cheers > c)h

Re: How to integrate Tapestry 5.0.9 with Spring

2008-01-26 Thread Christian Gorbach
hi, replace your/jetty log4j.jar with a newer one (which does support TRACE log level) http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-td12878469.html cheers c)hristian spamglik wrote: > > I check in the sources the line that crash. > > logger = _loggerSource.getLogger(def.getLoggerNam

Cleaning up an ASO on session expiration (or termination)

2008-01-26 Thread Steven Woolley
I have an ASO that is acting as a listener to a service. I am probably doing things stupidly, but it (almost) works. When the ASO is created, it adds itself as a listener to the service, but I have no way of removing it as a listener when the session expires or is explicitly terminated.

Re: How to integrate Tapestry 5.0.9 with Spring

2008-01-26 Thread spamglik
I check in the sources the line that crash. logger = _loggerSource.getLogger(def.getLoggerName()); I have problem with Spring since Tapestry 5.0.6. This is the same version were the logger was changed from commons logging to slf4j. Anybody has any ideas if this is related? Anybody use spring in

Re: How to access the servlet context in AppModule?

2008-01-26 Thread SergeEby
Not sure what you are doing but the following works fine for me in my AppModule: public class AppModule { ... public static void contributeAliasOverrides ( Configuration aConfiguration, @Inject @Service("LabelService") LabelService aService) { ..

Re: How to access the servlet context in AppModule?

2008-01-26 Thread Fernando Padilla
Ah. I think there was a misunderstanding on how AppModule/Tapestry IoC works (maybe). And we also got confused. Within AppModule/TapestryIoC, the correct annotation is @InjectService("name"). But you can review the documentation to make sure that we're all on the same page: http://tapest

Re: How to access the servlet context in AppModule?

2008-01-26 Thread Marcel Schepers
On Jan 26, 2008 6:34 PM, Fernando Padilla <[EMAIL PROTECTED]> wrote: > Within the AppModule you can try accessing the following services: > > 1) WebContextApplicationContext > 2) RequestGlobals > 3) @Inject @Service("beanName") > > The third option does not work; Tapestry does only inject spring s

How to integrate Tapestry 5.0.9 with Spring

2008-01-26 Thread spamglik
Hi I had a working project in Tapestry 5.0.5 and when I upgrade to 5.0.7 or 5.0.9 it stops working. Also when I try new project from quickstart and tapestry-spring library's + change filter in web.xml it refuse to work too. Has anything changed in the way the Spring + Tapestry should be integrated

Re: How to access the servlet context in AppModule?

2008-01-26 Thread Fernando Padilla
Within the AppModule you can try accessing the following services: 1) WebContextApplicationContext 2) RequestGlobals 3) @Inject @Service("beanName") SergeEby wrote: Hey, You can pass Spring Services as argument by using the @Inject @Service annotations. /Serge MrclSchprs wrote: How to acc

Re: How to access the servlet context in AppModule?

2008-01-26 Thread SergeEby
Hey, You can pass Spring Services as argument by using the @Inject @Service annotations. /Serge MrclSchprs wrote: > > How to access the servlet context in AppModule? Tapestry's Spring > integration does not work for the 'services' package. A Spring service is > needed for a custom BindingFact

How to access the servlet context in AppModule?

2008-01-26 Thread Marcel Schepers
How to access the servlet context in AppModule? Tapestry's Spring integration does not work for the 'services' package. A Spring service is needed for a custom BindingFactory. My idea was to access Spring's application context and instantiate a new BindingFactory with the Spring service as construc

Re: What happend to org.apache.tapestry.annotations.Inject ?

2008-01-26 Thread spamglik
Thanks. I also get the exception when I try to start the app Exception in thread "main" java.lang.AbstractMethodError at org.apache.tapestry.ioc.internal.RegistryImpl.(RegistryImpl.java:162) at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131) ... Do You h

Re: What happend to org.apache.tapestry.annotations.Inject ?

2008-01-26 Thread Marcus
Hi spamglik, org.apache.tapestry.*ioc*.annotations.Inject http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469 Marcus

What happend to org.apache.tapestry.annotations.Inject ?

2008-01-26 Thread spamglik
Hi I am upgrading from 5.0.5 and I do have some problems. What happend to org.apache.tapestry.annotations.Inject ? How to inject spring bean into the page? regards m -- View this message in context: http://www.nabble.com/What-happend-to-org.apache.tapestry.annotations.Inject---tp15109269p15109

Re: Mixin nudge

2008-01-26 Thread Kristian Marinkovic
hi kevin,it is currenly not possible to read the parameters of a component from within a mixin. i filed a jira entry some time ago... feel free to vote for it :)https://issues.apache.org/jira/browse/TAPESTRY-1764g,kris-robert zeigler <[EMAIL PROTECTED]> schrieb: -An: "Tapestry users" Von: R

Exception using Tapestry-ioc in AXIS2 Service

2008-01-26 Thread Moritz Gmelin
Hi, I don't know if this is off topic but I'll try anyways. I'm trying to build a webservice for axis2 that uses tapestry-ioc dependency injection together with tapestry-hibernate. All my JUnit tests with the tapestry-ioc based service work well (without axis2). But if I try to generate th

Re: T5: Eclipse unhappy with TML file that has DOCTYPE

2008-01-26 Thread Daniel Jue
I'm using this, but I don't have the line at the top Re: T5: Service and thread
you have to call your code in a separate Thread ... it can be inline as well.. private int progress; public void getAll(){ final Sth myVar new Thread(new Runnable(){ public void run(){ do long running code here, and set progress variable if possible } }).start(); } aft