Re: Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Taha Hafeez
This might help http://tawus.wordpress.com/2011/04/16/tapestry-magic-2-ajax-with-graceful-degradation/ On Fri, Sep 9, 2011 at 11:28 AM, Jonathan Barker wrote: > The error looks a lot like what you get when you are expecting an Ajax > request (and so return a Block), but instead get a regular p

Re: Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Jonathan Barker
The error looks a lot like what you get when you are expecting an Ajax request (and so return a Block), but instead get a regular page request where you would want to return null or a Page. As a general practice, try to allow for graceful degradation in the absence of javascript by doing the check

Re: OT Re: Eid Mubarak

2011-09-08 Thread Vangel V. Ajanovski
Sorry, too busy with tapestry programming ... "angel" here is in fact a "messenger", so the most accurate interpretation of my name is "one who brings good news". :) Tomorrow we start testing with small user group and on monday we go fully live with our application with latest 5.3 beta, so I h

RE: pages vs components... use model still the same or has it evolved any ?

2011-09-08 Thread Ken in Nashua
I guess I am wondered in other peoples ideas over pages and components. Though my take on them... pages NEED to persist properties across request boundaries... and components persist those page properties thru their well defined parameter interface. Does this mean that components should never h

pages vs components... use model still the same or has it evolved any ?

2011-09-08 Thread Ken in Nashua
An exerpt from a 2004 tapestry guide... A component's parameters are bound to properties of the enclosing page. The component is allowed to read its parameter, to access the page property the parameter is bound to. A component may also update its parameter, to force a change to the bou

5.3-beta-5

2011-09-08 Thread Howard Lewis Ship
FYI, I just created the 5.3-beta-5 preview release. See notes on how to use it: http://tapestry.apache.org/2011/08/27/tapestry-53-beta-preview.html -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Lenny Primak
Looks like your suggestion does work for one servlet. Not sure whether its scalable enough of a solution for me though. The root cause of the problem is that tapestry doesn't deal with the outside servlets and gives up its processing pipeline. Its more of a design issue on my side now of how to

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Sep 2011 14:17:59 -0300, Lenny Primak wrote: This relates to my battle with securing servlets with tap-security / shiro. I found out that because tapestry 'ignores' my outside servlets (REST/WebServices) security information isn't getting propagated. If I could just let tapestr

RE: Page redirection

2011-09-08 Thread lifestyles_
Thank you again for your prompt response and time. public class PageA { public Object onActivate() { System.out.println("PageA.onActivate()"); //*** Start of selected code *** if (condition) return PageC.class; else

Re: Localization Problems

2011-09-08 Thread Christian Köberl
2011-09-08 13:22, Rendy Tapestry: Yes, I just set as you do, but it doesn't work. This is because what browser send through request header is US locale. Based on tapestry mechanism looking up for locale, it will search the nearest locale that is en. That why ordering like that doesn't work. Any

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Lenny Primak
This has to do with my security battle. I figured out that the security information isn't getting propagated because servlet falls 'outside' of the tapestry domain and is just getting ignored by the tapestry servlet filter and the whole pipeline. I need to get all these servlets into the filter pi

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Steve Eynon
> this will require me to 'wrap' all the servlets individually, Hmm... well originally you said you only had the one servlet! :) > I have a servlet which I need to use as part of the Tapestry web app. In what way do you need the servlet to be "in the pipeline"?? If you just need access to servic

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Lenny Primak
If I understand you correctly Thiago, this will require me to 'wrap' all the servlets individually, i.e. the tapestry part would have to know about all the servlets, which isn't desirable. Or am I missing something? On Sep 8, 2011, at 12:43 PM, Lenny Primak wrote: > no but I will try :) > > On

Re: Tapestry IOC

2011-09-08 Thread Howard Lewis Ship
On startup, Tapestry stores the Registry into the ServletContext. If you can get to the servlet context, you can get the Registry. The key is org.apache.tapestry5.application-registry or use the constant TapestryFilter.REGISTRY_CONTEXT_NAME. On Thu, Sep 8, 2011 at 8:59 AM, Wechsung, Wulf wrote:

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Lenny Primak
no but I will try :) On Sep 8, 2011, at 12:41 PM, Thiago H. de Paula Figueiredo wrote: > On Thu, 08 Sep 2011 13:39:41 -0300, Lenny Primak > wrote: > >> I have a servlet which I need to use as part of the Tapestry web app. >> Since it's not an asset, etc. Tapestry completely ignores it. >> Is t

