Re: [T5] instantiate a component on the fly

2007-08-21 Thread David Avenante
On 8/20/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > That's close to my opinion. > > I appreciate how people would like to create a new component on the > fly, and I understand the use cases involving that. > > However, it goes against the grain of Tapestry. I've finally > documented this,

Re: [T5] instantiate a component on the fly

2007-08-20 Thread David Avenante
Humm alway in my way So I try to enhance T5 to support some Ajax Features. 1 - I've Aliased the ComponentActionRequestHandler to use my own. 2 - Now if my ComponentAction is and ajax action ex : http://mySite/myPage.myComponent:ajax/99 I want try to instanciate my targeted component. So I

Re: [T5] instantiate a component on the fly

2007-08-17 Thread David Avenante
Yes but in an Ajax point of view I think you can't use this approach in my humble point of view. In an Ajax way for me the good approach is to have a component call like ComponentSubstitution who encapsulate and permit to generate an Ajax return whit html node substitution. With T5 it's very easy

Re: [T5] instantiate a component on the fly

2007-08-17 Thread David Avenante
Hum I not sure. My component is not define in class and is not define in the template => It's a really a NEW component. So as I can see there is a possibility with PageElementFactory.newComponentElement() that I can inject in my page. But there is too many parameters. I hope Tapestry give me

[T5] instantiate a component on the fly

2007-08-17 Thread David Avenante
Hi, I'm very disappointed. After some investigation it seem it's not possible to instantiate a component in a page on the fly in T5. I have a page and his template, my component is not defined on the template but on a specific event, I want to create and instantiate this component. I need someth

Re: Render a Component in an other Component class

2007-08-17 Thread David Avenante
I post the same question without response ;) But I share my investigation with you. 1 - After first quick investigation I found a class responsible of this instantiation : ComponentClassTransformer but with more investigation the call to instanciate a component is Component target = componentCla

[T5] Ajax tests

2007-08-16 Thread David Avenante
Hi, I play with T5 and want to explore Ajax capacity. I need to know which service is responsible on the instantiation of a component. Is it possible to have a resume (classes implied) of how Tapestry process component instantiation. Thanks for any input ;)

Re: [T5] Any component Bis

2007-08-03 Thread David Avenante
Yes thank you Nick. I've create my own Any component from T5 5.0.3 sources ;) Regards

Re: [T5] Any component Bis

2007-08-01 Thread David Avenante
Yes, after investigation you're right. So I think I need to re-implement an Any component ;) Thank you for your input.

[T5] Any component Bis

2007-08-01 Thread David Avenante
Hi, The Any component is gone and now ... is now just: ... but is it possible since it's gone to add a mixin to and element like My layout When I try this case tapestry throw me this error : You may not specify mixins for element because it does not represent a component (which requires ei

Re: [T5] Head Script Injection

2007-07-17 Thread David Avenante
lock into head With the Element and RenderSupport solutions I imagine the the plumbing exists to do this. I'll have to dig deeper into the how's to figure it out. Thanks again. On 7/17/07, David Avenante <[EMAIL PROTECTED]> wrote: > I think something like that work : &

Re: [T5] Head Script Injection

