Re: T5: refreshing page when there is an error

2007-10-15 Thread Kristian Marinkovic
we also extended the Form component :) i think "flash" is the correct persistence strategy for Form errors. i don't see any use case where form validation messages should be stored in the session. i think it is a behaviour that is not expected. we already had 2 developers in our company th

RE : tapestry5 without maven is ok ?

2007-10-15 Thread Julien HENRY
Hi, The first time you get tapestry, simply go in a sample project and hit: mvn dependency:go-offline This will download all required dependencies in your local repo. Then, when you will be offline, just use Maven with -o flag to tell it to use only local artifacts. Regards, Julien --- MavenM

Re: T5: Pluggable javascript libraries?

2007-10-15 Thread Chris Lewis
Was it said that would be implemented? I mean I think it could be a good idea, but I don't remember reading that it would actually be implemented. Kristian Marinkovic wrote: as i remember the postings on the mailing list from 2/3 weeks ago correctly there will be a kind of abstraction layer for

T4.1: Scriptaculous - automatically adding required js files

2007-10-15 Thread Jim Roycroft
Using 4.1.3, I would like to make use of the "Effect" features provided by Scriptaculous... for example: Click here to make this text disappear If I put that code in a regular Tapestry page, nothing happens (because the required javascript files are not included), however if I add the "Sug

tapestry5 without maven

2007-10-15 Thread MavenMan
hi all: I start to study t5 ,and many demo is related maven .I will not be connect to Internet ,and it is hard to use t5 with maven offline for me .so does it matter if I use t5 without maven ?Does it works well in tomcat offline ? -- View this message in context: http://www.nabble.com/tapes

Re: Re: T5: Pluggable javascript libraries?

2007-10-15 Thread Kristian Marinkovic
as i remember the postings on the mailing list from 2/3 weeks ago correctly there will be a kind of abstraction layer for Javascript (=adapter) in T5 with JQuery as default library right!? :) see: http://www.nabble.com/Prototype-vs.-JQuery-vs.-Dojo-0.9-vs.-tf4559353.html#a13017828 g, kris

Re: can i change locale manually or not ???

2007-10-15 Thread Nick Westgate
The docs are out of date, hence the wiki. "Don't effect" is not specific enough. Give us the info to help you. What are you trying do? What are the names of your localized files? How is this event being invoked from your .tml file? Cheers, Nick. Mohammad Shamsi wrote: i was read in tapestry l

Re: T5 Order in which modules load

2007-10-15 Thread Nick Westgate
Sorry, "order" in the message title diverted my attention. You want to override DefaultValidationDelegateCommand using Alias: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html That documentation is a bit thin, but if you can search the list for more. HLS: "You supply a new impl

Re: T5: refreshing page when there is an error

2007-10-15 Thread Nick Westgate
I agree it should be "Flash". I copied Form and changed it to that. It should be possible for a user to configure this. Cheers, Nick. Thiago H de Paula Figueiredo wrote: On Mon, 15 Oct 2007 15:36:26 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Form has a clearErrors() method. This

Re: Validate regexp error

2007-10-15 Thread Josh Canfield
What build of Tapestry are you using? While I've never used @Validate before I believe it should work the same. Have you created a form field to see if it's specific to the annotation? Josh On 10/15/07, mogulwraith <[EMAIL PROTECTED]> wrote: > > > Tapestry 5 > To restate, Im trying to do somethi

Re: T5 Order in which modules load

2007-10-15 Thread Martin Reurings
Hmm, actually the order of resolving all such configurations is the part where I'm having problems. You see, this piece of code: public void contributePageRenderInitializer( final OrderedConfiguration configuration, final ThreadLocale threadLocale, final SymbolSource symbo

Re: Validate regexp error

2007-10-15 Thread mogulwraith
Tapestry 5 To restate, Im trying to do something similar to the documentation listed near the end of this page http://tapestry.apache.org/tapestry5/tutorial1/forms.html for your convenience the sample code is as follows: @Validate("required,regexp=\\d{5}(-\\d{4})?") public String getZip() {

Re: T5: refreshing page when there is an error

2007-10-15 Thread Thiago H de Paula Figueiredo
On Mon, 15 Oct 2007 15:36:26 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Form has a clearErrors() method. This raises again the question on which is the best persistence strategy for the ValidationTracker of Form: session or flash. I prefer flash, as it makes more sense to me. On

