Re: Example tapestry 4.1 with ajax style calls

2007-02-14 Thread Daniel Tabuenca
I think updateComponents needs to be an array. So... updateComponents="ognl:{'orderarea'}" At least that's what I use and it works but I'm not sure if that's a requirement. On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi all I hunted for ages and haven't been able to find any si

Re: My crap development environment

2007-02-14 Thread Daniel Tabuenca
Are you by any chance using AspectJ and the AJDT plugin? For me that was the problem with saving files due to a bug that happened in combiantion to Maven. If this is your case let me know and I'll post how to work around it. Publishing should be pretty darn quick on an incremental build (1 second

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Howard Lewis Ship
Thanks ... fixing it. On 2/14/07, Eugene Lozovan <[EMAIL PROTECTED]> wrote: Actually, there is an error in reference html template, for "password" field it's type isn't specified, so instead of : : This is what I have > > > >: > t:vali

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Howard Lewis Ship
Most likely what happened is that you never declared that component 'form' was of type Form. This may change in the future, but Tapestry doesn't have a mapping from "" to Form. I may add this. Since you never specified a type, but you did specify a t:id, Tapestry assumed that you wanted an Any

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Eugene Lozovan
Actually, there is an error in reference html template, for "password" field it's type isn't specified, so instead of : : t:validate="required,minlength=3" Dave Kallstrom wrote: This is what I have : :

Example tapestry 4.1 with ajax style calls

2007-02-14 Thread Murray Collingwood
Hi all I hunted for ages and haven't been able to find any simple examples of how to use the Ajax features of Tapestry 4.1. Sorry guys, it's just not obvious from the documentation how it works. You would think a basic @DirectLink with updateComponents and async=true would do it - nah, didn't wo

Re: Feedback for the AcegiSpringJava5FormBased wiki page

2007-02-14 Thread Michael Waluk
Hi, I'm new to using Acegi with Tapestry-Acegi. At the end of http://wiki.apache.org/tapestry/AcegiSpringJava5FormBased there is the Q&A: How do we retrieve the errors from Acegi and display them in the Login page? ( Using AbstractProcessingFilter

Re: Best strategy?

2007-02-14 Thread Pedro Viegas
Damn! Just reading about that T5 Table gives let's me wishing I could fast forward time to let Howard finish and release it! Just seams a waste of time to develop a grid for T4 that is will no even get close to what Howard describes for a few months life-time... Oh well... On 2/14/07, Julian Woo

Re: My crap development environment

2007-02-14 Thread Daniel Jue
I would commit your project to a svn repository (or copy the project somewhere else) and grab a new version of Eclipse. I have no troubles like this under eclipse/tomcat, so somehow your installation must have gotten borked. In fact, if there is nothing wrong with your workspace you can just unz

Re: My crap development environment

2007-02-14 Thread Konstantin Ignatyev
I recently suffered under Windows from unacceptable long file operations (any of them) - it turned out to be related to the mapped but inaccessible network drive. Win is extremely stupid and ALWAYS tries to reach that drive no matter if it required for file operation or not. So - try to unmap all

Re: My crap development environment

2007-02-14 Thread James Carman
You could run mvn jetty:run to fire up your application in Jetty. It works pretty well and it automatically picks up any changes you make and redeploys your webapp. On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi all I have suffered long and hard under Eclipse and Tomcat. Is it

Re: Tapestry 4.1 startup errors

2007-02-14 Thread James Carman
Check out: http://maven.apache.org/ That's how Tapestry is built and a lot of projects are starting to go that route (including most all of Apache). On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: James Carman carmanconsulting.com> writes: > Have you tried maven2? It, along with i

My crap development environment

2007-02-14 Thread Murray Collingwood
Hi all I have suffered long and hard under Eclipse and Tomcat. Is it really necessary for me to wait so long while a file is saved or an application is published??? Saving a .java file: 15 seconds Saving a .html file: 15 seconds Saving a .jwc file: 28 seconds Stopping the tomcat server: 2 secon

Re: Tapestry 4.1 startup errors

