Re: @Component copy-of

2006-09-07 Thread Jesse Kuhnert
If it's not there then I'd say it's a bug since it's supposed to be a one to one sort of thing functionality wise..,..Anyone want to jira this>? On 9/7/06, Martin Strand <[EMAIL PROTECTED]> wrote: I noticed that @Component has no copyOf parameter (like ) Is there a way to do something similar w

File copy - Access denied error

2006-09-07 Thread Peter Dawn
guys, i am trying to implement a file upload function within my web app. now i am allowing the user to select a file using a browse button and then when they click upload, i copy it to a set folder on my server. however when i try to implement it i am getting a Access is denied error. I am using

Re: Form cancelling and refreshing in both 4.0 and 4.1

2006-09-07 Thread Jesse Kuhnert
Nope...Not for this at least...Maybe I should add a big warning sign somewhere in the 4.1 docs. I'm very much ok with breaking backwards compatibility for this particular piece of functionalityIt was a great idea at the time, but caused many headaches for me in tacos - and also is considered v

Re: External link/Popup from a Form Submit

2006-09-07 Thread Jesse Kuhnert
YesIf only tap3 wasn't such a pain in the ass to maintain since it's not using maven2... :/ If you search the list you'll find instances of me hinting at being able to temporarily change the forms "target" attribute so that the target becomes null and the response is written to the new window

Re: How to implement polling with @EventListener

2006-09-07 Thread Jesse Kuhnert
Ok...I will look into this when I get back from traveling this weekend...(flattery will get you everywhere ;) ) On 9/7/06, livelock <[EMAIL PROTECTED]> wrote: Jesse, thanks for your tremendous efforts! Paying rent is always a good thing (TM). You are right of course. Polling is not the way to

Re: Form upload and download

2006-09-07 Thread Peter Dawn
cheers mate. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Form upload and download

2006-09-07 Thread Nick Westgate
It should be "ognl:listeners.formSubmit". Note that listeners ends in an "s". Cheers, Nick. Peter Dawn wrote: thats good. but i am still trying to get the upload example to work from the documentation. i am still getting the unable to resolve expression 'listener.formSubmit" for com.example.pa

Re: Form upload and download

2006-09-07 Thread Peter Dawn
thats good. but i am still trying to get the upload example to work from the documentation. i am still getting the unable to resolve expression 'listener.formSubmit" for com.example.pageUpload error. can somebody help me out here. -

External link/Popup from a Form Submit

2006-09-07 Thread Mark Stang
Hi, I have Tapestry 3 question about externallinks/popups. I have an external link popup that I am executing from a link. Does anyone have any ideas about how to do the same from within a form submit? Or from a button? thanks, Mark

RE: Form upload and download

2006-09-07 Thread Mark Stang
Try this: The Upload is a Tapestry Component. It expects a method with the signature like below. HTML: Filename  *

Form upload and download

2006-09-07 Thread Peter Dawn
guys, i have been trying to implement a page upload and download functionality within my webapp. the upload example in tap3 doc seems to be incompelete. can somebody provide the page file content for that example. i am getting an ExpressBinding [UploadPage listener.formSubmit] error. any help p

Form cancelling and refreshing in both 4.0 and 4.1

2006-09-07 Thread D&J Gredler
Hi, In Tapestry 4.0 I was using the following JS in a button's onclick handler to cancel a form: "this.form.events.cancel()". I believe this has been replaced with "tapestry.form.cancel(this.form)". I was using the following JS in another button's onclick handler to refresh a form: "this.form.ev

RE: Obtaining check box data from a form

2006-09-07 Thread Mark Stang
The example in the Component Reference doesn't provide the simplest example... Name: Mark J. Stang Title: Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Peter Dawn [mailto:[EMAIL PROTECTED] Sent: Thu 9/7/2006 4:38 PM To:

RE: Obtaining check box data from a form

2006-09-07 Thread Mark Stang
Pretty much. There may be a way, but it is coded in the HTML. However, I don't think you need to do so. Or rather I don't think you should need the values that were displayed, they should be hard-coded text in an HTML form. Why do you need the text that is in the HTML? Name: Mark J. Stang T

