Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Confirmed, 5.2.6 fixes the problem in IE9. On Wed, 2011-08-24 at 14:00 +0100, Joel Halbert wrote: > Having read the bug comments I'm guessing TAP5-1257 is unrelated to the > IE9 issue so presumably 5.2.6 is the right version... > https://issues.apache.org/jira/browse/TAP5-1257 &g

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Having read the bug comments I'm guessing TAP5-1257 is unrelated to the IE9 issue so presumably 5.2.6 is the right version... https://issues.apache.org/jira/browse/TAP5-1257 On Wed, 2011-08-24 at 13:56 +0100, Joel Halbert wrote: > So the reason I went straight to 5.3 was that the follo

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
. http://tapestry.1045711.n5.nabble.com/Re-Prototype-IE9-update-td4331824.html On Wed, 2011-08-24 at 13:53 +0100, Joel Halbert wrote: > Would be good if that's the case, I'll try it out. > > Since it wasn't listed as a bug fix I presumed it was not included. > Presumab

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Would be good if that's the case, I'll try it out. Since it wasn't listed as a bug fix I presumed it was not included. Presumably Tap's not counting it as a bug since it's in the js libs? On Wed, 2011-08-24 at 14:50 +0200, Chris Poulsen wrote: > Hi, > > I haven't been following this closely, b

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
instructions for the IE9 zone/prototype bug ? On Wed, 2011-08-24 at 12:11 +0100, Joel Halbert wrote: > Oof, does this > https://github.com/hlship/tapx/commit/6088137226a045e03faca2e1c4e0cb62f94c9c3c > mean that we need to upgrade to 5.3 to fix this? > > > Does anyone have a

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Who knows, and even if it is, what next? On Wed, 2011-08-24 at 06:57 -0500, Barry Books wrote: > Is this the commit? > > https://github.com/hlship/tapx/commit/46e1ca9d4a6463feb708e0d3074ca759690331dd > > - > To unsubscribe, e-ma

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
Oof, does this https://github.com/hlship/tapx/commit/6088137226a045e03faca2e1c4e0cb62f94c9c3c mean that we need to upgrade to 5.3 to fix this? Does anyone have a version of the original patch or know how I can access it from git-hub? On Wed, 2011-08-24 at 11:34 +0100, Joel Halbert wrote: >

Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Joel Halbert
otype/src/main/resources/com/howardlewisship/tapx/prototype/tapestry-js-fixes.js Pointers appreciated.... Joel Halbert http://www.webalertpro.com http://twitter.com/webalertpro - To unsubscribe, e-mail: users-uns

Re: Ajax callback for checkbox component?

2011-07-04 Thread Joel Halbert
OK np. Thanks Thiago! On Sun, 2011-07-03 at 19:53 -0300, Thiago H. de Paula Figueiredo wrote: > On Sun, 03 Jul 2011 14:54:22 -0300, Joel Halbert > wrote: > > > Hi Folks, > > Hi! > > > Is there an equivalent callback for a checkbox? > > Not out-of-the-

Ajax callback for checkbox component?

2011-07-03 Thread Joel Halbert
Hi Folks, You can register for an ajax callback from select components like so: page.tml: Page.java: Object onValueChangedFromName(String name) { // update zone } Is there an equivalent callback for a checkbox? Thanks! Joel

Re: Access component via http request

2011-06-30 Thread Joel Halbert
> i.e. does a component have to be bound to a Page to be rendered? > > > > I'm trying render a simple html template and fetch it from my JS. > > > > > > On Thu, 2011-06-30 at 17:38 -0300, Thiago H. de Paula Figueiredo wrote: > >> On Thu, 30 Jun 2011 17

Re: Access component via http request

2011-06-30 Thread Joel Halbert
component may send a response directly back to the > client, which it be text, HTML, JSON, or something binary. > > On Thu, Jun 30, 2011 at 1:55 PM, Joel Halbert wrote: > > Can I access a component out of the context of a page? > > i.e. does a component have to be bound to a Pa

Re: Access component via http request

2011-06-30 Thread Joel Halbert
35 -0300, Joel Halbert > wrote: > > > Hi, > > Hi! > > > Is it possible to invoke a component directly via HTTP? > > > > E.g given a Tapestry Page: > > > > public class MyPage { > > Object onMyRequest() { > > return someth

Access component via http request

2011-06-30 Thread Joel Halbert
Hi, Is it possible to invoke a component directly via HTTP? E.g given a Tapestry Page: public class MyPage { Object onMyRequest() { return something; } } I can call http://myapp/mypage:myrequest/ to return something. Can I do the same for a component? Cheers, Joel --

Re: Method arguments in template expansions

2011-06-26 Thread Joel Halbert
er > wrote: > > > Have you tried? :) > > ${} is using the property expression language under the hood, which > > /does/ support method evaluation/method arguments, so I would expect > > ${class('link1')} to work... but i haven't tried it, either. :) > &g

Method arguments in template expansions

2011-06-25 Thread Joel Halbert
I'm pretty sure the answer's NO, but just incase I'll ask anyway. Is it possible to include method arguments in template expansions? I would die to be able to just do this: link1 link2 link3 Cheers, Joel - To unsubscribe, e

Re: Live class reloading very slow

2011-05-25 Thread Joel Halbert
Hi Davor, Have you tried running Jetty standalone, out of eclipse? This is what we do. I'm not sure it has anything to do with your problem but it might be worth a try. It's only a few lines of code to write a simple Jetty server launcher as you can see http://pastebin.com/WsEFi2yh Just write a

Re: A new T5 site! www.bookmarkerpro.com

2011-05-25 Thread Joel Halbert
Exactly (what Thiago and Bob said!). I'm aware that Tapestry isn't as widely adopted as it should be, despite being a great framework that we've enjoyed using, and (I think) it's always nice to see what others have been doing with the technology (I would post it to the Tapestry wiki, but this re

Re: Live class reloading very slow

2011-05-24 Thread Joel Halbert
Hi Davor, I use a similar spec. Should take a second or two. - Joel On Tue, 2011-05-24 at 18:10 +0200, Davor Hrg wrote: > ok, > > we are on 5.2.4 now, > I am running it from eclipse using run-jetty-run 1.1.1 > I'll try newer jetty plugin 1.2.2.1 > > how long should I expect a page reload to la

Re: A new T5 site! www.bookmarkerpro.com

2011-05-24 Thread Joel Halbert
On Tue, 2011-05-24 at 08:53 -0700, Howard Lewis Ship wrote: > How far do you have to get into it to see the T5 part ... or are you > just using tapestry-ioc for back end processing? Just curious. > > On Tue, May 24, 2011 at 7:34 AM, Joel Halbert wrote: > > Hi Folks, >

A new T5 site! www.bookmarkerpro.com

2011-05-24 Thread Joel Halbert
Hi Folks, We've just released (another) Tapestry5 based site! www.bookmarkerpro.com This one's a bookmarking app, as the name suggests. Features include: * Search the content of your bookmarks: page content, title & url * Monitor your bookmarked pages, or even just part(s) of each page * Ale

Re: page automatically scrolling to component on load

2011-05-21 Thread Joel Halbert
t; On Sat, May 21, 2011 at 5:53 AM, Joel Halbert wrote: > > > Hi, > > > > We've got a upload file form using the Upload component: > > > > > > > > > > > > > > > &g

page automatically scrolling to component on load

2011-05-21 Thread Joel Halbert
Hi, We've got a upload file form using the Upload component: This is all located towards the bottom of the page and I've noticed that when the page first loads it scrolls down to this field, in all browsers. Could this be beca

New Tapestry website - webalertpro.com

2011-04-28 Thread Joel Halbert
Hi Folks, Is anyone in charge of vetoing/adding websites to the the Tapestry Applications page? http://tapestry.apache.org/applications.html We'd be honoured to join the roll call of websites with our latest Tapestry based product, WebAlertPro The front of house is actually wordpress: http://w

Re: The right way to manually update a zone in tapestry

2011-04-05 Thread Joel Halbert
OK figured it out... Trick is to use the ZoneManager for the zone id (see Tapestry.js) : So this ajax request, to update a zone, works, and all the tap js callbacks on components are registered correctly var zoneManager = Tapestry.findZoneManagerForZone('my-zone-id'); $.get("/h

Re: dynamically changing event link context on client side using js

2011-03-29 Thread Joel Halbert
> On Mon, 28 Mar 2011 19:10:00 -0300, Joel Halbert > wrote: > > > I need a way of submitting the dynamic content back to the server as > > part of an ajax request I'm not clear how I would be able to do this in > > the manner you suggest. > > Define an e

Re: dynamically changing event link context on client side using js

2011-03-28 Thread Joel Halbert
t; If that is what you are trying to do, are you sure you even need to > use an eventlink context? Can you just have the other Ajax event > update a persistent variable on the page and read it (instead of the > context) when the eventlink is triggered? > > Mark > > On Mo

dynamically changing event link context on client side using js

2011-03-28 Thread Joel Halbert
Hi, I have a typical ajax event link e.g. I want to be able to update the context on the clientside using javascript, dynamically. (or alternatively attach a request parameter and have this submitted with the link). What's the easiest way to accomplish this? I can modify the link to change t

Re: 10 Minute Web Application Demo

2011-02-15 Thread Joel Halbert
This is a Great Idea Mark. However, I'm on Ubuntu 10.10 (Chromium 9.0.597.94 (73967) Ubuntu 10.10), and the video plays but the screen it black. BUT when you pause and restart it it suddenly plays perfectly, and I can see the video! (same thing happens in FF 3.6.13) On Tue, 2011-02-15 at 16:20

Re: Discussion- the verdict

2011-01-13 Thread Joel Halbert
Yes, it's a pity that someone might be put off using the framework because of vocal, and misinformed minority. There's really no substitute for trying something yourself... On Wed, 2011-01-12 at 09:50 -0200, Thiago H. de Paula Figueiredo wrote: > On Wed, 12 Jan 2011 08:53:41 -0200, George Banus

Re: Opportunity for some PR?

2011-01-11 Thread Joel Halbert
+1 On Mon, 2011-01-10 at 11:36 -0800, Josh Canfield wrote: > I love working in Tapestry and there is some truth in what the person > has to say. I believe in the Tapestry5 framework but I also know there > is a long way we need to go to distance ourselves from the pain that > people experienced w

Re: tapestry ioc

2011-01-07 Thread Joel Halbert
2011-01-07 at 09:08 -0200, Thiago H. de Paula Figueiredo wrote: > On Fri, 07 Jan 2011 07:46:39 -0200, Joel Halbert > wrote: > > > Actually - it all stemmed from me just wanting to exclude the > > SpringModule when using the tapx templating library for sending html > >

Re: tapestry ioc

2011-01-07 Thread Joel Halbert
the Manifest auto-loading. > > I prefer this method because it also documents your dependencies. > > If you are putting third party modules that use the auto-loading into > your classpath... then just don't do that. > > Josh > > > > On Thu, Jan 6, 2011 at 8:37 A

Re: tapestry ioc

2011-01-06 Thread Joel Halbert
ime deployment configuration options when building an application into a jar. On Thu, 2011-01-06 at 14:15 -0200, Thiago H. de Paula Figueiredo wrote: > On Thu, 06 Jan 2011 14:09:02 -0200, Joel Halbert > wrote: > > > So if I understand correctly: > > > > - the only w

Re: tapestry ioc

2011-01-06 Thread Joel Halbert
mode is > defined by the system property tapestry.execution-mode (defaults to > production) > > I don't think I've ever seen this documented, or felt the need to use it. > > Josh > > > On Thu, Jan 6, 2011 at 7:23 AM, Thiago H. de Paula Figueiredo > wrote: &g

Re: tapestry ioc

2011-01-06 Thread Joel Halbert
not sure there is a > > way to prevent a dependent module from loading. > > On Jan 6, 2011 3:54 AM, "Joel Halbert" wrote: > >> As I understand it Tapestry-IOC will autoload any modules that it finds. > >> > >> http://tapestry.apache.org/autoloadin

tapestry ioc

2011-01-06 Thread Joel Halbert
As I understand it Tapestry-IOC will autoload any modules that it finds. http://tapestry.apache.org/autoloading-modules.html Is there a way to explicitly disable the loading of certain modules, other than removing the jar in which the module is packaged from the classpath?

Re: No service implements the interface org.springframework.context.ApplicationContext.

2011-01-05 Thread Joel Halbert
ut it being loaded? On Wed, 2011-01-05 at 11:31 +0000, Joel Halbert wrote: > I've managed to get a little further with this by defining a service > builder method for ApplicationContext in: > > com.howardlewisship.tapx.templating.services.TemplateModule > > like

Re: No service implements the interface org.springframework.context.ApplicationContext.

2011-01-05 Thread Joel Halbert
to wire up TapestryApplicationContext properly? Also - why is it trying to initialise a Spring ApplicationContext service? Surely the tapx examples just use Tap IOC, where did the dependency on Spring's ApplicationContext come from? J On Tue, 2011-01-04 at 14:15 +0000, Joel Halbert wrote: > Hi & Ha

No service implements the interface org.springframework.context.ApplicationContext.

2011-01-04 Thread Joel Halbert
Hi & Happy New Year, I'm trying to replicate the following example, to generate an HTML email using the tapestry tapx Template extension. https://github.com/hlship/tapx/blob/master/tapx-templating/src/test/java/com/howardlewisship/tapx/templating/integration/SendMail.java When I run the example

Re: It's payback time!

2010-12-18 Thread Joel Halbert
done. On Sat, 2010-12-18 at 13:00 +0100, Christian Riedel wrote: > I voted for you :-) > > > > Am 18.12.2010 um 12:44 schrieb Antonio Fernández: > > > > > Hi Howard ! > > > > My short comment is already posted. ;-) > > > > > > Best Regards, > > Antonio > > > > > > El 17/12/2010 23:39, H

Re: Customising T5 URL Encoding

2010-06-20 Thread Joel Halbert
Agreed, it would be good to have this as a configuration option. On 20/06/10 19:20, Kai Weber wrote: * Nicolas Bouillon: The Tapestry URL encoding is not a problem for me in general, just for one use case when i wanted to migrate a site to tapestry and keeping the same URL (with accents, s

Re: t:loop - callbak before each iteration?

2010-06-20 Thread Joel Halbert
Of course, thanks! J On 20/06/10 17:34, Thiago H. de Paula Figueiredo wrote: On Sun, 20 Jun 2010 13:24:23 -0300, Joel Halbert wrote: Hi, Hi! When using t:loop is there a method we can declare on the component that Tapestry will call before each iteration ? or is there another way to do

t:loop - callbak before each iteration?

2010-06-20 Thread Joel Halbert
Hi, When using t:loop is there a method we can declare on the component that Tapestry will call before each iteration ? or is there another way to do this Joel

Re: Page Navigation - Link vs Page when appending a query string to the result

2010-06-20 Thread Joel Halbert
right solution; I think another callback event, much like passivate, but passed the Link so it can be customized. See https://issues.apache.org/jira/browse/TAP5-1190 On Fri, Jun 18, 2010 at 8:30 AM, Joel Halbert wrote: I want to return the user to a page that has a context and some query param

Re: Customising T5 URL Encoding

2010-06-20 Thread Joel Halbert
input, i + 1)); } if (!safeForInput.get(ch)) { throw new IllegalArgumentException( String .format( "Input string '%s' is not valid; the chara

Page Navigation - Link vs Page when appending a query string to the result

2010-06-18 Thread Joel Halbert
I want to return the user to a page that has a context and some query params: I can do this, using Link: public Object onSubmit(){ Link link = ls.createPageRenderLinkWithContext(Buy.class, product); link.addParameter("x", x); link.addParameter("y", y); return

Re: URL encoding issue

2010-06-18 Thread Joel Halbert
age context for you. 2010/6/18 Joel Halbert Hi Folks, I have an onSubmit from which i return a URL, which all works fine, unless I have a path fragment with certain characters, such a spaces. So If I return a URL such as: http://localhost:8080/web/buy/sports tops I get: Input string &

URL encoding issue

2010-06-18 Thread Joel Halbert
Hi Folks, I have an onSubmit from which i return a URL, which all works fine, unless I have a path fragment with certain characters, such a spaces. So If I return a URL such as: http://localhost:8080/web/buy/sports tops I get: Input string 'sports tops' is not valid; the character ' ' at p

AribaWeb

2009-12-01 Thread Joel Halbert
Any T5 users ever heard of AribaWeb. Any opinions of it? http://aribaweb.org/ I'm just curious, I'd never heard of it until today. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Add yourself to the Tapestry Users Map

2009-09-03 Thread Joel Halbert
Wow, there are a couple of people who must live in the arctic circle. -Original Message- From: Howard Lewis Ship Reply-To: Tapestry users To: Tapestry users Subject: Add yourself to the Tapestry Users Map Date: Thu, 3 Sep 2009 10:03:57 -0700 I maintain a map of Google Map of Tapestry

Re: lack of committers

2009-06-22 Thread Joel Halbert
Maybe there are so few committers because everyone is so busy being productive using this great framework to roll out loads of software? :-) -Original Message- From: Thiago H. de Paula Figueiredo Reply-To: Tapestry users To: Tapestry users Subject: Re: lack of committers Date: Mon, 22

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Joel Halbert
the rug is never a winning strategy. > >> Coming down off my soap box, I should also add that Tapestry 5.1 works > >> a little bit differently than 5.0 in this respect, so it does (in fact) > >> defer more of the page loading and validation until a link is actually > &

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Joel Halbert
aven tries to solve. In a small operation > you can get away with doing dependency management manually, but not for > enterprise applications or any development of scale. > > regards, > Peter > > - Original Message - > From: "Joel Halbert" > To: user

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Joel Halbert
> >>> tolerant of errors is absurd! Tapestry 5 is designed to improve > >>> productivity for all developers, by streamlining, simplifying, being > >>> smart and being concise ... not to mention live class

Re: How big is the Tapestry community?

2009-06-08 Thread Joel Halbert
this is probably a better proxy: http://www.google.com/trends?q=java+tapestry+%2C+java+struts%2C+ruby +rails+&ctab=0&geo=all&date=all&sort=0 -Original Message- From: Joel Halbert Reply-To: Tapestry users To: Tapestry users Subject: Re: How big is the Tapestry communit

Re: How big is the Tapestry community?

2009-06-08 Thread Joel Halbert
Google Trends is often useful as a proxy: http://www.google.com/trends?q=tapestry%2C+ruby+on+rails%2C +struts&ctab=0&geo=all&date=all&sort=0 (I think that the high level of stuts usage in India is due to the outsourced enterprise community there) -Original Message- From: hari ks Reply-

Re: Solving the T5 Documentation Dilemma

2009-05-13 Thread Joel Halbert
ditto. -1 forum -Original Message- From: Christian Edward Gruber Reply-To: Tapestry users To: Tapestry users Subject: Re: Solving the T5 Documentation Dilemma Date: Wed, 13 May 2009 09:29:10 -0400 -1 on forum for the same reasons. On 13-May-09, at 07:36 , Alfie Kirkpatrick wrote: > -

RE: T5: Passing named/structured-type params in URLs?

2009-05-13 Thread Joel Halbert
' for apps where the context values are themselves meaningful paths. Is this possible? This would lead to a url like: /docs/my/path/to/doc/document1-param1-param2 Which kind of works for me. Thanks! Alfie. -Original Message- From: Joel Halbert [mailto:j...@su3analytics.com] Se

Re: T5: Passing named/structured-type params in URLs?

2009-05-12 Thread Joel Halbert
cann't seem to dig it out. -Original Message- From: Andy Buckley Reply-To: Tapestry users To: Tapestry users Subject: Re: T5: Passing named/structured-type params in URLs? Date: Tue, 12 May 2009 16:07:06 +0100 Joel Halbert wrote: > There was a jira feature request raised for na

Re: T5: Passing named/structured-type params in URLs?

2009-05-11 Thread Joel Halbert
There was a jira feature request raised for named params some time ago: https://issues.apache.org/jira/browse/TAP5-264 Andy - in the meantime, another alternative is to create a custom ValueEncoder for activation contexts which can encode and decode a map. You could then encode the map context us

Re: Solving the T5 Documentation Dilemma

2009-05-01 Thread Joel Halbert
The primary concern, at the moment, seems to be encouraging people to contribute documentation, tutorials and examples. Making the adding, updating and extension of docs as open (so anyone can do it) and simple (so it is not an arduous task) is the key to this. Howard's suggestion of using the conf

Re: once-only onActivate method

2009-04-20 Thread Joel Halbert
ender-annotated method. For example, they get called when an autocomplete textfield is used in mid-form. How do I do this in Tap 5? (My intent is to clear any stale changes in my Cayenne DataContext.) Thanks. -- Joel Halbert 020 3051 8637 075 2501 0825 j...@storequery.com www.storequery.co

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Joel Halbert
With respect to: is style.css the correct root for this css file? Maybe it should be /style.css, or /css/style.css or summat? WRT the inline format, again, the path to images might need to be /images or whatever. Either way, if tap doesn't recognise the path to images as being correct it wil

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Joel Halbert
looks like you have a badly anchored image somewhere on your page.. Something is being generated like the incorrectly rooted images path causes tap to think this resource is page local and tries to call onActivate on the current page passing in the images string as an argument. Check that all y

Re: [T5] problem with CSS in tml.

2009-04-19 Thread Joel Halbert
${currentSong.album} As you can see when i click on page it loads AlbumDetails with context. Now this parameter is what is causing exceptions (i think). The page loads fine but I cannot see any images, just colors and text is formatted as CSS. What could be the problem? Thanks -- Joel H

T5 jsession id in url crashing tap URLEncoder

2009-03-17 Thread Joel Halbert
I am seeing bot requests to our site which have the session id encoded in the request url because they are not using cookies: e.g. 66.249.70.177 - - [17/Mar/2009:08:43:23 +] "GET /store/product/2799% 3Bjsessionid=1660715C3C8E125693B0B98550FFEC87 HTTP/1.1" 500 3931 "-" "Mozilla/ 5.0 (compatibl

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
Factory.class, new XhtmlMarkupWriterFactoryImpl("UTF-8"))); } I should not imaging that injecting services into the alias contribution is something that will be required much anyway On Wed, 2008-11-26 at 17:42 +, Joel Halbert wrote: &

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
For the time being I'm going to solve the problem by simply hardiwing the charset On Wed, 2008-11-26 at 17:35 +0000, Joel Halbert wrote: > the problem appears to be related to another conitribution method: > > public void contributeAppli

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
uch improved logging to the console when this > happens, it should help you diagnost what happened. What I see looks > correct, but there may be something else going on that we can't see. > > On Wed, Nov 26, 2008 at 8:58 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > >

T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
Hi, I get the following: "Caused by: java.lang.IllegalStateException: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.services.TapestryModule.buildAlias(Logger, String, AliasManager, Collection) (at Tapestry

Re: [T5] Persistent fields may not be updated until after the page has finished loading

2008-11-22 Thread Joel Halbert
in relation to this thread - and specifically in relation to using pageAttached() to initialise p[age fields - I raised the following possible bug the other day, https://issues.apache.org/jira/browse/TAP5-374 I was wondering if this was something anyone else had noticed/reproduced? On Fri, 2008

Re: T5: page lifecle methods & persistent fields : bug or expected behaviour?

2008-11-20 Thread Joel Halbert
https://issues.apache.org/jira/browse/TAP5-374 On Thu, 2008-11-20 at 09:15 +, Joel Halbert wrote: > I'm going to raise this as a bug in JIRA, unless anyone thinks it > shouldn't be. > > On Wed, 2008-11-19 at 16:07 +, Joel Halbert wrote: > > Hi, > > &g

Re: T5: page lifecle methods & persistent fields : bug or expected behaviour?

2008-11-20 Thread Joel Halbert
I'm going to raise this as a bug in JIRA, unless anyone thinks it shouldn't be. On Wed, 2008-11-19 at 16:07 +0000, Joel Halbert wrote: > Hi, > > I am seeing unexpected behaviour when using persistent fields and the > page lifecycle method, pageAttached(), (T 5.0.15). &g

Re: Improvements to Loop

2008-11-19 Thread Joel Halbert
dex}. That's just a hunch though. > Steve > > On Wed, Nov 19, 2008 at 9:03 AM, Joel Halbert <[EMAIL PROTECTED]> > wrote: > Hi, > I just tried implementing the suggestion below - to inject the > Loop to > access it's index so

T5: page lifecle methods & persistent fields : bug or expected behaviour?

2008-11-19 Thread Joel Halbert
Hi, I am seeing unexpected behaviour when using persistent fields and the page lifecycle method, pageAttached(), (T 5.0.15). I have a persistent field, @Persist private Map myMap; I also have a page lifecycle method, void pageAttached() { if (myMap == null){ myMap = new HashMap();

Re: Improvements to Loop

2008-11-19 Thread Joel Halbert
; If you inject the Loop component and make it a property, you can refer > to loop.index, which saves you from having to create an index > property. > > On Tue, Nov 11, 2008 at 2:55 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Thoughts

Re: Improvements to Loop

2008-11-13 Thread Joel Halbert
Would anyone find feature (a) outlined below (adding isFirst and isLast parameters to loop, along the lines of https://issues.apache.org/jira/browse/TAP5-205) useful? If there is any interest I will raise a ticket and people can vote on it. On Tue, 2008-11-11 at 10:55 +, Joel Halbert wrote

Re: Improvements to Loop

2008-11-12 Thread Joel Halbert
that's nice and elegant, thanks. On Tue, 2008-11-11 at 08:43 -0800, Howard Lewis Ship wrote: > If you inject the Loop component and make it a property, you can refer > to loop.index, which saves you from having to create an index > property. > > On Tue, Nov 11, 2008 at 2

Re: T5: Using an annotation to define which is the page activation context / onActivate method ?

2008-11-11 Thread Joel Halbert
/guide/lifecycle.html > > > 2008/11/8 Joel Halbert <[EMAIL PROTECTED]> > > > just realised that the order of invocation of onActivate methods is the > > other way around to that which i thought it was: > > http://markmail.org/message/7o52hrmcvli3jsje > > &

Improvements to Loop

2008-11-11 Thread Joel Halbert
Hi, Thoughts please on the following enhancements to Loop: a) utility "parameters/methods" for isFirst and isLast iteration, maybe something like: // hello! // bye! b) easy access to the current index value, without having to provide your own. Although

T5: Page instance variable default values

2008-11-10 Thread Joel Halbert
Hi, With reference to: http://tapestry.apache.org/tapestry5/guide/lifecycle.html "Tapestry takes special care to purge all instance variables back to their default value at the end of each request." How is the default value determined? I have noticed that if I declare a class variable on my pa

Re: Rationale behind all possible onActivate methods invoked when context is supplied

2008-11-10 Thread Joel Halbert
ince > this pattern gets repeated a lot, you often end up with hundreds of these > onActivate methods ...its a lot of boilerplate code that could be optimized. > > cheers, > Peter > > Em Sat, 08 Nov 2008 13:05:50 -0300, Joel Halbert <[EMAIL PROTECTED]> >

Re: Rationale behind all possible onActivate methods invoked when context is supplied

2008-11-08 Thread Joel Halbert
i knew i was missing something, thanks! (I must try and remember what i read in the docs) On Sat, 2008-11-08 at 08:23 -0800, Martin Papy wrote: > You can short cut the second call if the first method return a boolean. ( > false I believe )... > > Martin > > > Joel Halbert

Rationale behind all possible onActivate methods invoked when context is supplied

2008-11-08 Thread Joel Halbert
Hi, I've been thinking about how onActivate methods are called... If i have a page with two onActivate methods: MyPage.onActivate(int modelId1, int modelId2); MyPage.onActivate(int modelId1, int modelId2, int modelId3); and if i have a link to this page which supplies the full 3 argument conte

Re: T5: Using an annotation to define which is the page activation context / onActivate method ?

2008-11-08 Thread Joel Halbert
PageRender? hmmm (being Saturday I've very likely missed something here) On Sat, 2008-11-08 at 14:40 +0000, Joel Halbert wrote: > Hi, > > Is it possible to use an annotation to define which method should be > used to set the page activation context? > i.e. I would like to define an

T5: Using an annotation to define which is the page activation context / onActivate method ?

2008-11-08 Thread Joel Halbert
Hi, Is it possible to use an annotation to define which method should be used to set the page activation context? i.e. I would like to define an onActivate() method, but have it called something else, e.g. onActivateX(). A reason for wanting to do so is to ensure that i may have a single onActiva

Re: Making runtime Services (e.g. Request) available in a custom binding

2008-11-08 Thread Joel Halbert
current per-thread > Request object. > > The end result is you can treat Request as you like ... as the current > Request ... even though it is a shared global object. > > > On Fri, Nov 7, 2008 at 10:05 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > > Hi, > >

Making runtime Services (e.g. Request) available in a custom binding

2008-11-07 Thread Joel Halbert
Hi, I want to create a binding which is dependent on data within the user session. How can runtime information such as the request/session be made available to the Binding? In other bindings I have written I have injected any services I needed into the BindingFactory - but BindingFactory is

Re: Access to T5 Services - how to get a handle on to Registry?

2008-11-03 Thread Joel Halbert
, @InjectService("SymbolSource") SymbolSource symbolSource ) { configuration.add("list", new ListBindingFactory(bindingSource)); configuration.add("symb", new SymbolBindingFactory(symbolSource)); } (IoC on ste

Access to T5 Services - how to get a handle on to Registry?

2008-11-03 Thread Joel Halbert
Hi, I am writing a binding for looking up symbols. In my binding factory I need access to the SymbolSource service. How can you access a T5 Service within a class that is not managed by Tap IoC (thus the dependency can not be injected) and does not have access to the ServletContext (thus th

Re: Support for external assets ?

2008-11-03 Thread Joel Halbert
Just realised that you can use: RenderSupport.addScriptLink(String url) Joel Halbert wrote: Hi, Can an asset reference an external resource? e.g. @IncludeJavaScriptLibrary(value={"url:http://www.myurl.com/resource.js"}) If it's not supported was there a reason for this?

Support for external assets ?

2008-11-03 Thread Joel Halbert
Hi, Can an asset reference an external resource? e.g. @IncludeJavaScriptLibrary(value={"url:http://www.myurl.com/resource.js"}) If it's not supported was there a reason for this? (If there's no particular reason I might raise a ticket) Thx, Joel -- SU3 Analytics Ltd 61b Oxford Gardens W10 5U

Re: Modifying default HTML templates for form validation messages

2008-10-28 Thread Joel Halbert
nothing more I can tell you. Uli Joel Halbert schrieb: I want to change the template itself, there is only so much I can change with the css. Ulrich Stärk wrote: What exactly are you trying to achieve? Overriding the default messages is a matter of putting a properties file into the right

Re: Modifying default HTML templates for form validation messages

2008-10-28 Thread Joel Halbert
be possible using css. Uli Joel Halbert schrieb: Is it at all possible to override the default HTML templates for form validation error messages, and if so, are there any pointers on the web? Thanks, Joel - To

Modifying default HTML templates for form validation messages

2008-10-28 Thread Joel Halbert
Is it at all possible to override the default HTML templates for form validation error messages, and if so, are there any pointers on the web? Thanks, Joel -- SU3 Analytics Ltd 61b Oxford Gardens W10 5UJ London Tel: +44 20 8960 2634 Mob: +44 75 2501 0825 www.su3analytics.com SU3 Analytics Lt

Re: T5: Page lifecycle method called after onActivate but before event handling and page rendering methods?

2008-10-28 Thread Joel Halbert
Well, typically loading model data, which I would want to do from a single place, once the onActivate method(s) had been called. Thiago H. de Paula Figueiredo wrote: Em Sun, 26 Oct 2008 11:24:52 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: Is there a lifecycle method which is

Re: T5 arguments to methods in expressions

2008-10-28 Thread Joel Halbert
, 2008 at 11:26 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: Hi, Does T5 support arguments to methods in expressions? e.g. something like the argument to the inner loop source below: item ${var:index} I expect to revamp the property expression language in 5

T5 arguments to methods in expressions

2008-10-27 Thread Joel Halbert
Hi, Does T5 support arguments to methods in expressions? e.g. something like the argument to the inner loop source below: t:source="promotedCols(${var:index})">item ${var:index} Is this allowed? I ask because the above code does not throw an exception,

Re: reference pages by logical id (rather than by path)

2008-10-27 Thread Joel Halbert
I like using classes, as you say it makes it re-factor proof. This is in-fact what Wicket does too. Thiago H. de Paula Figueiredo wrote: Em Sun, 26 Oct 2008 06:39:21 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: Is possible to reference pages by logical id rather than by path?

  1   2   >