Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Konstantin Ignatyev
Hibernate is really trying to embrace annotations but at this time Annotations are not working quite correct, they feel buggy. I often see messages in the Hibernate forum from people encountering annotation misbehavior in places where hbm mapping works just fine. The bo

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Derick Fernando
Raul Raja Martinez wrote: This looks very interesting. The Trails project uses similar technologies but no plugin and is more Model oriented. My doubts are: Why using hbm.xml files instead of annotations It looks like the hibernate community is moving toward annotations? Is the generation o

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Raul Raja Martinez
This looks very interesting. The Trails project uses similar technologies but no plugin and is more Model oriented. My doubts are: Why using hbm.xml files instead of annotations It looks like the hibernate community is moving toward annotations? Is the generation of persistent objects based

Re: Authentication check interceptor

2006-03-23 Thread Jesse Kuhnert
I implemented almost the same exact interceptor for security purposes myself. If the goal is to get away from extending classes, which it is, then I would say interceptors sound like a better choice. I prefer composition over inheritance. On 3/23/06, Mike Snare <[EMAIL PROTECTED]> wrote: > > > >I

Re: [NEWB] Use of the If component

2006-03-23 Thread Mike Snare
you don't need that second ognl: binding prefix. The entire statement: payment.claimStatus=='ANNIE' && payment.claimDecision=='CHIHIRO' is ognl, so that's all you need. You _could_ nest the ifs but I think this is clearer. -Mike On 3/23/06, Annie Lim <[EMAIL PROTECTED]> wrote: > Hello, > > H

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
> >I can tell tapestry that the default base page is this page, but then > >pages that don't otherwise need a page class at all AND don't need the > >security check have to create a page class that extends BasePage just > >to avoid the security check. Seem pointless. > > > > > OK, I think I see yo

[NEWB] Use of the If component

2006-03-23 Thread Annie Lim
Hello, How can I evaluate multiple statements within the condition statement of the If component. Eg. Or would I need to use nested If components ?? Any help would be deeply appreciated. Thanks, Annie --

Re: Authentication check interceptor

2006-03-23 Thread Ryan Holmes
Mike Snare wrote: I originally did use a base page, but decided against it for a number of reasons. The first is that nearly all pages in the app are protected (it's a management app), so nearly every page would need to extend this base class just to get this otherwise free feature. I don't re

Re: Using the validators pattern with complex pattern...

2006-03-23 Thread ZedroS Schwart
Hi Ryan Thanks a lot for your answer. The line ?=.*[a-z])(?=.*[A-Z])(?=.*[0 > > -9])\\w+$ didn't run indeed. It's quite late for me tonight, so I won't test the bean yet. However I'm quite interested : I haven't seen this possibility before and so it's interesting. Currently I use a kind of "

sequence of pageValide and pageAttached

2006-03-23 Thread Henri Dupre
I'm still in the process of converting our tapestry 3 app to T4... I have a page in the order process that asks for the customer address. This page requires the customer to be authenticated so I can load info such as country and default delivery address. For the authentication, I've been using Page

RE: Dynamically creating components at runtime

2006-03-23 Thread Mark Stang
Jesse, The dependency on 1.5 is only there because we are using 1.5 ;-). Actually, I think it can be implented by returning an Object instead of a template. And instead of passing in the "Class baseClass", it would change to passing in a "string" value of the classname and then create it that

Re: Dynamically creating components at runtime

