Re: Components and sub packages, how to reference within templates?

2010-08-06 Thread Josh Canfield
or the slash isn't valid XML in the element name. Josh On Fri, Aug 6, 2010 at 6:25 PM, Christian Koller wrote: > According the documentation it should be possible to put components to a sub > package of the package components. > > Quote: > Sub-Folders / Sub-Packages > Classes do not have t

Upgrading from 5.1 to 5.2

2010-08-06 Thread Andreas Andreou
So, i picked a random 5.1 project from github ( http://github.com/lguerin/tapestwitter ) forked it, upgraded it to 5.2 and fixed all deprecation warnings... take a look /comment at the change logs at [1] and [2] I've found 2 small things worth noticing: 1) the project was building a JSONObject and

Re: how to contribute a 'component context' service

2010-08-06 Thread Paul Stanton
That doesn't seem to work Thiago, or maybe I'm missing something: public class TapestryExtensionImpl implements TapestryExtension { @Inject private Environment environment; @SuppressWarnings("unchecked") public T getPage(Class pageClass) { ComponentSource componentSource =

Components and sub packages, how to reference within templates?

2010-08-06 Thread Christian Koller
According the documentation it should be possible to put components to a sub package of the package components. Quote: Sub-Folders / Sub-Packages Classes do not have to go directly inside the package (pages, components, mixins, etc.). It is valid to create a sub-package to store some of the cla

[T5.2] Issues with Assets and Stylesheets

2010-08-06 Thread Andrey Larionov
Today i migrated my application to T5.2-SNAPSHOT (i'm was obliged, because spring-3.0 was required by thirdparty library). And i have few notes about Asset handling. First of all, when i found what i cannot reference Assets by static urls (they was hardcoded in templates) i start thinking about sol

Re: how to contribute a 'component context' service

2010-08-06 Thread Howard Lewis Ship
Start here: http://tapestry.apache.org/tapestry5.2-dev/guide/env.html On Fri, Aug 6, 2010 at 2:27 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 06 Aug 2010 17:38:53 -0300, Paul Stanton > wrote: > > Thiago, >> > > Hi! > > > By "declare your class as a service" do yo

Re: how to contribute a 'component context' service

2010-08-06 Thread Thiago H. de Paula Figueiredo
On Fri, 06 Aug 2010 17:38:53 -0300, Paul Stanton wrote: Thiago, Hi! By "declare your class as a service" do you mean bind it? ie: public static void bind(ServiceBinder binder) { binder.bind(TapestryExtension.class, TapestryExtensionImpl.class); } Yes. or do i need

Re: how to contribute a 'component context' service

2010-08-06 Thread Paul Stanton
Thiago, By "declare your class as a service" do you mean bind it? ie: public static void bind(ServiceBinder binder) { binder.bind(TapestryExtension.class, TapestryExtensionImpl.class); } or do i need to 'contribute' it somewhere? Because it isn't working.: 2010-08-07 06:33:33,406

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

2010-08-06 Thread cleverpig
I checked out T5-hibernate-core source code,there's possible to make a test module for hibernate-core module. in HibernateCoreModule: public class HibernateCoreModule { public static void bind(ServiceBinder binder) { binder.bind(HibernateTransactionDecorator.class, HibernateTransac

Classloader problem, "loader constraint violation"

2010-08-06 Thread LLTYK
Any ideas? A search says "don't put the wrong things in the base package", but UploadFileWrapper isn't in any tapestry packages. 2010-08-06 15:56:57,343 [qtp1741911230-24] ERROR org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler - Processing of request failed with uncaught exc

Re: A big thank you to Tapestry

2010-08-06 Thread Peter Niederwieser
Works now. Don't know why it didn't work last time. Cheers, Peter Joost Schouten (ml) wrote: > > Dear Peter, > > The "Take a tour" form at http://www.jsportal.com/product/demo should > bypass the need for any login information. It could be that you > attempted to use the login function on the

Re: how to contribute a 'component context' service

2010-08-06 Thread Howard Lewis Ship
I think he was meaning the it is an Environmental. Best bet is to check TapestryModule for examples. Methods contributeMarkupRenderer() and contributePartialMarkupRenderer(). The first pipeline is used when rendering a full page; the second handles partial page updates associated with Ajax (and

Re: t5: if and expression

2010-08-06 Thread Howard Lewis Ship
In Tapestry 4, OGNL had to do a lot of heavy lifting, since you didn't have reloadable Java classes; thus I've seen lots of very complicated OGNL expressions mixed into T4 templates. That causes its own problems in terms of maintainability and brittleness in the face of refactoring. Simply compar

Re: t5: if and expression

2010-08-06 Thread Steve Eynon
Yeah, I keep forgetting about the non-null binding to a boolean true (see Notes section in the IF component docs) - a really cool idea! -- Steve Eynon On 5 August 2010 18:33, based2 wrote: > > http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.ht

Re: how to contribute a 'component context' service

2010-08-06 Thread Thiago H. de Paula Figueiredo
On Fri, 06 Aug 2010 05:15:42 -0300, Paul Stanton wrote: Hi All, Hi! I've got a few things i commonly do with in the scope of a tapestry page request using the tapestry built in services such as RenderSupport, ComponentResources, ComponentSource and PageRenderQueue. I would like to wrap

Re: Grids embedded in custom component interfer with each other

2010-08-06 Thread olip
thanks for confirming. This seems like a serious bug and you do not need to put the grids in components to see this not working. If you have several grids without components on the same page the pagerenderers do interfer each other as well! -- View this message in context: http://tapestry-user

how to contribute a 'component context' service

2010-08-06 Thread Paul Stanton
Hi All, I've got a few things i commonly do with in the scope of a tapestry page request using the tapestry built in services such as RenderSupport, ComponentResources, ComponentSource and PageRenderQueue. I would like to wrap these procedures in my own 'RenderSupport' type service, which I