Re: Obtaining check box data from a form

2006-09-07 Thread Peter Dawn
Mark, so as per your example, if i am understanding it corrently, i can only retrieve the boolean value and not the corresponding string associated with the checkbox. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Form action not

2006-09-07 Thread Daniel Jue
Hello, I'm going through the last part in Chapter 10 of Enjoying Web Development with Tapestry (for tap 4). When I put the javascript calling code into a separate component, the form action in the main page is not showing up in the component. It's hard to be more complete and concise than tapestr

Re: Trouble with JSCookMenu

2006-09-07 Thread jake123
Thank you for your quick answer... I have build my web site based on "components" that is stored in the database so my entire website is "dynamic". I have no frames or Iframes in tha site, the different regions are made by div tags and css. When I want do display for example an article that is pi

Re: What's the more convenient way to add logging to a tapestry app?

2006-09-07 Thread Kevin Menard
Jorge Quiroga wrote: I has a doubt about the create-instance part because commons-logging has its own LogFactory, and other doubt is about how I can set the properties file maybe (follow the example) class="org.apache.commons.logging.Log, log4j.configuration=/WEB-INF/classes/log4jproperties.x

Re: What's the more convenient way to add logging to a tapestry app?

2006-09-07 Thread Jorge Quiroga
Hello Kevin: Thanks Kevin, so, now I put on my hivemodule file this I has a doubt about the create-instance part because commons-logging has its own LogFactory, and other doubt is about how I can set the properties file maybe (follow the example) class="org.apache.common

Re: Trouble with JSCookMenu

2006-09-07 Thread Jorge Quiroga
Hello Jacob: I used this component about a year and I'm not an expert in Tap related technologies so, some questions I cannot response and that I'm going to answer is based on my very little experience, the probability to find better solutions are big. Then: jake123 escribió: Hi, I am build

Re: What's the more convenient way to add logging to a tapestry app?

2006-09-07 Thread Kevin Menard
Hi Jorge, It seems to me that an ASO would be your best bet. Give it an application scope and you'll only create a single instance for the life of your app. If you need to do some funky configuration when starting, then you can create a StateObjectFactory wrapper. A service would really on

@Component copy-of

2006-09-07 Thread Martin Strand
I noticed that @Component has no copyOf parameter (like id="..." copy-of="..."/>) Is there a way to do something similar with annotations? I'm using the latest snapshot. Thanks, Martin - To unsubscribe, e-mail: [EMAIL PROTECTE

What's the more convenient way to add logging to a tapestry app?

2006-09-07 Thread Jorge Quiroga
Hello Tap gurus: I was searching about logging into webapps, but I'm now overhelming and confused about how I can implement a real well done logging for tapestry apps, here I found some answers (some use services others instanciate the Logger inside a page that after inherit this feature, som

Trouble with JSCookMenu

