Re: Namespacing of tapestry pages?

2006-10-24 Thread Carfield Yim
So how about the corresponding java bean package? Just something like .xxx.class? -- Forwarded message -- From: Stephen Yau <[EMAIL PROTECTED]> Date: Oct 24, 2006 1:41 PM Subject: Re: Namespacing of tapestry pages? To: users@tapestry.apache.org Just create sub directory under W

How can I pass a component as a parameter to my custom component

2006-10-24 Thread Roberto Ramírez Vique
Hi everybody! I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5. I would like to create my own component. This component should receive a parameter (not required) that specify another component (in this case is a submit button component), I would like to use the container defined componen

Re: How can I pass a component as a parameter to my custom component

2006-10-24 Thread Jiří Mareš
Hi, In component-specification: ... ... Then in component template can be component referenced e.g.: And when you use the component and wants to pass the component as parameter: Jirka > I am working with tap 4.0, in tomcat 5.5.14 with jdk 1.5. > > I would like to create my own

Re: ServletContextListener equivalent in Tapestry

2006-10-24 Thread James Carman
There is a configuration point called "hivemind.Startup" where you can register Runnable objects to be run at HM registry startup time (which is the same as Tapestry startup time). On 10/22/06, KEGan <[EMAIL PROTECTED]> wrote: Hi, I need to do some tasks when my Servlet web application is init

Re: ILink return type for page listener.

