Re: [T5] Mixing usage

2007-07-12 Thread David Avenante

Thank you Kristian,

Yes I've try your solution and I've also explore the injection of
ComponentDefaultProvider

@Inject
private ComponentDefaultProvider _defaultProvider;

but the value are stored in a Binding class that is not accessible
(I've not found for the moment).

BTW I'm agree with you, it will be cool if ActionLink have a getter on the Link.
I'll poste an issue in JIRA.

Thank you

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



RE: [T5] Mixing usage

2007-07-11 Thread Kristian Marinkovic
hi david,

i don't think this is possible. although you can 
access the ActionLink instance by injecting it
with: 
@Inject ComponenResources compRes;

comRes.getComponent()

you cannot access the context parameter as it is 
a private field. you could provide a own actionlink
component with a getter method or you could try to 
add a JIRA and hope someone is adding getter methods
 to the actionlink component itself :)

g
kris





"David Avenante" <[EMAIL PROTECTED]> 
11.07.2007 23:59
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
[T5] Mixing usage






Hi,

I try to add a mixin on an ActionLink like this :

@Component
@Mixins("MyMixin")
private ActionLink link1;

Is it possible to access in MyMixin the property  private List
_context; available in the ActionLink ?

Thanks.

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




[T5] Mixing usage

2007-07-11 Thread David Avenante

Hi,

I try to add a mixin on an ActionLink like this :

@Component
@Mixins("MyMixin")
private ActionLink link1;

Is it possible to access in MyMixin the property  private List
_context; available in the ActionLink ?

Thanks.

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



Re: [T5] Mixing usage

2007-07-11 Thread David Avenante

Yep it's work fine.
Ok so I presume there is a configuration somewhere to use core by default ;)

Thanks for your help



On 7/11/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote:

try:
@Mixins({"me/MyMixin"})
private ActionLink link1;

g,
kris




"David Avenante" <[EMAIL PROTECTED]>
11.07.2007 15:44
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
[T5] Mixing usage






Hi,

I try to create my own Mixin.
If I use this approach it's ok :


@Component
@MixinClasses(MyMixin.class)
private ActionLink link1;

but if I use this approach it's fail :
@Mixins("MyMixin")
private ActionLink link1;

With this exception !!!
Caused by: java.lang.IllegalArgumentException: Unable to resolve mixin
type 'MyMixin' to a component class name.  Available mixin types:
core/DiscardBody, core/RenderDisabled, core/RenderInformals,
me/MyMixin.

The stack trace tell me that MyMixin is registered !!!

Thanks for help ;)

-
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] Mixing usage

2007-07-11 Thread Kristian Marinkovic
try:
@Mixins({"me/MyMixin"})
private ActionLink link1;

g,
kris




"David Avenante" <[EMAIL PROTECTED]> 
11.07.2007 15:44
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
[T5] Mixing usage






Hi,

I try to create my own Mixin.
If I use this approach it's ok :


@Component
@MixinClasses(MyMixin.class)
private ActionLink link1;

but if I use this approach it's fail :
@Mixins("MyMixin")
private ActionLink link1;

With this exception !!!
Caused by: java.lang.IllegalArgumentException: Unable to resolve mixin
type 'MyMixin' to a component class name.  Available mixin types:
core/DiscardBody, core/RenderDisabled, core/RenderInformals,
me/MyMixin.

The stack trace tell me that MyMixin is registered !!!

Thanks for help ;)

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




[T5] Mixing usage

2007-07-11 Thread David Avenante

Hi,

I try to create my own Mixin.
If I use this approach it's ok :


@Component
@MixinClasses(MyMixin.class)
private ActionLink link1;

but if I use this approach it's fail :
@Mixins("MyMixin")
private ActionLink link1;

With this exception !!!
Caused by: java.lang.IllegalArgumentException: Unable to resolve mixin
type 'MyMixin' to a component class name.  Available mixin types:
core/DiscardBody, core/RenderDisabled, core/RenderInformals,
me/MyMixin.

The stack trace tell me that MyMixin is registered !!!

Thanks for help ;)

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