Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Josh Canfield
> It's a good way to do the redirect. > But I want the url remain /download, so it's a url rewrite, not redirect. :) Your subject is "how to redirect..." With tapestry rewriting you can change an incoming URI so that it matches a tapestry page or component event and you can rewrite outgoing links

Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Bo Gao
> I'm not sure why you'd want to do this from the link transformer. Can > you explain? Now I have to Integrate struts and tapestry, let them work together. There is an old rewrite rule, /download to /page.do?p=download Now I use link transformer to do the rewrite. > My first choice would be to le

Re: mvn package - exclude lib folder?

2011-07-18 Thread nillehammer
For the dependency you want exluded use provided See the servlet-api dependency in you pom.xml for an example - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/mvn-package-exclude-lib-folder-tp4601084p4610576.html Sent from the Tapestry - User mai

Re: T5 + opentip.js bug / question

2011-07-18 Thread Taha Hafeez
Hi I had to modify opentip.js to use tapestry's json return value. The change is in the success handler which instead of simply displaying the javascript displays the content sent from tapestry event handler. onSuccess: function(transport) { this.debug('Loading successfull.');

T5 + opentip.js bug / question

2011-07-18 Thread spargonaut
Hi! I was following a post from Taha over on Java Magic ( http://tawus.wordpress.com/2011/07/12/a-tooltip-component-for-tapestry/ Here ) for creating tool tips using the opentip.js library. I have followed his post almost verbatim, and have it all working except for one small part. When the user

Re: Tapestry5/Hibernate Persistence

2011-07-18 Thread tompeter
Thanks Thiago, that's good to know! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry5-Hibernate-Persistence-tp4600362p4601140.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: mvn package - exclude lib folder?

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 17:29:26 -0300, Federico Weyermann wrote: Hi guys! Hi! Quick question, is there a way to tell mvn package to exclude the "lib" directory when packaging a tapestry application? The same way you'll would do in a non-Tapestry application. If you're using Maven, why do

Re: Tapestry5/Hibernate Persistence

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 17:28:19 -0300, tompeter wrote: It is not possible that a second user reads the entity before the HibernateSessionManager has committed the changes of User 1? I ask because I use injected org.hibernate.Session for reading the values. This isn't related to Tapestry at all

Re: Another case of "Block parameters are only allowed directly within component elements."

2011-07-18 Thread Thiago H. de Paula Figueiredo
Remove dependencies until you find which one is causing the problem. m2eclipse's pom.xml editor has a nice dependency hierarchy view which shows all the dependencies, transitive or not. On Mon, 18 Jul 2011 17:07:02 -0300, gs_tapestry wrote: I modified the three places you mentioned (and

Re: Tapestry5/Hibernate Persistence

2011-07-18 Thread tompeter
Great, thank you! I am using the @CommitAfter Annotation now. Just to make sure: It is not possible that a second user reads the entity before the HibernateSessionManager has committed the changes of User 1? I ask because I use injected org.hibernate.Session for reading the values. Thanks, Tom --

Re: PageActivationContext Coercion Exceptions

2011-07-18 Thread Mark
Thanks, Kalle. I'll check that out. I also found that you can intercept the exceptions which I had overlooked in the docs: http://tapestry.apache.org/component-events.html Mark On Sun, Jul 17, 2011 at 10:49 PM, Kalle Korhonen wrote: > I haven't tried, but using tapestry-exceptionpage > (http:/

Re: Another case of "Block parameters are only allowed directly within component elements."

2011-07-18 Thread gs_tapestry
I modified the three places you mentioned (and excluded transitive dependencies) and fresh build my application. I am still getting the same error during application start. Below is the trace. I could not figure out which piece caused the issue. Thanks. EMM 19515 [main] INFO org.springframework

Re: Eventlink zone update explorer 9 error

2011-07-18 Thread Taha Tapestry
You can check it at http://tawus.wordpress.com/2011/04/16/tapestry-magic-2-ajax-with-graceful-degradation/ I can file a jira and patch for it Regards Taha On Jul 18, 2011, at 10:33 PM, Josh Canfield wrote: >> I think @XHR can be included in tapestry-core. I use it all the time to >> avoid t

Re: Tapestry5/Hibernate Persistence

2011-07-18 Thread Михаил Слободянюк
Hi! Problem in you Step 4. Use http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/hibernate/HibernateSessionManager.html method *commit *()or @CommitAfter annotation.

Tapestry5/Hibernate Persistence

2011-07-18 Thread tompeter
Hi, I hope you can help me answer a Tapestry5/Hibernate question. In an onSuccessFromForm Method I want to update a database entity only if a specific value of that entity is null. This is how I do it: Step 1: I read the entity with something like: myObject = (Object)criteria.list().get(0); Step

Re: Eventlink zone update explorer 9 error

2011-07-18 Thread Josh Canfield
> I think @XHR can be included in tapestry-core. I use it all the time to avoid > these problems Do you have a reference to source for it? Also, is there an "improvement" defect filed? - To unsubscribe, e-mail: users-unsubscr...

Re: javascript & layout problem

2011-07-18 Thread Josh Canfield
> Inside test.js, I used jQuery, but an error show up telling that jQuery is > not recognized. But if I change User class to reimport jQuery the problem > solved. The problem sounds like the order your scripts are getting included. When you add the import to your page it moves the jquery import b

Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Josh Canfield
I'm not sure why you'd want to do this from the link transformer. Can you explain? My first choice would be to let it reach a page and have that page class do the redirect from an onActivate handler. Josh On Mon, Jul 18, 2011 at 7:11 AM, Bo Gao wrote: >> Just return a URL instance of a non-tape

Re: Tapestry Zone and jquery

2011-07-18 Thread George Christman
I figured out how to use it, just as simple as you said, only thing left to figure out is how to call a jquery function from my class. I'm using afterRender. void afterRender() { javasScriptSupport.addScript( "$('%s').observe(Tapestry.ZONE_UPDATED_EVENT, function() { " //

Re: Another case of "Block parameters are only allowed directly within component elements."

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 13:01:36 -0300, gs_tapestry wrote: I checked my application. It doesn't have any direct reference to ResourceCache and it compiled without error. You have, but indirectly. ;) org.apache.tapestry tapestry-spring

Re: Another case of "Block parameters are only allowed directly within component elements."

2011-07-18 Thread gs_tapestry
I checked my application. It doesn't have any direct reference to ResourceCache and it compiled without error. Regarding the mixed Tapestry JAR, I did run into such issue at the beginning of migration from T5.0. Below are related maven dependence. Do you see any potential issue?

Re: Tapestry Zone and jquery

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 12:35:23 -0300, George Christman wrote: Is there any good doc on how to use the Tapestry.ZONE_UPDATE_EVENT ? I don't completely understand it just yet. It's quite simple: it's the name of the event tiggered the HTML element generated by the Zone component when a zone

Re: Tapestry Zone and jquery

2011-07-18 Thread George Christman
Is there any good doc on how to use the Tapestry.ZONE_UPDATE_EVENT ? I don't completely understand it just yet. I'm aware of the css approach, however I was under the understanding it wouldn't function in older browsers. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Ta

Re: Eventlink zone update explorer 9 error

2011-07-18 Thread Taha Tapestry
I think @XHR can be included in tapestry-core. I use it all the time to avoid these problems Regards Taha On Jul 18, 2011, at 8:17 PM, "Thiago H. de Paula Figueiredo" wrote: > On Mon, 18 Jul 2011 11:08:42 -0300, CHAUVEL wrote: > >> Hi, > > Hi! > >> I have a tapestry 5 app. I have an even

Re: javascript & layout problem

2011-07-18 Thread Михаил Слободянюк
If you want include some script in *all* pages you may conribute to MarkupRenderer service. See org.apache.tapestry5.services.TapestryModule as example Mihail 16 июля 2011 г. 19:05 пользователь Rendy Tapestry написал: > Hi Mihail, > > Thank you for your response. If that is how the correct thing

Re: Eventlink zone update explorer 9 error

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 11:08:42 -0300, CHAUVEL wrote: Hi, Hi! I have a tapestry 5 app. I have an eventlink that updates a zone. Works perfectly in explorer 8, firefox and chrome, but with explroer 9 I get: ioc.Registry A component event handler method returned the value Block[Body of Busqu

Re: Eventlink zone update explorer 9 error

2011-07-18 Thread Taha Tapestry
You should always check request.isXHR() and if it returns true then it is an Ajax call otherwise it is a non-Ajax call. The reason might be an error in ie9 which causes a non-Ajax call Regards Taha On Jul 18, 2011, at 7:38 PM, CHAUVEL wrote: > Hi, > I have a tapestry 5 app. I have an eventli

Re: Tapestry Zone and jquery

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 11:29:10 -0300, George Christman wrote: jQuery(document).ready(function($) { $('label.req').prepend('* '); $('label').append(':'); } The ready() event (which is just the dom:loaded event) is only triggered by the browser JavaScript DOM when a full page render i

Eventlink zone update explorer 9 error

2011-07-18 Thread CHAUVEL
Hi, I have a tapestry 5 app. I have an eventlink that updates a zone. Works perfectly in explorer 8, firefox and chrome, but with explroer 9 I get: ioc.Registry A component event handler method returned the value Block[Body of Busqueda:cargosgrillazone, at classpath:com/tida/servir/pages/Busqueda.

Re: Tapestry Zone and jquery

2011-07-18 Thread George Christman
This is one example, however the problem is much more common when using jQuery UI with tapestry zones. The zone works perfectly, jquery doesn't seem to be firing on zone reloads, only when the entire page is reloaded. Object onValueChangedFromLocation(Ifa

Re: Another case of "Block parameters are only allowed directly within component elements."

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 10:18:29 -0300, gs_tapestry wrote: Hi Thiago, Hi! Wish you had a good weekend. Sorry for the lose of Brazilian national soccer team. Fortunately I only watched the last 15 minutes. I spent a few hours trying upgrade to T.5.3.0. While starting application, i got e

Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Bo Gao
> Just return a URL instance of a non-tapestry page from the event > handler. I think that will do I do this in a PageRenderLinkTransformer, the interface is public PageRenderRequestParameters decodePageRenderRequest(Request request) ; So I must return PageRenderRequestParameters, The first param

Re: Tapestry Zone and jquery

2011-07-18 Thread Thiago H. de Paula Figueiredo
On Mon, 18 Jul 2011 10:16:10 -0300, George Christman wrote: Hello all, I'm using some jquery to handle some of my UI elements which works perfectly until I add a tapestry zone to the mix. When a zone is reloaded, the jquery javascript no longer applies the styles to the elements. I see

Re: Another case of "Block parameters are only allowed directly within component elements."

2011-07-18 Thread gs_tapestry
Hi Thiago, Wish you had a good weekend. Sorry for the lose of Brazilian national soccer team. I spent a few hours trying upgrade to T.5.3.0. While starting application, i got error "java.lang.NoClassDefFoundError: org/apache/tapestry5/internal/services/ResourceCache". I searched and found both Ho

Tapestry Zone and jquery

2011-07-18 Thread George Christman
Hello all, I'm using some jquery to handle some of my UI elements which works perfectly until I add a tapestry zone to the mix. When a zone is reloaded, the jquery javascript no longer applies the styles to the elements. I see jquery offers live which is good for key down and clicks etc, but would

Re: subdoamin when https else root, possible?

2011-07-18 Thread Angelo C.
right, I was thinking maybe there is a simpler solution. then again, that requirement looks good to me, when a viewer sees: https://safe.sample.com instead of https://sample.com, that make him feel better:) -- View this message in context: http://tapestry.1045711.n5.nabble.com/subdoamin-when-htt

Re: javascript & layout problem

2011-07-18 Thread Rendy Tapestry
I was try it, but its still not working. Thanks, Rendy. On Sat, Jul 16, 2011 at 11:26 PM, Taha Tapestry wrote: > Did you try directly inserting the script in layout by using script tag > inside head tag > > Regards > Taha > > On Jul 16, 2011, at 9:35 PM, Rendy Tapestry > wrote: > > > Hi Mihail,

Re: T5 + tests (source code included)

2011-07-18 Thread Taha Hafeez
Can you share the full source code as a zip/jar, I will look into that (Sorry, too busy to create an new example) regards Taha On Mon, Jul 18, 2011 at 5:30 PM, Julien Martin wrote: > Hello again, > Do I need to add my CheetahPageTester to some configuration somewhere? > J. > > 2011/7/18 Julien M

Re: subdoamin when https else root, possible?

2011-07-18 Thread Taha Hafeez
If I understand correctly, the problem in your case is that the links generated are not absolute e.g. PageLink for MyPage.class generates '/mypage', so when on a secure page, the secure domain will be used by the browser. If you want the links to be consistent you have you create your own links wit

Re: T5 + tests (source code included)

2011-07-18 Thread Julien Martin
Hello again, Do I need to add my CheetahPageTester to some configuration somewhere? J. 2011/7/18 Julien Martin > Hello Taha, > > Thanks for your replies! > > Regarding Tapestry + Spring + tests, you put me on the right track yet I > have not being able to get it to work. > > Here is my PageTeste

Re: subdoamin when https else root, possible?

2011-07-18 Thread Angelo C.
not sure if that applicable in my case. let me explain a little more, with my BaseURLService: 1. In the www.sample.com/view, login page's link is: https://www.safe.sample.com/login, that's what I want. 2. When you are in the login page, view page's link become: http://www.safe.sample.com/view, i

Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Taha Hafeez
Just return a URL instance of a non-tapestry page from the event handler. I think that will do On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao wrote: > Thank you for your response, > > For example I want to redirect /download to another url "download.do" > But the download.do is not a tapestry page, it'

Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Bo Gao
Thank you for your response, For example I want to redirect /download to another url "download.do" But the download.do is not a tapestry page, it's not handled by tapestry. How to do this? On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote: > Hi > > http://blog.tapestry5.de/index.php/2010/09/06/n

Re: subdoamin when https else root, possible?

2011-07-18 Thread Taha Hafeez
Hi Angelo This might help http://tapestry.1045711.n5.nabble.com/example-BaseURLSource-T5-td2427659.html regards Taha On Mon, Jul 18, 2011 at 3:42 PM, Angelo C. wrote: > Hi, > > I use @secure on some pages(login, setup, etc), with following BaseURL > service, it works well. > > now, there is thi

Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Taha Hafeez
Hi http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ regards Taha On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao wrote: > I want to redirect some url to another url, the url is not a tapestry page. > but decodePageRenderRequest returns a PageRenderRequestParameters > How can I do th

subdoamin when https else root, possible?

2011-07-18 Thread Angelo C.
Hi, I use @secure on some pages(login, setup, etc), with following BaseURL service, it works well. now, there is this new requirement, when in https mode, the domain should be a subdomain: safe.sample.com not a root domain, sample.com, this cause problems to existing pages, example, a non @secure

how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

2011-07-18 Thread Bo Gao
I want to redirect some url to another url, the url is not a tapestry page. but decodePageRenderRequest returns a PageRenderRequestParameters How can I do this. -- Bo Gao eli...@gmail.com - To unsubscribe, e-mail: users-unsub