2006-10-24 Thread jimlaren
Your page class define (Example YourBasePageClass): @InjectObject("engine-service:external") public abstract IEngineService getExternalService(); public ILink getExternalLink(String pageName, Object[] parameters) { ExternalServiceParameter esp = new Exter

Re: Namespacing of tapestry pages?

2006-10-24 Thread jake123
Another alternative is to have whatever structure you want in your project and then when you want to deploy your .war file you move the files into the "right" location with your ant task. Thats how I do it ant it works fine for me. Cheers, Jacob -- View this message in context: http://www.nab

IValidationDelegate.clearError() clears user input on form refresh

2006-10-24 Thread Carlos.Fernandez
PAGE SET UP I have a form with an input field and two select fields. The input field has an email validation. This is defaulted to the users email (user object is placed in session by successful login). The first select field has an onchange JS handler that forces the form to refresh. The secon

defining paths for templates

2006-10-24 Thread richard
The people in the project I'm in prefer to keep the java-sources and tapestry files that belong together in one and the same directory (Home.java together with Home.page en Home.html, for example). This basically means that all Tapestry-files will be placed outside of WEB-INF. Now I finally succe

RE: defining paths for templates

2006-10-24 Thread Mark Stang
I started out with all in the WEB-INF directory. If you want to put the .html/.jwc files in the same directory as the .page you can, Tapestry will find it automatically. Then the .java file can be anywhere, you just specify it's location in the .jwc. That is the simplest model. A bit more co

RE: defining paths for templates

2006-10-24 Thread richard
I did create a library, in which I refer to the pages and jwc files explicitly. This seems to aid finding the pages and components, but not the templates. Somehow the search-rule of finding the templates along with the components and pages in the same directory does not work. I started out

RE: defining paths for templates

2006-10-24 Thread Mark Stang
Sample Library. PingCommon.library: http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd";> In the java package (/com/pingidentity/component/common/), copy in the .jwc, .html and .library. Jar this up and put it on the classpath. This goes into the .application file.

RE: defining paths for templates

2006-10-24 Thread richard
Perhaps I should have mentioned that I am using Tapestry 4.0.2. I did all you mentioned, but I keep getting the error message that the template for locale en_US can't be found. I am pretty sure it's no locale problem though, since Tapestry should find the default-template anyway. Sample

Re: window.print() in Tapestry?

2006-10-24 Thread Roberto Ramírez Vique
About the onLoad, not sure but i don't know any component that does this ... From my point of view, is supose to be like this because this is just client side stuff and tapestry works for server side stuff. Also the same reply (as far as I know) about the restrictions with the printers. It's a v

RE: defining paths for templates

2006-10-24 Thread Mark Stang
Yeah, I don't know how things have changed from 3.x to 4.02. Maybe Jesse can help Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tue 10/24/2006 11:40

Re: {SPAM?} RE: defining paths for templates

2006-10-24 Thread andyhot
[EMAIL PROTECTED] wrote: > I did create a library, in which I refer to the pages and jwc files > explicitly. This seems to aid finding the pages and components, but > not the templates. That's weird... even the framework does this: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-fra

Re: Dynamic Radiogroup

2006-10-24 Thread Shing Hing Man
In the component FieldLabel, the parameter field expects an object of type IFormcomponent. (Please see http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/FieldLabel.html) It looks as though the Java class for the Radio component is not of type IFormcomponent. Shing --- Todd Orr

Re: Dynamic Radiogroup

2006-10-24 Thread Todd Orr
That's certainly going to make this difficult. Why is the easy stuff so hard? I suppose I'll have to hack through and implement a replacement for Radio. Any other suggestions? On 10/24/06, Shing Hing Man <[EMAIL PROTECTED]> wrote: In the component FieldLabel, the parameter field expects an obje

Re: defining paths for templates

2006-10-24 Thread Patrick Moore
I too liked having the html files together with the java sources, but I think your assumption that that means the html files have to be in the same directory as the class files should be revisited. I found it pretty easy under maven2 to extract out the html, properties, and script files from my s

Re: Recovery of session during pageValidate

2006-10-24 Thread Shawn Church
I was able to work on this yesterday, and the WebRequestServicerFilter approach has so far worked very well for me. For anyone interested, I have created a new Wiki page with all the source code. Hopefully this will be useful to others. http://wiki.apache.org/tapestry/TokenizedRequestFilter Tha

RE: defining paths for templates

2006-10-24 Thread Mark Stang
I am sure that is one option. My goal was creating Tapestry Libraries where the components are all packaged together in a single jar. Currently, I have about five different libraries. A couple are used to "swap out" branding. Where in my case the same component exists for different brands, b

Re: Dynamic Radiogroup

2006-10-24 Thread Patrick Moore
your FieldLabel's field parameter is wrong, it should look like this: but if I remember correctly this will not work anyhow because sug is defined in the html after the FieldLabel. You will need to specify sug in your java or .jwc. -Pat

Tapestry-4.1.1 build fails... why aren't the repositories working???

2006-10-24 Thread Ken nashua
http://people.apache.org is not even online Who is managing this stuff ??? I performed the following: svn update mvn clean mvn install and I receive the following: C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk>mvn install C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk>set MAVEN_O

Re: Tapestry-4.1.1 build fails... why aren't the repositories working???

2006-10-24 Thread andyhot
I think they're doing some infrastructure updates... either comment out those repos, or mvn -o install Ken nashua wrote: > http://people.apache.org is not even online > > Who is managing this stuff ??? > > > I performed the following: > > svn update > mvn clean > mvn install > > and I receive the

Re: Dynamic Radiogroup

2006-10-24 Thread Todd Orr
I've tried the jwc approach with no luck. JWC: HTML: TITLE TEST

Re: How can I pass a component as a parameter to my custom component

2006-10-24 Thread Roberto Ramírez Vique
thanks you very much ! I didn't know about this component ... Finally I realized that I can use the RenderBody component in an smarter way and solve my problem. r. On 10/24/06, Jiří Mareš <[EMAIL PROTECTED]> wrote: Hi, In component-specification: ... ... Then in component tem

Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Matt Kerr
I find Tapestry ok for generating html, but I'm struggling on the request processing. I don't think I'm alone .. I see many references to this topic on the mailing list archive -- and it's not very well described in the documentation :-? Specifically, reusable components participating in r

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Daniel Tabuenca
I too, was surprised by the lack of a template-based component inplementation by default in tapestry. Here is my simple implementation based on BaseComponent: import java.util.LinkedList; import java.util.List; import org.apache.tapestry.IMarkupWriter; import org.apache.tapestry.IRender; import

Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Matt Kerr
I find Tapestry ok for generating html, but I'm struggling on the request processing. I don't think I'm alone .. I see many references to this topic on the mailing list archive -- and it's not very well described in the documentation :-? Specifically, reusable components participating in r

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Daniel Tabuenca
If I understand correctly, you're question is where to ultimately put the upDate(c);, In your example you put it on the setYear() but that relies on setYear being called last which I don't think is a guarantee. Alternatively you could put it on all of them (but this would be inneficient). I beli

Re: window.print() in Tapestry?

2006-10-24 Thread Dennis Sinelnikov
Thank you for your reply, Roberto. That is what I figured as well. -Dennis Roberto Ramírez Vique wrote: About the onLoad, not sure but i don't know any component that does this ... From my point of view, is supose to be like this because this is just client side stuff and tapestry works for s

Re: window.print() in Tapestry?

2006-10-24 Thread James Carman
You can use a @Script component to set up some JavaScript to run onload, I believe. On 10/24/06, Dennis Sinelnikov <[EMAIL PROTECTED]> wrote: Thank you for your reply, Roberto. That is what I figured as well. -Dennis Roberto Ramírez Vique wrote: > About the onLoad, not sure but i don't know

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread B.S.Navin
Hi Matt, You can use templates for components too (similar to page templates), by extending the component class from "BaseComponent". Then you just add an HTML with the same name as the component and that's all. And you can use the "InvokeListener" component part of the core Tapestry fram

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Matt Kerr
Navin - Thanks very much for the reply. You can use templates for components too (similar to page templates), by extending the component class from "BaseComponent". Then you just add an HTML with the same name as the component and that's all. Sorry if original post is confusing. I'm ok

Re: Reusable Component - which handles FORM/REQUEST values

2006-10-24 Thread Matt Kerr
Daniel - If I understand correctly, you're question is where to ultimately put the upDate(c);, In your example you put it on the setYear() but that relies on setYear being called last which I don't think is a guarantee. Alternatively you could put it on all of them (but this would be inneficie

Creating DirectLink using DirectService

2006-10-24 Thread gant
Hi, I want to create DirectLink programmatically i.e. not using html template. I guess i should use DirectService to construct link etc. passing parameters with DirectServiceParameter etc. But how can i pass the right Listener ? gant

Re: Creating DirectLink using DirectService

2006-10-24 Thread andyhot
IIRC, a listener is really an instance of org.apache.tapestry.IActionListener Tapestry (automagically) creates instances of that interface that invoke the corresponding component method (when using the listener: binding). You can dig for more at: http://svn.apache.org/viewvc/tapestry/tapestry4/tr

Re: Creating DirectLink using DirectService

2006-10-24 Thread gant
but when i don't have this binding i.e. there is no html file whatsoever, how can i bind the listener? I am dynamically creating DirectLink there is only java, no html. - Original Message - From: "andyhot" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, October 25, 2006 3: