Using page properties in a DirectLink listener

2006-02-11 Thread Matt Welch
Forgive the "newbness" of this question, but I'm just curious. Let's say if have a page class similar to the following: public class ProductPage extends BasePage{ private Product product public getProduct(){return product;} public setProduct(Product product){this.product=product;} @Injec

Re: trouble injecting pojo into engine service

2006-02-11 Thread andyhot
And also, if in a service-point you omit the interface attribute, its value is by default equal to the id of the service-point. Assuming that your module has a package="authsum.stitches", this explains why hivemind looks for (the non existant) authsum.stitches.StitchFolderHolder interface (which i

Re: trouble injecting pojo into engine service

2006-02-11 Thread Ron Piterman
the problem is brobably with the factory you use. although you *can* specify a class as an interface in the service-point def, 1. this is considered dirty. 2. some hivemind factories (like the one you are using) will not work. The reason is: hivemind factories create a proxy implementation of t

Re: Spindle for Tapesty 4?

2006-02-11 Thread Geoff Longman
Hugo is developing an IntelliJ plugin for Tapestry that will use the guts of Spindle. If anyone is interested in how we are extracating Spindle from Eclipse our discussions are taking place on the Spindle-developer list. On that list I'm also posting a long winded series of messages explaining why

Re: Spindle for Tapesty 4?

2006-02-11 Thread Steven Bell
I've just recently grabbed netbeans 5. Never used netbeans before. I'm playing with it a little mainly because of matisse. Most of my current projects are swing based. If I find that I like netbeans (I usually use eclipse, and have done so for many years, really like it) I would consider using

Re: INTERNAL_SERVER_ERROR when activating page

2006-02-11 Thread Raul Raja Martinez
No I haven't customized exception reporting. It looks like the error went away when I switched my inheritance model. It happens when I have the following hierarchy AbstractCMSComponent extends BaseComponent (injects ASOs used by many components) AbstractNewsComponent extends AbstractCMSCompon

When can you use IForm.addHiddenValue or IForm.addDeferredRunnables

2006-02-11 Thread Muljadi Sulistio
Hi, I'm looking for some info on when you can call the method of IForm.addHiddenValue and IForm.addDeferredRunnables. Looking at the Tapestry 4 source code, Form.java implements IForm. The implementation method for addHiddenValue and addDeferredRunnables depended on FormSupport instance (_formSu

Re: Spindle for Tapesty 4?

2006-02-11 Thread t.n.a.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoff Longman wrote: | Q3 would suck. Every spare second I have goes into spindle. A bit of | work is going on now to make Hugo's life easier with tapidea which has | stalled forward progress the last few days. | | I wish I could state a date - but I

Howto setup Eclipse/Ant and JBoss?

2006-02-11 Thread Andreas Bulling
Hi everybody, after fighting with Eclipse, Ant and JBoss for 6 hours now I decided to write to this list as my last hope - Even if the question is not directly related to Tapestry (it's a Tapestry application but the main problem is ant). Searching the web and trying to adapt the few example scrip

Re: Pages failing w3c validation

2006-02-11 Thread Alan Chandler
On Saturday 11 February 2006 16:39, Howard Lewis Ship wrote: > > Since my style is not to have specification files, and to include > > everything in the html, I did this (ie escaping the quotes) > > A questionable choice, outside of prototypes and tutorials. I understand the separation of concerns

Re: Pages failing w3c validation

2006-02-11 Thread Alan Chandler
On Saturday 11 February 2006 10:44, Rolf Strijdhorst wrote: > Hi alan, > try this" > doctype='html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";'> > start and end with a single quote you'll see it wil work Thanks - yes I did manage t

Re: Custom Exception Page

2006-02-11 Thread Muljadi Sulistio
You can override the default exception presenter class thru hivemind. Create your own service for exceptionpresenter, and override the tapestry.InfrastructureOverrides for exceptionPresenter. Inside your ExceptionPresenter you can then can control whether you want to display the nice simple error

Re: Pages failing w3c validation

2006-02-11 Thread Howard Lewis Ship
> Since my style is not to have specification files, and to include everything > in the html, I did this (ie escaping the quotes) A questionable choice, outside of prototypes and tutorials. > > title="ognl:siteTitle" delegate="ognl:siteCSS" > doctype="html PUBLIC \"-//W3C//DTD XH

RE: Tapestry 4 rewind system : what the hell ??

2006-02-11 Thread Raphaël Jean
Philippe, The problem you are seeing is not related to properties being initialized out of order. The @If component only evaluates its condition during render and saves the result in a hidden form field. When the form rewinds, it uses the value saved during render. In your case, the myProp != n

Tapestry 4 rewind system : what the hell ??

2006-02-11 Thread Philippe Joly
Hi, Using Tapestry 4 and Tomcat 5, I have seen that "sometimes" tapestry behaviour can be very strange. I can show you an example of a code embedded in a If which is executed even if the If condition is false ! (In fact, a component is evaluated before its parent components) Example : it is

Question about ServiceEncoder ...

2006-02-11 Thread Gerald Schöffel
Hi ! For one of my external pages I have to provide an 'old style' ServiceEncoder so that the page can be invoked with http://host/myApp/myExternal?name=something&color=red&; and so on. The problem is, that this path is called by a external application (not from me, very old and without

Forcing default locale

2006-02-11 Thread Sebastiaan van Erk
Hi, How can you set the locale of a page on the *first* page load of the entire application. I store the locale in a cookie, and when the user comes to the login page I want it to display in their favorite locale. I searched the list and learned that you can change the locale in a listener b

[slightly OT] output stream issue on jetty 6 and Kents book

2006-02-11 Thread Rolf Strijdhorst
Hi I am working through some examples from Kents book regarding a file download And I am using maven with an embedded jetty6 when i am on page 262 the book states that i should have an Exception because of mixing the writer and outputstream. and yes this occures on tomcat 5.5.14 but not on jetty. a

Re: Pages failing w3c validation

2006-02-11 Thread Rolf Strijdhorst
Hi alan, try this" doctype='html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";'> start and end with a single quote you'll see it wil work On 2/11/06, Alan Chandler <[EMAIL PROTECTED]> wrote: > > On Saturday 11 February 2006 08:30, Mat

Re: Pages failing w3c validation

2006-02-11 Thread Alan Chandler
On Saturday 11 February 2006 08:30, Mat Gessel wrote: > The default doctype is html 4 trasitional. Try setting the doctype to > XHTML transitional. I think that will solve the problem. > > > > literal:html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http:/

Re: Pages failing w3c validation

2006-02-11 Thread Mat Gessel
The default doctype is html 4 trasitional. Try setting the doctype to XHTML transitional. I think that will solve the problem. literal:html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";

Re: Currency format and validator.

2006-02-11 Thread Ron Piterman
are you using the right locale for your application? AFAIK the number translator Fabiano Choueiri wrote: Hi all, I am using a javascript to format currency. In my country the currency format uses ',' to separete decimal values. Ex: 125,56 The pro

Pages failing w3c validation

2006-02-11 Thread Alan Chandler
My tapestry based web site (at the url in my signature) is failing w3c validation (see http://validator.w3.org/). It appears this is because HTML doesn' support the closing of tags within the head. Since this all generated by the @Shell component, I assume that the default DOCTYPE being gener