Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Greg Pagendam-Turner
Perhaps bump the Hibernate version to 4.1 too Regards, Greg On 02/05/2012, at 6:44 PM, Taha Hafeez Siddiqi wrote: > +1 > > On May 2, 2012, at 2:10 PM, Christian Riedel wrote: > >> +1 >> >> >> Am 02.05.2012 um 10:21 schrieb Lance Java: >> >>> +1 >>> >>> -- >>> View this message in cont

Re: Reusing tapestry hibernate session in a thread

2012-02-27 Thread Greg Pagendam-Turner
doSomethingWithIt(stuff); >} >finally { >ptm.cleanup(); >} >} >}.start(); > } > } > > Can someone who knows please confirm or correct this theory please!! > > Thanks, Paul. > > On 29/01/2012 4:23 PM, Gr

Re: Reusing tapestry hibernate session in a thread

2012-01-28 Thread Greg Pagendam-Turner
al Message Subject:Reusing tapestry hibernate session in a thread Date: Sun, 29 Jan 2012 11:28:41 +1000 From: Greg Pagendam-Turner Organization: Liftyourgame To: Tapestry users scheduled thread Hi, I have a batch job that sends email to users based on a query in m

Reusing tapestry hibernate session in a thread

2012-01-28 Thread Greg Pagendam-Turner
Hi, I have a batch job that sends email to users based on a query in my database. AppModule starts it up like so in a: @Startup public static void scheduleJobs(PeriodicExecutor executor, final BulkEmailer emailer, @Value("${liftyourgame.url}") Str

Re: Generating HTML email content with Tapestry?

2011-12-14 Thread Greg Pagendam-Turner
Here's some code I use to cleanup the html before I send it and to generate an unsubscribe link. I also remove the /assets stuff from my images since that breaks the images when the web server is restarted. Html emails tend to hang around longer than web pages. String cleanupHtml(Strin

Got Selenium working

2011-12-14 Thread Greg Pagendam-Turner
Hi, After struggling for days I got Selenium working for my Tapestry app. Basically when I ran the tests Firefox would start but then the test would freeze. Turns out that the version of Selenium pulled in by tapestry-test does not work with Firefox 8. The fix was to add the following to m

Re: smarter css

2011-12-07 Thread Greg Pagendam-Turner
Hey Howard what about less? On 08/12/11 04:49, Howard Lewis Ship wrote: One thing we need to do is support SASS (http://sass-lang.com/) so that we can code concise& configurable SASS stylesheets and let Tapestry expand them into ugly, redundant CSS for the client web browser. On Tue, Dec 6, 20

SeleniumTestCase dependencies

2011-12-05 Thread Greg Pagendam-Turner
I'm trying to write selenium tests for my application. I get: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/component/Destroyable at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defi

Crop after upload

2011-12-04 Thread Greg Pagendam-Turner
Hi, I'm using Tapestry 5.3 with tapestry-jquery. I have a page that is responsible for uploading an image via AJAX and then allowing the user to crop the image. The problem is I can't get the Crop image component to come up properly. I've tried returning the Zone in the AjaxUpload handler bu

Re: Form that replaces itself with another via Ajax

2011-11-27 Thread Greg Pagendam-Turner
wrote: > >> Hi >> >> Putting Thiago's answer into code >> >> >> >> >> >> >> @InjectComponent >> private Zone myFormZone; >> >> @OnEvent(EventConstants.SUBMIT) >> Object submit(){ >> return myFormZone.getBody(); >> } >> &g

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Greg Pagendam-Turner
omponent private Zone myFormZone; @OnEvent(EventConstants.SUBMIT) Object submit(){ return myFormZone.getBody(); } Not sure why you are using a block. regards Taha On Nov 26, 2011, at 8:43 AM, Greg Pagendam-Turner wrote: On 26/11/2011 12:21 PM, Thiago H. de Paula Figueiredo wrote: On Sat

Re: Form that replaces itself with another via Ajax

2011-11-25 Thread Greg Pagendam-Turner
On 26/11/2011 12:21 PM, Thiago H. de Paula Figueiredo wrote: On Sat, 26 Nov 2011 00:10:20 -0200, Greg Pagendam-Turner wrote: Hi, Hi! How do I write code for a page that contains a form which replaces itself via Ajax once a certain event has occurred? The simplest way is to put the form

Form that replaces itself with another via Ajax

2011-11-25 Thread Greg Pagendam-Turner
Hi, How do I write code for a page that contains a form which replaces itself via Ajax once a certain event has occurred? Regards, Greg - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands

No form support after zone update.

2011-11-21 Thread Greg Pagendam-Turner
Hi, I'm using tapestry 5.3 with tapestry-jquery. I have a page called UploadImage to allow the user to upload an image and then crop it to size. The image is uploaded by AjaxUpload. The upload zone should then be replaced with a block to allow cropping of the image. The problem is that afte

Re: An Appeal To Use the Latest Betas

2011-10-13 Thread Greg Pagendam-Turner
Howard, My site seems to work fine under beta 19. Regards, Greg Pagendam-Turner. On 14/10/11 09:16, Howard Lewis Ship wrote: > If you've been following the discussions here and elsewhere, you may > be aware that Tapestry 5.3 is nearly done, with big improvements to > every aspe

Re: ApplicationDefaults depends on itself

2011-10-11 Thread Greg Pagendam-Turner
Thanks folks, This seems to fix it. Sometimes it's not picking up the symbol though. Is there a way to dump out all symbols? Say perhaps by creating a page called DumpSymbols.tml Regards, Greg. On 11/10/11 07:05, Martin Strand wrote: > On Mon, 10 Oct 2011 22:15:26 +0200, Greg Pagenda

Beta 18 not starting properly

2011-10-09 Thread Greg Pagendam-Turner
Hi, Just upgraded to beta 18 from beta 16 and now I get the following error on startup. Regards, Greg "C:\Program Files\Java\jdk1.6.0_21\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:11443,suspend=y,server=n -Dclassworlds.conf=C:\development\apache-maven-3.0\bin\m2.conf -

Bean Validation

2011-08-25 Thread Greg Pagendam-Turner
What dependency provides: BeanValidatorSource ? In my gradle build I have: compile group: 'org.apache.tapestry', name: 'tapestry-core', version: '5.2.6' compile group: 'org.apache.tapestry', name: 'tapestry-hibernate', version: '5.2.6' compile group: 'org.hibernate', name: 'hibern

Re: LinkSubmit not rendering class attribute

2011-07-09 Thread Greg Pagendam-Turner
2.1.0. Tony On Jul 8, 2011, at 8:48 PM, Taha Hafeez wrote: Can you share the code and the generated markup On Sat, Jul 9, 2011 at 6:10 AM, Greg Pagendam-Turner wrote: Taha, Strangely I'm not seeing the span despite hitting a breakpoint in the code for linksubmit that creates the

Re: LinkSubmit not rendering class attribute

2011-07-08 Thread Greg Pagendam-Turner
bmit. So my guess is that the class attribute will be present in the > span around the anchor link. > > regards > Taha > > > On Sat, Jul 9, 2011 at 5:30 AM, Greg Pagendam-Turner > wrote: > >> Hi, >> >> I have a submit component that uses LinkSubmit.

LinkSubmit not rendering class attribute

2011-07-08 Thread Greg Pagendam-Turner
Hi, I have a submit component that uses LinkSubmit. I want to set the class attribute on the generated link. ${value} But when the link is rendered I only get: What happened to the class attribute? The documentation states that LinkSubmit supports informal parameters. I'm using Tapestry

Status of codehaus repositories for tynamo

2011-06-21 Thread Greg Pagendam-Turner
Hi, Does anyone know why the repositories on http://ci.repository.codehaus.org/org/tynamo/ are empty? Regards, Greg. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h.

T5 XSL component

2011-06-08 Thread Greg Pagendam-Turner
Has anyone written a component to render by transforming a passed in stylesheet and xml document? Regards, Greg. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tape

Just completed a barcode component using barbecue

2011-06-08 Thread Greg Pagendam-Turner
Hi All, I've just completed a component to render barcodes using the opensource library called barbecue. All it takes is to put in a page. Does anyone want to put this component in their component library? Regards, Greg. -

Re: Property Edit Blocks

2011-06-02 Thread Greg Pagendam-Turner
everything works correctly. Regards, Greg On 3/06/2011 12:48 AM, Thiago H. de Paula Figueiredo wrote: On Thu, 02 Jun 2011 04:31:55 -0300, Greg Pagendam-Turner wrote: Hi all, Hi! I've also written a translator: Why? A translator is used when you want to edit a property which

Property Edit Blocks

2011-06-02 Thread Greg Pagendam-Turner
Hi all, I'm working on a property editor block. My Patient object contains an embeddable PersonName object. @Embeddable public class PersonName { String prefix; String given; String family; public String getFormattedName() { String s = this.prefix; if (!s.isEmpty()) { s

Re: Strange behaviour in tapestry app

2011-06-01 Thread Greg Pagendam-Turner
Thanks for reply. Looks the error was caused by a missing xmlsec-2.0. On 1/06/2011 9:17 PM, LLTYK wrote: Tapestry always rewrites page classes. I haven't had much trouble debugging them in in 5.2 though. 5.2.4 did the null variable thing, 5.2.5 'fixed' it. Stepping around in the debugger would

Strange behaviour in tapestry app

2011-05-31 Thread Greg Pagendam-Turner
Hi, I'm working on a Tapestry application using the 5.3.0 version of Tapestry. At this stage I have an application with just an Index page and a single Action Link. The ActionLink executes some code that calls our secure messaging apis to send an xml message via a web service call. If I ca

Re: Logo asset path

2011-05-16 Thread Greg Pagendam-Turner
Thanks Dave, That works. Perhaps the examples at http://tapestry.apache.org/tapestry5/guide/assets.html should be changed to include ${} Regards, Greg. On 17/05/2011 10:43 AM, David Rees wrote: On Mon, May 16, 2011 at 5:32 PM, Greg Pagendam-Turner wrote: I'm trying to refere

Logo asset path

2011-05-16 Thread Greg Pagendam-Turner
Hi, I'm trying to reference a logo in my Layout component. The logo is located in the project under src/main/webapp/layout/images/logo.png After reading http://tapestry.apache.org/tapestry5/guide/assets.html I would have thought that the correct way to reference it from Layout.tml would be:

Re: [chenillekit-user] - Working with chenillekit and Tapestry 5.2

2011-04-27 Thread Greg Pagendam-Turner
n Wed, Apr 27, 2011 at 1:01 AM, Greg Pagendam-Turner wrote: Thanks Stefan, That fixed that issue. Now I'm getting: 2011-04-27 17:58:56.332::WARN: Failed startup of context JettyWebAppContext@ffce2f2@ffce2f2/liftyourgame,file:/C:/development/workspace/liftyourgame/src/main/webapp/,C:\d

Re: [chenillekit-user] - Working with chenillekit and Tapestry 5.2

2011-04-27 Thread Greg Pagendam-Turner
guration.add("importEmailToArchive", new ImportEmailToArchiveBundle(importer)); } Regards, Stefan Am 27.04.2011 06:10, schrieb Greg Pagendam-Turner: Hi, I'm wanting to get my site working with the latest production release of Tapestry. My project depends on ChenilleKit quartz. According to the T

[chenillekit-user] - Working with chenillekit and Tapestry 5.2

2011-04-26 Thread Greg Pagendam-Turner
Hi, I'm wanting to get my site working with the latest production release of Tapestry. My project depends on ChenilleKit quartz. According to the Tapestry mailing list a version 1.3.2 so I'm using that. My current problem is that the code in my app to create a schedular factory public s

Re: It's payback time!

2010-12-18 Thread Greg Pagendam-Turner
done too. On 19/12/2010 2:07 AM, Joel Halbert wrote: 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: Tapestry Web Site Updated

2010-11-22 Thread Greg Pagendam-Turner
I agree. Well thought out Javier. Regards, Greg On 22/11/2010, at 9:11 PM, Geoff Callender wrote: > Very good observations, all of them. > > On 22/11/2010, at 8:37 PM, Javier Molina wrote: > >> I haven't explored the site thoroughly, but here are some comments: >> >> - in general, the ne

Re: Tapestry-security 0.2.0 released!

2010-07-01 Thread Greg Pagendam-Turner
Great work Kalle. Has it been tested against Tapestry 5.2? Greg. On 2/07/2010 12:01 PM, Kalle Korhonen wrote: As an Apache Shiro committer and a strong proponent of Tapestry, I'm proud to announce the 0.2.0 release and immediate availability of tapestry-security module, which represents the bes

Object Selections

2010-06-28 Thread Greg Pagendam-Turner
Hi, I'm trying to use http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects to create a selection for my Goal objects. In the component I've got code @Inject private PropertyAccess _access; public GenericSelectModel getGoalModel() { _goalModel = new Generi

Tapestry5 jQuery - closing an Ajax Dialog

2010-06-08 Thread Greg Pagendam-Turner
I have a modal jQuery dialog with a LinkSubmit. When the LinkSubmit is clicked I would like the dialog to save the changes to the database and then close. What do I return from onSuccess to cause the dialog to close? The documentation for jQuery Dialog states that the code for closing a dialog

Re: [Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources

2010-06-06 Thread Greg Pagendam-Turner
Robin, I want to customize the jquery validation in a grid. I've been looking through the tapestry-jquery code. In validation.js there is reference to a function called toJSRule. Where is this function defined please? Regards, Greg. On 3/06/2010 2:23 PM, Greg Pagendam-Turner wrote:

Re: [Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources

2010-06-02 Thread Greg Pagendam-Turner
n validator for regular expressions. Regards, Robin On Tue, Jun 1, 2010 at 9:20 AM, Greg Pagendam-Turner wrote: Robin, Thanks. Looks like the issue with my Dialog is that I still had some prototype code that was confusing things. The dialogs now come up. I've raised an issue

Re: [Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources

2010-06-01 Thread Greg Pagendam-Turner
Robin, Thanks. Looks like the issue with my Dialog is that I still had some prototype code that was confusing things. The dialogs now come up. I've raised an issue for the datefield in AjaxFormLoop. How is the validation handled in tapestry jquery? Unlike with prototype the error just seems

Re: tapx causing runtime error

2010-05-29 Thread Greg Pagendam-Turner
On 28/05/2010 2:33 PM, Howard Lewis Ship wrote: I've been refactoring the Func stuff in tapestry-ioc and making the corresponding changes in tapx. What you are seeing is the updated tapx before the updated tapestry-ioc hits the Nexus repository. You may be in a situation where you want to do wha

Re: how to manually deploy a tapestry5 project into Tomcat

2010-05-27 Thread Greg Pagendam-Turner
Genis, Check that your web.xml is directing requests to the Tapestry filter. Also have a look at the maven tomcat plugin. If you set it up you can deploy your application by: mvn tomcat:deploy Regards, Greg On 28/05/2010 1:24 AM, Genís Pujol wrote: Al 27/05/2010 17:03, En/na Josh Canfield

Breakpoints under Tapestry 5.2

2010-05-25 Thread Greg Pagendam-Turner
Guys, I've got another issue with Tapestry 5.2. Changing the dependency to the 5.2.0 snapshot I get the following error when triggering a breakpoint in Eclipse: Unable to install breakpoint in com.liftyourgame.application.components.LygActionPlan$containingPageDidLoad$invocation_128ce3fc093

Re: Tapx-Datefield under 5.2 (was Re: Tapestry Hibernate dependency)

2010-05-24 Thread Greg Pagendam-Turner
as Re: Tapestry Hibernate dependency) Date: Tue, 25 May 2010 12:31:03 +1000 From: Greg Pagendam-Turner To: Tapestry users Thanks Ben that worked. No I'm getting a runtime error relating to tapx-datefield Virtual folder names (for component libraries) may no longer contain slashes as

Tapx-Datefield under 5.2 (was Re: Tapestry Hibernate dependency)

2010-05-24 Thread Greg Pagendam-Turner
und their maven repo location, I guess that is why? Anyway hope that helps, Ben On Mon, May 24, 2010 at 7:46 PM, Greg Pagendam-Turner wrote: Hi, I'm trying to build my 5.1.0.5 application against 5.2.0-SNAPSHOT. When I switch versions tapestry-hibernate seems to want to pull in a

Tapestry Hibernate dependency

2010-05-24 Thread Greg Pagendam-Turner
Hi, I'm trying to build my 5.1.0.5 application against 5.2.0-SNAPSHOT. When I switch versions tapestry-hibernate seems to want to pull in a version of hibernate called 3.5.2-Final I've not been able to find a repository for this version of hibernate. Do I need to add a further repository to

Re: Transformation Exception

2010-05-19 Thread Greg Pagendam-Turner
Ship wrote: Your best bet for dealing with these issues is to first try compiling for JDK 1.5, even if you are deploying on 1.6. You can see why we're working to take Javassist out of the picture! On Tue, May 18, 2010 at 6:26 PM, Greg Pagendam-Turner wrote: Guys, I'm gett

Transformation Exception

2010-05-18 Thread Greg Pagendam-Turner
Guys, I'm getting a transformation exception for one of my pages. It only occurs in tomcat6 in production but not under jetty in development. I'd appreciate any ideas on how to track this down please. An unexpected application exception has occurred. * java.lang.RuntimeException ja

Re: Does Ajax Form Loop render full form on addRow?

2010-03-15 Thread Greg Pagendam-Turner
. de Paula Figueiredo wrote: On Mon, 15 Mar 2010 22:55:12 -0300, Greg Pagendam-Turner wrote: I'm stilling trying to trace this issue with AjaxFormLoop. I have a simple question. Does an Add Row event trigger the entire AjaxForm to be updated via Ajax or is just the new row returned? Jus

Re: Does Ajax Form Loop render full form on addRow?

2010-03-15 Thread Greg Pagendam-Turner
;September\",\"October\",\"November\",\"December||\",\"\"],\"days\":\"mtwtfss\"},\"formatURL\":\"/jumpstart/examples/tables/ajaxformloop1.startdate:format||\",\"parseURL\":\"/jumpstart/examples/table

Does Ajax Form Loop render full form on addRow?

2010-03-15 Thread Greg Pagendam-Turner
Guys, I'm stilling trying to trace this issue with AjaxFormLoop. I have a simple question. Does an Add Row event trigger the entire AjaxForm to be updated via Ajax or is just the new row returned? Regards, Greg. - To unsub

Re: AjaxFormLoop - Please help

2010-03-14 Thread Greg Pagendam-Turner
Howard, Thiago, Would adding to the list of Hidden Field Location Rules fix TAP5-733? Regards, Greg. On 15/03/2010 6:25 AM, Greg Pagendam-Turner wrote: Geoff, I tried your onActivate method. The conversation id is now in the url but I'm still getting thehidden form field

Re: AjaxFormLoop - Please help

2010-03-14 Thread Greg Pagendam-Turner
ds in the declaration, eg. private String _conversationId = null; The reason is that you'll rarely get a freshly instantiated page - more likely is you'll get one that Tapestry has pulled out of its pool of page instances. Cheers, Geoff On 14/03/2010, at 2:11 PM, Gre

AjaxFormLoop - Please help

2010-03-13 Thread Greg Pagendam-Turner
Guys, I'm trying to work out how to fix the AjaxFormLoop example in Jump Start. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1 The code recommends that it should use conversations instead of session persistence. I've changed the code to use conversations but

AjaxFormLoop example in JumpStart and JIRA 733

2010-03-11 Thread Greg Pagendam-Turner
Guys, I'm trying to work out how to fix the AjaxFormLoop example in Jump Start. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1 The code recommends that it should use conversations instead of session persistence. I've changed the code to use conversations bu

Generic Graph component

2010-03-11 Thread Greg Pagendam-Turner
Hi Guys, I've added a new article to the T5 wiki about how to create a generic graph component that allows you to pass in a JFreeChart object so you can create any chart. http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent Might be a good component to add to one of the

AjaxFormLoop problem

2009-11-23 Thread Greg Pagendam-Turner
I'm getting the following error on my page that uses an AjaxFormLoop: "Render queue error in AfterRender[EditGoal:ajaxformloop.fragment]: The rendered content did not include any elements that allow for the positioning of the hidden form field's element." I see that an issue has been raised: