Re: how to contribute a 'component context' service

2010-08-08 Thread Thiago H. de Paula Figueiredo
On Sun, 08 Aug 2010 21:47:00 -0300, Paul Stanton wrote: So I can either contribute a markup renderer that can access the renderSupport object OR inject a service that can in turn inject ComponentSource This isn't correct. You'll use @Inject to get ComponentSource (which is a service) a

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Patrick Moore
Sounds like a good idea to me btw I was looking to figure out where I started going wrong in my understanding. I fell victim to a "confirmation bias" that was "confirmed" by this page: http://tapestry.apache.org/tapestry5.1/tutorial1/first.html , which indicated that T5 required all templates

Re: how to contribute a 'component context' service

2010-08-08 Thread Paul Stanton
So I can either contribute a markup renderer that can access the renderSupport object OR inject a service that can in turn inject ComponentSource but I can't create/contribute/inject my own object/service/etc that has access to all of RenderSupport, ComponentResources, ComponentSource and Pag

Re: inherit binding broken after upgrade from Tap 5.1 to 5.2 snapshot

2010-08-08 Thread Shing Hing Man
It is only broken (in Tap 5.2.0 Snapshot) if EnumSelectModel is passed to component FunctionInputWithSelect. It works if I use SelectModelImpl whith String key/value pairs. Shing --- On Sun, 8/8/10, Shing Hing Man wrote: > From: Shing Hing Man > Subject: inherit binding broken after up

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Howard Lewis Ship
The only exception is page templates which are allowed to be stored in the context root. And in fact, if I were starting T5 again, that would not be supported. It may even be removed in a future release. On Sun, Aug 8, 2010 at 12:07 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote:

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Thiago H. de Paula Figueiredo
On Sat, 07 Aug 2010 20:34:29 -0300, Patrick Moore wrote: Hi there -- Hi! I am working to move our project from T4 to T5. In T4 we are using the tacos component resolver that allows the templates and properties files to be in the same directory. In T5 how can we do the same thing? In

Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot

2010-08-08 Thread Shing Hing Man
Thanks for the correction. Shing --- On Mon, 9/8/10, adasal wrote: > From: adasal > Subject: Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot > To: "Tapestry users" > Date: Monday, 9 August, 2010, 1:45 > > > > In Tap 5.2, Form.getDefaultTracker() returns null if > there is a va

Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot

2010-08-08 Thread adasal
> > In Tap 5.2, Form.getDefaultTracker() returns null if there is a validation > error, and returns a non-null validation tracker when there is a validation > error. > Should be ' returns null if there is no validation error ' I expect? Adam On 8 August 2010 15:37, Shing Hing Man wrote: > In

Re: inject component from parent component

2010-08-08 Thread Josh Canfield
It's generally not considered good design for a component to have knowledge of the design of it's container. This would be a universal design principle, not limited to tapestry. So if all you want to do is update a zone then couldn't you just pass the zone or zone id as a parameter to your comp

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Patrick Moore
Well ... sure enough... it works! I was expecting a problem because the documentation kept talking about /webapp being the required directory for the .tml files. With no mention of any other option, I was expecting to have to rig it up. thanks! Patrick Moore Amplafi http://amplafi.com mobile: 65

inherit binding broken after upgrade from Tap 5.1 to 5.2 snapshot

2010-08-08 Thread Shing Hing Man
Hi, My component below is broken after I upgrade from Tap 5.1 to Tap 5.2 snapshot. In the component template FunctionInputWithSelect.tml, there is Select component which gets all its parameters using inherit binding. In FunctionInputWithSelect.java, public c

inject component from parent component

2010-08-08 Thread Christian Koller
In an inner component I handle an ajax request from an action link and want to update a zone in a outer component. As a work around I use the ComponentSource like: Object onActionFromMark(long wishedStartTime) { this.wishedStartTime = wishedStartTime; CalendarComponent cal = (CalendarComponent)

Re: Embedded Form component becomes null in Tap 5.2.0-Snapshot

2010-08-08 Thread Shing Hing Man
In Tap 5.1, Form.getDefaultTracker() always return a non-null validationTracker irrespective of whether there is any validation errors. In Tap 5.2, Form.getDefaultTracker() returns null if there is a validation error, and returns a non-null validation tracker when there is a validation error.

Re: inject component from parent component

2010-08-08 Thread Igor Drobiazko
Nope, this is not possible. What are you trying to do? On Sun, Aug 8, 2010 at 4:28 PM, Christian Koller wrote: > Hi > > With the annotation @Component I can inject components which are defined in > the component's template, for example: > @Component(id="myComponent") > private ActionLink link; >

inject component from parent component

2010-08-08 Thread Christian Koller
Hi With the annotation @Component I can inject components which are defined in the component's template, for example: @Component(id="myComponent") private ActionLink link; Is there a way to inject a component from the parent component? Something like: @Component(id="../myComponent") private Act

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Ville Virtanen
T5 application works ok as is if the files are in the same directory. If you use maven, then the maven default structure layout dictates that the non-java files must be in resources or webapp folders. (The build process copies the resources to the same directory structure from java and resources

Re: Upgrading from 5.1 to 5.2

2010-08-08 Thread Katia Aresti Gonzalez
Hi Andreas, I thank you! I will definitively take some time during this week to fix and take your advices in oout tapestwitter application. best regards, Katia 2010/8/7 Guerin Laurent > Hi Andreas, > > Thank you for your random choice :-) > > With Katia (co-author) we are planning to upgrade

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Sven Homburg
be sure that your IDE copies the resource files (properties/tml) into your classpath (WEB-INF/classes) with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/8/8 Patrick Moore > > I tried with the tutorial and it didn't work. the rendering failed. >

Re: DISCUSSION: Time zones and date selection

2010-08-08 Thread Joost Schouten (mailing lists)
Hi, I do everything server side with the help of a custom TimeZoneAwareDatePicker wrapping your tapx datepicker. It takes a source (I store everything in UTC) and display timezone (the users timezone) to do the conversion. This suits me because I will almost always know my users timezone as they n

Re: T5: How to have .tml/.properties files in the same directory as the .java files

2010-08-08 Thread Patrick Moore
I tried with the tutorial and it didn't work. the rendering failed. Patrick Moore Amplafi http://amplafi.com mobile: 650-207-9792 "Put your front window on your front page" corp blog : http://amplafi.com/blog personal blog : http://www.sworddance.com/blog On Sat, Aug 7, 2010 at 10:38 PM, Josh Ca

Re: How to using jmockit or dbunit to test DAO (hibernate) in tapestry?

2010-08-08 Thread cleverpig
here is my work out with upping idea: 1.make my hibernate configurer: public class T5TestHibernateConfigurer implements HibernateConfigurer{ private final boolean defaultConfiguration; private String configFile; // add configuration filepath on classpath public T5TestHibernateC