2006-09-07 Thread jake123
Hi, I am building my first application using tapestry 4 and I am trying to use the component JSCookMenu but I run into some issues. 1) When I build up my sub-menues I need 3 attributes in my directLink (Name, ItemType, IdValue). I tried this code: if (currentArticle != null) {

Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Dan Williams
Thanks for your input guys. I appreciate your reasoning - I guess I just had a different conceptual idea of how Tapestry works! I had already implemented the dummy page solution, but just didn't really like it - it seemed a little messy against the backdrop of the rest of Tapestry. If you look thr

What's the more convenient way to add logging to a tapestry app?

2006-09-07 Thread Jorge Quiroga
Hello Tap gurus: I was searching about logging into webapps, but I'm now overhelming and confused about how I can implement a real well done logging for tapestry apps, here I found some answers (some use services others instanciate the Logger inside a page that after inherit this feature, som

RE: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Mark Stang
I have a "Holder" page that I store about 125 components. That page is never viewed. When I want to display one, I render it on a different page. However, the missing link might be that components are not like java components. They exist in a pool, 1-to-n of each kind. They are cycled into

Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Richard Kirby
Hi Dan, Conceptually, component instances do not exist outside of pages. This is just how Tapestry works. If you want to access your component, you will need to place it on a dummy page and access it via that page as you suspect. Is there any particular reason why you don't want a dummy page?

Re: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Dan Williams
Hi, Thanks for responding! That's true, but my component is not part of any page - just an isolated component. In my original post I used the example of a page (instead of a component) to highlight how easy it is to do this if your 'component' is a page. But if your component is an actual compon

RE: Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Mark Stang
Unless I am completely off the mark, I typically pass the IRequestCycle to my non-tapestry components and just use it. Once you have the Request Cycle, you can get the page you need and ask it for the component. Name: Mark J. Stang Title: Senior Engineer/Architect office: +1 303.468.2900 mobile

Retrieving Tapestry 4 components from outside Tapestry

2006-09-07 Thread Dan Williams
Hi, I've searched high and low for a definitive answer to this, but so far no luck. I have a java class, a service class, that needs to retrieve a Tapestry Component. This service class is 'outside' of Tapestry in that it's not a page, not a component, nor does it extend any Tapestry base classe

Re: Strange component parameter issues with annotations

2006-09-07 Thread andyhot
I like using the reset service, instead of disabling cache. This way i can control when the templates+xml are reloaded. I simply have a tab opened at http://127.0.0.1:9090/app?service=reset&page=Home and refresh it whenever i want changes to be reloaded. See http://tapestry.apache.org/tapestry4/U

RE: Obtaining check box data from a form

2006-09-07 Thread Mark Stang
Peter, Checkboxes are like any other field. HTML: Allowable SAML Bindings Artifact

Re: Strange component parameter issues with annotations

2006-09-07 Thread Jan Normann Nielsen
Jan Normann Nielsen skrev: Hi I'm currently writing a Tapestry web application using Tapestry 4.0.2 under Tomcat 5.5.18 and JDK 1.5.0_08. [bla-bla - snip] I this is not a lot of information to go by, but my application is quite big and this is what I have narrowed the problem down to. I hav

Re: Strange component parameter issues with annotations

2006-09-07 Thread andyhot
Do you have org.apache.tapestry.disable-caching set to true ? Jan Normann Nielsen wrote: > Hi > > I'm currently writing a Tapestry web application using Tapestry 4.0.2 > under Tomcat 5.5.18 and JDK 1.5.0_08. > > The situation is: > > Page 1: Contains "Iframe page 1" and "Iframe page 2" as iframe

contrib:Tree linking to other tapestry pages

2006-09-07 Thread anil
Hi - I'm using the contrib:TreeView and related components (TreeDataView & TreeNodeView) to display a table of contents for a book. I'd like to keep the makeNodeDirect setting set to true so the user can click on the +/- boxes to expand & collapse the hierarchy, but I'd like the actual link of

Strange component parameter issues with annotations

2006-09-07 Thread Jan Normann Nielsen
Hi I'm currently writing a Tapestry web application using Tapestry 4.0.2 under Tomcat 5.5.18 and JDK 1.5.0_08. The situation is: Page 1: Contains "Iframe page 1" and "Iframe page 2" as iframes. Iframe page 1: Contains "Component 1" Iframe page 2: Contains "Component 2" All these pages, ifram

Re: How to implement polling with @EventListener

2006-09-07 Thread livelock
Jesse, thanks for your tremendous efforts! Paying rent is always a good thing (TM). You are right of course. Polling is not the way to go (http://docs.codehaus.org/display/JETTY/Continuations), cometd is. Tomcat will have continuations some day. But we have to start somewhere... at least me :-) I

DatePicker not working after upgrading from 4.0.2 to 4.1

2006-09-07 Thread Jani Lindqvist
Hi, I recently upgraded from 4.0.2 to 4.1 and noticed that the datepicker doesnt work anymore. when the page is loaded i get this error: Could not load 'tapestry.form'; last tried '__package__.js' and when i click the calendar image i get: calendar_dueDate has no properties it has probably some

Re: Re: Obtaining check box data from a form

2006-09-07 Thread Sam Gendler
The Tapestry Checkbox component doesn't offer a way to do what you want but it is possible to do it. If you have multiple input fields with the same name, the servlet spec says that you can call request.getParameters("fieldName") and receive an array of strings. So here's how I solved this: Wri