Re: T5 Validator

2007-08-16 Thread Nick Westgate
See: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Also, when you get your validator working, please consider adding it to the wiki: http://wiki.apache.org/tapestry/Tapestry5HowTos Cheers, Nick. DougS wrote: Also, is it possible to override the default er

Re: T5 Validator

2007-08-16 Thread DougS
I've been able to create a Validator, but I am having problems getting the Error Message to show up in my new Validator. 1.) First I copied one of the default T5 validators (I used the Required class) -- here it is:

Re: T4: Instance method dangers

2007-08-16 Thread Bill Holloway
Thanks! I'll talk to the service layer/Spring people tomorrow about pushing the caching down into the service there. They've been thinking about using os cache or something. bill On 8/16/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > It's thread safe. > > A more elegant method may be to push t

Re: Jessionid and static resources

2007-08-16 Thread Kevin Menard
Awesome. Thanks. Now if I just could get the maven ant tasks to grab the snapshots without hassle . . . Any plans to put out shorter release for 4.1.3? ;-) Thanks again, Kevin On 8/16/07 5:26 PM, in article [EMAIL PROTECTED], "Jesse Kuhnert" <[EMAIL PROTECTED]> wrote: > Yeah that is a lame p

Re: T4: Instance method dangers

2007-08-16 Thread Jesse Kuhnert
It's thread safe. A more elegant method may be to push the caching out to something more generic like your database or object caching strategies such as is used in things like hibernate. Some properties - such as those passed in as parameters to components - are sometimes cached by tapestry durin

T4: Instance method dangers

2007-08-16 Thread Bill Holloway
I want to "cache" a rountrip to a database in an instance method of a page class like this: public FlowDataPageContent getFlowDataPageContent() { if (_pageContent == null) { _pageContent = getContentService().getFlowDataPageContent(/* some data in an ASO */

T5 Validator

2007-08-16 Thread jglanz
Hey guys, I've been using T5 for a while and haven't needed to create my own validator until now and I am absolutely dumb founded for how to do itany insight would be great. many thx, Jon - To unsubscribe, e-mail: [EMAIL PRO

Re: FYI T5.0.5 Tree Component based on DHTMLgoodies.com drag 'n drop folder tree

2007-08-16 Thread 小司
yeah! I will give my attention to it. 2007/8/15, Erik Vullings <[EMAIL PROTECTED]>: > I've just created a simple T5 tree component: > http://wiki.apache.org/tapestry/Tapestry5TreeComponent based on > http://www.dhtmlgoodies.com/index.html?whichScript=drag-drop-folder-tree. > Comments are welcome.

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
For the SecurityContextHolder I went a little too fast... You don't need to use WebContextApplication : > configuration.add("acegiSecurityContextHolderAwareRequestFilter", > new HttpServletRequestFilterWrapper(new > SecurityContextHolderAwareRequestFilter()), > "a

Re: Class cast exception in ASTChain, Bug OGNL-11

2007-08-16 Thread Jesse Kuhnert
Well, you guys let me know what it is that you want I guess. Though I'm sure many will not care about the perf increase at all there are some tapestry users with very large public facing applications where things like this are a huge bump in response times - which goes in to all kinds of formulas

Re: [T4.1] Two beginner questions (Pageconfig / AJAX)

2007-08-16 Thread Jesse Kuhnert
For the directory stuff I think people like to plug in their own SpecificationResolver implementations (I think there are many in the wiki) - but I've been wanting to add at least two additional parameters to the .application file similar to the package classes for where to find stuff under WEB-INF

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Robin Helgelin
On 8/16/07, Kheldar666 <[EMAIL PROTECTED]> wrote: > > I may have two questions : > > - First is it normal that you choose not to use the > SecurityContextHolderAwareRequestFilter ? I used this : Is it needed? Can the filter be found without using spring beans? I want the library to be completly fr

Re: Jessionid and static resources

2007-08-16 Thread Jesse Kuhnert
Yeah that is a lame practice. It doesn't do it anymore. (or at least won't in the next 5-8 minutes) On 8/15/07, Kevin Menard <[EMAIL PROTECTED]> wrote: > Hi, > > About a year back I asked about jsessionid being added to static resources > and how this was messing with us serving those resources

Re: [Tapestry Beginner] Validation is ignored

2007-08-16 Thread ipoese
Marcus Schulte wrote: > > I can't really see your mistake from the code, but anyway, here are > two things that could be wrong: > > 1. for client-side validation to work, you need to set the > clienValidationEnabled parameter of your form to true > > 2. be sure to bind the form's delegate-para

Re: T-4.1.2 css overrides broken

2007-08-16 Thread Ken nashua
This error persists... If anyone can elaborate on the impact to CSS and workaround that would be terrific. I am currently running 4.1.3-SNAPSHOT 2.7.1-SNAPSHOT -Dorg.apache.tapestry.disable-caching=true

Re: tapestry + ognl bootstrap issue - app broken

2007-08-16 Thread Ken nashua
After cleaning out my repo, and performing rebuild(s) several times... this error has subsided. Never mind... Best regards Ken in nashua _ Now you can see trouble…before he arrives http://newlivehotmail.com/?ocid=TXT_TAGHM_migrat

Re: [Tapestry Beginner] Validation is ignored

2007-08-16 Thread Marcus Schulte
I can't really see your mistake from the code, but anyway, here are two things that could be wrong: 1. for client-side validation to work, you need to set the clienValidationEnabled parameter of your form to true 2. be sure to bind the form's delegate-parameter to your delegate. 3. if you want s

tapestry + ognl bootstrap issue - app broken

2007-08-16 Thread Ken nashua
Same stack trace occurs on 4.1.3-SNAPSHOT 2.7.1-SNAPSHOT My Home.html only renders a stack trace.. Any ideas? Best regards Ken in nashua ---> STACK TRACE FOLLOWS: HTTP ERROR: 500 ognl.OgnlContext.getLocalReferences()Ljava/util/Map; RequestURI=/app Caused by:

Re: T-4.1.2 css overrides broken

2007-08-16 Thread Ken nashua
What I meant by "header override failed to work" ... The original layout.css image appears in Mozilla. IE nothing appears. So my header override is as if it does not exist. Could there be a reserved work collision with header? I did try headermain but that did nothing. I also cleared mozill

tapestry + ognl bootstrap issue - app broken

2007-08-16 Thread Ken nashua
I changed my poms to 4.1.3-SNAPSHOT 2.7.1-20070723.185910-9 My Home.html only renders a stack trace.. Any ideas? Best regards Ken in nashua ---> STACK TRACE FOLLOWS: HTTP ERROR: 500 ognl.OgnlContext.getLocalReferences()Ljava/util/Map; RequestURI=/app Caused b

T-4.1.2 css overrides broken

2007-08-16 Thread Ken nashua
Folks, Something changed with regard to CSS. I was overriding fine in T-4.0. Now it is broken. Here is whats in my layout.css div#header { color: black; clear: both; padding: 0; height: 15%; width: 100%; background: #fff url( images/trails-header

[T5] Ajax tests

2007-08-16 Thread David Avenante
Hi, I play with T5 and want to explore Ajax capacity. I need to know which service is responsible on the instantiation of a component. Is it possible to have a resume (classes implied) of how Tapestry process component instantiation. Thanks for any input ;)

Re: T5: static page variables in templates

2007-08-16 Thread Chris Lewis
Exactly. getters/setters are fluff for this, and I prefer the semantics of static finals as opposed to storing the possible values in the message catalog. In reality it seems like the radio type components could have a bit more cohesion - let me elaborate. If you are using radio buttons, then yo

Re: RE : Re: T5: date picker component

2007-08-16 Thread Ted Steen
I think it would be nice to have a DateFormat parameter on the component which can default to the current locale. I will have a look at it.. 2007/8/16, Julien HENRY <[EMAIL PROTECTED]>: > Hi, > > As I said on google bug tracker, a good idea would be > to put the date format in a localizable proper

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
Well... I made this, and now I can Login / Logout and use isUserInRole() and getUserPrincipal() methods > public static void contributeHttpServletRequestHandler( > OrderedConfiguration configuration, > WebApplicationContext webApplicationContext, > @Injec

Re: T5: static page variables in templates

2007-08-16 Thread Daniel Jue
I think he wants to bypass the need for a getter and try to directly retrieve something like a static final, which should have the public visibility needed. I just assumed prop: would work since you specify the exact name, instead of having "get" appended. I guess ognl's special syntax for gettin

Re: T5: static page variables in templates

2007-08-16 Thread Chris Lewis
Of course not - its a public static member. I realize Tap is trying to call this as part of the expansion, but what I'm asking is if there is a way to instruct Tap 5 (as there is Tap 4) to look for a static field. Josh Canfield wrote: I can't test this right now, but my first guess would be th

Re: T5: static page variables in templates

2007-08-16 Thread Nick Westgate (Work)
You can use "agentLister" if you add a "getAgentLister" accessor to your class. Prop is the default binding for value and expansions - "prop:" is not needed, and you can use expansions in parameters. Or use message:agentLister with a properties file. Cheers, Nick. Chris Lewis-5 wrote: > > Bu

Re: T5: static page variables in templates

2007-08-16 Thread Josh Canfield
I can't test this right now, but my first guess would be that you haven't implemented a getter method for the value. do you have a "public String getAGENT_LISTER()" method? On 8/16/07, Chris Lewis <[EMAIL PROTECTED]> wrote: > > But alas, you cannot. If I remember correctly, you're not allowed to

Re: T5 developing with WTP and TOMCAT

2007-08-16 Thread Thiago H de Paula Figueiredo
On Thu, 16 Aug 2007 12:54:31 -0300, Denny <[EMAIL PROTECTED]> wrote: Ok, now, I am using jettylauncher eclipse plugin to develop T5. I hope T5 can fix the problem about working with tomcat. There are many people using tomcat for develop and product. It's a Tomcat issue, not a Tapestry one. H

Re: T5: static page variables in templates

2007-08-16 Thread Chris Lewis
But alas, you cannot. If I remember correctly, you're not allowed to use expansions in parameters (${}). This isn't needed for value as its expanded anyway, but the bottom line is T5 throws an exception if you do something like this: or or Even if the page class has this field. It throws a

Re: T5 developing with WTP and TOMCAT

2007-08-16 Thread Daniel Jue
I use Tomcat 5.5.23 and WTP for development. My context probably reloads 200-400 times a day. Only when I am making changes to web.xml/context.xml, log4j.properties, hibernate xmls do I need to stop and then start the server again. I have never run into a memory issue, although if I "run module

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
I may have two questions : - First is it normal that you choose not to use the SecurityContextHolderAwareRequestFilter ? I used this : > public static void contributeHttpServletRequestHandler( > OrderedConfiguration configuration, > WebApplicationContext webApplicat

Re: T5: static page variables in templates

2007-08-16 Thread Daniel Jue
T5 uses Prop, so you should be able to specify it using ${prop:STATIC_MEMBER} On 8/16/07, Chris Lewis <[EMAIL PROTECTED]> wrote: > Hello, > > I'm implementing a form with some radio buttons. My understanding so far > is that the radio buttons provide a value, and that value is stored in > the cont

Re: T5 developing with WTP and TOMCAT

2007-08-16 Thread Denny
Ok, now, I am using jettylauncher eclipse plugin to develop T5. I hope T5 can fix the problem about working with tomcat. There are many people using tomcat for develop and product. On 8/15/07, Denny deng <[EMAIL PROTECTED]> wrote: > > > Hi, > > I develop with WTP and TOMCAT. If I set the tomcat do

T5: static page variables in templates

2007-08-16 Thread Chris Lewis
Hello, I'm implementing a form with some radio buttons. My understanding so far is that the radio buttons provide a value, and that value is stored in the containing RadioGroup's value parameter when the form is submitted. The form has only 2 radio buttons, each representing a string value. T

Re: Class cast exception in ASTChain, Bug OGNL-11

2007-08-16 Thread Andrus Adamchik
I am an open source developer myself and I *love* when the users submit patches that work or at least create intelligent Jira's :-) But that's not the point here. Even though there is an OGNL-11 bug report, this is not a bug. This is a new "feature" of Tapestry 4.1. No matter was else was said i

Re: T5: radio, label

2007-08-16 Thread Nick Westgate (Work)
You're welcome. It wasn't a known issue before you found it. I just debugged and logged it. The benefits of using the label component are: - DRY: a component declares its label once, and the Label refers to it - validation decoration of the resulting label Cheers, Nick. Chris Lewis-5 wrote: >

RE : Re: T5: date picker component

2007-08-16 Thread Julien HENRY
Hi, As I said on google bug tracker, a good idea would be to put the date format in a localizable property file. Typically, date format will depend on the user locale. But I don't know how to do this... sorry. Julien --- Ted Steen <[EMAIL PROTECTED]> a écrit : > This is something we will work

Re: T5: date picker component

2007-08-16 Thread Ted Steen
This is something we will work on for the next "release" of this component. All ideas on how to dynamically generate the java script "ifFormat" for this (depending on the SimpleDateFormat on the server side) are welcome. oh! and also how to get the DateTranslator in the module to parse it correctly

Re: T5: date picker component

2007-08-16 Thread Marcelo lotif
i was looking for it a few days ago... just one question: it will have an "easy to set" translator in the future? if i want to set my own format i'll have to recompile the module ... Thanks! 2007/8/13, Ted Steen <[EMAIL PROTECTED]>: > > Hi! > A new version of our date picker component is release

Re: [NOOB] Getting the Locale without injection

2007-08-16 Thread Marcelo C. de Freitas
Sorry about my confusion regarding final classes. I meant a object from a class that's not abstract. The thing is I'm not subclassing neither *Component nor *Page and I don't see this class working as or being constructed by a Hivemind service. I'm working with 4.1. 2007/8/16, Lutz Hühnken <[

Re: T5: radio, label

2007-08-16 Thread Chris Lewis
Nick, thanks for pointing that out and I'm glad to see its a known issue (hopefully that means a fix is coming). Thanks for your solution, but I'd rather just use the raw label tag. I'm not entirely sure what the benefit of using the the label component is to be honest, but it was one of those

Re: T5: a layout with varying style sheets

2007-08-16 Thread Chris Lewis
I agree that under normal circumstances the layout component should override styles in the embedded component, except in the cases (such as this example) where the embedded component represents a page. We /want/ the page to be able to have the ability to override styles in the "general" contain

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
Alleluia -- View this message in context: http://www.nabble.com/-Announce--Acegi-Security-library-for-Tapestry-5-tf4279236.html#a12180260 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe

[Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Robin Helgelin
Hi, Thanks to Ivan Dubrov I've been able to put together an Acegi Security library for T5. My idea was a library similar to James Carman's tapestry-acegi for T4. Basic usage is that it works with the @Secured annotation. Currently only class level, but page listeners is planned. There are also a

T5: Partial Page Rendering

2007-08-16 Thread bayk
Hi I tried to perform a partial page refresh with tapestry5 and ajax... I used the following code piece Kris Marinkovic postet on the mailing-list a month ago... Everything works fine, except if I try to render a component, which is not surrounded by a form-tag. Then it says: org.apache.tapestry

Re: how to clear the page cach

2007-08-16 Thread Michael Wölm
I think it's that: http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html#configuration.search-path at: org.apache.tapestry.disable-caching (set in .application) robinson wang schrieb: when i click a link ,if the session is invalid ,it will return to the page of login,but when i log

[T4.1] Two beginner questions (Pageconfig / AJAX)

2007-08-16 Thread Michael Wölm
Hi guys, after a simple basic test application, I decided to use Tapestry now for a real-used office application. I have one small and one general bigger question, hoping you can help me. The first question is about configurating directory informations for pages. In the .application-file I ca

Re: t4.1.2 contrib tree - how to add checkboxes

2007-08-16 Thread mn
ok, i've just implemented my own INodeRenderFactory and it works :) mn wrote: > > Hi all! > > What is the simplest way to add checboxes to contrib:Tree component? > > mn > -- View this message in context: http://www.nabble.com/t4.1.2-contrib-tree---how-to-add-checkboxes-tf4276007.html#a1

[Tapestry Beginner] Validation is ignored

2007-08-16 Thread ipoese
Hi Everyone, i've been teaching myself tapestry for some time now, and everytime i think i am finally getting a grip on it something new comes up. OK, here's the deal... (i'll be using snippets since you guys probably don't want a million lines of code... all code i post compiles in it's contex

Re: T5: radio, label

2007-08-16 Thread Nick Westgate
The problem is actually in the Radio component. Copy its source to make your own component and apply these changes: https://issues.apache.org/jira/browse/TAPESTRY-1709 Cheers, Nick. Chris Lewis wrote: tamseo, Let me amend my last message. I can use in the form as long as its not a child of

Re: Class cast exception in ASTChain, Bug OGNL-11

2007-08-16 Thread Kalle Korhonen
Exclude the version that comes with 4.1.2 and fall back to 2.6.7. But, I think it's the responsibility of us, the users, to iron out the bugs in the expressionCompiler. I mean it's the least we can do. The benefits far outweigh the current issues from my perspective and Jesse's more than willing to

Re: Class cast exception in ASTChain, Bug OGNL-11

2007-08-16 Thread Damien Uern
Kevin Menard wrote: On 8/15/07 10:50 AM, in article [EMAIL PROTECTED], "Andrus Adamchik" <[EMAIL PROTECTED]> wrote: Thinking about it some more This is not the end of the world for our application. We can either skip the upgrade or indeed force an interface on the objects involved, or avo

Re: [NOOB] Getting the Locale without injection

2007-08-16 Thread Lutz Hühnken
Hi, which Tapestry version are you referring to? And what exactly do you mean with "in a final object" - are you talking about a component? In what way is the "final" part relevant? In Tapestry 4.0.x, the BasePage provides getLocale() and getMessages() methods. But I guess that's not what you are