2007-02-14 Thread Murray Collingwood
Murray Collingwood gmail.com> writes: > FATAL exception raised: Could not load 'dojo.logging.Logger'; > last tried '__package__.js' > FATAL exception raised: Could not load 'dojo.logging.Logger'; > last tried '__package__.js' > FATAL exception raised: Could not load 'dojo.html.selection'; >

Re: Tapestry 4.1 startup errors

2007-02-14 Thread Murray Collingwood
James Carman carmanconsulting.com> writes: > Have you tried maven2? It, along with its Jetty launcher for testing, > might help your situation. As for the error you're getting, are you > using tapestry-spring? Thanks James Adding the tapestry-spring.jar file to the other jars solved the proble

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Still blue in the face... This is the markup that comes from @Asset("") which works... but this does not present a solution. This is the markup from manual api calls to create an asset this fails always Best regards Ken in nashua

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Alright that was good and worked. thanks Andy... @InjectObject("service:tapestry.asset.ClasspathAssetFactory") public abstract AssetFactory getClasspathAssetFactory(); AssetFactory fact = getClasspathAssetFactory(); IAsset asset = fact.createAbsoluteAsset(map.get(co

Re: overloading src attribute of @Image component

2007-02-14 Thread andyhot
is 100% if it's a context asset If it's a classpath asset, you'll need http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.asset.ClasspathAssetFactory.html Makes sense now ??? Ken nashua wrote: Still blue in the face... This is the markup that comes from @Asset

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Still blue in the face... None of this works for 4.0... IAsset asset = new ContextAsset( getWebRequest().getContextPath(), new ContextResource(getServletContext(), file), getLocation(), cycle); asset = new ExternalAsset(

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Still blue in the face... Any takers ? Resource resource = new WebContextResource(getWebContext(), map.get(contentType).toString()); resource = new ContextResource(getServletContext(), map.get(contentType).toString()); if ( map.containsKey(contentType)) { Asse

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
What is it about @Asset("/asset/icdoc.gif") that seems to succeed versus my last code does not? Best regards Ken in nashua _ Don’t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Well nothing seems to work for 4.0. It looks like the contextPath is never acquired and it also complains about missing contextresource. Resource resource = new WebContextResource(getWebContext(), map.get(contentType).toString()); //resource = new ContextResource(getServletContext

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Dave Kallstrom
Okay now it's fixed. Had leftover html in my Home.html page without surrounding form component. Oops. So now I have tap5 form with validation running. On 2/14/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote: Even more interesting when I comment out all of the html I get the same error. It must be

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Dave Kallstrom
Even more interesting when I comment out all of the html I get the same error. It must be complaining about my .java file. I suppose tap is not finding the html template. On 2/14/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote: Interesting though when I take away the form component I get the same

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Dave Kallstrom
Interesting though when I take away the form component I get the same error On 2/14/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote: This is what I have : : On 2/14/07, D&J Gredler <[

Re: Tap 5 FormSupport Exception

2007-02-14 Thread Dave Kallstrom
This is what I have : : On 2/14/07, D&J Gredler <[EMAIL PROTECTED]> wrote: I think I got this error when I tried to use an input component (Select or TextField or something) without a contain

Re: Tap 5 FormSupport Exception

2007-02-14 Thread D&J Gredler
I think I got this error when I tried to use an input component (Select or TextField or something) without a containing Form component. On 2/14/07, Dave Kallstrom <[EMAIL PROTECTED]> wrote: I hope this user list is ready for tap5 questions if not please disregard. I am working on my first tap5

Tap 5 FormSupport Exception

2007-02-14 Thread Dave Kallstrom
I hope this user list is ready for tap5 questions if not please disregard. I am working on my first tap5 hello world page and am having a little trouble with form submission. I copied the code right of the tap5 page and I am getting the following error. "No object of type org.apache.tapestry.serv

Re: overloading src attribute of @Image component

2007-02-14 Thread andyhot
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/asset/ContextAssetFactory.html http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.asset.ContextAssetFactory.html inject that service and .. use it Ken nashua wrote: Well my last solution has no rea

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
This seems to workout nicely... @Asset("/asset/icdoc.gif") public abstract IAsset getWordDocAsset(); writer.attribute("src", getWordDocAsset().buildURL()); Best regards Ken in nashua _ Check out all that glitters with the MS

Re: overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Well my last solution has no real parsing teeth. How do i guess by content type which asset method to call. What I would prefer to do is get a handle to the assetfactory... (can someone provide a legit example?) And then acquire/create the asset by referencing my HashMap that tracks gif file

Re: @Insert default mode

2007-02-14 Thread andyhot
I think I'd create my own component in my application. I could even name it InsertText and it would just delegate to Insert using the desired break mode. Ben Dotte wrote: You're right! I see what happened here. InsertText is marked as deprecated in the 4.1 documentation so we replaced all 17

Migration from tap3 to tap4

2007-02-14 Thread Numa Schmeder
Hello, I have many problem upgrading from tap 3 to tap4, maybe someone already encountered those problem: 1/ HIVEMIND: Order for threaded service cleanup I have threaded services that are dependant of each other. HibernateSessionFactory which implements ServiceImplementationFactory and a

RE: @Insert default mode

2007-02-14 Thread Ben Dotte
You're right! I see what happened here. InsertText is marked as deprecated in the 4.1 documentation so we replaced all 171 references to it in our code with @Insert. But seeing that everything looked wrong we had to add the BREAK mode to every one of them. So I guess it would be nice if the def

overloading src attribute of @Image component

2007-02-14 Thread Ken nashua
Pioneers/teammates... Can someone direct me as to proper code here. All I want to do is instrument/override the src attribute of the @Image component. INPUTS - psuedo @Override protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { map.put("application/m

Re: About Tapestry 5 ?

2007-02-14 Thread D&J Gredler
I've been trying it out over the past week or so, and my impression of the documentation is that it's a brain dump of how things work in general, but when you get down to basic questions like "is there a label component? if so, how does it work? is there a select component? if so, how does it work

Re: About Tapestry 5 ?

2007-02-14 Thread Massimo Lusetti
On 2/14/07, Eugene Lozovan <[EMAIL PROTECTED]> wrote: Hello all, Just wanted to ask, have anybody used T5+Hibernate w/o Spring? Me right now. But I'm pretty sure someone else is doing great stuff with that couple. -- Massimo http://meridio.blogspot.com ---

Re: About Tapestry 5 ?

2007-02-14 Thread Eugene Lozovan
Hello all, Just wanted to ask, have anybody used T5+Hibernate w/o Spring? Massimo Lusetti wrote: On 2/14/07, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: i've heard about tapestry 5 preview release, what i want to ask : is tapestry 5 ready to be used in production ? By my point of view the fea

Re: Tapestry 4.1 startup errors

2007-02-14 Thread James Carman
Have you tried maven2? It, along with its Jetty launcher for testing, might help your situation. As for the error you're getting, are you using tapestry-spring? On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: Hi all I'm getting this error: Error: An error occured processing annota

Tapestry 4.1 startup errors

2007-02-14 Thread Murray Collingwood
Hi all I'm getting this error: Error: An error occured processing annotation @org.apache.tapestry.annotations.InjectObject(value=spring:userService) of public abstract com.cabs.services.UserService com.cabs.pages.Home.getUserService(): Property 'beanFactory' of is null. I'm getting really frus

Re: About Tapestry 5 ?

2007-02-14 Thread Massimo Lusetti
On 2/14/07, Dwi Ardi Irawan <[EMAIL PROTECTED]> wrote: i've heard about tapestry 5 preview release, what i want to ask : is tapestry 5 ready to be used in production ? By my point of view the features it has are really consistent and stable. It lacks a lot features compared to T4 but they will

Re: [WARNING] Injecttin

2007-02-14 Thread Andrea Chiumenti
Matt, thank you for the reply, but it's not what I need, I need injection via hivemind so that my library can inject its scripts tansparently into the Shell component, without letting the user to provide a custom block renderer. ciao, Kiuma On 2/14/07, Matt Brock <[EMAIL PROTECTED]> wrote: A