Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Hi Lenny & Tapestry Users, Yep I tried exclude in the template. No such luck. The thing errors out in setupRender - I might do the fetching of the List in onActivate (even though it's in the wrong place to put such stuff). I tried a few things, like the other suggestion to use @Inject BeanMod

Re: T5.2 and Metro / SOAP

2011-09-21 Thread Daniel Honig
Why use metro when you can use CXF? Metro is good, but I don't think there is as much activity as CXF post the Sun/Oracle merger. On Wed, Sep 21, 2011 at 6:31 PM, Norman Franke wrote: > I have a need to create some web services to provide SOAP access. I'm > already using Tapestry 5.2 for our we

T5.2 and Metro / SOAP

2011-09-21 Thread Norman Franke
I have a need to create some web services to provide SOAP access. I'm already using Tapestry 5.2 for our web applications, so I think it would be natural to be able to use Tapestry's IoC with Metro, if possible. This would save me from having to re-implement all the DAO functionality. Has

Re: grid + crud

2011-09-21 Thread Emmanuel DEMEY
Hi You can have a look to these demos : http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridmodel1 http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/gridwithdeletecolumn1 Manu 2011/9/21 bigcache1 > Hello, everyone. > I have a question, can I add the update dele

Re: AjaxFormLoop problem with Tapestry 5.2.-beta-9

2011-09-21 Thread Emmanuel DEMEY
My Sample is the one on the Tapestry-jQuery Test application : https://github.com/got5/tapestry5-jquery/blob/master/src/test/java/org/got5/tapestry5/jquery/test/pages/test/AjaxFormLoop.java Manu 2011/9/21 Michael Dukaczewski > Emmanuel is right. I have the same problem. This simple example doe

Re: Confused with parameters

2011-09-21 Thread Alfonso Quiroga
Thanks to Thiago, I could achieve this. It was really easy, I only needed to have a parameter in my tree component with the currentNode. So now it work like this:  Node: ${node} You have to define the "node" variable as a property in the page. Bye! On Wed, Sep 21, 2011 at 12:18 PM, Alfons

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Yes - but I'm going to restart the app server because I don't trust it (cache wise, it's probably still got something in there) Still yields the same errors :( With this added to the original for providing the model, @Inject private BeanModelSource bms; @Inj

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Steve Eynon
Just re-looked at your code - can't believe I missed this the first time round... I believe the @Inject is working just fine - you just have to access the service *after* the class has been constructed! T5 is good, but it can't re-write the JVM! General sequence of events: - T5 instantiates th

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Lenny Primak
Have you tried exclude= in your template? That worked for me and is simple. On Sep 21, 2011, at 11:18 AM, Chris Mylonas wrote: > Hi!! > > It is EclipseLink (glassfish 3.1.1), I've just tried the first time now and > it failed again (same reason) but I'll try a few other things based on >

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Hi!! It is EclipseLink (glassfish 3.1.1), I've just tried the first time now and it failed again (same reason) but I'll try a few other things based on Thiago's response earlier (re: BeanModel). Here is CalledEvent which the error comes from if you can see anything strange, apologies Thiago fo

Confused with parameters

2011-09-21 Thread Alfonso Quiroga
Hi! I'm a bit confused. I've written a small tree component which iterates the tree and displays it, it work fine, but I write every node in Java (using the MarkUpWriter) Now I want the component more generic, so in the body of the component I can write the node as I want, example: Node: ${cu

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Jonathan Barker
Try explicitly providing your own model generated using BeanModelSource. @Inject private BeanModelSource bms; @Inject private Messages messages; public BeanModel getMyGridModel(){ return bms.createDisplayModel(CalledEvent.class, messages); } On Wed, Sep 21, 2011 at 3:10 AM, Chris Mylonas wr

Re: tapestry select model

2011-09-21 Thread Jonathan Barker
I'll preface this by saying that I've been following a "recipe" that's "just worked" for years, so I haven't had to make one work from scratch in ages. However Your ValueEncoder will throw NPE's. Have a look at the HibernateEntityValueEncoder in the tapestry-hibernate module - it uses a null

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Lenny Primak
This is EclipseLink. I use it and ran into the same problem. On Sep 21, 2011, at 10:28 AM, Lenny Primak wrote: > If you add exclude="_persistence_shouldRefreshFetchGroup" > to your grid definition, this should resolve the problem. > > On Sep 21, 2011, at 3:10 AM, Chris Mylonas wrote: > >> Hell

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Thiago H. de Paula Figueiredo
On Wed, 21 Sep 2011 11:28:47 -0300, Lenny Primak wrote: If you add exclude="_persistence_shouldRefreshFetchGroup" to your grid definition, this should resolve the problem. Which JPA implementation are you using? As Lenny noted, it seems it's adding stuff to your entity classes and BeanMod

Re: AjaxFormLoop problem with Tapestry 5.2.-beta-9

2011-09-21 Thread Michael Dukaczewski
Emmanuel is right. I have the same problem. This simple example does not work with Tapestry 5.3-beta-9: public class AjaxTest { @Persist private List source; @Property private String str; public List getSource() { if (source == nul

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Lenny Primak
If you add exclude="_persistence_shouldRefreshFetchGroup" to your grid definition, this should resolve the problem. On Sep 21, 2011, at 3:10 AM, Chris Mylonas wrote: > Hello Tapestry Users, > > I've got a problem with the grid element. > > > > It doesn't happen if I put my List into a Loop el

Re: grid + crud

2011-09-21 Thread françois facon
Hello I am sure you will find what you are look for at http://jumpstart.doublenegative.com.au/jumpstart/ Regards François 2011/9/21 bigcache1 : > Hello, everyone. > I have a question, can I add the update delete functionality to the grid? > Grid is very useful to display the lists, and recently

grid + crud

2011-09-21 Thread bigcache1
Hello, everyone. I have a question, can I add the update delete functionality to the grid? Grid is very useful to display the lists, and recently I have read how to overwrite rendering of some properties of the content. Now I want to add buttons, or actionlinks that will lead to deletion of the ent

Re: t5: url rewriting and query parameter part

2011-09-21 Thread EStreur
Hi, I'm want to know whether the lack of support for query parameters is still valid and how to address the issue otherwise. Background: I've inherited a project which uses Tapestry 5.1.0.5. The previous developers have implemented a URLRewriterRule similar to the examples in the guide. On inboun

Re: Translating the cancel button on BeanEditForm

2011-09-21 Thread Chris Poulsen
Hi, I think the message binding is correct (and probably more correct than the ${ } expansion). You should probably try to provide your translation in the same package/properties file as the component originally uses. - I think the app.properties are only used if no more specific definition is fo

Translating the cancel button on BeanEditForm

2011-09-21 Thread Sigbjørn Tvedt
Hi. I tried to translate the cancel button on a BeanEditForm by supplying the translation "cancel-label=Avbryt" in my app.properties, but this does not seem to work. I had a look at the source tml for the BeanEditForm, and I see that the cancel button are written as Are the value supposed to

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Thiago H. de Paula Figueiredo
On Wed, 21 Sep 2011 09:35:36 -0300, Chris Poulsen wrote: Hi, Hi! Thanks for the clarification! I was too lazy to read through the IoC docs as its not a code problem of mine we're discussing here. :) :) I think i read that tap IoC worked by constructor injection only; somewhere at so

Re: PageLink page-Parameter

2011-09-21 Thread Barry Books
I like it also but I believe this is already (for the most part) the case by default if you leave off the context. Try public class About { @InjectPage private Contact contactPage; @InjectPage private About aboutPage; private String value;

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Taha Hafeez
Hi As DocumentGenerator is a class you can use registry.autobuild to create an instance. This will inject the dependencies for you. On Wed, Sep 21, 2011 at 5:34 PM, Martin Strand wrote: > On Wed, 21 Sep 2011 13:19:51 +0200, nquirynen > wrote: > >> if I do >>     registry.getService(PolicyValueP

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Martin Strand
On Wed, 21 Sep 2011 13:19:51 +0200, nquirynen wrote: if I do registry.getService(PolicyValueProviderSource.class) and pass this as a parameter to my DocumentGenerator's constructor it does work. Is this the way to go then? (my knowledge of Tapestry IoC is very small) Yes, that is t

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread nquirynen
Removed the "static" (shouldnt be there anyway), but still the same problem :/ if I do registry.getService(PolicyValueProviderSource.class) and pass this as a parameter to my DocumentGenerator's constructor it does work. Is this the way to go then? (my knowledge of Tapestry IoC is very sma

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Steve Eynon
No, @Inject is an IOC annotation and works for services. I've never tried injecting a static service though... @Inject private static PolicyValueProviderSource policyValueProvider; maybe try deleting the 'static' keyword, oh, and ensure you're using the Tapestry @Inject and not javax or anyother.

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Chris Poulsen
Hi, I thought the @Inject was a part of the web app goodness that only works in those special packages and constructor injection is the way to go when using the IoC stand-alone? (This page shows an example using this: http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly ) -- Chris On Wed, Sep

Re: Console app with Tapestry IoC configuration

2011-09-21 Thread nquirynen
I have made a new project and have now this: *Main.java* public static void main(String[] args) { RegistryBuilder builder = new RegistryBuilder(); builder.add(AppModule.class); Registry registry = builder.build(); registry.performRegistryStartup();

Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Hello Tapestry Users, I've got a problem with the grid element. It doesn't happen if I put my List into a Loop element and build the table. ${calledEvent.id} ${calledEvent.calledParty} ${calledEv