Re: Inject managed beans?

2012-10-28 Thread derkoe
membersound wrote > What is the T5 equivalent to the following JSF? > > class Person {} > > class SigninPage { > @Inject > Person person; > } > > If I try this in tapestry, I'm getting: > org.apache.tapestry5.runtime.ComponentEventException > Error obtaining injected value for field person:

Re: Dynamic Assets

2012-10-28 Thread Dragan Sahpaski
Yes as I said, AssetSource is the service. AssetSourceImpl is the implementation. You inject the service. Cheers, Dragan Sahpaski On Sun, Oct 28, 2012 at 11:35 PM, sommeralex wrote: > works now with > > @Inject > private AssetSource assetSource; > > assetSource.getExpandedAsset(

Re: Quick way of showing embedded object properties?

2012-10-28 Thread Kalle Korhonen
Tapestry-model supports embeddables with some limitations, see http://tynamo.org/tapestry-model%20guide. Kalle On Sun, Oct 28, 2012 at 2:03 PM, membersound wrote: > HI, > > is there any quick way of showing embedded object properties within a table > grid? > Like: > > class User { > @Property S

Re: Dynamic Assets

2012-10-28 Thread sommeralex
works now with @Inject private AssetSource assetSource; assetSource.getExpandedAsset("context:/img/icon/star/starScore00.png").toClientURL(); thx -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354p5717361.html Sent from the Tapest

Re: Dynamic Assets

2012-10-28 Thread sommeralex
Hi! Thx for your answer. I tried to @Inject private AssetSourceImpl assetSource; but it keeps saying that No service implements the interface org.apache.tapestry5.internal.services.AssetSourceImpl. i thought AssetSourceIMPL is the implementation???! 2012/10/28 Dragan Sahpaski [via Tapestry]

Re: DAO is always null??

2012-10-28 Thread Lenny Primak
UserService must be a Tapestry service in a Tapestry-controlled package for @Inject to work It probably isn't. On Oct 28, 2012, at 4:22 PM, membersound wrote: > I created a DAO and inject it into my UserService. But whenever I access my > UserService, the dao is always null! Can someone spot w

Quick way of showing embedded object properties?

2012-10-28 Thread membersound
HI, is there any quick way of showing embedded object properties within a table grid? Like: class User { @Property String username; @Embedded Address address; } @Embeddable class Address { String firstname, lastname, street, zip, state; } ${user.firstname} ... Is there any quicker way th

Re: Define a method as source for a grid?

2012-10-28 Thread membersound
OK sorry your were right. I had some problems in my session injection. You solution works as expected without the need of adding a extra List property. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Define-a-method-as-source-for-a-grid-tp5717349p5717356.html Sent from th

DAO is always null??

2012-10-28 Thread membersound
I created a DAO and inject it into my UserService. But whenever I access my UserService, the dao is always null! Can someone spot what I might be doing wrong? interface CrudServiceDAO{} class HibernateCrudServiceDAO implements CrudServiceDAO { @Inject Session session; } class AppModule

Dynamic Assets

2012-10-28 Thread sommeralex
Hello, Which is the best way for using dynamic assets? In one of my classes, i have too much asset declarations now.. @Inject @Path("context:/img/icon/star/starScore20.png") private Asset star20Asset; What i would prefer is a method which directly is generating the as

Re: Define a method as source for a grid?

2012-10-28 Thread membersound
Without a @Property List users? No change: "Failure reading parameter 'source' of component ". And with a list property: "Unable to create new accessor method public java.util.List getUsers() <()Ljava/util/List;> on class UserPage as the method is already implemented." -- View this message in

Re: compression extension

2012-10-28 Thread Michael Gentry
Hi Ray, Without actually knowing the answer, I would guess it means the resource has been stripped of extraneous whitespace (packed) before being gzipped. You could save off one of those resources and gunzip it to see if that is actually the case. mrg On Thu, Oct 25, 2012 at 7:59 AM, Ray wrot

Re: Define a method as source for a grid?

2012-10-28 Thread Nicolas Bouillon
Maybe this way ? public class UserPage { List getUsers() { return userService.getUsers(); } } On Sun, Oct 28, 2012 at 3:14 PM, membersound wrote: > > > public class UserPage { > @Property > User user; > > List getUsers() { >

Define a method as source for a grid?

2012-10-28 Thread membersound
How can I get the source for a grid from a method, instead of a property? Something like: public class UserPage { @Property User user; List getUsers() { return userService.getUsers(); } } -- View this message in context: http://tap

Re: moving the Application Message Catalog

2012-10-28 Thread Emmanuel DEMEY
Hi, You can have a look to the SymbolConstants.APPLICATION_CATALOG symbol. Manu 2012/10/26 Wechsung, Wulf > Hi Guys, > > we have two scenarios that require that the app.properties files (plus > translation) lives somewhere not below /WEB-INF. Is there a parameter / > configuration contribution

Inject managed beans?

2012-10-28 Thread membersound
What is the T5 equivalent to the following JSF? @RequestScoped @Named class Person {} class SigninPage { @Inject Person person; } If I try this in tapestry, I'm getting: org.apache.tapestry5.runtime.ComponentEventException Error obtaining injected value for field person: No service implement

Re: Tapestry Book purchase question

2012-10-28 Thread Igor Drobiazko
Hi Nicolas, yes, it's same. On Fri, Oct 26, 2012 at 5:17 PM, Nicolas Barrera wrote: > Ok thanks Thiago, I thought that... > > but may be I should rephrase the question this way, > > does purchasing the book here: > http://tapestry5book.dpdcart.com > > is the same as having purchased the $25 per