T5: "full" Acegi integration

2007-05-16 Thread Robin Ericsson
Hi, I saw the previous post about an integration of Acegi, however, what I'm looking for is a full integration much like "tapestry-acegi", most important that the @Secured annotation works. Is there any work in this area or should I go for it myself? -- regards, Robin --

In scriptDTD

2007-05-16 Thread Kushan Jayathilake
Hi Im sorry previous mail contains wrong information. Please refer this one I have an abstract method calls Public abstract List getMapPlotPoints(); MapPlotPoint class contains getters and setters of following objects Private Double lat; Private Double longi; Private String caption; Pri

in scriptDTD

2007-05-16 Thread Kushan Jayathilake
Hi all i have an abstract method calls public abstract List getMapPlotPoints(); MapPlotPoint class contains getters and setters of following objects private Double lat; private Double longi; private String caption; private ILink link; I added that to Map like this Map symbols = new HashM

Re: 5.0.5-SNAPSHOTS

2007-05-16 Thread Howard Lewis Ship
Please follow the directions on the tapestry-spring home page: http://tapestry.apache.org/tapestry5/tapestry-spring/ It has changed significantly from 5.0.3 ... and simpler. Spring beans now look just like Tapestry IoC services, can be autowires into services, etc. @SpringBean isn't used any mor

Re: Help with a login form

2007-05-16 Thread Gabriel Lozano
Hi Marcus, Thanks a lot for your answer. Finally last night I found the problem. As I told you, I use a Border component. For declaring the name space in the inside page ( i.e. the one that the Border contains ) I was using again an html tag and it made the page not to work properly. Now, I put t

Re: 5.0.5-SNAPSHOTS

2007-05-16 Thread Jun Tsai
2007/5/17, Howard Lewis Ship <[EMAIL PROTECTED]>: I've been making a number of important T5 bug fixes; I've just uploaded the latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ Feedback is always welcome! How to used in pom.xml? I add [code] org.apache.tapestry

Re: Tapestry 5 and Acegi

2007-05-16 Thread petros
Hi Adnrea, I'll go through the links you provided and I will spend some time improving my code before updating the wiki. At the moment I feel that my code is more of a hack than a nice solution. Petros Andreas Andreou-3 wrote: > > Petros, hi. > It would be nice to have this in the wiki, > h

Re: EventListener validateForm=false still submits form

2007-05-16 Thread Jesse Kuhnert
Your code looks like mine a couple of years ago only minus any ajax support. (sounds hospital / billing ish related ) I agree about the server side validation being annoying and am in the process of fixing it as it has just now annoyed me. The not updating your form async triggers I'm not as su

Re: 5.0.5-SNAPSHOTS

2007-05-16 Thread petros
I replaced my 5.0.4 jars with 5.0.5 and the following code doesn't compile anymore @Inject @SpringBean("userManager") Has this changed from 5.0.4 ? Howard Lewis Ship wrote: > > Sorry, yes. That's a change in 5.0.4, you must have been using 5.0.3. > > Injection got a LOT smar

Re: Tapestry 5 and Acegi

2007-05-16 Thread Andreas Andreou
Petros, hi. It would be nice to have this in the wiki, http://wiki.apache.org/tapestry/FrontPage BTW, there's already some T4.x related acegi pages there (http://wiki.apache.org/tapestry/AcegiSpringJava5?highlight=%28acegi%29) On 5/17/07, petros <[EMAIL PROTECTED]> wrote: Hi I integrated T5

Tapestry 5 and Acegi

2007-05-16 Thread petros
Hi I integrated T5.0.4 with Acegi and I wanted to share my code with this forum. The solution may not be the best approach but it could save you sometime for now. I am only providing the security related code. Login.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Re: 5.0.5-SNAPSHOTS

2007-05-16 Thread Bill Holloway
No problem. I've got it all going. Nice to have a parsimonious way to inject from the web context directory. I can pile all my images and css up in there for static pages outside Tapestry. Bill On 5/16/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Sorry, yes. That's a change in 5.0.4, yo

Re: T5: ContextForPageTester error

2007-05-16 Thread Howard Lewis Ship
Wow! Not only am I not sure what's going on here, but I know a lot of this changes in 5.0.5. I'm reworking PageTester right now. On 5/16/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: Hello all, I'm trying to get a simple PageTester working using JUnit: public class TestStoreHierarchy {

Re: 5.0.5-SNAPSHOTS

