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't internal either, mind you).  That's all well and  
good, except I have no clue how to accomplish this in anything since  
5.0.6.  Zones look promising, except they don't work with forms (or  
grids from what I've seen).  So, is there any middle ground?  I'd  
like to move up to newer versions, but this is a showstopper...


PageRenderInitializer initializer;

basically, it is just the
initializer.setup(markupWriter);

and
initializer.cleanup(markupWriter);

methods that were being used...  but it seems like there must be a  
way to still do this?


Steve



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't internal either, mind you).  That's all well and  
good, except I have no clue how to accomplish this in anything since  
5.0.6.  Zones look promising, except they don't work with forms (or  
grids from what I've seen).  So, is there any middle ground?  I'd  
like to move up to newer versions, but this is a showstopper...


PageRenderInitializer initializer;

basically, it is just the
initializer.setup(markupWriter);

and
initializer.cleanup(markupWriter);

methods that were being used...  but it seems like there must be a  
way to still do this?


Steve


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 axis2 prefix. This seems to break tapestry-ioc  
somehow.
If I take the jars in my aar archive manually and extract them into  
the tomcat_home/webapps/axis2/WEB-INF/lib directory, everything works  
fine.


Does this make sense?

M.


Am 26.01.2008 um 16:25 schrieb 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 the aar file and deploy that on my axis2  
server, I get the following Exception upon first connection to the  
service


java.lang.NoClassDefFoundError: org/apache/tapestry/ioc/ObjectCreator
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at java.lang.Class.privateGetDeclaredConstructors(Class.java: 
2357)

   at java.lang.Class.getConstructors(Class.java:1446)
   at  
org 
.apache 
.tapestry 
.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java:382)
   at  
org 
.apache.tapestry.ioc.internal.ModuleImpl.createProxy(ModuleImpl.java: 
341)
   at  
org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java: 
233)
   at  
org 
.apache 
.tapestry.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:163)
   at  
org 
.apache.tapestry.ioc.internal.ModuleImpl.getService(ModuleImpl.java: 
91)
   at  
org 
.apache 
.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:294)
   at  
org 
.apache 
.tapestry 
.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java: 
207)
   at  
org 
.apache 
.tapestry 
.ioc 
.internal 
.RegistryWrapper.performRegistryStartup(RegistryWrapper.java:68)
   at  
de 
.avetana 
.rtx 
.service 
.RTX33XXSoapSkeleton 
.setupMeasurementService(RTX33XXSoapSkeleton.java:251)


Very strange already because it tells that a class is missing  
(ObjectCreator), where another class that is within the same JAR  
(tapestry-ioc-5.0.7.jar)  is obviousely present (ModuleImpl).



However, when connecting afterwards, this exception does not appear  
but another exception



[EMAIL PROTECTED]
java.lang.RuntimeException: Error building service proxy for service  
'MeasurementService' (at  
de.avetana.services.receiver.MeasurementServiceImpl(Session) (at  
MeasurementServiceImpl.java:44)): Unable to create class  
$MeasurementService_117b6aa4a95: by java.lang.NoClassDefFoundError:  
de/avetana/services/receiver/MeasurementService
   at  
org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java: 
251)
   at  
org 
.apache 
.tapestry.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java:163)
   at  
org 
.apache.tapestry.ioc.internal.ModuleImpl.getService(ModuleImpl.java: 
91)
   at  
org 
.apache 
.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:294)
   at  
org 
.apache 
.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:524)
   at  
org 
.apache 
.tapestry 
.ioc.internal.RegistryWrapper.getService(RegistryWrapper.java:58)
   at  
de 
.avetana 
.rtx 
.service 
.RTX33XXSoapSkeleton 
.setupMeasurementService(RTX33XXSoapSkeleton.java:253)



Both classes (org/apache/tapestry/ioc/ObjectCreator and de/avetana/ 
services/receiver/MeasurementService) are definitely within axis2  
range.
And there are no mismatched jars too since this happens on two clean  
tomcat (6.0.14) and jetty (6.0.0) Application servers with no other  
services.


Anyone got a clue?

We were using hivemind 1.1.1 previousely to do the dependency  
injection and it worked fine.


Thanks

Moritz



-
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: 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'.

The concept of services, build... methods and contribute... methods is an
area I need to dive into, it is still fuzzy.

Marcel


On Jan 26, 2008 7:41 PM, Fernando Padilla <[EMAIL PROTECTED]> wrote:

> 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://tapestry.apache.org/tapestry5/tapestry-ioc/service.html
>
>
> And another reminder:
>
> Tapestry IoC does not enhance the classes, so the private variable
> enhancement does not work like it works in base/pages/components.
>
> So this will not work!
>
> public class Service {
>   @Inject
>   @Service("name")
>   private Service2 service2;
> }
>
>
>
>
> Marcel Schepers wrote:
> > 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 service
> in
> > classes residing in 'pages' or 'components' packages. AppModule is in
> > 'services'.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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)hristian
> 
> 
> 
> spamglik wrote:
>> 
>> 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 version 5.0.6 or
>> older?
>> 
>> regards
>> m
>> 
>> 
>> 
>> spamglik wrote:
>>> 
>>> 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? 
>>> 
>>> Here is stack trace I receive :
>>> 
>>> 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)
>>> at
>>> org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
>>> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
>>> at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
>>> at
>>> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
>>> at
>>> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
>>> at org.mortbay.util.Container.start(Container.java:72)
>>> at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
>>> at org.mortbay.util.Container.start(Container.java:72)
>>> at
>>> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
>>> at
>>> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
>>> at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)  
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-integrate-Tapestry-5.0.9-with-Spring-tp15110458p15111973.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: 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.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 version 5.0.6 or
> older?
> 
> regards
> m
> 
> 
> 
> spamglik wrote:
>> 
>> 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? 
>> 
>> Here is stack trace I receive :
>> 
>> 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)
>>  at
>> org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
>>  at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
>>  at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
>>  at
>> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
>>  at
>> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
>>  at org.mortbay.util.Container.start(Container.java:72)
>>  at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
>>  at org.mortbay.util.Container.start(Container.java:72)
>>  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
>>  at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
>>  at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)  
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-integrate-Tapestry-5.0.9-with-Spring-tp15110458p15111778.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]



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.  I know I can probably fudge something  
together with a servlet sessionlistener  filter that finds my ASO in  
the session and "cleans it up", but I'd have to assume I know how to  
get the ASO from the session outside of tapestry, which is subject to  
change, so I don't really want to do that.  Is there any way to  
define how an ASO is cleaned up when no longer used, or any  
suggestions for a better way to do this?

Thanks,
Steve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 version 5.0.6 or older?

regards
m



spamglik wrote:
> 
> 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? 
> 
> Here is stack trace I receive :
> 
> 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)
>   at
> org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
>   at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
>   at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
>   at
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
>   at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
>   at org.mortbay.util.Container.start(Container.java:72)
>   at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
>   at org.mortbay.util.Container.start(Container.java:72)
>   at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
>   at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
>   at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)  
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-integrate-Tapestry-5.0.9-with-Spring-tp15110458p15111627.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: 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) {
   
  }

..
}

In the example above, LabelSevice is a Spring service.


/Serge 


MrclSchprs wrote:
> 
> 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 service
> in
> classes residing in 'pages' or 'components' packages. AppModule is in
> 'services'.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-access-the-servlet-context-in-AppModule--tp15110070p15111202.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: 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://tapestry.apache.org/tapestry5/tapestry-ioc/service.html


And another reminder:

Tapestry IoC does not enhance the classes, so the private variable 
enhancement does not work like it works in base/pages/components.


So this will not work!

public class Service {
  @Inject
  @Service("name")
  private Service2 service2;
}




Marcel Schepers wrote:

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 service in
classes residing in 'pages' or 'components' packages. AppModule is in
'services'.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 service in
classes residing in 'pages' or 'components' packages. AppModule is in
'services'.


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? 

Here is stack trace I receive :

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)
at
org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
at org.mortbay.util.Container.start(Container.java:72)
at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)  
-- 
View this message in context: 
http://www.nabble.com/How-to-integrate-Tapestry-5.0.9-with-Spring-tp15110458p15110458.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: 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 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 constructor parameter. Any ideas?






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 BindingFactory. My idea was to access Spring's
> application context and instantiate a new BindingFactory with the Spring
> service as constructor parameter. Any ideas?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-access-the-servlet-context-in-AppModule--tp15110070p15110348.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]



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 constructor parameter. Any ideas?


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 have any idea maybe what went wrong?

regards
m

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