Re: How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Sep 2011 13:39:41 -0300, Lenny Primak wrote: I have a servlet which I need to use as part of the Tapestry web app. Since it's not an asset, etc. Tapestry completely ignores it. Is there any way to add it to the pipeline? Have you tried wrapping it in a HttpServletRequestFilter an

How to "plug in" a servlet into Tapestry filter dispatch pipeline

2011-09-08 Thread Lenny Primak
I have a servlet which I need to use as part of the Tapestry web app. Since it's not an asset, etc. Tapestry completely ignores it. Is there any way to add it to the pipeline? - To unsubscribe, e-mail: users-unsubscr...@tapestry.

Re: Tapestry IOC

2011-09-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Sep 2011 12:59:09 -0300, Wechsung, Wulf wrote: Hello Guys, Hi! I'm wondering, in a Tapestry Webapp scenario, how is it possible to obtain a reference to the IOC Registry for a (or all) currently loaded module(s). I know about RegistryBuilder but build() says to only call it

Re: Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Javicha
no, that's not the error. All is well defined. I have declared the zone: And the actionlinks refer to this zone: href="#" t:type="ActionLink" t:id="previousPatientLink" t:zone="searchPatientResultZone" href="#" t:type="ActionLink" t:id="nextPatientLin

Re: Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Lenny Primak
I don't see a zone parameter in your code. I started tapestry with 5.2, so I don't know upgrade issues, but I do know that the element which has zone.getBody() returning from it has to have a zone= parameter in its tml. On Sep 8, 2011, at 12:27 PM, Javicha wrote: > no, that's not the error. All i

Re: Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Javicha
no, that's not the error. All is well defined. I have declared the zone: And the actionlinks refer to this zone: # ${message:link-previous}

Tapestry IOC

2011-09-08 Thread Wechsung, Wulf
Hello Guys, I'm wondering, in a Tapestry Webapp scenario, how is it possible to obtain a reference to the IOC Registry for a (or all) currently loaded module(s). I know about RegistryBuilder but build() says to only call it once. Looking at the source code, it does not seem to be caching the Re

Re: How to add add a random number in requset path to avoid IE cache?

2011-09-08 Thread LLTYK
In what context? I've found the cache option in jQuery.ajax automatically does it: http://api.jquery.com/jQuery.ajax/ -- View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-add-add-a-random-number-in-requset-path-to-avoid-IE-cache-tp6771848p6772360.html Sent from the Tap

Re: tapestry-security in Servlet 3.0 servlets (was EJB components)

2011-09-08 Thread Lenny Primak
Furthermore, in my servlet method, This WORKS: WebSubject subject = new WebSubject.Builder(mgr, getThreadLocalRequest(), getThreadLocalResponse()).buildWebSubject(); but this does NOT: Subject subj = SecurityUtils.getSubject(); I traced down into this (SecurityConfiguration.java) b

Re: Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Lenny Primak
my guess you are missing zone= parameter in one of your tml files. On Sep 8, 2011, at 11:20 AM, Javicha wrote: > Hi! > > I was working with Tapestry 5.1.0.5 and everithing worked fine. I updated to > Tapestry 5.2.6 because new project needs, and now I have problems with > actionlinks. > > The c

Zone error after I have updated to Tapestry 5.2.6

