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:
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(
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
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
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]
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
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
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
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
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
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
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
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() {
>
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
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
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
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
17 matches
Mail list logo