RE: properties not persisting across requests

2011-09-13 Thread Ken in Nashua
Well I got the gallery component wrapped in a form so I think I need to probably actually perform a submit... So I rigged up my handlers and did the submit... Still no luck... select keep reverting back to default on refresh

RE: properties not persisting across requests

2011-09-13 Thread Ken in Nashua
@Persist("session") @Property(read = true, write = true) //@Parameter(required = true, cache = true, defaultPrefix = "50") private int itemsPerPage; This is what I have so far... Nothing gets persisted... blue in the face Any suggestions ? Thank You

Re: properties not persisting across requests

2011-09-13 Thread Robert Zeigler
Home.java: @Property @Persist private int itemsPerPage; Gallery.java: @Parameter(required=true, cache=true, value="50") @Property private int itemsPerPage Gallery.tml: You've got "defaultPrefix" set as "50". Default prefix refers to the default interpretation of a bound value. The defau

RE: properties not persisting across requests

2011-09-13 Thread Ken in Nashua
Well I got rid of defaults and ran it... My home page contains a gallery component I have a button rigged on my browser set to http://localhost:8080/Home I clock the launch button set to the above URL The page comes up... and I see the first element in the visible So I change the value of th

RE: properties not persisting across requests

2011-09-13 Thread Ken in Nashua
Also wondered why @Parameter could not do the job... way I see it is components take parameters... and I wanted to adhere to that... but every time I hit refresh button I lose my state.

RE: properties not persisting across requests

2011-09-13 Thread Ken in Nashua
Thanks Steve... I am trying that... There is no way to set default value though... Error persisting field Home:gallerywidget:itemsPerPage: Persistent fields may not be updated until after the page has finished loading. This may be due to a persistent field with a default value. The default

Re: [5.3-alpha-13] - Combine/Minify doesn't appear to work ...

2011-09-13 Thread Howard Lewis Ship
Is tapestry-yuicompressor on the classpath? On Tue, Sep 13, 2011 at 4:28 PM, Joe Klecko wrote: > Hi All, > > When my app is running in production mode, I don't see my scripts/css being > combined/minified. They are still included as individual files.  Oddly, I do > see the tapestry scripts being

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Lenny Primak
I have updated the wiki with the information on how to use Stateful session beans within Tapestry. @EJB annotation will not work correctly with Statefull session beans. Only stateless ones. On Sep 13, 2011, at 7:38 PM, Chris Mylonas wrote: > Thanks a lot Geoff! > > As soon

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Chris Mylonas
Thanks a lot Geoff! As soon as I can sort out my little bugs atm (in EJB3 stuff) I can't wait to give the new @EJB support in tapestry. A few months ago I was having some jndi lookup problems with using your old business services locator way and didn't end up sorting it out. Ye

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Szemere Szemere
Sorry for accidentally hijacking the thread. I thought changing the subject would be enough to disassociate from the thread - it seems not. Tks for the pointer, Szemere On 13 Sep 2011, at 22:21, Geoff Callender wrote: > ...and please try not to hijack threads - start a new thread when changin

[5.3-alpha-13] - Combine/Minify doesn't appear to work ...

2011-09-13 Thread Joe Klecko
Hi All, When my app is running in production mode, I don't see my scripts/css being combined/minified. They are still included as individual files. Oddly, I do see the tapestry scripts being combined/minified though.I tried manually configuring this in my AppModule with no luck with the follo

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Geoff Callender
...and please try not to hijack threads - start a new thread when changing the subject :-) On 14/09/2011, at 7:17 AM, Geoff Callender wrote: > Sure. The JumpStart site is hosted on JBoss. See: > > http://jumpstart.doublenegative.com.au/jumpstart5.4/tips.html > > and see "Running Tapestry

Re: Tapestry 5.2.5 on JBoss7

2011-09-13 Thread Geoff Callender
Sure. The JumpStart site is hosted on JBoss. See: http://jumpstart.doublenegative.com.au/jumpstart5.4/tips.html and see "Running Tapestry on JBoss" in: http://wiki.apache.org/tapestry/Tapestry5HowTos Cheers, Geoff On 13/09/2011, at 10:49 PM, Szemere Szemere wrote: > Has anyon

Re: Problems in the SVN trunk

2011-09-13 Thread Howard Lewis Ship
What are you building with ... if the Maven pom.xml files are still present, they are not being maintained and may have issues. On Tue, Sep 13, 2011 at 10:14 AM, Jon Williams wrote: > Hi Y'all, > > I am trying to build the Tapestry trunk in Idea and am running into 2 > issues. > > 1. Compile time

Re: Tapestry5-jquery error

2011-09-13 Thread François Facon
Lucky gradle user :) I had this problem with the beta5. with beta6 from the trunk, it works well. Regards François 2011/9/12 Steve Eynon : > Oh, you mean my "build.gradle" !!? :) > > Actually, where I am right now it's the ivy.xml - it looks like: > > rev="5.3-beta-5" conf="compile"/> > > But it

Re: spring integration?

2011-09-13 Thread Thiago H. de Paula Figueiredo
On Tue, 13 Sep 2011 15:06:46 -0300, Alfonso Quiroga wrote: Just one thing to add, now I'm using spring integration, be carefoul with objects in the "base" package, I think Tapestry treats this package in a special manner. I've tried to instantiate this objects via spring, I could, but then I

Re: spring integration?

2011-09-13 Thread Chris Poulsen
You should probably take a look at the following section of the docs: http://tapestry.apache.org/component-classes.html#ComponentClasses-ComponentPackages -- Regards Chris On Tue, Sep 13, 2011 at 8:06 PM, Alfonso Quiroga wrote: > Just one thing to add, now I'm using spring integration, be care

Tapestry 5.2.5 on JBoss7

2011-09-13 Thread Szemere Szemere
Has anyone got a tapestry app working successfully on JBoss7? We've been trying to port our Tapestry app that works nicely on JBoss4. Or current issue is that browser request seem to make it through to Tapestry (we can see TimingFilter results in the log) but nevertheless we get a JBoss style 4

Re: spring integration?

2011-09-13 Thread Alfonso Quiroga
IT WORKS now!! Thanks Steve, that was the problem, my old declaration: app org.apache.tapestry5.TapestryFilter app org.apache.tapestry5.spring.TapestrySpringFilter that is WRONG, it was neccesary only the last one. Thanks!! On Tue, Sep 13, 2

Re: spring integration?

2011-09-13 Thread Alfonso Quiroga
Just one thing to add, now I'm using spring integration, be carefoul with objects in the "base" package, I think Tapestry treats this package in a special manner. I've tried to instantiate this objects via spring, I could, but then I had some cast problems. On Tue, Sep 13, 2011 at 2:51 PM, Alfonso

Re: spring integration?

2011-09-13 Thread Steve Eynon
Um, it's not about changing the filter name - just ensure this filter (and only this filter) is defined: app org.apache.tapestry5.spring.TapestrySpringFilter app /* Delete any references to the normal 'TapestryFilter'. (I would send over our web.xml for comp

Re: spring integration?

2011-09-13 Thread Steve Eynon
I can't resist... http://vincnetas.tumblr.com/post/1130542373/stack-trace-or-gtfo :) Steve. On 14 September 2011 01:34, Thiago H. de Paula Figueiredo wrote: > On Tue, 13 Sep 2011 12:50:44 -0300, Alfonso Quiroga > wrote: > >> "No service implements the interface >> org.springframework.contex

Re: spring integration?

2011-09-13 Thread Alfonso Quiroga
I changed the name but the error is the same: [ERROR] TapestryModule.ApplicationInitializer Construction of service ApplicationInitializer failed: Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildApplicationInitializer(Logger, List) (at TapestryModule.java:14

Re: spring integration?

2011-09-13 Thread Thiago H. de Paula Figueiredo
On Tue, 13 Sep 2011 12:50:44 -0300, Alfonso Quiroga wrote: "No service implements the interface org.springframework.context.ApplicationContext" Full stack trace please. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructo

Re: spring integration?

2011-09-13 Thread Steve Eynon
Unless I'm mistaken I'm seeing you define both T5 filters in the web.xml with the name 'app'. You only need / should define the Spring one. Steve. On 14 September 2011 01:13, Alfonso Quiroga wrote: > Hi, yes, I followed that guide, with no results. My web.xml is this: > >        PUBLIC "-//Sun

Problems in the SVN trunk

2011-09-13 Thread Jon Williams
Hi Y'all, I am trying to build the Tapestry trunk in Idea and am running into 2 issues. 1. Compile time checking can't find selenium.getCssCount method. 2. There is a circular dependency between tapestry-ioc and taperstry-json. thanks Jon

Re: spring integration?

2011-09-13 Thread Alfonso Quiroga
Hi, yes, I followed that guide, with no results. My web.xml is this: http://java.sun.com/dtd/web-app_2_3.dtd";> example Tapestry 5 Application tapestry.app-package ar.lifia contextConfigLocation /WEB-INF/mySpring.xml

Re: Run javascript after a zone is updated

2011-09-13 Thread derkoe
Muhammad Gelbana wrote: > > I solved the situation using a workaround. But I still couldn't > efficiently run javascript when the block zone is updated. > I tried using the javascriptsupport service but couldn't find a way to > use it as it needs to be used in the "afterrender" event of the zone

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Lenny Primak
Fortunately? EJB 3.1 is excellent and a pleasure to use. On Sep 13, 2011, at 3:54 AM, Massimo Lusetti wrote: > On Tue, Sep 13, 2011 at 12:30 AM, Geoff Callender > wrote: > >> Thanks Francois. Always nice to hear that someone finds it useful. > > Never used EJB fortunately but Jumpstart is

Re: spring integration?

2011-09-13 Thread Steve Eynon
Are you using the TapestrySpringFilter in your web.xml as described in: http://tapestry.apache.org/integrating-with-spring-framework.html ??? We're using Spring (much to my dismay, mind) with Tapestry T5.2.6 (the latest endorsed stable build) without a hitch. For us, everything plugs together se

Re: spring integration?

2011-09-13 Thread Koka Kiknadze
Well, For me it works (Tap 2.5.6 Spring 3.0.6). Here is the relevant part of my web.xml log4jConfigLocation /WEB-INF/log4j.properties contextConfigLocation /WEB-INF/applicationContext.xml org.springframework.web.util.Log4jConfigListener

Re: [T5.x] onException() During Render Phase

2011-09-13 Thread Steve Eynon
Decorating the RequestExceptionHandler service is not nearly as elegant as writing an onException() handler for you loose the ability to use ComponentEventResultProcessors. Instead you have to handle the whole response yourself. To differentiate between the different types of handlers seems incon

spring integration?

2011-09-13 Thread Alfonso Quiroga
Hi! I'm using tapestry 2.5.2, and tapestry-spring 2.5.2 too. I did the few steps posted in the documentation. When I initialize the web application I get this: "No service implements the interface org.springframework.context.ApplicationContext" I've seen at least 3 threads in markmail and nobody

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Alfonso Quiroga
Geoff I find it really usefull the jumpstart, as I'm newbie in tapestry I'm consulting it every time. really thanks On Tue, Sep 13, 2011 at 9:15 AM, Muhammad Gelbana wrote: > François and Massimo left nothing for me to say. > > Thanks a lot Geoff :) > > On Tue, Sep 13, 2011 at 9:54 AM, Massimo Lu

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Muhammad Gelbana
François and Massimo left nothing for me to say. Thanks a lot Geoff :) On Tue, Sep 13, 2011 at 9:54 AM, Massimo Lusetti wrote: > On Tue, Sep 13, 2011 at 12:30 AM, Geoff Callender > wrote: > >> Thanks Francois. Always nice to hear that someone finds it useful. > > Never used EJB fortunately but

