Seems like there's a misunderstanding here. ComponentSOURCE and
ComponentRESOURCES aren't the same thing...
On Mon, Aug 9, 2010 at 5:21 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Sun, 08 Aug 2010 21:47:00 -0300, Paul Stanton
> wrote:
>
> So I can either contribute a mar
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
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
On Fri, 06 Aug 2010 23:11:52 -0300, Paul Stanton
wrote:
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 getPa
The exception message is telling you that ComponentResources is not
available in the registry. This service is only available for injection in
components and pages.
On Fri, Aug 6, 2010 at 10:38 PM, Paul Stanton wrote:
> Thiago,
>
> By "declare your class as a service" do you mean bind it? ie:
>
Hi !
As Howard suggested, you may have a look into TapestryModule, you will see
how RenderSupportImpl is built and pushed into the environment (cf.
contributeMarkupRenderer)
Also as Thiago mentioned it, ComponentResources is not a service, it can be
injected into pages because Tapestry 'shadows'
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 =
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
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
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
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
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
12 matches
Mail list logo