Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Alex Kotchnev
Dmitry, extremely cool tip, the hack to get the local dev app server running is highly appreciated ! Cheers, Alex K On Tue, Aug 25, 2009 at 8:12 AM, Dmitry Gusev wrote: > FYI > > Here is the running t5 app: http://ping-service.appspot.com/ > > It uses T5.0.18 + Spring 3.0.0M4/JPA + Google >

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Alex Kotchnev
Christian, you seem to indicate that there's an easy fix for this on the mailing list; however, the last discussion there is from around 2007; the module that Robert is referring to is out of date (e.g. referring to old package names, etc). Any other tips on addressing this ? I'm completely

Re: Create actionlinks in components with page context

2009-08-25 Thread DH
Sure, there must be a passivate method. Action link in tmeplate is fairly simple: English. DH http://www.gaonline.com.cn - Original Message - From: "Erik Putrycz" To: Sent: Wednesday, August 26, 2009 4:44 AM Subject: Re: Create actionlinks in components with page context > > How i

Re: Security issue with access control documentation in Wiki

2009-08-25 Thread Howard Lewis Ship
I created the ComponentRequestHandler service (a pipeline, with filters) for this purpose; to make a single logical place to put filters for both page render requests and component event requests. public interface ComponentRequestHandler { /** * Handler for a component action request whic

Re: How to improve my message component

2009-08-25 Thread Siddhartha Argollo
Is it possible for this message component to auto detect the form submit and to render when the submit is successful? I've tried to use the defer method of the FormSupport, but it occurs after the render phase. Thiago H. de Paula Figueiredo wrote: Em Tue, 25 Aug 2009 10:26:16 -0300, Sebastian

Re: Organisation of Tapestry documentation

2009-08-25 Thread Howard Lewis Ship
It's the Wiki on tapestry.formos.com On Sun, Aug 16, 2009 at 1:10 AM, Howard Lewis Ship wrote: > Trust me, documentation is a top priority for me ... I'm not even > writing any code for 5.2 until I get the docs under control. > > The "user guide" needs to be renamed as a "reference guide". > > A

Re: Create actionlinks in components with page context

2009-08-25 Thread Erik Putrycz
How is your template looking like for the action link? I just looked at the action link code and there doesn't seem to be any magic to add the current page context. And does your page class has a passivate method? DH-14 wrote: > > My action handler is inside a component, for example, the layou

Re: Create actionlinks in components with page context

2009-08-25 Thread ningdh
My action handler is inside a component, for example, the layout component. If there is context, url for the action link is like /app/pagename.layout.english?t:ac=1 (1 is context), after link is clicked, the redirect url is like /app/pagename/1 Thanks, DH - Original Message - From: "E

Re: How to use multiple tags in single component.

2009-08-25 Thread Alfonso Quiroga
I have used this: http://wiki.apache.org/tapestry/Tapestry5SimpleAndPowerfulLayouts It's a generic solution using blocks! and you don't need to declare them in the page. On Tue, Aug 25, 2009 at 9:30 AM, Sebastian Hennebrueder wrote: > Hello, > > I used > > >        foo > > > in a page to pass f

Testify and Injecting Services from IOC Registry

2009-08-25 Thread Mark W. Shead
The Testify documentation seems to imply that if its jar is present on your class path, you can use @Inject within your tests just like you would in a page class and get services from your IOC registry. (http://tapestry.formos.com/nightly/tapestry-testify/#Inject_services_into_tests ). Howev

Re: Create actionlinks in components with page context

2009-08-25 Thread Erik Putrycz
This is my action handler void onActionFromToggleLocale() { Locale current = locale.get(); if (current == null || current.getDisplayLanguage().equals("en")) locale.set(Locale.CANADA_FRENCH); else locale.set(Locale.CANADA); } btw,

Re: Security issue with access control documentation in Wiki

2009-08-25 Thread Sebastian Hennebrueder
Thiago H. de Paula Figueiredo schrieb: Em Tue, 25 Aug 2009 11:33:18 -0300, Sebastian Hennebrueder escreveu: But it is an internal service which are from my understanding discouraged to use. ComponentEventLinkEncoder isn't internal, as it's in the org.apache.tapestry5.services package. Only

Re: Security issue with access control documentation in Wiki

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 11:33:18 -0300, Sebastian Hennebrueder escreveu: But it is an internal service which are from my understanding discouraged to use. ComponentEventLinkEncoder isn't internal, as it's in the org.apache.tapestry5.services package. Only classes and interfaces in packages

Re: Security issue with access control documentation in Wiki

2009-08-25 Thread Sebastian Hennebrueder
Thiago H. de Paula Figueiredo schrieb: Em Tue, 25 Aug 2009 11:25:42 -0300, Sebastian HennebrŸüder escreveu: Hello, Hi! A correct implementation needs to implement the page name extraction as done in ComponentEventLinkEncoderImpl.decodeComponentEventRequest and as in the decodePageRenderRe

Re: Security issue with access control documentation in Wiki

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 11:25:42 -0300, Sebastian HennebrŸüder escreveu: Hello, Hi! A correct implementation needs to implement the page name extraction as done in ComponentEventLinkEncoderImpl.decodeComponentEventRequest and as in the decodePageRenderRequest method of the same class. Why d

Security issue with access control documentation in Wiki

2009-08-25 Thread Sebastian Hennebrueder
Hello, the examples in the Wiki uses either a request filter or a request dispatcher. Both solutions extract the page name in order to check if there are any restrictions. This code orginally comes from the PageRenderDispatcher. String pageName; String path = request.getPath(); i

Security issue with access control documentation in Wiki

2009-08-25 Thread Sebastian HennebrŸüder
Hello, the examples in the Wiki uses either a request filter or a request dispatcher. Both solutions extract the page name in order to check if there are any restrictions. This code orginally comes from the PageRenderDispatcher. String pageName; String path = request.getPath();

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 11:01:58 -0300, Christian Riedel escreveu: In the link I posted in my first reply, there are some T5.0.18 sites that don't list WEB-INF, in some you can find the hibernate.cfg.xml under /assets/, in some you don't. Some also seem to implement the workaround, so there is

@core comitter - patch to beaneditform likely to be accepted?

2009-08-25 Thread Sebastian HennebrŸüder
Hello, I suppose you don't read all threads in detail, so I post the question directly. I could provide a patch to the beaneditform component in order to easily record errors for a field without the need to inject the Field component. Usage pattern: @Component private BeaneditForm form; voi

How to improve my message component

2009-08-25 Thread Sebastian HennebrŸüder
Hello, I was missing a t:messages component as I want to show 'entry was deleted' 'entry was saved ...' messages directly or after a redirect. I wrote my own one but it is not very beautiful. It uses a application state object stored into the session 'MessageStore'. I inject the message store

RE: Google Web Toolkit Version 1.7.0

2009-08-25 Thread Robert, Brice
Andreas, Thanks. That's all I needed to know. -Original Message- From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas Andreou Sent: Monday, August 24, 2009 6:39 PM To: Tapestry users Subject: Re: Google Web Toolkit Version 1.7.0 AFAIK, the credits to Tapestry are due

Re: Submitting a Grid causes IndexOutOfBoundsException

2009-08-25 Thread Otho
CSS is one possibility. Chenillekit button component could work also. I ididn't try yet. 2009/8/25 Stephan Windmüller > Otho wrote: > > >> But every time I select a button in this form (even when it is > >> outside the grid) I get an IndexOutOfBoundsException. It seems to me > >> that the gr

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Christian Riedel
In the link I posted in my first reply, there are some T5.0.18 sites that don't list WEB-INF, in some you can find the hibernate.cfg.xml under /assets/, in some you don't. Some also seem to implement the workaround, so there isn't any directory listing. But hey, the *default* is, everybody can

Re: Submitting a Grid causes IndexOutOfBoundsException

2009-08-25 Thread Stephan Windmüller
Otho wrote: >> But every time I select a button in this form (even when it is >> outside the grid) I get an IndexOutOfBoundsException. It seems to me >> that the grid itself is being transmitted but the values changed. Why >> does this happen and how do I prevent this? > Use a button with an Actio

Re: Submitting a Grid causes IndexOutOfBoundsException

2009-08-25 Thread Otho
Use a button with an ActionLink/EventLink instead and pass the current item (or its id for example) as a parameter. 2009/8/25 Stephan Windmüller > Hello! > > We are using a Grid which contains a submit button in each row ("select > this"). Of course this only works when I put the Grid in a form

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 10:25:21 -0300, Onno Scheffers escreveu: Apparently it does, since Christian also provided example-links. I stand corrected. I just checked and I can also publicly access resources like the web.xml and hibernate.cfg.xml on a webapp that is already in production using

Re: @core comitter - patch to beaneditform likely to be accepted?

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 10:26:28 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! I'm not the core committer, but providing tests for your patches will improve its acceptabililty a lot. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.ars

Re: How to improve my message component

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 10:26:16 -0300, Sebastian Hennebrueder escreveu: Hello, Hi! Instead of using @SessionState, I just use a single @Persist(PersistenceConstants.FLASH) String field and pass it as a parameter or through a setter to my component. -- Thiago H. de Paula Figueiredo Indep

@core comitter - patch to beaneditform likely to be accepted?

2009-08-25 Thread Sebastian Hennebrueder
Hello, I suppose you don't read all threads in detail, so I post the question directly. I could provide a patch to the beaneditform component in order to easily record errors for a field without the need to inject the Field component. Usage pattern: @Component private BeaneditForm form; void on

How to improve my message component

2009-08-25 Thread Sebastian Hennebrueder
Hello, I was missing a t:messages component as I want to show 'entry was deleted' 'entry was saved ...' messages directly or after a redirect. I wrote my own one but it is not very beautiful. It uses a application state object stored into the session 'MessageStore'. I inject the message store int

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Onno Scheffers
> > AFAIK, this issue doesn't affect T5.0.18, as it happens only with versioned > assets, something that was introduced in T5.1. Apparently it does, since Christian also provided example-links. I just checked and I can also publicly access resources like the web.xml and hibernate.cfg.xml on a we

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Christian Riedel
Apparently it is also affecting 5.0.18, since you can browse Dimitry's assets and read the persistence.xml for example. Thiago H. de Paula Figueiredo schrieb: Em Tue, 25 Aug 2009 09:44:35 -0300, Christian Riedel escreveu: FYI you should (all) be aware of TAP-815*! Your assets** are readable

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Aug 2009 09:44:35 -0300, Christian Riedel escreveu: FYI you should (all) be aware of TAP-815*! Your assets** are readable for everybody! AFAIK, this issue doesn't affect T5.0.18, as it happens only with versioned assets, something that was introduced in T5.1. -- Thiago H. de

Re: Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Christian Riedel
FYI you should (all) be aware of TAP-815*! Your assets** are readable for everybody! It is certainly not as critical as in some pages named in this thread*** but in general it could cause some bad reputation for T5. Apart from that I just can say: nice work! ;) *jira ticket: https://issues.ap

Re: How to use multiple tags in single component.

2009-08-25 Thread Sebastian Hennebrueder
Hello, I used foo in a page to pass foo to the layout template which has parameter Layout class @Parameter private Block notes; public Object getNotes(){ return notes; } Layout template Prajesh Kacha schrieb: Hello, In my web page I am us

Re: How to use multiple tags in single component.

2009-08-25 Thread Carl Crowder
See the bit about template inheritance here: http://tapestry.apache.org/tapestry5/guide/templates.html Prajesh Kacha wrote: Hello, In my web page I am using one tag, but I need multiple tag to get replace. To do that is there any mechanism like specifying Id or some name to the components. I

How to use multiple tags in single component.

2009-08-25 Thread Prajesh Kacha
Hello, In my web page I am using one tag, but I need multiple tag to get replace. To do that is there any mechanism like specifying Id or some name to the components. I search a lot but I didn't find. I don't know what to do. Please can any one help me. Thank in advance. -- Regards

Running Tapestry 5.0.18 on Google App Engine

2009-08-25 Thread Dmitry Gusev
FYI Here is the running t5 app: http://ping-service.appspot.com/ It uses T5.0.18 + Spring 3.0.0M4/JPA + Google Datastore/Mail/Cron/URLFetch/Google Accounts Security Works pretty well. I had to implement some hacks to develope with t5 on local dev server (t5 error page refuse to work properly th

Re: Switch AppModule to TestModule for testing

2009-08-25 Thread Sebastian Hennebrueder
The name 'App'Module is taken from the filter name as defined in the web.xml. Just deploy a modified web.xml using test as filter name. -- Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer and Trainer for Hibernate / Java Persistence http://www.laliluna.de Inge Solv

Re: Switch AppModule to TestModule for testing

2009-08-25 Thread Inge Solvoll
I think this is what you're looking for: http://tapestry.formos.com/nightly/tapestry-testify/ On Tue, Aug 25, 2009 at 4:46 AM, Mark W. Shead wrote: > I am doing testing using Selenium using classes that extend > AbstractIntegrationTestSuite. When I bring up the testing environment I > would lik

Re: Way to implement access control

2009-08-25 Thread Sebastian Hennebrueder
There is an advantage of the Filter over the Dispatcher. The filter is a nested chain, delegating to the next chain from within the code. It's like a normal servlet filter. My security filter stores the user of the session into a thread local and after the request, cleans up the thread local aga

Submitting a Grid causes IndexOutOfBoundsException

2009-08-25 Thread Stephan Windmüller
Hello! We are using a Grid which contains a submit button in each row ("select this"). Of course this only works when I put the Grid in a form component. But every time I select a button in this form (even when it is outside the grid) I get an IndexOutOfBoundsException. It seems to me that the gr