Re: Exclude resource from tapestry filter

2011-09-13 Thread Nicola Buso
Sorry, I suppose this is the way in my module: public void contributeIgnoredPathsFilter(Configuration conf) { conf.add("{MY REGEXP PATTERN}"); } thanks On 09/13/2011 12:04 PM, Taha Hafeez wrote: > Hi Nicola > > Have you looked into > > http://tapestry.apache.org/current/apidocs

Re: Exclude resource from tapestry filter

2011-09-13 Thread Nicola Buso
It's an internal service class, is safe to use it? how do you configure it in your module? n. On 09/13/2011 12:04 PM, Taha Hafeez wrote: > Hi Nicola > > Have you looked into > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/internal/services/IgnoredPathsFilter.html > > You can p

Re: Run javascript after a zone is updated

2011-09-13 Thread Rendy Tapestry
You could try this code, someone else was ask this question. $('yourZoneId').observe(**Tapestry.ZONE_UPDATED_EVENT, function() { ... }); On Tue, Sep 13, 2011 at 3:53 AM, Muhammad Gelbana wrote: > I solved the situation using a workaround. But I still couldn't > efficiently run javascript

Re: Localization Problems

2011-09-13 Thread Rendy Tapestry
Thanks Christian, In my subsequent reply that become separate thread, it was already corrected by Thiago, still got the same result (still use US locale instead of what I change in PersistentLocale). I give up with solution #2 and try solution #1 with success. Thanks again Christian for your help

Re: Exclude resource from tapestry filter

2011-09-13 Thread Taha Hafeez
Hi Nicola Have you looked into http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/internal/services/IgnoredPathsFilter.html You can pass the patterns to be ignored by the tapestry filter. On Tue, Sep 13, 2011 at 3:28 PM, Nicola Buso wrote: > Hi all, > > is there a way in t5 to e

Exclude resource from tapestry filter

2011-09-13 Thread Nicola Buso
Hi all, is there a way in t5 to exclude some resources from tapestry filter? I have cases where I do not want tapestry to serve some resources, because are resources not requested directly from tapestry pages. Any suggestion? or can someone point me to the documentation where this is explained?

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Massimo Lusetti
On Tue, Sep 13, 2011 at 12:30 AM, Geoff Callender wrote: > Thanks Francois. Always nice to hear that someone finds it useful. Never used EJB fortunately but Jumpstart is a must!... Thanks Geoff -- Massimo http://meridio.blogspot.com

Re: properties not persisting across requests

2011-09-13 Thread Steve Eynon
Hi, Not sure what it is exactly you want to achieve, for there a lot of unnessacery annotations floating around in your code. To simply persist the int variable from the select, the following works fine: @Persist @Property private int itemsPerPage; Items Per Page Steve. On