Re: T5: refreshing page when there is an error

2007-10-15 Thread Howard Lewis Ship
Form has a clearErrors() method. On 10/15/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > I notice that when an error is recorded thru recordError, refreshing the > form will not erase the error messages unlike when form was rejected by > validator where pressing refresh in the browser ca

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-15 Thread Ken nashua
I am re-testing this... Best regards Ken in nashua > From: [EMAIL PROTECTED] > To: users@tapestry.apache.org > Subject: RE: Does tapestry need an IntegerPropertySelectionModel ? > Date: Mon, 15 Oct 2007 12:09:28 -0400 > > > Just some feedback...Nothing works with latest OGNL build.Best regards

Re: T5: Tapestry, Hibernate and Underscores.

2007-10-15 Thread Christian Gruber
I did not. The problem was not with hibernate. The problem was that you used hibernate annotations (JPA annotations, actually) in a way other than their documented intent. If you annotate a field _foo, then the property name will be _foo according to hibernate, regardless of accessors.

Re: OT: Different type of MVC

2007-10-15 Thread Andrea Chiumenti
Howard, you know better then me that there are other ways to cache resources ;-p On 10/14/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > Because it is perfectly shared and uniform, reasonable to cache (portions > in > memory), uniformly accessible from multiple machines, etc. > > However, su

Re: Tapestry 5 service configuration

2007-10-15 Thread Howard Lewis Ship
I have some expertise in Tapestry, and I side with Chris. An ASO is a global object that is associated with a particular user, typically via the user's HttpSession. It doesn't have a service interface, as it is typically a POJO. Because it doesn't have an interface, Tapesty doesn't create a prox

Re: Tapestry 5 service configuration