2007-07-17 Thread David Avenante
I think something like that work : @Environmental private PageRenderSupport renderSupport; @Inject @Path("myScript.js") private Asset myScript; renderSupport.addScriptLink(myScript); - To unsubscribe, e-mail: [EMA

[T5] Any is gone but ...

2007-07-13 Thread David Avenante
Hi, The Any component is gone and now ... is now just: ... but is it possible since it's gone to add a mixin to and element like My layout When I try this case tapestry throw me this error : You may not specify mixins for element because it does not represent a component (which requires e

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,

[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

Re: [T5] PageTester no render script

2007-07-11 Thread David Avenante
Forget this stupid question, all work fine now after the add of a Border ;) On 7/11/07, David Avenante <[EMAIL PROTECTED]> wrote: Hi, Why PageTester don't render script added to my pages ? Maybe I'm on the wrong way and test the javascript inclusion must not be make with th

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"

[T5] PageTester no render script

2007-07-11 Thread David Avenante
Hi, Why PageTester don't render script added to my pages ? Maybe I'm on the wrong way and test the javascript inclusion must not be make with the PageTester but the Tapestry-test utility ? Regards - To unsubscribe, e-mail: [EM

[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: Unabl

Re: T5 IOC questions

2007-07-06 Thread David Avenante
Hummm after debug time I found that impossible to me to add in ordered list the same Id (see class Orderer code). So if it's impossible I need to override the component PageRenderInitializer and all the associated configuration. So I continue my investigation with aliasOveridesService.

Re: T5 IOC questions

2007-07-06 Thread David Avenante
Ok, I continue my investigation. So I think I don't need to override my service but only override my service configuration. So my service is : PageRenderInitializer and my service configuration is : contributePageRenderInitializer( ... As write in the documentation : "The extensibility comes fr

Re: [T5] How create sub component

2007-07-04 Thread David Avenante
Thank you Hugo, I'll explore this way. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [T5] How create sub component

2007-07-04 Thread David Avenante
Yes there is always workaround but what I liked in the definition of tapestry is : Tapestry is organized around four key principles: * Simplicity * Consistency * Efficiency * Feedback And I like the first term ;) I like to have SIMPLE file, easy readable and understandable. -

Re: [T5] How create sub component

2007-07-04 Thread David Avenante
Yes I can understand but this approach is a big constraint, with big implication for my web designer who need to play in templates and need to have a good understanding of my templates hierarchy For me it's an issue with lot of limitation. A simple exemple : I want to create a component who can

[T5] How create sub component

2007-07-03 Thread David Avenante
Hi, I try to create sub compponent in T5 (5.0.5). My template is : Content In myComponent2 class when i try to access to the Container : @Inject private ComponentResources componentResources; componentResources.getContainer(), tapestry return to me my page and no

[T5] Sub Component Navigation

2007-06-29 Thread David Avenante
Hi, I read the documentation and the source code to find a way for a parent component to discover his embedded components. I saw the best place for that will be the componentResources class. Why tapestry don't get the possibility to acces to the child tree dependency. With more investigation it

Re: T5 How reach Sub components informations

2007-06-28 Thread David Avenante
et pour chacun connaitre leur Id. Merci pour ton aide ;) On 6/28/07, Francois Armand <[EMAIL PROTECTED]> wrote: David Avenante wrote: > Hi, > > I try to create a component with embedded sub component. > > How can I access in my root component to the informations about my s

T5 How reach Sub components informations

2007-06-28 Thread David Avenante
Hi, I try to create a component with embedded sub component. How can I access in my root component to the informations about my sub components ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

T5 -IOC and hibernate Module UPDATE

2007-06-19 Thread David Avenante
Ok i'm a stupid guys ... i need to Read The Fucking Documentation before ask question ;) So a simple configuration for hibernate is : public static void contributeHibernateSessionSource(Configuration configuration) { configuration.add("com.my.domain"); } public SessionFactory buil

T5 -IOC and hibernate Module

2007-06-19 Thread David Avenante
Hi, The Hibernate module configuration seem to be out of date ! The @Contribute annotation seems to be depecated (removed !). I try to configure my IoC container for integrate Hibernate support with session-per-request strategy with the help of module. So i try this approach : public static vo

Re: T5 IOC questions

2007-06-18 Thread David Avenante
PROTECTED]> wrote: You should be getting an error there, ApplicationDefault's configuration is a Map. You override built-in services by contributing to the Alias service (or the AliasOverrides service). On 6/18/07, David Avenante <[EMAIL PROTECTED]> wrote: > Hi, > > I've tw

T5 IOC questions

2007-06-18 Thread David Avenante
Hi, I've two questions about the configuration of my ioc container. First i would be able to override the default configuration to use my own DocumentScriptBuilder i've wrote some code in my appModule to try to overide the default config but without succes !!! public static void contributeAppli

T5 - Component Parameters

2007-06-15 Thread David Avenante
Hi, Is it possible to access, in a component or in a page, at the html element properties ? For exemple, the html element how acces in my component at the "button" value of my type properties. Thank's - To unsubscribe, e-mail

Re: T5 and Expension documentation

2007-06-14 Thread David Avenante
-SNAPSHOT. On 6/14/07, David Avenante <[EMAIL PROTECTED]> wrote: > Hi, > > I've read the documentation of expension. > > I try to render something like : > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > ${title} >

Re: T5 and Expension documentation

2007-06-14 Thread David Avenante
ructor required: java.lang.reflect.Constructor Regards On 6/14/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: You're caught between releases; using expansions inside ATTRIBUTES is a new feature available in 5.0.5-SNAPSHOT. On 6/14/07, David Avenante <[EMAIL PROTECTED]> wrote: > Hi,

T5 and Expension documentation

2007-06-14 Thread David Avenante
Hi, I've read the documentation of expension. I try to render something like : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${title} it's work fine for title but don't work for my id I've miss something ? Thank's --

T5 IoC for WebServices (jax-ws)

2007-05-29 Thread David Avenante
Hi ;) I need to expose some services with webservices (beurkkk). The probleme is the that the servlet for the web services is not processed by my tapestry filter. tapestry.app-package com.me.indexer app org.apache.tapestry.TapestryFilter app

T5 initialize and start a service through the ioc container

2007-05-22 Thread David Avenante
Hi, I try to initialize and start a service when my webapp start. My service is a simple Quartz scheduler with a job. But i've some trouble to start the service. As i can see Tapestry IOC use lazy initialization so my service is build only when used. My code in my Appodule.java is like : //

Re: separate mailing lists

2007-03-12 Thread David Avenante
I'm aggree with you Norbert, It's not the same framework. Actually I play with T5 and everyday I need to remove all mails from others versions, it's pain ;) Regards. On 3/12/07, Norbert Sándor <[EMAIL PROTECTED]> wrote: Wouldn't it be good to separate the t4 and t5 lists somehow? Like differ

Re: Tapestry 5

2006-10-23 Thread David Avenante
o http://svn.apache.org/repos/asf/tapestry/tapestry5/tapestry-project/trunk/ tapestry-project cd tapestry-core mvn install David Avenante wrote: > Hello, > > I would try Tapestry 5 to play with it. > How can i found the sources for build it. > I've tried to reach the svn reposito

Tapestry 5

2006-10-20 Thread David Avenante
Hello, I would try Tapestry 5 to play with it. How can i found the sources for build it. I've tried to reach the svn repository for URL proposed on the site but it's seems to be only for browser view. I'de liked to download the sources files, build it and try it (i've already work 5 months with