Re: BaseURLSource with access to current request

2013-09-23 Thread Andy Pahne
Thanks. I used configuration.addInstance(…, …) I also had to change the constructor of my overriding service, the injected constructor parameter needed an explicit @InjectService("Request") annotation. Both changes together and there wasn't an Exception anymore. Andy Am 23.09.2013 um

Re: BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
I tried another approach, which unfortunately did not work as well. I copied the source of Tapestry's BaseURLSourceImpl. Then renamed it to CustomBaseURLSourceImpl. For the purpose of the test I did not even modify the source, only gave the class a new name. Then I tried to contribute it as a

Re: BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
Am 22.09.2013 um 18:48 schrieb Nicolas Bouillon : > Hi, > > You can try starting you application server with this JVM options : > > -Dtapestry.hostport-secure=443 -Dtapestry.hostport=80 > > Nicolas. > That is not really an option, because I don't want to deploy to multiple tomcat instances

Re: BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
No, that does not work. When I try to inject the Request object as a method parameter, the application won't start. An Exception is thrown on startup: 2013-09-22 20:40:30,689 ERROR ServiceOverride:64 - Construction of service ServiceOverride failed: Error invoking service contribution method de

BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
Hi there, I have a T5 app, that - is party protected with SSL (fronted with Apache) - also has some unprotected content not using SSL - is used to run more than one domain ( www.example.com, www.example.co.uk ) - can be completely browsed using https scheme, even the unprotected pages I hav

Re: setupRender(): redirecting to different page

