Re: Event bubbling - how to implement a top level catch-all target

2009-09-29 Thread Andreas Pardeike
On 29 sep 2009, at 16.12, Thiago H. de Paula Figueiredo wrote: One simple question related to this: if I have a service that is used by many components and that holds a list of component related information, how do I make this request related? Your service must have the perthread scope. A

Re: Event bubbling - how to implement a top level catch-all target

2009-09-29 Thread Andreas Pardeike
request (they send that when they register themselves at beginRender) then how do I clear that list at the beginning or end of the request inside the service? How do I make sure that I keep that information request relative since the service is a singleton. Thanks, Andreas Pardeike On 29

Re: Event bubbling - how to implement a top level catch-all target

2009-09-28 Thread Andreas Pardeike
al. It's a natural extension to event-bubbling that otherwise only provides a one-way (up in this case) communication. /Andreas Pardeike On 28 sep 2009, at 16.27, Thiago H. de Paula Figueiredo wrote: Em Mon, 28 Sep 2009 10:41:35 -0300, Cordenier Christophe > escreveu: Hi

Event bubbling - how to implement a top level catch-all target

2009-09-28 Thread Andreas Pardeike
sible, it would make my event handling so much better. Regards, Andreas Pardeike - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [ANNOUNCE] Tapestry 5.1.0.2 - "failed due to recursion"

2009-04-03 Thread Andreas Pardeike
ll other contributions, services and custom code in my AppModules except for the template locator overwrite. So it seems that this one is the culprit for the recursion exception I get with 5.1.0.2 /Andreas On 3 apr 2009, at 13.28, Andreas Pardeike wrote: Unfortunately, one of my key concepts in

Re: [ANNOUNCE] Tapestry 5.1.0.2 - "failed due to recursion"

2009-04-03 Thread Andreas Pardeike
Unfortunately, one of my key concepts in a big application I am developing stops working in the step from 5.1.0.1 -> 5.1.0.2. Our application has all page classes inside a subfolder, thus our internal tapestry pages all look like http://hostname/klubb/page and there is one tapestry page 'd

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-24 Thread Andreas Pardeike
On 24 mar 2009, at 14.20, Robert Zeigler wrote: I think that's ugly. :) Consider: componentSource .getPage (Index .class).getComponentResources().createPageLink(Index.class,true); Personally, I get suspicious of call chains nested more than about two-deep... smells of tight coupling. Ultim

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-23 Thread Andreas Pardeike
meter PageClassName which needs to be converted to an url. Previously, I used ComponentResource for creating a page link from a Page (which I get from RequestPageCache). How do I do this with 5.1? /Andreas Pardeike - To unsubs

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-20 Thread Andreas Pardeike
_logger = logger; _response = response; _resolver = resolver; _productionMode = productionMode; } ... } /Andreas On 20 mar 2009, at 14.12, Thiago H. de Paula Figueiredo wrote: On Fri, Mar 20, 2009 at 9:54 AM, Andreas Pardeike wrote: Thiago, Hi! I don't

Re: 5.0.18 - 5.1.0.1 upgrade problems

2009-03-20 Thread Andreas Pardeike
... On 20 mar 2009, at 13.11, Thiago H. de Paula Figueiredo wrote: On Fri, Mar 20, 2009 at 9:08 AM, Andreas Pardeike wrote: 2) ComponentResources - public class ExceptionHandler implements RequestExceptionHandler { public ExceptionHandler(RequestPageCache

5.0.18 - 5.1.0.1 upgrade problems

2009-03-20 Thread Andreas Pardeike
n) (at ExceptionHandler.java:32) via se.fsys.klubb.services.TweaksModule.bind(ServiceBinder) (at TweaksModule.java:60) (for service 'ExceptionHandler'): No service implements the interface org.apache.tapestry5.ComponentResources. /Andreas Pardeike --

Re: How to get a page's html to send it as an email?

2009-03-17 Thread Andreas Pardeike
parameterize the page? 2) Can this be done with a component instead of a page? For (1) I can set some values in my session and render the page right after that. Seems a bit like a hack though. /Andreas Pardeike - To unsubscribe, e

Re: How to get a page's html to send it as an email?

2009-03-17 Thread Andreas Pardeike
more build-in way of getting a T5 page to render into a string without simulating an external http request. Something that would even work with a component. Anyone? Andreas Pardeike - To unsubscribe, e-mail: users-unsubscr

How to get a page's html to send it as an email?

2009-03-16 Thread Andreas Pardeike
Hi, I build it so my users can customize their tapestry pages. Now I want to add that they can send html emails by using the output of a specific page. How do I grab the outcome of a page for further processing? Regards, Andreas Pardeike

Datefield ignores custom Date->String coersion?

2008-10-20 Thread Andreas Pardeike
Hi, we have our own Date->String coersion handler installed and by using the explain method in the coersion API, we can see that it's called and working fine. Why is it then that our beanform does not use the coersion at all? /Andreas