-- 
View this message in context: 
http://www.nabble.com/What-happend-to-org.apache.tapestry.annotations.Inject---tp15109269p15110016.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: 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---tp15109269p15109269.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: 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: Robert Zeigler <[EMAIL PROTECTED]>Gesendet von: robert zeigler <[EMAIL PROTECTED]>Datum: 25.01.2008 04:51PMThema: Re: Mixin nudgeHi Kevin,I wonder if you could use mixin parameters for this?Since the value to be operated on is likely to have different names  for different components (certainly no guaranteed name), it seems like  specifying a mixin parameter which tapestry will "autobind" is perhaps  the way to go?Then you could make your adjustments in (probably) begin render?RobertOn Jan 25, 2008, at 1/259:22 AM , Kevin Menard wrote:> Hi,>> After writing my "newlines" binding, I got to thinking that it might  > be nice> if it were just a mixin.  I started digging in, but couldn't really  > wrap my> head around modifying the parent component's bound value.>> What I'm looking to do is is basically a value filter.  I'd like the  > mixin> to take the value, apply its filter, and pass on to the next mixin or> component in the chain.  I've actually got several other candidate> operations in mind as well (truncation, capitalization, URLification).>> Right now I'm a bit stuck getting the value and storing it back in.   > It> looks like mixins are set up primarily to render something before or  > after> the component, but not necessarily change the component's state.   > So, I'm> not really sure how to go about this.  Any help would be much  > appreciated.>> Thanks,> Kevin -> 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]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 the aar file and deploy that on my axis2  
server, I get the following Exception upon first connection to the  
service


java.lang.NoClassDefFoundError: org/apache/tapestry/ioc/ObjectCreator
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java: 
2357)

at java.lang.Class.getConstructors(Class.java:1446)
at  
org 
.apache 
.tapestry.ioc.internal.ModuleImpl.createProxyInstance(ModuleImpl.java: 
382)
at  
org 
.apache.tapestry.ioc.internal.ModuleImpl.createProxy(ModuleImpl.java: 
341)
at  
org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java:233)
at  
org 
.apache.tapestry.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java: 
163)
at  
org.apache.tapestry.ioc.internal.ModuleImpl.getService(ModuleImpl.java: 
91)
at  
org 
.apache 
.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:294)
at  
org 
.apache 
.tapestry 
.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:207)
at  
org 
.apache 
.tapestry 
.ioc 
.internal.RegistryWrapper.performRegistryStartup(RegistryWrapper.java: 
68)
at  
de 
.avetana 
.rtx 
.service 
.RTX33XXSoapSkeleton.setupMeasurementService(RTX33XXSoapSkeleton.java: 
251)


Very strange already because it tells that a class is missing  
(ObjectCreator), where another class that is within the same JAR  
(tapestry-ioc-5.0.7.jar)  is obviousely present (ModuleImpl).



However, when connecting afterwards, this exception does not appear  
but another exception



[EMAIL PROTECTED]
java.lang.RuntimeException: Error building service proxy for service  
'MeasurementService' (at  
de.avetana.services.receiver.MeasurementServiceImpl(Session) (at  
MeasurementServiceImpl.java:44)): Unable to create class  
$MeasurementService_117b6aa4a95: by java.lang.NoClassDefFoundError: de/ 
avetana/services/receiver/MeasurementService
at  
org.apache.tapestry.ioc.internal.ModuleImpl.create(ModuleImpl.java:251)
at  
org 
.apache.tapestry.ioc.internal.ModuleImpl.findOrCreate(ModuleImpl.java: 
163)
at  
org.apache.tapestry.ioc.internal.ModuleImpl.getService(ModuleImpl.java: 
91)
at  
org 
.apache 
.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:294)
at  
org 
.apache 
.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:524)
at  
org 
.apache 
.tapestry.ioc.internal.RegistryWrapper.getService(RegistryWrapper.java: 
58)
at  
de 
.avetana 
.rtx 
.service 
.RTX33XXSoapSkeleton.setupMeasurementService(RTX33XXSoapSkeleton.java: 
253)



Both classes (org/apache/tapestry/ioc/ObjectCreator and de/avetana/ 
services/receiver/MeasurementService) are definitely within axis2 range.
And there are no mismatched jars too since this happens on two clean  
tomcat (6.0.14) and jetty (6.0.0) Application servers with no other  
services.


Anyone got a clue?

We were using hivemind 1.1.1 previousely to do the dependency  
injection and it worked fine.


Thanks

Moritz



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



stuff here


Works fine for me in Eclipse 3.2.1 with WST/WTP

