Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
"after" not accepte, btw, i'm still using 5.2.6 Martin Strand-4 wrote > > > public void contributeRequestHandler(OrderedConfiguration > configuration) > { >configuration.add("basicPathRequestFilter", new > BasicPathRequestFilter(...), > after("StoreIntoGlobals").before("EndOfRequest").build

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread Martin Strand
Do you mean it compiles fine, but has no effect at runtime? This is an "ordered" configuration, you might need to specify where in the list of request filters you want yours inserted. http://tapestry.apache.org/tapestry-ioc-configuration.html#TapestryIoCConfiguration-OrderedList Here's how I con

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
Thanks, can you give more details on this part? mine does not work: public void contributeRequestHandler(OrderedConfiguration configuration) { configuration.add("basicPathRequestFilter", new basicPathRequestFilter(pathServices)); } Martin Strand-4 wrote > > > public void contribute

Re: Tapestry5/iframe

2011-12-02 Thread Xybrek
On Saturday, 03 December, 2011 03:14 AM, Thiago H. de Paula Figueiredo wrote: On Fri, 02 Dec 2011 16:37:56 -0200, Xybrek wrote: Hi, Hi! I have a GWT (Google Web Toolkit) based application which have a component which is a iframe that can load sites from other domain (although not necessari

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread Martin Strand
I'm doing these kind of arbitrary rewrites with a custom RequestFilter, sounds like that would suit your needs. Here's an example: public class YourRequestFilter implements RequestFilter { @Override public boolean service(Request request, Response response, RequestHandler handler) th

SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
Hi, I have following implementation in T5.2's URLrewrite: some entries in a property file: /newpage/123=/view/231 /newpage2/123=/view_more/xyz/abcd then in URLRewrite I can simply do this: public Request process(Request request, URLRewriteContext urlRewriteContext) { String path = req

urlrewriter and T5.3

2011-12-02 Thread angelochen
Hi, My code uses urlrewriter heavily, however, once it was done and tested i totally forgot about this interface, a lot of effort was spent in the testing of those rewriting rules. it was gone from T5.3, is there an easier way to put something like that back? or i have to rewrite everything using

Re: Prototype and jQuery question

2011-12-02 Thread Chris Collins
Thanks Francois and Thiago. Now I will go and play. Best C On Dec 2, 2011, at 1:02 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 02 Dec 2011 18:52:49 -0200, Chris Collins wrote: > >> jquery and prototype living together in perfect harmony >> == >

Re: Prototype and jQuery question

2011-12-02 Thread François Facon
Hi Chris, Tapestry Ensure Backwards Compatibility on server side and also on client side. As mention by Thiago, you can use both prototype an jQuery with Tapestry. in Tapestry-jquery we use jQuery plugin structure to make sure $ is safe. see https://github.com/got5/tapestry5-jquery/blob/master/s

Re: Prototype and jQuery question

2011-12-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Dec 2011 18:52:49 -0200, Chris Collins wrote: jquery and prototype living together in perfect harmony == I am working on a project where I am looking at a number of open source javascript libraries. Some depend on jQuery and some depend on

Prototype and jQuery question

2011-12-02 Thread Chris Collins
Sorry if this is not completely a Tapestry question. tapestry-jquery === How have people found transitioning to tapestry-jquery? Does it completely replace prototype with jQuery and still maintain all the goodness of the existing tapestry base. Or put another way if I had an existing a

Re: Tapestry5/iframe

2011-12-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Dec 2011 16:37:56 -0200, Xybrek wrote: Hi, Hi! I have a GWT (Google Web Toolkit) based application which have a component which is a iframe that can load sites from other domain (although not necessarily running javascript, because of Cross domain policy of browsers) The s

Re: Tapestry5/iframe

2011-12-02 Thread Michael Prescott
Sure, why not. As a random stab, you could have a form that updates a zone; the zone would contain the iframe, with src="${mytextbox.value}". On 2 December 2011 13:37, Xybrek wrote: > Hi, > > I have a GWT (Google Web Toolkit) based application which have a component > which is a iframe that can

Tapestry5/iframe

2011-12-02 Thread Xybrek
Hi, I have a GWT (Google Web Toolkit) based application which have a component which is a iframe that can load sites from other domain (although not necessarily running javascript, because of Cross domain policy of browsers) The site loaded by the iframe is based on the url from some textbox

Free Tapestry 5 Laptop Stickers

2011-12-02 Thread Howard Lewis Ship
I just got back from the post office, mailing out another 15 packages of Tapestry 5 laptop stickers. I'm now current (except for a couple of people who forgot to send a snail-mail address). Want your own laptop stickers? Just follow the directions here: http://tapestryjava.blogspot.com/2011/08/t

Re: [T5] Grid default sort column

2011-12-02 Thread chpasha
If somebody still interested in solution... The problem lies here: //Grid.getSortConstraints() PropertyModel sortModel = getDataModel().getById(sortColumnId) exception is raised because sort order is updated when the grid data model is still null (strangely enough, it is not null at the first

Select on tapestry 5.3

2011-12-02 Thread Dimitris Zenios
Hello guys I have two selects inside a form. Lets assume that both selects have same list of values such as 1."HELLO" 2."BYE" First select has a zone so that when i select HELLO from the first it will exclude it from the second and only BYE will be available in the second select.Everything is w

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Dec 2011 13:42:52 -0200, Xybrek wrote: Speaking of back-end, is you back-end loosely-coupled with the front-end, I mean, is it something like a "service", I am planning to migrate my full-blown GWT app, with services: connect, disconnect, createAccount, etc. all connecting to an

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Dec 2011 13:54:14 -0200, Xybrek wrote: Yah, that's what I mean. However I am not sure if with Tapestry I can implement a way to process URL parameters such that the rendered page is based on the URL parameter, like: http://mypage.com/user123 where, user123 is a user id that is

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread Xybrek
On 12/2/2011 7:23 PM, Thiago H. de Paula Figueiredo wrote: On Fri, 02 Dec 2011 05:44:00 -0200, Xybrek wrote: Hello, Hi! I am really new to Tapestry, I just want to ask some questions before I embark deeper with the framework (although I like T5 already) Welcome! :) However, with Tapestr

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread Xybrek
On 12/2/2011 8:16 PM, Barry Books wrote: GWT, Tapestry and jQuery are the only web development frameworks I use now. I really like GWT but I don't use it on public sites. I'm certain that you can it just requires more testing effort like what happens when it runs on an IPhone. Even when I use GW

Re: onValidate in T5.2.6

2011-12-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Dec 2011 11:11:21 -0200, Steve Eynon wrote: Correct. And it still is best practice! Yep. Or use @OnEvent(value = EventConstants.VALIDATE, component = "form"). -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instruct

Re: onValidate in T5.2.6

2011-12-02 Thread Steve Eynon
Correct. And it still is best practice! On 2 December 2011 18:38, angelochen wrote: > I see, so the best practice should have been: > > onValidateFromID > > avoid using onValidate > > right? > > > Steve Eynon wrote >> >>> So actually onValidate behave differently in 5.2.6 and 5.3? >> >> No, onVa

Re: best way to call serverside from js with tap 5.3

2011-12-02 Thread Barry Books
It would be very handy to be able to throw exceptions on the Tapestry side and catch them on the javascript side. If you figure out a way please post it here. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For add

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread Barry Books
GWT, Tapestry and jQuery are the only web development frameworks I use now. I really like GWT but I don't use it on public sites. I'm certain that you can it just requires more testing effort like what happens when it runs on an IPhone. Even when I use GWT I have a Tapestry backend because I usual

grid label for not sortable column

2011-12-02 Thread chpasha
Hi all, I'm migrating to 5.3 from 5.2 and experience a problem showing column label for not sortable columns. Here is my BeanModel Code private BeanModel createAndConfigureGridModel() { BeanModel model = beanModelSource.createDisplayModel(Evaluation.class, messages); model.add("mo

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Dec 2011 05:44:00 -0200, Xybrek wrote: Hello, Hi! I am really new to Tapestry, I just want to ask some questions before I embark deeper with the framework (although I like T5 already) Welcome! :) However, with Tapestry it seems that the page is rendered from the server side