T5: How to pass variables/data from a component to its parents parameter block

2008-10-12 Thread Andreas Pardeike
uot;/>) is evaluated, 'foo' is evaluated in the context of component 'A'. What is the best strategy here? Should A have a property that the loop of B will modify or, better, can I make it so that foo is evaluated within the context of B?

Re: T5: Calling method with parameter in prop

2008-05-12 Thread Andreas Pardeike
Hi, Don't know what you folks do, but I have created a bunch of custom bindings for different cases. The only thing I actually miss is the ability to COMBINE them. I.e., I have added a binding equals:foo=bar where foo and bar can be other binding objects or literals. I use it successfully for

Wrapping a grid

2008-04-22 Thread Andreas Pardeike
ter> it works fine, but not via the body tag. Is this a limitation, and if so, how do I create a workaround? Thnx, Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: Custom asset locator?

2008-03-31 Thread Andreas Pardeike
eating the site inside the path would be not so nice: http://www.longsitenamehere.com/longsitenamehere/header.gif First, it's quite ugly and second, it will create confusion if users start to abuse other sites content. Sorry for the long post but I felt that I had to go into detail to show

Re: T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
Robert , Just coded that and it (sort of) works. The problem is, as Chris has mentioned, that T5 complains about the assets being not present. And when I dodge this by simply creating my own prefix, lets say '/host_assets/' and fall back to not using assets at all, then my servlet container will

Re: T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
enier Christophe wrote: And what about a custom AssetDispatcher ? -Message d'origine- De : Andreas Pardeike [mailto:[EMAIL PROTECTED] Envoyé : vendredi 28 mars 2008 15:22 À : Tapestry users Objet : Re: T5: Custom asset locator? Thanks Christope, but it's not quite what I want. To illust

Re: T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
is is just an idea, but maybe it would be easier to create a new type of binding Factory upon the AssetBinding factory to add dynamic datas. Best regards, Christophe. -Message d'origine----- De : Andreas Pardeike [mailto:[EMAIL PROTECTED] Envoyé : vendredi 28 mars 2008 14:58 À : Tapes

T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
- there, I automatically take care of the host name. I couldn't find a example on how to expand/overwrite asset lookup (in the same way I expanded template lookup). All I want is to add a subfolder on the fly to the asset path and still use the same build i

Re: T5: your opinion on grid's sorting

2008-03-19 Thread Andreas Pardeike
guess that this might not be a candidate for default behavior but a configuration option would be nice. /Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
PS: I use Tapestry 5.0.12-SNAPSHOT... /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
page instance to go to that page, a Block to render the ajax response or (and that is my favorite) 'null' to just refresh the zone so I don't have to hack around this as in the example below. Howard? /Andreas Pardeike On 13 mar 2008, at 13.13, Cordenier Christophe wrote:

Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
things including a inside the block but since its an ajax request, JS is not executed. Or is it and I am doing something wrong. Any insides appreciated, Andreas Pardeike -- Here is my Login component: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd

Re: Page class annotations (was Re: Checking for a logged in user globally)

2008-03-11 Thread Andreas Pardeike
Filip, After refactoring my code about a dozen times your suggestion (and my original code) did the trick. Thanks! Andreas Pardeike On 11 mar 2008, at 13.11, Filip S. Adamsen wrote: Cordenier, that's a VERY complicated way to get the class, when, in fact, getClass() on the Comp

Page class annotations (was Re: Checking for a logged in user globally)

2008-03-11 Thread Andreas Pardeike
Great. One question though. I tried to create my own annotation Access @PageAccess(Access.PUBLIC) public class Start { ... } but Class pageClass = page.getClass(); PageAccess access = pageClass.getAnnotation(PageAccess.class); fails because there are no annotations in 'page'. What am I doi

Re: Checking for a logged in user globally

2008-03-10 Thread Andreas Pardeike
olean service(Request request, Response response, RequestHandler handler) unless I rely on the rather unsafe way to use request.getPath(). Is there a way to get the current page/component/service that is the target of the request and *ask* it if it is public? /Andreas Pardeike On 28 sep 200

Re: T5: Examples for Cayenne integration?

2008-03-07 Thread Andreas Pardeike
ring out the *right* things. I don't need someone to hold my hand when I code a class to an interface. /Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: Examples for Cayenne integration?

2008-03-06 Thread Andreas Pardeike
On 5 mar 2008, at 22.19, Robert Zeigler wrote: I'll do one better a little later today (or possibly tomorrow): I'll clean up my code and package it as a standalone "cayenne integration" module. I do believe that the need for such example(s) is quite high. What hinders T5 most from success

T5: Examples for Cayenne integration?

2008-03-05 Thread Andreas Pardeike
ction management? Any help appreciated, Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [T5] How to "skin" .properties files? Localization almost good...