On Jan 25, 2008 8:32 PM, Geoff Callender
<[EMAIL PROTECTED]> wrote:
> Weird.  That's exactly what I use and it's fine (Eclipse 3.2.2, tml
> files opened with HTML editor, with WST feature (Web Standard Tools)
> project 1.5.4).
>
>
> On 26/01/2008, at 3:49 AM, Franz Amador wrote:
>
> > That's annoying.  I actually do have an "html" tag just like you
> > suggest, but my emailer apparently stripped it from the message.
> > I'll try again but use a character entity for the left angle bracket
> > of the open "html" tag.  Here's my Layout.tml file, which Eclipse
> > says is bad XML.  It's the "xmlns:t" in the "html" open tag that
> > Eclipse complains about ("Attribute "xmlns:t" must be declared for
> > element type "html""):
> >
> > 
> >  >   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> >  
> >${message:page-title}
> >  
> >  
> >
> >  
> > 
> >
> >
> >
> > - Original Message 
> > From: Josh Canfield <[EMAIL PROTECTED]>
> > To: Tapestry users 
> > Sent: Thursday, January 24, 2008 3:17:45 PM
> > Subject: Re: T5: Eclipse unhappy with TML file that has DOCTYPE
> >
> >
> > I believe you just need to add the namespace to an outer element...
> > for instance in a page you might have
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> >
> > Josh
> >
> > On Jan 24, 2008 2:35 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
> >
> >> I'm hoping someone can tell me how to configure Eclipse so it doesn't
> >> complain about the "t:" items in a .tml file that has a DOCTYPE.  For
> >> example, this file (Start.tml):
> >>
> >> 
> >>  >>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> >>
> >>
> >> 
> >>   ${message:page-title}
> >> 
> >> 
> >>   ${message:page-title}
> >>   Logout
> >> 
> >> 
> >>
> >> If I remove the DOCTYPE block, Eclipse is happy (properly speaking,
> >> Eclipse's XML editor), but when I add it, I get complaints about all
> > the
> >> "t:" entries.  The "xmlns:t" attribute, for example, gets this
> > complaint:
> >>
> >>   Attribute "xmlns:t" must be declared for element type "html".
> >>
> >> Do other people see this?  Is there actually something wrong with the
> >> file, or do I have Eclipse misconfigured?  Thanks!
> >>
> >>
> >>
> >
> >
> > --
> > --
> > TheDailyTube.com. Sign up and get the best new videos on the internet
> > delivered fresh to your inbox.
> >
> >
> >
>
>
> -
> 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: T5: Service and thread

2008-01-26 Thread Davor Hrg
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();

}


after this you have to bind this task to the your ASO
so you can access it and display progress on the page ...


these are just pointers ... the rest is on you :):)

Davor Hrg




On Jan 26, 2008 1:01 AM, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Davor,
>
> getAll is not async, it will not return immediately, how to make a service
> async? thanks.
>
>
>
>
> Davor Hrg wrote:
> >
> > are you sure
> > fileService.getAll();
> > is async and returns immediately ?
> >
> > Davor Hrg
> >
> >
> >
> > On Jan 25, 2008 4:36 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Davor,
> >>
> >> the service downloads files from remote server which takes quite long
> >> time,
> >> the code is:
> >>
> >> @Inject private FileService fileService;
> >>
> >> Class onActionFromTest() throws Exception {
> >>
> >>try {
> >> fileService.getAll();
> >>}
> >>} catch (CodeExistsException e) {
> >>e.printStackTrace();
> >>}
> >>return null;
> >>}
> >>
> >> after the call fileService.getAll(), the cursor in the browser at that
> >> time
> >> is in the 'wait' state, i have to click another page to bring the cursor
> >> back to normal.
> >>
> >>
> >>
> >>
> >>
> >> Davor Hrg wrote:
> >> >
> >> > hm.. I'm not following you ...
> >> >
> >> > you say you download sth ...
> >> > does your service download sth from some server to yourown
> >> > or is browser downloading from your server ...
> >> > could you say more about your case ... some ceode mybe ...
> >> >
> >> >
> >> > Davor Hrg
> >> >
> >> > On Jan 25, 2008 11:08 AM, Angelo Chen <[EMAIL PROTECTED]>
> >> wrote:
> >> >>
> >> >> Hi Davor, Andy,
> >> >>
> >> >> Thanks for the reply,  what I do now is, just start the service, and i
> >> >> can
> >> >> go to other pages as well, but if I stay in the same page where i
> >> start
> >> >> the
> >> >> service, the cursor will be in the 'wait' state, i have to leave the
> >> page
> >> >> first, any idea?
> >> >>
> >> >> A.C.
> >> >>
> >> >>
> >> >> Davor Hrg wrote:
> >> >> >
> >> >> > Tapestry-ioc will not generate threads for you,
> >> >> > taopestry-ioc makes sure that some resources are unique per thread,
> >> >> > and threads can be generated where ever. They mostly come from
> >> >> underlaying
> >> >> > server for each request.
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/T5%3A-Service-and-thread-tp15061626p15084799.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]
> >> >>
> >> >>
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/T5%3A-Service-and-thread-tp15061626p15090199.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]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-Service-and-thread-tp15061626p15099632.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]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]