Re: [T5]Inject a component not used in a page

2010-05-11 Thread Thomas Cucchietti
Ok, Thanks for the suggestions, I'll do that (layout.tml) ! 2010/5/11 Robert Zeigler > Alternatively, if different pages need different blocks, you can declare a > parameter to your layout of type "block": > > Layout.java: > @Parameter(requred=true) > @Property > private Block customBlock; > >

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Robert Zeigler
Alternatively, if different pages need different blocks, you can declare a parameter to your layout of type "block": Layout.java: @Parameter(requred=true) @Property private Block customBlock; Layout.tml Page.tml: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd " xmlns:p="tapestry:par

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Thiago H. de Paula Figueiredo
On Tue, 11 May 2010 11:09:29 -0300, Thomas Cucchietti wrote: Hi Thiago, Hi! I can't declare it into my page as I'm using it in the Layout component and not in a page. In this case, you can declare the blocks in Layout itself. Take a look at http://tapestry.apache.org/tapestry5.1/cook

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Thomas Cucchietti
Hi Thiago, I can't declare it into my page as I'm using it in the Layout component and not in a page. Here is the Layout.java : @Inject private ComponentSource componentSource; @Inject private ComponentResources componentResources; /** The page title, for the element and t

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Thiago H. de Paula Figueiredo
On Tue, 11 May 2010 10:34:52 -0300, Thomas Cucchietti wrote: So, I have to create a page only for internal use in order to follow this philosophy. You don't need to create a page just for holding your component. Just create a Block inside your page and declare you component there. Then yo

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Thomas Cucchietti
; input field for every field in a POJO. From the outside it appears as if > the > components are configured dynamically but under the covers it is > reassembling existing blocks as needed (type, ...) > > g, > kris > > > > Von:Thomas Cucchietti > An: T

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Kristian Marinkovic
mbling existing blocks as needed (type, ...) g, kris Von:Thomas Cucchietti An: Tapestry users Datum: 11.05.2010 14:05 Betreff: [T5]Inject a component not used in a page Hi everybody! I'm getting a silly problem while trying to get a component from the componentSource. Fo

[T5]Inject a component not used in a page

2010-05-11 Thread Thomas Cucchietti
Hi everybody! I'm getting a silly problem while trying to get a component from the componentSource. For dynamic layout purposes, i'm trying to recover a component that is not used in any page but it seems impossible as the getComponent method of the componentSource requires a completeId in which