2007-05-16 Thread Howard Lewis Ship
Sorry, yes. That's a change in 5.0.4, you must have been using 5.0.3. Injection got a LOT smarter, and a bit different, between 5.0.3 and 5.0.4. Lots of influence from Guice; basically, for service injections, we make injecting by type the standard, and injecting by name a rarely used option. Fu

EventListener validateForm=false still submits form

2007-05-16 Thread Julian Wood
I have a form: value="{'weekScheduler_billable_row'}"/> And I have an eventlistener on billableItem: @EventListener(elements = "billableItem", events = "onchange", submitForm="addBillable

Re: Using registry in a factory

2007-05-16 Thread Howard Lewis Ship
You can't get the Registry, but you can get an ObjectLocator, which includes all the key methods of Registry. This can be injected into your ServiceFactory implementation. On 5/16/07, Mark Addleman <[EMAIL PROTECTED]> wrote: I'd like to use tapestry-ioc outside the context of a web app but I'm

Re: 4.1 and "do it once" components

2007-05-16 Thread Geoff Callender
Very nice. I'll try it. Thanks, Geoff On 16/05/2007, at 10:55 PM, [EMAIL PROTECTED] wrote: I just did somthing similar for my "DirtyFormWarning" component. You might try something like: ___ submitOnce = { submitting:false; interceptValidation:function(i

Re: 5.0.5-SNAPSHOTS

2007-05-16 Thread Bill Holloway
gurg! All my @Injects("...") just broke! Guess I need to use @Path with it? On 5/16/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: I've been making a number of important T5 bug fixes; I've just uploaded the latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ Feedback

Re: T5 - Which is the better approach?

2007-05-16 Thread Marcus
Thank you Howard!

Re: Injecting RequestGlobals

2007-05-16 Thread Jesse Kuhnert
That's probably because HttpServletRequest is a type of javax.servlet.http.HttpServletRequest and not RequestGlobals. I would change your inject tag to look more like: public abstract HttpServletRequest getRequest(); Starting with tapestry >= 4.1 you can also just skip the tag altogether as

RE: Injecting RequestGlobals

2007-05-16 Thread Ben Dotte
Hi Chris, I believe you can just do this: public abstract RequestGlobals getRequestGlobals(); We've been on annotations exclusively for a while so hopefully my memory is right about that.. Ben -Original Message- From: Chris Chiappone [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16

Re: Injecting RequestGlobals

2007-05-16 Thread Chris Chiappone
Oh and I've also tried making the getters and setters abstract and that didn't work either. On 5/16/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I have been forced to downgrade my application that I've started to java 1.4 for the time being and am trying to inject a hivemind service but don't

Injecting RequestGlobals

2007-05-16 Thread Chris Chiappone
I have been forced to downgrade my application that I've started to java 1.4 for the time being and am trying to inject a hivemind service but don't seem to be doing it right because the object I am trying to get injected seems to be null In my component spec i have the following: and

Using registry in a factory

2007-05-16 Thread Mark Addleman
I'd like to use tapestry-ioc outside the context of a web app but I'm running into a conceptual problem. I need to create and destroy objects in response to asynchronous events, so I've defined the following interface: public interface ServiceFactory { public Service createService(Registry r

Re: T5 Repeated injections

2007-05-16 Thread Howard Lewis Ship
@Inject @Path("context:css/mystyles.css") private Asset _stylesheet; You can put a "context:" prefix on a path to say its relative to the context root. You still get the benefits of localization support (if you have localized variants of mystyles.css). On 5/16/07, Bill Holloway <[EMAIL PROTECT

Re: T5: New Validators and server side validation

2007-05-16 Thread Bill Holloway
That's got it, Ben. Thanks. Wish I knew more about javascript prototyping. Too much technology to stay familiar with. Bill On 5/16/07, Ben Sommerville <[EMAIL PROTECTED]> wrote: Bill, This > pageRenderSupport.addScript( > "Tapestry.Field.email('%s', %s);", >

5.0.5-SNAPSHOTS

2007-05-16 Thread Howard Lewis Ship
I've been making a number of important T5 bug fixes; I've just uploaded the latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ Feedback is always welcome! -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Ap

Re: T5 Repeated injections

2007-05-16 Thread Bill Holloway
Thanks, Marcus, I'm using Maven and would like to keep the file under src/main/resources/com/.../components to simplify the injection. Bill On 5/16/07, Marcus <[EMAIL PROTECTED]> wrote: Hi Bill, If this css file name never change, perhaps this help: in Layout.html: with mystyles.css

Re: Help with a login form

2007-05-16 Thread Marcus
Hi Gabriel, Can you post all the code? maybe we can help you. Take a look at: http://elozovan.blogspot.com/2007/02/user-authentication-in-tapestry-5-step.html Marcus

Re: T5 Tomcat

2007-05-16 Thread Marcus
Hi Ahmad, I suggest you begin with T5 Tutorial http://tapestry.apache.org/tapestry5/t5-tutorial.pdf It uses Eclipse and Jetty, but is a very nice tutorial. With Eclipse, Maven and Jetty you "... can make *Java code* changes and see them immediately ... no redeploy, no restart! And it's blazingl

Re: T5 Repeated injections

2007-05-16 Thread Marcus
Hi Bill, If this css file name never change, perhaps this help: in Layout.html: with mystyles.css under src/main/webapp/assets/css/ Marcus

Re: T5: How to logout or kill the Session

2007-05-16 Thread Marcus
HI Sabine, Maybe this help: "Assigning null to an ASO field will remove the ASO (reading the field subsequently will force a new ASO instance to be created)." http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html By the way, you post a message about open PDF, do you know how

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Juan Maya
I have found the documentation really useful and helpful however i think previous experience with tapestry is almost required to understand it. At least you need to understand the basic concepts so could do an analogy between both of them. Also it's a bit difficult to know what's new between relea

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Yann Ramin
I'm working on two projects using T5 now. In my opinion its very usable, just expect the occasional bug and rough edge at this point. yes, on the one hand it's really good to have existing ajax components, OTOH, if component creation is really simple (with adding stuff to the header), it's also

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Martin Grotzke
On Wed, 2007-05-16 at 10:25 -0500, Juan Maya wrote: > I miss right now tacos library and other ajax components. However i think > they are a lot easier to implement in T5 yes, on the one hand it's really good to have existing ajax components, OTOH, if component creation is really simple (with addi

T5: ContextForPageTester error

2007-05-16 Thread Joel Wiegman
Hello all, I'm trying to get a simple PageTester working using JUnit: public class TestStoreHierarchy { private PageTester tester; @Before public void setUpStoreHierarchyTests() { tester = new PageTester("com.btservices.storeportal", "app", "src/main/weba

Re: T5 Repeated injections

2007-05-16 Thread Howard Lewis Ship
Yes, you can use the template as a way to accomplish composition, rather than relying on inheritance. Still, I think a common idiom is to define a base class for all pages in an application that defines common resources (such as these assets), with protected or public accessor methods. On 5/16/0

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Juan Maya
I miss right now tacos library and other ajax components. However i think they are a lot easier to implement in T5 and according to the road map i have seen on the web page the ajax support will be ready soon. Also, i would really like to have client side persistence . Right now Session and Flash

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Martin Grotzke
Hi Juan, thanx a lot for your feedback, On Wed, 2007-05-16 at 08:48 -0500, Juan Maya wrote: > Hi martin, > I have been using T5 since a few weeks and it has been great! The increased > productivity is really amazing and i haven't faced major bugs. sounds very well! > However i couldn't tell u an

Re: [T4] Must/should close output stream in engine services?

2007-05-16 Thread Dan Adams
But when you call WebResponse.getOutputStream() you aren't creating it directly and the javadoc doesn't specify who's responsibility it is to close it. The only problem I've ever run into on this was that I had an image output stream that wrapped the stream returned by getOutputStream(). I neglect

Re: T5: New Validators and server side validation

2007-05-16 Thread Juan Maya
This "weird" problem was being caused because my integration with ACEGI. On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote: I think i am starting to be annoying but i found out that inside a component the first form will not execute server side validation. In the following code the the validators

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Juan Maya
Hi martin, I have been using T5 since a few weeks and it has been great! The increased productivity is really amazing and i haven't faced major bugs. However i couldn't tell u anything about performance and scalability. My application is still pretty basic and runs smoothly...but it's not enough t

RE: 4.1 and "do it once" components

2007-05-16 Thread Marcus.Schulte
I just did somthing similar for my "DirtyFormWarning" component. You might try something like: ___ submitOnce = { submitting:false; interceptValidation:function(inv) { var valid = inv.proceed(); if (!valid) this.submitting=false;

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Martin Grotzke
hello, the missing feedback sounds like "hmm, no, better don't use T5 for a new project now"... please correct me if i'm wrong :) cheers, martin On Mon, 2007-05-14 at 00:00 +0200, Martin Grotzke wrote: > hi, > > we're considering to use tapestry for a new project that > shall go into producti

dojo 0.4.3

2007-05-16 Thread Andrea Chiumenti
Please update: ojo 0.4.3 is now available to download. This is a security release. Dojo 0.4.1 and 0.4.2 users are strongly recommended to upgrade as soon as possible. 0.4.1 and 0.4.2 have a flaw in two files that could allow cr

Re: How to pass a List to a component

2007-05-16 Thread Kushan Jayathilake
Thank you very much it works now Errror was the "type" attribute as you said Thank you very much Kushan Jayathilake Member - Java Community Process (http://jcp.org) ---Original Message--- From: Andrea Chiumenti Date: 5/16/2007 3:27:30 PM To: Tapestry users Subject: Re: How to pass

Re: Exception on the IBM WebShpere

2007-05-16 Thread Alex Rytov
I found following commit in svn: Resolves OGNL-49. Was getting compilation errors from javassist in disabled caching mode because sometimes the hashcodes were equal for class names...Added a global increment counter to force uniqueness. Without globalCounter code works perfectly on WebSphere. P

Re: Exception on the IBM WebShpere

2007-05-16 Thread Denis Burlaka
2007/5/16, Alex Rytov <[EMAIL PROTECTED]>: Sorry, as i see the problem in Tapestry 4.1.2-SNAPSHOT. Tapestry 4.1.1 works with javassist 3.4 and ognl-2.7-20070425.021856-29.jar correctly. Yes. Tapestry-4.1.1 works fine with javassist-3.4 and ognl-2.7-20070425.021856-29.jar. There must be somet

Re: How to pass a List to a component

2007-05-16 Thread Kushan Jayathilake
i tried this Default-value="ognl:new java.util.List()" but its not working Kushan Jayathilake Member - Java Community Process (http://jcp.org) ---Original Message--- From: Andrea Chiumenti Date: 5/16/2007 3:27:30 PM To: Tapestry users Subject: Re: How to pass a List to a component

Re: How to pass a List to a component

2007-05-16 Thread Andrea Chiumenti
sorry C&P mistake: default-value="ognl:new java.util.List()" On 5/16/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: MapPlotPoint Object --- type is not defined for parameter !ELEMENT into dtd kiuma On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> w

Re: How to pass a List to a component

2007-05-16 Thread Andrea Chiumenti
MapPlotPoint Object --- type is not defined for parameter !ELEMENT into dtd kiuma On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote: Home.java is the sample web page class file TapMap files are belongs to the component, Kushan Jayathilake Memb

Re: How to pass a List to a component

2007-05-16 Thread Kushan Jayathilake
Home.java is the sample web page class file TapMap files are belongs to the component, Kushan Jayathilake Member - Java Community Process (http://jcp.org) ---Original Message--- From: Andrea Chiumenti Date: 5/16/2007 3:05:04 PM To: Tapestry users Subject: Re: How to pass a List to

Re: T5 Repeated injections

2007-05-16 Thread Bill Holloway
Well, I just finished building and inserting the "" component into the five page templates, and it was pretty dang easy. Nevermind. On 5/16/07, Bill Holloway <[EMAIL PROTECTED]> wrote: I have several tapestry pages that all receive an injection of the exact same asset for use on the HTML page a

Re: How to pass a List to a component

2007-05-16 Thread Andrea Chiumenti
cuould not parse may be an xml validation exception anyway try to attach the jwc kiuma On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote: Thankyou very much for considering my problem, but it gives the same error "Org.Apache.hivemind.ApplicationRuntimeException" is Could not parse sp

T5 Repeated injections

2007-05-16 Thread Bill Holloway
I have several tapestry pages that all receive an injection of the exact same asset for use on the HTML page as a stylesheet link href: @Inject ("menu.css") private Asset _menuCss public Asset getMenuCss () { return _menuCss; } I would love to be able to encapsulate this bit of code, ideally

Re: How to pass a List to a component

2007-05-16 Thread Kushan Jayathilake
Thankyou very much for considering my problem, but it gives the same error "Org.Apache.hivemind.ApplicationRuntimeException" is Could not parse specification classpath:/Com/providence/tapestry/components/map/TapMap.jwc. and "Org.Apache.tapestry.util.xml.DocumentParseException" is Unabl

Re: How to pass a List to a component

2007-05-16 Thread Andrea Chiumenti
so try default-value="ognl: new java.util.List()" kiuma On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote: Plz don't mention about case of the syntaxes and keywords, wht should I put there I already tried java.util.List by putting there but it gives me same error Kushan Jayathilake

Re: How to pass a List to a component

2007-05-16 Thread Kushan Jayathilake
Plz don't mention about case of the syntaxes and keywords, wht should I put there I already tried java.util.List by putting there but it gives me same error Kushan Jayathilake Member - Java Community Process (http://jcp.org) ---Original Message--- From: Andrea Chiumenti Date: 5/16/2

Re: Exception on the IBM WebShpere

2007-05-16 Thread Alex Rytov
Sorry, as i see the problem in Tapestry 4.1.2-SNAPSHOT. Tapestry 4.1.1 works with javassist 3.4 and ognl-2.7-20070425.021856-29.jar correctly. Alex Rytov wrote: > > There is something wrong with IBM JVM (1.5.0) and javassist version (3.3, > 3.4, 3.5-SNAPSHOT) > Previous version of Tapestry (4.1

T5: How to logout or kill the Session

2007-05-16 Thread Sabine K.
Hi, i got a method logout which reset some variables in a ASO. But if i login again, the @Persists variables are still there. If i delete the cookies in the Browser its allright. Is there a way to end a session? Or how do u handle logout? Best regards -- View this message in context: http://w

Re: How to pass a List to a component

2007-05-16 Thread Andrea Chiumenti
Hi, type="Java.util.List" + default-value="Java.lang.Object" ??? two thigs Java must be lowercase and java.lang.Object is not an instance, and neither a java.util.List instance! kiuma On 5/16/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote: Hi i want to pass a "List"( java.util.List ) tha

T5 Tomcat

2007-05-16 Thread Ahmad Husain
Hi All I'm a beginner to tapestry, and i would like to ask some question how to begin developing with tapestry 5. I'm using netbeans5.5 as IDE tools, and Tomcat as the server. would you please provide me the step by step what i need and what i do in tomcat and netbeans5.5 just to create hello

Re: Dojo Dialog box not hidden while the page is loading

2007-05-16 Thread Stephane Decleire
It works ! Thanks a lot Andrea Andrea Chiumenti a écrit : If I remember... try to put style="display:none" kiuma On 5/16/07, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi, I've tried to use the org.apache.tapestry.dojo.html.Dialog component in some of my pages (for user authentication). B

T5 Tomcat

2007-05-16 Thread Ahmad Husain
Hi All I'm a beginner to tapestry, and i would like to ask some question how to begin developing with tapestry 5. I'm using netbeans5.5 as IDE tools, and Tomcat as the server. would you please provide me the step by step what i need and what i do in tomcat and netbeans5.5 just to create hello

Re: Dojo Dialog box not hidden while the page is loading

2007-05-16 Thread Andrea Chiumenti
If I remember... try to put style="display:none" kiuma On 5/16/07, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi, I've tried to use the org.apache.tapestry.dojo.html.Dialog component in some of my pages (for user authentication). But the content of the Dialog box is visible while the page i

Dojo Dialog box not hidden while the page is loading

2007-05-16 Thread Stephane Decleire
Hi, I've tried to use the org.apache.tapestry.dojo.html.Dialog component in some of my pages (for user authentication). But the content of the Dialog box is visible while the page is loaded by the browser (same effect on IE and Firefox) and hidden only when the entire page is loaded. Any clue

RE: T5: New Validators and server side validation

2007-05-16 Thread Ben Sommerville
Bill, This > pageRenderSupport.addScript( > "Tapestry.Field.email('%s', %s);", > field.getClientId(), > quote(buildMessage(formatter, field))); does not construct a function validating emails. What it is doing is inserting a function call to regist

How to pass a List to a component

2007-05-16 Thread Kushan Jayathilake
Hi i want to pass a "List"( java.util.List ) that contains several objects(DTO) to my component at my samplepage class file im returning a list that contains those objects My sample page codings(codings im my web application) public List getMapPlotPoints() { List list = new ArrayList(); M

Re: Exception on the IBM WebShpere

2007-05-16 Thread Alex Rytov
There is something wrong with IBM JVM (1.5.0) and javassist version (3.3, 3.4, 3.5-SNAPSHOT) Previous version of Tapestry (4.1.1) runs correctly (cause javassist version 3.0) [5/16/07 10:48:08:143 MSD] 0022 HiveMindExpre E org.apache.tapestry.services.impl.HiveMindExpressionCompiler compileEx