T5: How to pass variables/data from a component to its parents parameter block

2008-10-12 Thread Andreas Pardeike
Hi, I have a component A that calls a component B like this: and in B, I want to iterate over 'source' and for each value render the block that is defined by parameter 'test'. My question: it seems that when the block (in this case something val="foo"/>) is evaluated, 'foo' is eva

Can i use components.

2008-10-12 Thread BhushanMahajan
Hi, I have created a custom layout component and also a .tml page for it. Tapestry 5 allows me to keep the tml in the component folder only, but i want to use it out side of the components folder. it shows a binding error. Please tell me the solution, Thanks in Advance. -- View this message

Reply is Null

2008-10-12 Thread BhushanMahajan
Hi, I m using zone with block but i have some problem with it as it gives me js error as "reply is null". if any body had solution please tell me its urgent. Thanks in advance -- View this message in context: http://www.nabble.com/Reply-is-Null-tp19949630p19949630.html Sent from the Tapestry

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-12 Thread Ivan Dubrov
Geoff Callender wrote: > Hi Joel, > > The activation context is great for passing object ids (or entity > ids), and with database backed applications that is exactly what you'd > be doing most of the time. The notion behind REST is that each URL > represents a resource, which is pretty much what i

Re: T5: Page reuse patterns

2008-10-12 Thread Bill Holloway
Joel, I'd use application state objects to share state between them. This is a nicely decoupled solution. See http://tapestry.apache.org/tapestry5/guide/appstate.html Bill On Sun, Oct 12, 2008 at 12:48 PM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Hi, > > I'm not sure what the correct T5 patte

Re: hidden input field, TAPESTRY5

2008-10-12 Thread Bill Holloway
The tapestry5-components project on Google code features a Hidden field component. See: http://code.google.com/p/tapestry5-components/ Bill @ peoplepad On Sun, Oct 12, 2008 at 1:51 PM, Argo Vilberg <[EMAIL PROTECTED]> wrote: > hello > > How to make hidden field in Tapestry5. > > > > > > > thi

hidden input field, TAPESTRY5

2008-10-12 Thread Argo Vilberg
hello How to make hidden field in Tapestry5. this textfield does not work. Wich tapestry component i must use to use hidden form field? Argo

T5: Page reuse patterns

2008-10-12 Thread Joel Halbert
Hi, I'm not sure what the correct T5 pattern to apply to the following page composition situation: I have a typical scenario - a page with 3 elements a "top nav", a "side nav" and a "content pane". I wish to reuse the code for "topNav" and "sideNav" but i want the content pane to vary (i.e

Re: T5: Quartz and the IoC Registry?

2008-10-12 Thread Andy Huhn
Hi Angelo, It looks like I forgot one piece of info...each descendent of HENJob should be registered as a service in AppModule, just like your other services: // Jobs that are scheduled by Quartz binder.bind( SendMailJob.class, SendMailJobImpl.class ); It is actually the Tapestry IoC framewo

Re: T5: Activation Context - expected behaviour?

2008-10-12 Thread Joel Halbert
I'm guessing the answer to question 1 is related to the docs here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html "Currently, methods are sorted alphabetically. Methods with the same name are sorted by number of parameters. Even so, this is not a great idea ... just defi

T5: Activation Context - expected behaviour?

2008-10-12 Thread Joel Halbert
Hi, 2 questions re: the activation context: 1. Why is onActivate called multiple times? If I have two onActivate methods: void onActivate(int inventoryId) void onActivate(int inventoryId, Map params) then for a link which presents both arguments in it's activation context I see that the meth

Stripping out tapestry tags from markup

2008-10-12 Thread Joel Halbert
Hi, Is it possible to configure T5 to remove all t: tags from markup before rendering? Thx Joel -- SU3 Analytics Ltd 61b Oxford Gardens W10 5UJ London Tel: +44 20 8960 2634 Mob: +44 75 2501 0825 www.su3analytics.com SU3 Analytics Ltd is a company registered in England and Wales under compan

Re: T5 (5.0.15): Layout issue - unable to resolve layout

2008-10-12 Thread Joel Halbert
Now I get it, that's quite neat. Thanks. Carl Crowder wrote: The Layout component is not a special component, it's just the same as any other component. You can reference any component as the root element of a page, or any HTML element. All you need to do is include the namespace, for example:

Re: T5 (5.0.15): Layout issue - unable to resolve layout

2008-10-12 Thread Carl Crowder
The Layout component is not a special component, it's just the same as any other component. You can reference any component as the root element of a page, or any HTML element. All you need to do is include the namespace, for example: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Re: T5 (5.0.15): Layout issue - unable to resolve layout

2008-10-12 Thread Joel Halbert
Hi Serge, Thanks, that worked - I didn't realise that the Layout.java and tml files had to be in a directory named /component. May I ask one more question, which is how to support layout files of an arbitrary name? Say I want to have Layout2.java and Layout2.tml Thx Joel SergeEby wro

Re: T5 (5.0.15): Layout issue - unable to resolve layout

2008-10-12 Thread SergeEby
Hi, Layouts are regular components that need to be created by you and are not handled differently. Make sure your Layout Java class is under src/main/java//components and the associated tml is in src/main/resources//components /Serge Joel Halbert-2 wrote: > > Hi, > > I'm having issues us

T5 (5.0.15): Layout issue - unable to resolve layout

2008-10-12 Thread Joel Halbert
Hi, I'm having issues using layouts (T5 5.0.15), with a tml, something like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> etc However, I get the exception, *Caused by: java.lang.IllegalArgumentException: Unable to resolve 'layout' to a component class na

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-12 Thread Geoff Callender
Hi Joel, The activation context is great for passing object ids (or entity ids), and with database backed applications that is exactly what you'd be doing most of the time. The notion behind REST is that each URL represents a resource, which is pretty much what ids represent too. I agree

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-12 Thread Joel Halbert
I'm a new T5 user so wasn't familiar with the pattern below for adding params to links, I'll definitely try it out. However, If you go down the route you suggest below for passing parameters between page, then what is the true value in the activation context in the first place other than for t

Re: t5: starting a service automatically

2008-10-12 Thread Martijn Brinkers
EagerLoad'ing a service means that the service is instantiated when the registry is started. Non-eagerloaded services are instantiated when the service is used for the first time. Because you want you Quartz service to be running at the start you can add the EagerLoad annotation to make sure that t

Re: t5: starting a service automatically

2008-10-12 Thread Angelo Chen
Hi Martijn, I use public static void contributeRegistryStartup, and it works. I just discover this EagerLoad, is it correct that either of one works, no need to use both? Angelo Martijn Brinkers (List)-2 wrote: > > You can flag the service to eager load (see @EagerLoad) > > Martijn Brinkers

Re: t5: starting a service automatically

2008-10-12 Thread Angelo Chen
Hi Lubor, Your approach works, thanks. Lubor Gajda wrote: > > Angelo, > > How are you instantiating scheduler in your application? Are you using > tapestry IOC module? > > /lubor > > On Sat, Oct 11, 2008 at 10:55 AM, Angelo Chen > <[EMAIL PROTECTED]>wrote: > >> >> Hi Lubor, >> >> Thanks fo

How to return .tml content as a String from a Java class?

2008-10-12 Thread superoverdrive
The SlidingPanel (as it currently is), expects an Array of Strings that contain the contents of the SlidingPanel: E.g.: public String[] getDetails(){ return new String[]{"Content A","Content B","Content C"}; } Assuming, I want to return components instead of Stri