2006-03-23 Thread Mike . Barber
JDK 1.5 will be an issue for many, for sure. I like the examplehoweverHoward Ship mentioned once that he planned to hide all code that facilitated just such an example (correct me if I'm wrong), thus nixing any non-Block-oriented dynamic component creation. If that is indeed true, then

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
I originally did use a base page, but decided against it for a number of reasons. The first is that nearly all pages in the app are protected (it's a management app), so nearly every page would need to extend this base class just to get this otherwise free feature. I don't really like that. I ca

Re: Tapestry pre-compiler

2006-03-23 Thread Mike Snare
Kevin's right. I certainly would not want to pre-populate the pool, just pre-create the class files for loading when a particular page is needed. I'm sure it is a "hard" problem, but it certainly can't be impossible. If it were easy, what fun would it be? -Mike

Re: Tapestry pre-compiler

2006-03-23 Thread Kevin Menard
I think he means not enhancing the classes at runtime, but rather doing it in advance. The topic has come up before in the past and I think was basically left as a "hard" problem. -- Kevin On 3/23/06 3:06 PM, "Ryan Holmes" <[EMAIL PROTECTED]> wrote: > Are you talking about pre-populating the

Re: Dynamically creating components at runtime

2006-03-23 Thread Jesse Kuhnert
The only quick obvious thought is that if this is for 3.x you'll probably find a lot of tapestry users unable to move to jdk 1.5 just yet. On 3/23/06, Mark Stang <[EMAIL PROTECTED]> wrote: > > All, > This is a 3.x mechanism for dynamically creating components at runtime. I > am posting it for tw

Re: Tapestry pre-compiler

2006-03-23 Thread Ryan Holmes
Are you talking about pre-populating the page pool instead of doing it on-the-fly, as pages are requested? -Ryan Mike Snare wrote: Are there any plans (or a project) for a tapestry pre-compiler? Some libraries for JSP can precompile the JSPs for quick loading at runtime, and it seems like th

Dynamically creating components at runtime

2006-03-23 Thread Mark Stang
All, This is a 3.x mechanism for dynamically creating components at runtime. I am posting it for two reasons, one is to provide a mechanism for other developers. The second is so that people can review the implementation and point out any "concerns". @SuppressWarnings("unchecked") private

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Derick Fernando
Hello, I copied this from the nightly builds, I'll try to get this resolved shortly. Thanks for the feedback. Robert Hannebauer wrote: Hi, the presentation looks really great. I wanted to try the modeler, but it seems there are some missing classes/packages. e.x. com.thelabllc.cfmodel.wizard

Re: [ANN] Named external page parameters

2006-03-23 Thread Ron Piterman
Andreas Andreou wrote: This library has got an awesome name! it should have been External-Friend, and was shortened to exgirlfriend... Ron Piterman wrote: Just got the first version of a small library which takes care of named external page parameters. Since I am going crazy with sourcef

Re: Authentication check interceptor

2006-03-23 Thread Ryan Holmes
On the contrary, there's no code duplication involved - the logic is defined only once in a base page. If the only thing your pages have in common is the need to perform security checks, then that could be the sole purpose of the base page (and only protected pages need to extend it). Every pro

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Robert Hannebauer
Hi, the presentation looks really great. I wanted to try the modeler, but it seems there are some missing classes/packages. e.x. com.thelabllc.cfmodel.wizards.NewProjectCreationWizard. Robert Jesse Kuhnert wrote: > This sounds great! Good work guys :) I prefer using jdk 5 and hibernate > exclu

Re: [ANN] Named external page parameters

2006-03-23 Thread Andreas Andreou
This library has got an awesome name! Ron Piterman wrote: > Just got the first version of a small library which takes care of > named external page parameters. > > Since I am going crazy with sourceforge and I hate slow motion working > I host it very simply on my web site. > > Hope you find it u

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Jesse Kuhnert
This sounds great! Good work guys :) I prefer using jdk 5 and hibernate exclusively and might actually be able to use something like this. On 3/23/06, Derick Fernando <[EMAIL PROTECTED]> wrote: > > Steven Bell wrote: > > This looks interesting at first glance (a little soon to give a real > opinio

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Derick Fernando
Steven Bell wrote: This looks interesting at first glance (a little soon to give a real opinion about it). A couple of questions that pop to mind right off the bat: Do I have to be using JDK 5.0? Do I have to be using Hibernate? Yes, currently you have to use both JDK 5.0 and Hibernate. Hibe

[ANN] Named external page parameters

2006-03-23 Thread Ron Piterman
Just got the first version of a small library which takes care of named external page parameters. Since I am going crazy with sourceforge and I hate slow motion working I host it very simply on my web site. Hope you find it usefull, and will be glad for any kind of ideas how to make it bette

Re: ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Steven Bell
This looks interesting at first glance (a little soon to give a real opinion about it). A couple of questions that pop to mind right off the bat: Do I have to be using JDK 5.0? Do I have to be using Hibernate? I'm sure I'll come up with more questions if I get the time to really dive into this,

ANNOUNCE: Cognition Framework - Alpha Release

2006-03-23 Thread Steve Motola
We are proud to announce the Alpha release of the Cognition Framework, an open source web application framework that uses the Tapestry / Hibernate / Spring application stack. http://www.thelabllc.com Accompanying it is an Eclipse Plug-in called the Cognition Modeler, a GUI tool for working with

Re: injecting the ClassResolver

2006-03-23 Thread Chris Norris
Andreas pointed out on the tacos list that I could do this too: In a .script file. I'm going to try that. On 3/23/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > A component can have things injected into it like anything else. object="" property="" /> > > On 3/23/06, Chris Norris <[EMAIL PR

Re: promoting Tapestry

2006-03-23 Thread Mike . Barber
Brian, That would be great. I'd love to see a list of upcoming fixes/release information. We're pretty locked into Tapestry 3 for a while, so any updates are greatly appreciated. Also, thanks for your great response to my diatribe. I see a lot of great potential in Tapestry, but I'm concern

Re: promoting Tapestry

2006-03-23 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I don't know a definitive time frame but it doesn't look like it should be too long (and I know - words like "too long" are relative). There are quite a few fixes in the 3.X thread and more issues addressed (with patches to code, documentation, etc) th

Re: injecting the ClassResolver

2006-03-23 Thread Jesse Kuhnert
A component can have things injected into it like anything else. On 3/23/06, Chris Norris <[EMAIL PROTECTED]> wrote: > > I've been using the IEngine's getClassResolver() to get .js files that are > inside .jar files on the classpath. I'm doing this in renderComponent > methods so that I can add

Re: promoting Tapestry

2006-03-23 Thread Mike . Barber
Any information on an upcoming 3.x release? Date, fixes, etc.? This is the first I've heard of it. Nick Westgate <[EMAIL PROTECTED]> 03/22/2006 07:01 PM Please respond to "Tapestry users" To Tapestry users cc Subject Re: promoting Tapestry >>Bug Fixes for 3.x > > *cough* okay.

Tacos - djConfig.searchIds

2006-03-23 Thread Jason Suplizio
I'm getting a JavaScript error when using the latest Tacos release's AjaxForm and AjaxSubmit that "djConfig.searchIds has no properties" dojo.js line 557 if((djConfig.parseWidgets)||(djConfig.searchIds.length>0)){ I'd like to eliminate this error...what's causing it? Thanks! Jason

Re: promoting Tapestry

2006-03-23 Thread Mike . Barber
It is a component that is dynamically inserted into a page at runtime, rather than explicitly defined prior to runtime (e.g., components in .page files). Example: you have an order form that has a pre-defined set of fields (name, address, etc.). Those would be your static components. But, pe

Invalidating the users session with Acegi

2006-03-23 Thread Ray Fortycoats
Hi there. Just wondering how the Acegi check: getWebRequest().getSession(true).getAttribute(ACEGI_SECURITY_LAST_EXCEPTION_KEY) is now handled with Tapestry 4. When I try invalidating the session on logout and doing this on the Acegi login page, it tells me that the session has already b

injecting the ClassResolver

2006-03-23 Thread Chris Norris
I've been using the IEngine's getClassResolver() to get .js files that are inside .jar files on the classpath. I'm doing this in renderComponent methods so that I can add them as external scripts via PageRenderSupport (I ripped this idea off from tacos' AjaxFormSupportImpl class). What's the best

Re: Creating a 'dynamic' display of tabular information using Tapestry

2006-03-23 Thread Mike Snare
I did this same thing in a demo a while back. The code is gone, but it worked like this: First, use contrib:Table. For the columns attribute, call a method on the page/component containing the table that returns an appropriate string (as defined in the TableView components documentation) for the

Creating a 'dynamic' display of tabular information using Tapestry

2006-03-23 Thread Alan Chaney
Hello I am developing a web application which has a requirement that the layout of information displayed to the user can be changed by (the) user(s). I've looked at the Tapestry docs and read Kent Tong's excellent book from cover to cover. It is a key requirement that a user (with appropria

Re: promoting Tapestry

2006-03-23 Thread Dan Adams
8 months ago when I came onto this job we used either: - a home-grown struts - cold-fusion - asp.net We just launched a tapestry/spring/hibernate app last month, are about to launch another very high profile one this month, and have a few more planned. They had never even heard of tapestry when I

Re: locale sensitive number translator

2006-03-23 Thread Sam Gendler
I'm thinking this is a bug in Tapestry - If I look at the Translator interface, the format() metho receives a locale which allows it to do locale specific formatting, but the parse() method does not. Fortunately, the locale is available via the somewhat convoluted field.getForm().getPage().getLo

Re: Tapestry future : Ajax inside ?

2006-03-23 Thread Jesse Kuhnert
Umm...I doubt I personally will be embracing any kabuki proposals, but others are freee to do what they like of course :) I'm not sure when it will be done, maybe another month or two at the most. Also not sure what the migration path will be for tacos users, but since I'm a tacos user myself I'm

Re: Tapestry future : Ajax inside ?

2006-03-23 Thread Jorge Quiroga
Hi I've seen that Ajax movement is gaining force very fast and Apache has a proposal project named kabuki that is based on AjaxKT, can tapestry project embrace and support from tapestry point of view this proposal project?. Another Ajax frameworks to be considered I mean are Echo2 that is Op

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
This has been entered as TAPESTRY-892 in JIRA https://issues.apache.org/jira/browse/TAPESTRY-892 Thanks again, -Mike On 3/23/06, Mike Snare <[EMAIL PROTECTED]> wrote: > will do... > > On 3/23/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Yeah that would be great. If it allows it can you be su

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
will do... On 3/23/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > Yeah that would be great. If it allows it can you be sure it's set to tap4 > and assigned to me? > > On 3/23/06, Mike Snare <[EMAIL PROTECTED]> wrote: > > > > Fantastic. Would you like me to enter an enhancement request so it > > c

Re: Authentication check interceptor

2006-03-23 Thread Jesse Kuhnert
Yeah that would be great. If it allows it can you be sure it's set to tap4 and assigned to me? On 3/23/06, Mike Snare <[EMAIL PROTECTED]> wrote: > > Fantastic. Would you like me to enter an enhancement request so it > can be tracked? > > -Mike > > On 3/23/06, Jesse Kuhnert <[EMAIL PROTECTED]> wro

Tapestry pre-compiler

2006-03-23 Thread Mike Snare
Are there any plans (or a project) for a tapestry pre-compiler? Some libraries for JSP can precompile the JSPs for quick loading at runtime, and it seems like this would be useful for pre-compiling enhanced pages and components and writing out the class files. Any work on this anywhere? If not,

RE: Tried and Tested App Servers

2006-03-23 Thread James Carman
Sure is: HIVEMIND-166 -Original Message- From: Bryan Liles [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 7:13 AM To: Tapestry users Subject: Re: Tried and Tested App Servers Is this a bug that is already logged in JIRA? I would like to track it due to the fact that half of

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
Fantastic. Would you like me to enter an enhancement request so it can be tracked? -Mike On 3/23/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > No nothing like that. The trigger is something that happens anyways, ie the > IDirect interface. > > This would just provide a method hook that gurarant

Re: Authentication check interceptor

2006-03-23 Thread Jesse Kuhnert
No nothing like that. The trigger is something that happens anyways, ie the IDirect interface. This would just provide a method hook that gurarantees the page you are after is all loaded up, and that no direct methods have been called on it yet. I'll try and do something. On 3/23/06, Mike Snare <

Re: How to use Java 1.5 enum type in HTML templates

2006-03-23 Thread Rudolf Baloun
My idea (without testing it): condition='ognl:getPage().isHeadingEquals(Headings.value1)' ... should look like: condition="ognl:headingEquals(@[EMAIL PROTECTED])" ... You will find the answer here: http://www.ognl.org/ Stephane Decleire schrieb: Hi all, I'm stuck with the proble

RE: Tapestry hardware recommendations

2006-03-23 Thread Detlef Schulze
First of all let me state that this is not really a tapestry question but more of a general J2EE app server thing. Anyway, it is not really possible to give some real numbers because the whole performance and scalability behaviour is very strongly related to the things that your code does and the

How to use Java 1.5 enum type in HTML templates

2006-03-23 Thread Stephane Decleire
Hi all, I'm stuck with the problem below : I've created an enum in a separate class (Headings.java) in my project public enum Headings { value1, value2, value3 } And i would like to use this values in an ognl expression in one of my html templates ... condition='ognl:getPage().isHeadingEq

Re: Tried and Tested App Servers

2006-03-23 Thread Bryan Liles
Is this a bug that is already logged in JIRA? I would like to track it due to the fact that half of my application servers are Oracle Application Server 10.1.2.x.x. On Thu, 2006-03-23 at 06:49 +0100, Jan Vissers wrote: > Tapestry 4.0 together with Hivemind 1.1(.1) works on Oracle Application > S

Tapestry hardware recommendations

2006-03-23 Thread me
I'm planning on going production in 2-3 months and I'm wondering what kind of hardware and configurations you guys recommend for live tapestry applications. I would appreciate any recommendations, options and ( of course ! ) war stories. I hope that the upcoming weekend would allow for extended

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
That certainly would work, but it seems to go against good practice on a number of levels, most importantly is that the same code (am i logged in ? continue : go to login with a possible callback) gets duplicated in every page. I'd hate to force every page to do this and I definitely don't want to

Re: Authentication check interceptor

2006-03-23 Thread Mike Snare
That would rock. As to the triggerDirect, do you mean I would be able to actually take a page that meets my requirements and trigger a direct to a method (effectively calling the method) without having to render the page? That would work ok, i think. Thanks, -Mike On 3/22/06, Jesse Kuhnert <[EM

locale sensitive number translator

2006-03-23 Thread Sam Gendler
I am using a number translator to format and parse the number that gets written to a text field. When I browse the page from a russian locale, decimal numbers get written as 0,1234 instead of 0.1234, which is correct. However, when I submit a value with that same format, to the very same number t

Suggestions for reducing Tapestry 4 startup time

2006-03-23 Thread Nima Boustanian
Hey all Do you have any pointers on how we can reduce the startup time for our Tapestry 4 webapp/pages? We're running it along with Hibernate and Spring and have the Tomcat caching turned off, but still get a ridiculously long webapp startup time (approximately 5 secs). This isn't the only issu

Re: Global bean configuration

2006-03-23 Thread Ron Piterman
coming somehow late into the discussion: I implemented a threaded state model and defined a validation delegate ASO with this model - it works like a charm... + an interface with the accessor to the service and the inject annotation, and all I have to do is add implements InjValidationDeleg

Re: Using the validators pattern with complex pattern...

2006-03-23 Thread Ryan Holmes
This pattern should duplicate your current checks (i.e. password must consist of only "word" characters, must contain at least one lowercase, one uppercase and one digit): (?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])\\w+$ If the characters in this pattern break the inline validator parsing (not sure if

Re: processing form results from table

2006-03-23 Thread Sam Gendler
Bumping this one back up. Surely someone knows how to get the values that are submitted in text fields that are rendered by the table component. I cannot figure out how to update the object via the PrimaryKeyConverter. --sam On 3/22/06, Sam Gendler <[EMAIL PROTECTED]> wrote: > I have a table wi

Re: Authentication check interceptor

2006-03-23 Thread Ryan Holmes
It might be worth the effort to refactor your code so that security checks are performed in the pageValidate() method. This is a pretty standard approach and benefits in part from the fact that the target page is already loaded when creating callbacks, etc. There's a simple example in the VLib

Re: AW: tapestry hivemind oc4j

2006-03-23 Thread Martijn Hinten
Exactly. Thanks Jan. Jan Vissers wrote: In package org.apache.hivemind.util.URLResource (Hivemind 1.1.1) change existing newResource method to: protected Resource newResource( String path ) { if(path.startsWith("jndi:")) { path = "jar:file:///" + path.substring(5); i