2008-03-05 Thread Andreas Pardeike
merName()); return _contextRoot.forFile(path).forLocale(locale); } } // Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tapestry 5 Redirects

2007-04-13 Thread Andreas Pardeike
points out the advantages of it compared with Tapestry. From what he tells me (and with the limited ability of me to digest it) I think that they use redirect-after-post only sporadic. Andreas Pardeike On 13 apr 2007, at 11.22, kranga wrote: Reasons I can think of: 1) Log analysis: Your page hit

Tapestry 5 Redirects

2007-04-12 Thread Andreas Pardeike
On 12 apr 2007, at 03.29, Howard Lewis Ship wrote: Every request is a page redirect in T5. Check the URLs in the browser as you work through the application. Is that clever design? I can think of several reasons why this could be a bad idea. What's the reasoning behind this? An

Re: AW: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-28 Thread Andreas Pardeike
On 28 mar 2007, at 15.50, Maximilian Weißböck wrote: Application works with IE if we do NOT use a proxy. It breaks in IE if we use the proxy (we use the squid proxy). BUT: If you set in IE the internet option "use HTTP 1.1 for proxy connections" (don't know the exact wording since I have on

Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Andreas Pardeike
bet it's not a script error). So double+triple check your tomcat configuration. Also make sure you don't do any special stuff in your border component or in your @Shell configuration. Andreas Pardeike PS: I would really love to see some error checking on this. It's really ha

Re: Why is IE6 freezing? [Solution!]

2007-03-12 Thread Andreas Pardeike
MinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,image/gif" and everything works again. This took me 5 hours and I can honestly say that I really really *hate* IE now (I knew I hated it before, but I didn't realize how dee

Why is IE6 freezing?

2007-03-09 Thread Andreas Pardeike
st dojo.js but it's the same. Anyone who knows why it's freezing? Interestingly, all other browsers work fine (although Safari sometimes keeps loading some elements). The problem can be reproduced when the IE cache is cleared. The site: http://www.fsbutiken.se He

Programmatic DirectLink with updateComponents and parameter

2007-02-21 Thread Andreas Pardeike
ake_by. I was able to do this: setItem_id(linkParam); DirectLink fakeBuy = (DirectLink)getComponent("fake_buy"); ILink fakeBuyLink = fakeBuy.getLink(getPage().getRequestCycle()); link = fakeBuyLink.getURL(); But I am not sure if this is the right way to do it becaus

Javascript function call after Ajax component update?

2007-02-15 Thread Andreas Pardeike
after she clicked on a Buy button. Anyone? Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Andreas Pardeike
On 20 jun 2006, at 11.49, Nick Westgate wrote: Just glancing at your code without digging in to it, it seems pretty dangerous to use statics like this in a component: ... private static Method snippetConverterMethod; That certainly is true. One more thing: Thinking about fixing my problem.

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Andreas Pardeike
r and it didn't show so I am pretty sure that caching is on on the test server (it's the default, right?). Can caching cause this weird problem? Is there a better way to have my library call a method on the visit class? Thanx, Andreas Pardeike On 20 jun 2006, at 10.14, Nick Westgate wrot

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Andreas Pardeike
first call to a page that contains this component will fail. Andreas Pardeike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: null exception on invoke, tapestry 3.0.3 - HELP!!

2006-06-19 Thread Andreas Pardeike
The code also has these debugging statements: writer.print("page: " + page); writer.print("visitObject: " + visitObject); writer.print("visitClass: " + visitClass); writer.print("arguments[0]: " + arguments[0]); writer.print("arguments[1]: " + arguments[1]); writer.print("snippetGetterMetho

null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-19 Thread Andreas Pardeike
Seems like the attachments didn't make it. Here's the source: ### DBTextSnippet.jwc http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";> class="se.pardeike.tapestry.Extras.DBTextSnippet.DBTextSnippet" allow-body="no" allow-informal-parameters="no"> A piece of dynamic text fetched f

null exception on invoke, tapestry 3.0.3 - HELP!!

2006-06-19 Thread Andreas Pardeike
Fsys.Common.Visit arguments[0]: fshome-menu1 arguments[1]: sv_SE snippetGetterMethod : public java.lang.String Fsys.Common.Visit.getSnippetText(java.lang.String,java.util.Locale) which to me looks like all my stuff isn't null at all. I'm out of ideas why invoke

Re: Component exception : null

2006-06-15 Thread Andreas Pardeike
I forgot to mention that my catch actually looks like catch(Exception e) { writer.print("Component exception : " + e.getMessage()); ... } so it seems that something is null that I don't expect. I do catch visitObject == null so I wonder if it might be the snippetGetterMethod? On 1

Component exception : null

2006-06-15 Thread Andreas Pardeike
The component is located in a tapestry library and it uses invoke to call a database fetching method in the page's visit object. It works perfect on start and during the run of the server but fails after the test server was idle for a long time. Thnx, Andreas Pardeike E