2012-11-09 Thread Andy Pahne
Thank you. I simply remembered it wrong. For the curious: this works as expected: Object onActivate(long articleID) { this.article = articleService.getPublicArticle(articleID); if(this.article == null){ return articleUnknown;

setupRender(): redirecting to different page

2012-11-09 Thread Andy Pahne
I am trying to do a simple thing, which used to work with previous versions, at least as far as I can remember. Plwase see code snippet below. The thing is: it never redirects to the "ArticleUnknown" page, even when article is null. I had a look at the docs ("component rendering cheat" sheet an

Re: template/class reloading and gradle's jetty run

2012-11-01 Thread Andy Pahne
Thank you all, the problem is solved. I am using RunJettyRun now and together with the settings that Kalle and Thiago posted, it works like a charm. The authors of RunJettyRun "strongly recommand" on their project page to use DCEVM hot-deploy feature to work with RJR, it's really faster and faste

Re: template/class reloading and gradle's jetty run

2012-11-01 Thread Andy Pahne
Thanks a lot, that did it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717562.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: template/class reloading and gradle's jetty run

2012-11-01 Thread Andy Pahne
Yeah, I heard you are a great fan of IntelliJ. I might have to look into that sometimes -- View this message in context: http://tapestry.1045711.n5.nabble.com/template-class-reloading-and-gradle-s-jetty-run-tp5717491p5717556.html Sent from the Tapestry - User mailing list archive at Nabble

Re: template/class reloading and gradle's jetty run

2012-11-01 Thread Andy Pahne
RunJettyRun is a neat plugin which I have not been aware of. Unfortunatly for me it does the same: on every change of a template or class file, it reloads the whole context instead of simply reloading that one changed entity. Though, I admit, it does that much quicker than gradle does, so I am al

Re: template/class reloading and gradle's jetty run

2012-11-01 Thread Andy Pahne
Hi, I did all of that except turning off hot code swapping. I just did not find, where to turn that off in Eclipse. I found "Configuration - Java - Debug", where I can adjust what happens if hot code swap fails or isn't available, but I did not find, how to turn it off. After working through the

template/class reloading and gradle's jetty run

2012-11-01 Thread Andy Pahne
configuration.add(SymbolConstants.EXECUTION_MODE, "DevelopmentMode"); } I am fairly new to gradle, so I am not sure, if this a gradle problem or if I misconfigured T5. Any help or pointers would be appreciated. Thanks Andy Pahne -- View this message in context

Re: [5.2.0] all our apps completly broken in IE8 (numerous javascript errors)

2010-08-27 Thread Andy Pahne
Yeah, you hit it. We are using jQuery, as you suggested. So, as I understand: - jQuery.noConflict() not working in IE8 (wo compatible mode) - the workaround is to enable compatible mode - IE8 and Javascript is to be considered broken I think that, by adding the last four links, you suggest

Re: [5.2.0] a form (no Form component) is modified by Tapetry

2010-08-27 Thread Andy Pahne
https://issues.apache.org/jira/browse/TAP5-1261 Am 28.08.2010 00:13, schrieb Andreas Andreou: Can you add a JIRA for this - i think i've seen something like this logged into the FF console (but didnt seem to make the page malfunction)

[5.2.0] a form (no Form component) is modified by Tapetry

2010-08-27 Thread Andy Pahne
I have a page which contains a plain form. This is no Tapestry Form component, just some simple markup for a form. When I try to submit this form, a Javascriupt error is thrown in IE8: tapestry.js, line 1462: 'undefined' is null or not an object This error only occurs in IE8 (with and wit

[5.2.0] all our apps completly broken in IE8 (numerous javascript errors)

2010-08-27 Thread Andy Pahne
Hi, after performing an upgrade from 5.1. (latest stable release) to 5.2.0 we experience that our apps are unusable in IE8 completly. It's hard to describe what is going on, because there are hundreds of javascript errors, mostly beginning in tapestry.js. Most of our custom written componen

Re: Can't contribute RegexAuthorizer / classpath assets not being served [5.2.0]

2010-08-26 Thread Andy Pahne
source I find that there is no RegexAuthorizer anymore, not in 5.2.0 and not in 5.2.1-SNAPSHOT. The upgrade instructions also don't mention this. I am still searching for a solution... Andy Am 26.08.2010 16:14, schrieb Andy Pahne: I am working with Tapestry 5.2.0. Some classpath asset

Can't contribute RegexAuthorizer / classpath assets not being served [5.2.0]

2010-08-26 Thread Andy Pahne
I am working with Tapestry 5.2.0. Some classpath assets are denied access. In the document http://tapestry.apache.org/tapestry5.2-dev/guide/assets.html under "Securing Assets" it is said that I can contribute in my AppModule like this: public void contributeRegexAuthorizer(final C

Re: Why can't component classes be abstract? [5.1]

2010-02-22 Thread Andy Pahne
Am 22.02.2010 16:20, schrieb Piero Sartini: Yeah, I understand the limitation. But how should I access a property which is defined in my base class in one of the subclasses with these limitations? Just don't use @Property - provide getXXX and setXXX methods. As far as I understand, I

Re: Why can't component classes be abstract? [5.1]

2010-02-22 Thread Andy Pahne
Am 22.02.2010 15:34, schrieb Thiago H. de Paula Figueiredo: I am really wonderung why an abstract class cannot be used as component (page) class. Because it needs to be instantiated. The reason why I am wondering: Let's suppose I have a few pages with some shared functionality. I'd like to

Why can't component classes be abstract? [5.1]

2010-02-22 Thread Andy Pahne
I am really wonderung why an abstract class cannot be used as component (page) class. The reason why I am wondering: Let's suppose I have a few pages with some shared functionality. I'd like to create a base class: public abstract class BasePage{ @Property private Object someProp;

Re: Easy Way to create a select model?

2010-01-28 Thread Andy Pahne
Yeah, that's it. Thanks a lot. Am 28.01.2010 15:50, schrieb Ulrich Stärk: You are indeed missing something: http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html HTH, Uli --

Re: Easy Way to create a select model?

2010-01-28 Thread Andy Pahne
Am 28.01.2010 15:32, schrieb Kristian Marinkovic: public class SimpleOptionModel implements OptionModel { private final T value; private final String label; public SimpleOptionModel(T value, String label) { this.label = label;

Re: Easy Way to create a select model?

2010-01-28 Thread Andy Pahne
return new SimpleOptionModel(value, label); } catch (Exception e) { throw new RuntimeException(e); } return new SimpleOptionModel(bean); } } Andy Pahne 28.01.20

Re: Easy Way to create a select model?

2010-01-28 Thread Andy Pahne
Hi Kristian. Thanks for the code. It does not compile right now. Do you have the source for SimpleOptionModel also available? Thnak you, Andy Am 28.01.2010 15:17, schrieb Kristian Marinkovic: something like this: usage: SelectModel m = SelectModelUtils.toBeanSelectModel(someList, "name

Easy Way to create a select model?

2010-01-28 Thread Andy Pahne
I feel a little dumb, because for years I have been using Tapestry. Is there an _easy_ way og creating a SelectModel like this one (not so uncommon one): valuelabel - 1 Jan 2 Feb ... I had a look at the documentation. But I cannot be

reloading of javascript files (sometimes) fails

2010-01-08 Thread Andy Pahne
I use mavens jetty plugin and Eclipse. Template (css, images ...) and class reloading works fine, but often fails for javascript files. Eclipse complains that it could not build the project, because a file is locked. And jetty will only use the old version of the file. Anybody sees this als

Re: ProgressiveDisplay component - context retrieval

2009-11-17 Thread Andy Pahne
Thiago H. de Paula Figueiredo schrieb: Em Tue, 17 Nov 2009 11:32:40 -0200, Andy Pahne escreveu: Now I want to know: how can I access the ProgressiveDisplay's context inside my custom RetrieveAvailabilityAndPrice component. I don't know how to do that. Create a pa

ProgressiveDisplay component - context retrieval

2009-11-17 Thread Andy Pahne
I have defined a ProgressiveDisplay component like in the snippet below. Now I want to know: how can I access the ProgressiveDisplay's context inside my custom RetrieveAvailabilityAndPrice component. I don't know how to do that. Thank you, Andy

Re: T5 / 404 / with jetty and reloading ....

2009-10-02 Thread Andy Pahne
I use the maven jetty plugin and that happens sometimes. (like once in two or three work days). I simply restart then... Andy Gunnar Eketrapp schrieb: Hi! Sometimes T5 fails to find a page and a four-o-four is returned. I hope that this has to do with page live reloading and that it wil

Re: How coooooooooool is this !!!

2009-09-25 Thread Andy Pahne
I felt that it should be hard to develop/support the site without upgrading the technology so I decided to give T5 a shot. In the same time I upgraded MySql, Hibernate, Spring, Debian. CVS to SVN. Ant to Mvn. And so on ... Of course I have undertaken a much too big job and the risk is huge! But

tapx-templating: using it in a t5 webapp possible

2009-08-13 Thread Andy Pahne
Hello, I'd like to use tapx-templating to generate some content. I want to integrate it into an existing t5 app (just for convenience). Unfortunatly when I try that, the hosting t5 application won't work anymore as expected, especially assets won't be found. Is it possible to use the actual

Re: AjaxFormLoop: property changes have no effect

2009-08-05 Thread Andy Pahne
You are right, that was a misunderstanding on my side. Now I got it. Thanks. For the curious, here is the working code: public ValueEncoder getVehicleEncoder(){ return new ValueEncoder() { @Override public String toClient(Object value) { return String.valueO

AjaxFormLoop: property changes have no effect

2009-07-31 Thread Andy Pahne
I am using an AjaxFormLoop component. There is no database involved, so the code should be simple. The add operation in onAddRowFromVehicles() works. I can see that because the list of vehicles has alwas the correct size. But Properties of Vehicle (like vehicle.model) are never updated, no m

Re: T5.1 warning about cookie name in jetty log - blackbird related?

2009-07-17 Thread Andy Pahne
https://issues.apache.org/jira/browse/TAP5-785 Peter Stavrinides schrieb: Yes since this morning getting a ton of those. Peter - Original Message - From: "Andy Pahne" To: "Tapestry users" Sent: Thursday, 16 July, 2009 11:51:45 GMT +02:00 Athens, Beirut,

T5.1 warning about cookie name in jetty log - blackbird related?

2009-07-16 Thread Andy Pahne
Today I have seen this warnings for the first time, right after starting an application with mvn jetty:run. Has anybody else seen this? It's clearly blackbird related, as the cookie's name suggests, but I haven't ever seen this before. Andy 2009-07-16 10:42:03.629::INFO: Started selectc

Re: Tapestry5 and SEO

2009-07-10 Thread Andy Pahne
page render requests (with context) from link garbage. Please don't get me wrong. I totally agree with your point that "First, that everything should work". On Thu, Jul 9, 2009 at 3:52 PM, Andy Pahne wrote: Just a few finding while doing SEO for a t5 app: 1. ac

Tapestry5 and SEO

2009-07-09 Thread Andy Pahne
Just a few finding while doing SEO for a t5 app: 1. activation context and Index pages The root Index page of the t5 webapp catches a lot of requests that otherwise would have been a 404. (already discussed on the list). For our website that means: there are many pages in the google index

Re: [Tapestry Central] Caught between Two IDEs

2009-07-02 Thread Andy Pahne
Angelo Chen schrieb: I got two reasons not using Eclipse: 1) crashes, it just simply crashed even sitting there, probably it's getting better now. I cannot confirm that. Eclipse works very stable for our little development shop. When something screws up, maven is the culprit, at least at

Re: Tapestry not suitable for this environment?

2009-06-29 Thread Andy Pahne
You can simply fetch any remote content and write it out raw. We are doing this all the time... Ben Gidley schrieb: You could still do this if the HTML is relatively clean. In your layout rather than provide a TML you can programatically create the HTML element by element. So you could fetch

Re: Any one using extension-point and extend ?

2009-06-21 Thread Andy Pahne
We are using it, because the Layouters and HTML people delivered a site wide page layout with two templates that only differed in one very small area. So using this extension point mechanism seems very natural for this kind of problem. Without it, we would have ended up with two different bo

Re: integrating jQuery components

2009-06-17 Thread Andy Pahne
Onno Scheffers schrieb: I would prefer: Tapestry uses whatever javascript lib for it's internal functions. But this "whatever" library should play nice with user's libraries. (So, prototype, which is in internal use today should be patched in a way not to hijack $ ). Sadly that would brea

Re: integrating jQuery components

2009-06-17 Thread Andy Pahne
I would prefer: Tapestry uses whatever javascript lib for it's internal functions. But this "whatever" library should play nice with user's libraries. (So, prototype, which is in internal use today should be patched in a way not to hijack $ ). Then users have absolute freedom to use whatever

Re: integrating jQuery components

2009-06-17 Thread Andy Pahne
Angelo Chen schrieb: my experience is, safer to use @IncludeJavascriptlibrary to include jQuery, but seems to me that will also pull the Prototype related js too, probably we should have @IncludeJavascriptLib not to include other js. I am curious how you managed to include jQuery with @In

Re: T5.1: get the current page context from a component

2009-06-12 Thread Andy Pahne
Never tried it, but isn't the inherited: binding what you are looking for? You could also inject the container into the component, and then reference your context somehow directly. Andy Sergey Didenko schrieb: Hi, Is there a way to get the page context from a subcomponent? Right now I

Re: LinkSubmit and confirm dialog

2009-06-10 Thread Andy Pahne
This has been posted on the mailing list. Search for "Mixin" and "Confirm". Andy Alfie Kirkpatrick schrieb: Hi, would like to write a mixin (or even a subclass) that allows me to throw up a confirm div/message box when the user clicks the link before submitting the form. Basically an 'are you

Re: T5: using jQuery in 5.0.18

2009-06-05 Thread Andy Pahne
I had the same problem. Unfortunatly calling jQuery.noConflict() did not help, either. Don't know what the exact problem was. My workaround: I did not include jQuery via @IncludeJavaScriptLibrary, but instead I loaded it with a plain script tag in my layout component and then called jQuery.

Re: automatic zone update

2009-05-06 Thread Andy Pahne
Tapestry 5.1 has this lazy loading included as component: check the ProgressiveDisplay component. Andy Alfie Kirkpatrick schrieb: I made a simple "LazyZone" component which ajax loads the zone after the page load. Should be simple enough to add a timer to it. You provide a block as a param

Re: Solving the T5 Documentation Dilemma

2009-05-01 Thread Andy Pahne
except when they are down, just like the hibernate forums recently. I always preferred mailing lists... just my 2 cents manuel aldana schrieb: Otho schrieb: And lastly I would suggest setting up a forum. Information is more easily organized there and searching is more convenient than wíth

Re: Tapestry5 future compatiblity?

2009-04-30 Thread Andy Pahne
sodium schrieb: Hi, I am still deciding whether to choose Tapestry5 for my upcoming project. I was reading a lot how each version of Tapestry isn't backward compatible with older version and how migrating the code to new Tapestry is a nightmare. I like Tapestry declaractive model but my priority

Re: [Tapestry360]

2009-04-29 Thread Andy Pahne
Thank you... Howard Lewis Ship schrieb: I must not have deployed it previously (?). Just ran a deploy. It's in http://tapestry.formos.com/maven-repository On Tue, Apr 28, 2009 at 3:30 AM, Andy Pahne wrote: Hello, I am looking for the tapestry360-project in any maven repositor

[Tapestry360]

2009-04-28 Thread Andy Pahne
Hello, I am looking for the tapestry360-project in any maven repository. It appears not to be available in http://tapestry.formos.com/maven-snapshot-repository Or am I missing something? my maven error message: Cannot find parent: com.formos.tapestry:tapestry360-project for project: co

Re: dupluication of ActionLinks in pages

2009-04-20 Thread Andy Pahne
ponent paramter accepted an array of strings. Uli Am 20.04.2009 14:05 schrieb Andy Pahne: I have the requirement to add a button a second time in the page. This button is an ActionLink. In my page class I have the listener: Object onActionFromButton(){ ... } How can I dupliucate the button

dupluication of ActionLinks in pages

2009-04-20 Thread Andy Pahne
I have the requirement to add a button a second time in the page. This button is an ActionLink. In my page class I have the listener: Object onActionFromButton(){ ... } How can I dupliucate the button in the template? I cannot simply copy and poaste it, because t:id has to be unique. I

maven jetty:run problems

2009-04-16 Thread Andy Pahne
Has anybody ever seen this? After making a maven multi module project from a few seperate modules, I cannot start my apps anymore with mvn jetty:run. Everything else (initializing a spring context from a filter defined in web.xml or locating classes from our business object packages) works

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-04-15 Thread Andy Pahne
This is the public part of a project consisiting of four different T5 applications: http://www.travelling-britain.com/ We have been running on the latest T5 snapshots for the last six months without any major problems. I have never done such thing before, running a production website on

Re: Several problems with T5.1.0.2

2009-04-09 Thread Andy Pahne
serg-l schrieb: Hi! I'm found strange things when try T5.1.0.2... Under mvn jetty:run everything work properly... 1. When I'm perform integration tests (mvn test), after testing of several pages I'm receive java.lang.OutOfMemoryError: Java heap space Yeah, we have two kinds of unit tests i

Re: Reloading in 5.1

2009-04-05 Thread Andy Pahne
Works here... (jetty:run, T 5.1.0.2 and T 5.1.0.3-SNAPSHOT). Most of the time when I had issues with life reloading, it was related to Eclipse or maven... Andy Mario Rabe schrieb: I noticed tapestry5.1 doesn't reload anything anymore in an existing project. To check things out I created t

Re: T5: Maxlength mixin for textareas and text fields

2009-04-01 Thread Andy Pahne
Great one, thank you... Andy Inge Solvoll schrieb: Hi! I would like to share another mixin with you guys. Most of you probably know how easy it is to create these, but maybe this can help beginners in understanding things. I really love the mixin concept, it makes it so very very easy to s

[t5.1] DOCTYPE declaration causes Exception

2009-04-01 Thread Andy Pahne
I am using Tapestry 5.1.0.1 and I am trying to add a DOCTYPE declaration to my Layout component (or directly to a page). The declaration I am using is directly copied from the documentation at http://tapestry.apache.org/tapestry5/guide/templates.html and it looks like this: http://www.w3.o

Re: Q : IF component in tapestry 5 ?

2009-03-18 Thread Andy Pahne
Ulrich Stärk schrieb: The test will be true if the provided test returns true or in case of an object return type that object is not null. Or a collection which is not empty. What about arrays? True, if array is not null, true, if array.size > 0? I am not sure... ---

Re: Partly OT: problems with Eclipse / T5

2009-03-17 Thread Andy Pahne
Sounds interesting somehow. Do you have some code to see? tapestryphoto schrieb: Hi, I'm using Jetty/T5/Eclipse. Earlier this-afternoon I made the mistake of doing a Maven "Update Project Configuration" and Maven anihilated my build setup. I have set the classpath back to what it was and

Re: Spring root context and Tap 5.1

2009-03-17 Thread Andy Pahne
I think the reason is: the context is iniitialized twice. Once by the filter you defined in your web.xml and once by tapestry-spring. If you prefer tapestry-spring NOT initializing your context, then add this to your web.xml tapestry.use-external-spring-context true

Re: [T5.1-SNAPSHOT] problem launching with ChenilleKit: URIAssetFactory' has already been defined

2009-03-17 Thread Andy Pahne
Oops, you are right. I had them (unintentionally) both on my classpath. Thank you, Andy Sven Homburg schrieb: its not recommended to run ChenilleKit against t5components 2009/3/17 Andy Pahne Since yesterday my current application won't start anymore. See stacktrace below.

[T5.1-SNAPSHOT] problem launching with ChenilleKit: URIAssetFactory' has already been defined

2009-03-17 Thread Andy Pahne
Since yesterday my current application won't start anymore. See stacktrace below. Can I workaround this somehow? Thanks, Andy SCHWERWIEGEND: Exception starting filter app java.lang.RuntimeException: Service id 'URIAssetFactory' has already been defined by org.chenillekit.tapestry.core.C

Re: T5: How to load image Asset from filesystem?

2009-03-12 Thread Andy Pahne
That one is really nice. Thanks. Daniel Jones schrieb: PAGE CLASS inject component resources so that you can create an action link @Inject private ComponentResources mComponentResources; when the path is requested by the template, create and return an action link public Li

Re: How to make link correctly

2009-03-11 Thread Andy Pahne
Thiago H. de Paula Figueiredo schrieb: On Wed, Mar 11, 2009 at 7:45 AM, Andy Pahne wrote: This is an exceptionally good question. Links will have to be created completly out of the web application context. Why? I'm not following you . . . I think this is going to be even

Re: Image Asset Help Needed

2009-03-11 Thread Andy Pahne
, Mar 11, 2009 at 12:49 PM, Andy Pahne wrote: Did you read the thread "How to load image Asset from filesystem"? You might want to vote for the issue. Regards, Andy Peter Kanze schrieb: Here am I again. I am struggling for 2 days now to load an image from the filesyst

Re: Image Asset Help Needed

2009-03-11 Thread Andy Pahne
Did you read the thread "How to load image Asset from filesystem"? You might want to vote for the issue. Regards, Andy Peter Kanze schrieb: Here am I again. I am struggling for 2 days now to load an image from the filesystem into my webpage. The image needs to be loaded based on the produc

Re: How to make link correctly

2009-03-11 Thread Andy Pahne
This is an exceptionally good question. Links will have to be created completly out of the web application context. I think this is going to be even more necessary, when the recent changes about URL i18n come into play... Andy Peter Stavrinides schrieb: I see... I am aware of ComponentCl

Re: 5.1 Parameter namespacePrefix was null

2009-03-10 Thread Andy Pahne
ww.w3.org/1999/xhtml"; anywhere in my project, or in my components. I am using chenillekit, but that only seems to contain such a namespace in a component I am not using. I honoustly don't know what I should try to change or rebuild to get rid of this error. Joachim Andy Pahn

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
Anyway you are right: exposing the full path in the html source is certainly not a good idea. Peter Kanze schrieb: Hi Andy, Thanks for adding this to Jira. See below my code what I have produced so far. The problem is that I now see the complete filepath in my html source () I don't want th

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
ration configuration, @InjectService("fileSystemAssetFactory") AssetFactory fileSystemAssetFactory) { configuration.add("file", fileSystemAssetFactory); } On Tue, Mar 10, 2009 at 3:28 PM, Andy Pahne wrote: There is a ClasspathAssetFactory and

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
The proposed solution in the issue is a bit different. Both is possible, I hope the developers pick up the issue and choose a nice solution. Andy Andy Pahne schrieb: https://issues.apache.org/jira/browse/TAP5-567 Thiago H. de Paula Figueiredo schrieb: On Tue, Mar 10, 2009 at 11:28 AM

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
https://issues.apache.org/jira/browse/TAP5-567 Thiago H. de Paula Figueiredo schrieb: On Tue, Mar 10, 2009 at 11:28 AM, Andy Pahne wrote: There is a ClasspathAssetFactory and a ContextAssetFactory. A useful addition to the framework would be a FilesystemAssetFactory. I am going to fill

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Andy Pahne
There is a ClasspathAssetFactory and a ContextAssetFactory. A useful addition to the framework would be a FilesystemAssetFactory. I am going to fill an JIRA issue about it. The way I did it for classpath resources was very simple, see below. Only the first two lines of renderIcon() are rele

Re: 5.1 Parameter namespacePrefix was null

2009-03-10 Thread Andy Pahne
There have been two separate threads dealing with this and a few users (including me) experiencing this. But as far as I remember, no solution has been found yet. The problem disappeared for me, but I don't know how. What I did was a bit desperate: I had a feeling that one of my abstract bas

Re: base64 + url encoded activation context parameter

2009-03-09 Thread Andy Pahne
compare this thread... http://tapestry.markmail.org/search/?q=list%3Aorg.apache.tapestry.users+url+#query:list%3Aorg.apache.tapestry.users%20url%20+page:1+mid:kbv6yrkcjmkaaoys+state:results Borut Bolčina schrieb: Hi, I wanted to send users an email with a confirmation link which includes ba

Re: Update a T5 zone componet from javascript.

2009-03-09 Thread Andy Pahne
Yes, there is a way. Search the list, it has been discussed just a few days ago. The thread was "about T5 javascript". Andy Michael Williamson schrieb: Is there a way of triggering a zone update from Javascript? I need to run server side data validation if the data matches specify condit

Re: how to let actionlink to open another page like target="_blank"?

2009-03-08 Thread Andy Pahne
Yes please, would be nice to see... Andy Inge Solvoll schrieb: I created a mixin, PopupPageLink, that opens a new window containing a the link, with window.open() in javascript. It gives you more control over the opened window. Also, you can add the mixin to any element, not just a link, just

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-07 Thread Andy Pahne
ph is more complicated). I don't see the use case. In my opinion, it's not that often in real life that you have to provide your own type coercions. And this kind of "out of the box coercion for custom types" cries for too much problems. Andy Pahne schrieb: That'

Re: T5 ConcurrentBarrier / Deadlock

2009-03-07 Thread Andy Pahne
There have been issues with Sun JVMs <= 1.6.10. (or < 1.6.10, I don't recall it exactly). Andy Alex Kotchnev schrieb: I also recall the deadlock issues manifested themselves on particular JVM versions which were fixed in the latest updates. Which Java version are you running ? Cheers,

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-06 Thread Andy Pahne
That's possible. Have a look at http://tapestry.formos.com/nightly/tapestry5/tapestry-ioc/coerce.html esp. the section "Contributing new Coercions" Example: I want to pass a User through activation context: class User { private String name; private String password;...} Registration{

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-05 Thread Andy Pahne
I usually do it a little differnet and it works for me: class YourPage{ @InjectPage private DestinationPage destinationPage; Object onAction(String emailAddress){ return destinationPage.startEdit(emailAddress); } } class DestinationPagePage{ @Property @Pers

Re: Action Link In Parent Component

2009-03-03 Thread Andy Pahne
Or is Eventink what you are searching for? see http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/EventLink.html Inge Solvoll wrote: Make sure that the parent listener has the correct visibility. If the listener is package private and the

Re: Multiple zone refresh

2009-03-02 Thread Andy Pahne
I think that this is not possible right now. But it should be. Did not look, but I bet there is a related JIRA issue. You might want to vote for it... Andy Julien Ruchaud wrote: Hi, I am trying to refresh two zones on the same time with one ajax action. Java, @Inject Block b1; @Injec

Re: [5.1 SNAPSHOT]: ProgressiveDisplay component

2009-02-27 Thread Andy Pahne
Howard Lewis Ship schrieb: Maybe it needs a context parameter, and it could fire an event before rendering its body. It even could render the response from the event (if any) instead of its body. What do you think? The context was the first that came to my mind. Firing an event: even bet

Re: [5.1 SNAPSHOT]: ProgressiveDisplay component

2009-02-27 Thread Andy Pahne
Forget about my previous comment. I just had to persist some properties and it worked. Even in loops... Thanks Howard, nice addition! Andy Andy Pahne schrieb: Very recently a new component arrived: ProgressiveDisplay. Very nice and very useful. See http://tapestry.formos.com/nightly

[5.1 SNAPSHOT]: ProgressiveDisplay component

2009-02-27 Thread Andy Pahne
Very recently a new component arrived: ProgressiveDisplay. Very nice and very useful. See http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ProgressiveDisplay.html I tried a very basic example, and it works. Still, I don't know how to d

Re: T5: DWR Integration

2009-02-21 Thread Andy Pahne
the DWR servlet mapping could be passed as a parameter to my component to be fully customized ... I think you mean sth like: renderSupport.addScriptLink(context + "/${dwrServletMapping}/engine.js"); What do you think about it ? Stephane Andy Pahne a écrit : I don't know

Re: T5: DWR Integration

2009-02-18 Thread Andy Pahne
done this. It works great on the DWR side but that doesn't help on the way to integrate the DWR javascript files in my Tapestry components ... does it ? Stephane Andy Pahne a écrit : Stephane Decleire schrieb: Hi all, I've tried to integrate DWR with Tapestry and the both

Re: [Tapestry Caffe] Three new bartenders to chat with

2009-02-17 Thread Andy Pahne
Do you have an URL? Google did not help me Thiago H. de Paula Figueiredo schrieb: On Tue, Feb 17, 2009 at 9:35 AM, Borut Bolčina wrote: Hi, Hi! JumpStart, ChenilleKit and Equanda has joined Tapestry Caffe. You can now post your ideas on any of them, make comments and vote

Re: T5: DWR Integration

2009-02-17 Thread Andy Pahne
Stephane Decleire schrieb: Hi all, I've tried to integrate DWR with Tapestry and the both frameworks seem to work great together (perhaps because they don't do the same work ;-) and are not so integrated). [...] +1. Works like a charm. Is there a way to tell Tapestry to get the file fro

T 5.1 Snapshot: error reporting

2009-02-11 Thread Andy Pahne
Hi, I am using the most recent snapshot. Since today I don't get any nice error reports anymore. No matter what error I introduce on purpose (missing a source for a loop component, compile errors, missing required parameters for components), the exception I get is _always_ the same, see b

Re: T5: Type coercion from String to Enum

2009-02-09 Thread Andy Pahne
Folke schrieb: On Fri, Feb 6, 2009 at 13:32, Ulrich Stärk wrote: Does it work when you move the Unit enum into it's own class file? No, it doesn't. But I now know why: There are two different Unit classes from different ClassLoaders. So, I moved Unit out of Tapestry's app-package and

Re: Weird bug

2009-01-24 Thread Andy Pahne
Hi, this is complety unrelate to Tapestry. Go and ask the Hibernate forums or read Hibernate docs (API of load() and get() would be a good starter). Cheers, Andy superoverdr...@gmx.de schrieb: The following code: public Object onActivate(int domainID) { domain = (Domain)sessi

Re: Tapestry With PostgreSQL

2009-01-15 Thread Andy Pahne
Gutemberg A. Da Silva schrieb: can somebody help me with tapestry and postgres connector? in mysql is so: mysql mysql-connector-java 5.1.5 how can I add dependency postgres? Not Tapestry related, but anyway: postgresql postgresql 8.3-603.jdbc4

Re: [T5] improve documentation

2009-01-13 Thread Andy Pahne
I'd prefer if it were more like jumpstart than petstore. Any chance jumpstart becoming part of the framework? Andy superoverdr...@gmx.de schrieb: An good old pet-shop application...with lots of Ajax would be nice...or something similiar. It could coves common questions on the Tapestry mai

Re: dynamic components in page

2009-01-12 Thread Andy Pahne
Radek Terber schrieb: Hi Is there possibility to render components in T5 page "dynamically" (in dependency on return value of any method in page´s class for example, or so) ? Methods "onEvent..." return pages whose are rendered "dynamically" too - each method can return many pages. I thing it

  1   2   3   >