[newbie] I cannot export my tapestry app

2011-03-18 Thread ronizedsynch
good afternoon all :D How to export tapestry application to war using eclipse ? I tried to learn com.example.tutorial1 n make some page to it but I understand how to export this project to war :D I use jetty plugin for eclipse to run it. thank to u all that response this newbie question :D --

Re: How to implement nested components?

2011-03-18 Thread Taha Hafeez
Hi AFAIK, the nested components(comB) can be accessed from the container's ComponentResources not the component's(comA) and the nested components(comB) are present in the container not the component(comA)... So you need to know the nested component's id to access it which can be passed as a parame

How to implement nested components?

2011-03-18 Thread leon
Hi all, I have a requirement to implement nested components, it like this: I have created components, but I can't access embedded components in comA: public class comA { @Inject private ComponentResources resources; void setupRender() { ComponentModel model = resources.get

Re: perthread or singleton

2011-03-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 Mar 2011 15:14:47 -0300, bogdan_cm wrote: Hi, Hi! As the methods return void This doesn't make any difference as long as the returned value isn't shared between threads or it doesn't have mutable state. and do not change any shared variable, they are basically atomic ope

Re: perthread or singleton

2011-03-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 Mar 2011 15:14:47 -0300, bogdan_cm wrote: Hi, Hi! As the methods return void and do not change any shared variable, they are basically atomic operations even without the use of the synchronized keyword. Any suggestions? Thanks, Bogdan. -- View this message in context:

Testing Services with injected Spring beans

2011-03-18 Thread matt2
Hi, How can i test a service, if it needs Spring Manager in build? How it is possible initialize spring context in setUp() ? Thanks, thanks thanks in advance for any suggestions. PS: sorry for my terrible english. My JUnit Test: public class MyWebApiServiceTest extends TestCase { //Using

perthread or singleton

2011-03-18 Thread bogdan_cm
Hi, I have a Tap5 service called QueryFactory. This service will include dozens of methods for database interaction: selects, inserts, updates etc. This being an Web App, potentially multiple users ( threads ) will have the service injected at the same time and "potentially" invoke the same met

Re: Question about new ...()

2011-03-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 Mar 2011 11:25:06 -0300, degressor wrote: Why? Or maybe I don't understand something? You can't instantiate directly classes that are pages, components, mixins or are in the base package, because they're modified by Tapestry when loading them. Actually, you can, but they won't

Question about new ...()

2011-03-18 Thread degressor
Hi, I'm new with tapestry(sorry for noob questions), and read in the tutorial about new and services. Here my question: I can use new with standart classes and compontents from libryries, for example with HashMap(), but not with my own classes? Test test = new Test() lead to exception. I can't

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-18 Thread Martin Strand
On Fri, 18 Mar 2011 12:39:03 +0100, Thiago H. de Paula Figueiredo wrote: On Fri, 18 Mar 2011 01:25:43 -0300, sunmoor007 wrote: Added the below method to AppModule.java public LinkCreationListener buildLinkCreationListener( LinkCreationHub hub) { Make the method

Re: Tapestry 5 - cache issue when accessed via proxy

2011-03-18 Thread Thiago H. de Paula Figueiredo
On Fri, 18 Mar 2011 01:25:43 -0300, sunmoor007 wrote: Added the below method to AppModule.java public LinkCreationListener buildLinkCreationListener( LinkCreationHub hub) { Make the method static and try again please. LinkCreationListener listener =