Re: onValidate in T5.2.6

2011-12-02 Thread angelochen
I see, so the best practice should have been: onValidateFromID avoid using onValidate right? Steve Eynon wrote > >> So actually onValidate behave differently in 5.2.6 and 5.3? > > No, onValidate() behaves the same in both T5.2.6 and T5.3, but T5.2.6 > *also* fired an onValidateForm() event.

Re: T5 Javascript API - docs?

2011-12-02 Thread Andreas Bohnert
I was hoping for more than this :) "The T5 object represents a stable, documented, set of APIs ." sounds like a nice page with an api overwiew and examples. andreas Steve Eynon schrieb: I just read the source (and it has the bonus of never being out of date!) Steve. On 2 December 2011 1

Re: T5 Javascript API - docs?

2011-12-02 Thread Steve Eynon
I just read the source (and it has the bonus of never being out of date!) Steve. On 2 December 2011 16:36, Andreas Bohnert wrote: > Hi, > > I'm sure it is somewhere but I can not find any documentation for the T5 > Javascript Framework. > There is no link at http://tapestry.apache.org/javascript

T5 Javascript API - docs?

2011-12-02 Thread Andreas Bohnert
Hi, I'm sure it is somewhere but I can not find any documentation for the T5 Javascript Framework. There is no link at http://tapestry.apache.org/javascript.html and no link at http://tapestry.apache.org/javascript-faq.html. please, can someone help me out? Thanks, Andreas ---

Re: Questions with Tapestry from a GWT developer's perspective

2011-12-02 Thread François Facon
Hi A Demo that use Tapestry and JQuery http://tapestry5-jquery.com/ How to contib a new component for this Lib https://github.com/got5/tapestry5-jquery/wiki/Creating-a-component-mixin-for-tapestry5-jquery aslo a great contib to use GWT with Tapestry http://code.google.com/p/trsvax-gmt/ check also

Re: onValidate in T5.2.6

2011-12-02 Thread Steve Eynon
> So actually onValidate behave differently in 5.2.6 and 5.3? No, onValidate() behaves the same in both T5.2.6 and T5.3, but T5.2.6 *also* fired an onValidateForm() event. Steve. On 2 December 2011 13:40, angelochen wrote: > Hi, > > So actually onValidate behave differently in 5.2.6 and 5.3? >

Re: best way to call serverside from js with tap 5.3

2011-12-02 Thread Andreas Bohnert
Ok, I see. Thanks! I will dig deeper into ajaxResponseRenderer.addCallback. it comes close to what I want. thank you! Barry Books schrieb: The simple answer is you don't. I think in 5.3 exceptions are encoded as JSON and you can figure this out but the current code has no error checking. You