2007-10-15 Thread Chris Lewis
Someone correct me if I'm wrong, but you can't inject ComponentResources into a module because it doesn't yet exist. I believe ComponentResources is created when the rendering is actually underway, and modules are processed before this happens. chris Peter Stavrinides wrote: My previous post

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-15 Thread Ken nashua
Just some feedback...Nothing works with latest OGNL build.Best regardsKen in nashuan exception has occurred. You may continue by restarting the session. [ +/- ] Exception: Unable to update OGNL expression '' of [EMAIL PROTECTED]/galleryWidget] to 3: Binding with value 2 (StaticBindi

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
My previous post contained this code: @Inject private ComponentResources resources_; public void contributeApplicationStateManager( MappedConfiguration configuration) { ApplicationStateCreator creator = new ApplicationStateCreator() { public BreadCrumbs create() {

Re: T5: Pluggable javascript libraries?

2007-10-15 Thread Chris Lewis
Unfortunately this is probably a bit of a pain to do. If you were to do this you'd probably have to do the following: 1) add jquery to the Tap source (easy) 2) add your own PageRenderSupport implementation to use jquery (easy) 3) rewrite tapestry.js so that it behaves the same but has the same

T5: refreshing page when there is an error

2007-10-15 Thread Angelo Chen
Hi, I notice that when an error is recorded thru recordError, refreshing the form will not erase the error messages unlike when form was rejected by validator where pressing refresh in the browser can errase the errors and go back to the initial form screen, here is the code public void onValida

Updating Dialog in AJAX requests

2007-10-15 Thread Stephane Decleire
Hi, Does anybody has an idea why the content of such dialog boxes is not refreshed when the form in the dialog box is submitted ? Case 1 : ... Case 2 : ... Case 3 : ... I have read the Tapestry Dojo Dialog component documentation and watched out for the got

can i change locale manually or not ???

2007-10-15 Thread Mohammad Shamsi
i was read in tapestry localization guide that : Tapestry does not yet support changing the locale, but that will be available shortly. but in wiki T5 Howto, i read a guide to changing locale in tapestry, look at code : @Inject private PersistentLocale persistentLocale; public void onActionFrom

T5: wiki on creating a transparent access control system

2007-10-15 Thread Chris Lewis
There have been many messages about how to implement a user access control system (logging in, restricting access, etc). I asked such a question on this list a while ago, and have since found what seems to be an excellent way of implementing an access control system. The best part is, your page

RE: Does tapestry need an IntegerPropertySelectionModel ?

2007-10-15 Thread Ken nashua
Hi Jesse, Did this weekends checkins for OGNL address this? Just curious. Thanks if you got time to reply. Best regards Ken in nashua From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: RE: Does tapestry need an IntegerPropertySelectionModel ? Date: Fri, 12 Oct 2007 15:34:05 -0400

Re: Tapestry 5 service configuration

2007-10-15 Thread lasitha
Actually, it may be easier to contribute to the ApplicationStateManager instead of having it injected and getting/setting from it yourself. See the section on 'Configuring ASOs' here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html Cheers, lasitha. On 10/15/07, Peter Stavr

T5: Pluggable javascript libraries?

2007-10-15 Thread Olivier
Hi, Is it easily possible to use another javascript library in stead of prototype? Is anyone trying to do something like that? I, for one, have more experience with jQuery than Prototype (and I like it better) so it would be cool to have a tapestry with jQuery in stead of Prototype. Regards, O

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
Thanks Robert, I think I have my answer now. Robert Zeigler wrote: Use the ApplicationStateManager? @Inject ApplicationStateManager _manager; MyObject foo = new MyObject(someArguments); _manager.set(MyObject.class,foo); Cheers, Robert On Oct 15, 2007, at 10/156:58 AM , Peter Stavrinides wro

Re: OT: Different type of MVC

2007-10-15 Thread adasal
Yes, I have worked with a system like this, though not as complete as what you describe. I wasn't intimately acquainted with it but what seemed to have been implemented was a repository for the attributes that should be used when, for instance, controlling rendering. What was interesting was that t

Re: Binding to sub-properties

2007-10-15 Thread Jesse Merriman
Crap, sorry for the double-post. Didn't realize this list accepted messages from unsubscribed addresses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tapestry 5 service configuration

2007-10-15 Thread Robert Zeigler
Use the ApplicationStateManager? @Inject ApplicationStateManager _manager; MyObject foo = new MyObject(someArguments); _manager.set(MyObject.class,foo); Cheers, Robert On Oct 15, 2007, at 10/156:58 AM , Peter Stavrinides wrote: Since you are confused by the question, let me rephrase it in a

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
Since you are confused by the question, let me rephrase it in a different way then: 1. How do you register an ASO with the IoC managed container (or registry if you prefer that word) if you have to provide arguments in the constructor (i.e. you cannot use @ApplicationState in this case). M

Re: Tapestry 5 service configuration

2007-10-15 Thread Chris Lewis
An overused word it may be, but it has a fairly concrete meaning in Tapestry. It feels like its getting a tad warm, so please allay any fires brewing. I'm no expert in T5 either, but the notion of object persistence is /not at all/ intrinsic to what services are. A service may provide a mechani

Binding to sub-properties

2007-10-15 Thread Jesse Merriman
(Tapestry newb, using 4.1.3, maybe answered before but I couldn't find it.) Is it possible to bind to a sub-property? Eg, this works: Home.html: Home.java: public abstract class Home extends BasePage implements PageBeginRender { public abstract int getNum(); public abstract void

T5: tapestry-spring v tapestry-acegi

2007-10-15 Thread Christian Gorbach
hi all, has somebody managed to set up a project with tapestry-spring and tapestry-acegi together? As soon as i add the tapestryspring filter to web.xml, tapestry-acegi doesn't work anymore (based on the acegi demo app from robin) Exception constructing service 'RememberMeServices': Error invok

Re: Tapestry 5 service configuration

2007-10-15 Thread MavenMan
I just to say maybe the concept problem is you are dealing with is the concept of persistence with Pojo's using Inversion of Control , so you are mixed-up. many folk have talk about the good of ioc .Now could you give me a explain of how t5 manage the service and aso? Peter Stavrinides wrote:

Re: T5: Setting properties to null

2007-10-15 Thread Hugo Palma
Thanks, i've added a comment to the issue. Nick Westgate wrote: This was changed a month ago by Howard. There's already a complaint attached to the closed issue: https://issues.apache.org/jira/browse/TAPESTRY-1648 Perhaps it should be re-opened and re-examined. Cheers, Nick. Hugo Palma wrote

Re: T5:passing parameter from a nested layout component

2007-10-15 Thread Angelo Chen
problem solved, what needed is, I create a setTitle/getTitle in the MlayoutNew.java as well, then : Angelo Chen wrote: > > -- View this message in context: http://www.nabble.com/T5%3Apassing-parameter-from-a-nested-layout-component-tf4625129.html#a13209886 Sent from the Tapestry - User mai

Re: T5: Setting properties to null

2007-10-15 Thread Nick Westgate
This was changed a month ago by Howard. There's already a complaint attached to the closed issue: https://issues.apache.org/jira/browse/TAPESTRY-1648 Perhaps it should be re-opened and re-examined. Cheers, Nick. Hugo Palma wrote: It seems that properties associated with form fields are never s

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
As far as I'm concerned service is an ugly word everyone likes to throw around, what you are really dealing with is the concept of persistence with Pojo's using Inversion of Control. Peter Stavrinides wrote: A concept problem? really?? now I am curious as to what this concept problem actually,

T5: Setting properties to null

2007-10-15 Thread Hugo Palma
It seems that properties associated with form fields are never set to null even if the submitted is empty. This would be ok if the property was coerced into a String as i could simply check for an empty String. The problem is different when it's coerced to an Integer or to a Double because if t

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
A concept problem? really?? now I am curious as to what this concept problem actually, is could you explain it. Peter MavenMan wrote: Peter Stavrinides wrote: Hi Chris ApplicationStateManager is a service , I also think a service and an aso are completely different thing. in a word, I

Re: [T5] Recommended naming of configurations

2007-10-15 Thread [EMAIL PROTECTED]
在 Sun, 14 Oct 2007 23:40:38 +0800,Howard Lewis Ship <[EMAIL PROTECTED]> 写 道: Where I dropped the ball here, in a minor way, is that it should be "contributeTo" as a prefix, or perhaps "configure". It's a prefix on the *service* being configured or contributed to. So I would choose option #2

Re: Form submission fails only after the 1st time, T4.1.3 bug?

2007-10-15 Thread Nikolaos Konstantinou
Hello, I managed to solve it. The problem was the line at the listener: this.setSelectedLocationId(null); that was setting the selectedLocation to null. Why I asked before was because I was facing a behaviour without any produced messages, so I didn't know where to begin. In the beginning of the l

Re: Form submission fails only after the 1st time, T4.1.3 bug?

2007-10-15 Thread Patrick Klein
Hello, "javascript:" is not needed, just onChange="this.form.submit();" Regards, Patrick I am facing this strange behaviour if Tapestry 4.1.3: I have a form, declared in the .page as: In the .xhtml file, I place a PropertySelection component (model and value a

T5:passing parameter from a nested layout component

2007-10-15 Thread Angelo Chen
Hi, I have a nested layout component and I'd like to pass a parameter from the child to the parent, here are the codes/templates: The parent component: template: ${title} public class MLayout { @Parameter private String _title; public String getTitle() {ret

Form submission fails only after the 1st time, T4.1.3 bug?

2007-10-15 Thread Nikolaos Konstantinou
I am facing this strange behaviour if Tapestry 4.1.3: I have a form, declared in the .page as: In the .xhtml file, I place a PropertySelection component (model and value are ok). The problem is that I want to submit the form when the user changes the va

Re: Tapestry 5 service configuration

2007-10-15 Thread MavenMan
Peter Stavrinides wrote: > > Hi Chris > ApplicationStateManager is a service , I also think a service and an aso > are completely different thing. > > in a word, It is a concept problem. > > >> are completely different > > > > I am no expert on T5, but strongly disagree with you. > >

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
Thanks for this Kristian, exactly what I wanted! cheers, Peter Kristian Marinkovic wrote: hi peter, ASOs that have a (non-empty) constructor can be instantiated by contributing to the ApplicationStateManager service. Please see the thread for the source. if you contribute to this service you

Re: Tapestry 5 service configuration

2007-10-15 Thread Peter Stavrinides
Hi Chris I am no expert on T5, but strongly disagree with you. Peter Chris Lewis wrote: Hi Peter 1) I think the general opinion on this is that a service and an aso are completely different animals. I can't think of a situation where I'd ever want an aso to be a service (or vice versa), but