2011-09-08 Thread Javicha
Hi! I was working with Tapestry 5.1.0.5 and everithing worked fine. I updated to Tapestry 5.2.6 because new project needs, and now I have problems with actionlinks. The case is the following: I use paging for searches. In the search result page, I have two actionlinks (previous and next links) th

Re: Page redirection

2011-09-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Sep 2011 11:50:31 -0300, LifeStyles ® wrote: Assuming that I cannot avoid calling PageA.onActivate(), is there a way to distinguish between the PageA.onActivate() called by the eventlink vs PageA.onActivate called from elsewhere ? There is some code I would not like to execute i

[T5.3] Submit Button Cancel Event Semantics

2011-09-08 Thread Steve Eynon
After playing with the new T5.3 cancel mode for submit buttons, which causes the form to fire a cancel event, I'm not convinced the semantics are correct. I perceive a common and obvious scenario for cancelling a form to be thus; you click the cancel button and the page is re-rendered with fresh /

Re: Page redirection

2011-09-08 Thread Thiago H. de Paula Figueiredo
On Thu, 08 Sep 2011 10:40:08 -0300, LifeStyles ® wrote: Thank you Thiago for your prompt reply. :) 1- When the page is rendered --PageA.onActivate() 2- When i click on the eventlink in PageA (doSomeThingAndGotoPageB) --PageA.onActivate() --PageA.onDoSomeThingAndGotoPageB() --PageB.onActiv

How to add add a random number in requset path to avoid IE cache?

2011-09-08 Thread jqzone

Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2011-09-08 Thread Borut Bolčina
Hi, if it's not a burden, can I have a copy of the trunk too, it is still not available :-( Even better, if someone has T5.3 compatible version of tapestry spring security, I would really appreciate someone sending it to me. Cheers, borut 2011/9/7 Robert Lentz > Rado, > > Just read your posti

Re: Localization Problems

2011-09-08 Thread Rendy Tapestry
Yes, I just set as you do, but it doesn't work. This is because what browser send through request header is US locale. Based on tapestry mechanism looking up for locale, it will search the nearest locale that is en. That why ordering like that doesn't work. Any other idea ? Sorry forgot to menti

Re: Localization Problems

2011-09-08 Thread Taha Hafeez
I have not used it but I think the first locale in configuration parameter tapestry.supported-locales( SymbolConstants.SUPPORTED_LOCALES) is used as the default. So "in_ID,en" will make in_ID as default. Just a guess :) On Thu, Sep 8, 2011 at 4:13 PM, Rendy Tapestry wrote: > Hi all, > > I buil

Localization Problems

2011-09-08 Thread Rendy Tapestry
Hi all, I build an application that will support two locale, that is in_ID and en. I am using PersistentLocale to accomplish this and as consequences all my application url are encoded with selected locale (user set it manually through application menu). So if my application name is xyz and in_ID

Re: Form validate on submit event

2011-09-08 Thread Taha Hafeez
To elaborate on what Steve said, in onValidateFromForm(), 'form' stands for the component id of the form, so for the validate event handler for form will be onValidateFromMyForm() On Thu, Sep 8, 2011 at 12:25 PM, Steve Eynon wrote: > void onValidateForm() > > is deprecated in T5.2 and has b

Re: Form validate on submit event

2011-09-08 Thread Yohan Yudanara
Thanks for notifying me. I haven't knew it before... On Thu, Sep 8, 2011 at 1:55 PM, Steve Eynon wrote: > void onValidateForm() > > is deprecated in T5.2 and has been removed in T5.3, best to use > > onValidateFromForm() > > instead. I mention it 'cos I got bit by it upgrading some apps from > T5

missing css files in jetty

2011-09-08 Thread angelochen
Hi, I have this: @Import(stylesheet = {"context:/css/sample.css"}) and it runs quite well, but a few days later, we got: /assets/1.0-SNAPSHOT/ctx/css/sample.css. Reason: file not found. however, this one still accessible: /assets/1.0-SNAPSHOT/tapestry/default.css difference is /ctx/css and /tapes