Re: File generation

2008-02-29 Thread Andy Huhn
Joel, I ran across this component that wraps a template engine: http://213.160.23.119:8080/t5components/t5c-contrib/howto_freemarkerservice.html Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
ication for Tapestry, but it does have the capability... -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 11:56 AM To: Tapestry users Subject: Re: T5: File generation The question I have is on what could you mean by "generate files&q

Re: T5: File generation

2008-02-29 Thread Fernando Padilla
The question I have is on what could you mean by "generate files". If you can just have an job to hit a particular url, then you can use tapestry to generate that url. If you want tapestry to programmatically generate a page, that is conceptually possible, and I think I saw some code floating

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
ry 29, 2008 10:15 AM To: users@tapestry.apache.org Subject: RE: T5: File generation Tapestry is not the right tool to generate files - we tried this in T4 and failed. T5 is even more component-oriented. Components just don't work well for generating text files. Use Velocity or FreeMark

RE: T5: File generation

2008-02-29 Thread Christian Köberl
Velcity has no dependency on Struts, see http://velocity.apache.org/engine/releases/velocity-1.5/dependencies.html -- Chris -- View this message in context: http://www.nabble.com/T5%3A-File-generation-tp15758849p15760621.html Sent from the Tapestry - User mailing list archive

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
lto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 9:33 AM To: Tapestry users Subject: Re: T5: File generation You can get a reference to the server-side (dom) document, which will contain generated markup, but I am almost certain that you can't write code like you mentioned (pass a component insta

Re: T5: File generation

2008-02-29 Thread Chris Lewis
n of a POJO (might be > Tapestry-annotated, might not). > > -Original Message- > From: Chris Lewis [mailto:[EMAIL PROTECTED] > Sent: Friday, February 29, 2008 8:59 AM > To: Tapestry users > Subject: Re: T5: File generation > > I'm fuzzy on your goal. What

RE: T5: File generation

2008-02-29 Thread Joel Wiegman
Lewis [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 8:59 AM To: Tapestry users Subject: Re: T5: File generation I'm fuzzy on your goal. What 'files' do you want to make? You want the generated markup of a component? A page? For the record, I'm fairly sure T5 is specifica

Re: T5: File generation

2008-02-29 Thread Thiago HP
On 2/29/08, Chris Lewis <[EMAIL PROTECTED]> wrote: > I'm fuzzy on your goal. What 'files' do you want to make? You want the > generated markup of a component? A page? Maybe (X)HTML documents, XML, HTML e-mails, other text formats, I guess. Am I right, Joel? -- Thiago --

Re: T5: File generation

2008-02-29 Thread Chris Lewis
I'm fuzzy on your goal. What 'files' do you want to make? You want the generated markup of a component? A page? For the record, I'm fairly sure T5 is specifically designed to avoid semantics like: MyComponent component = new MyComponent(); component.setName("Test"); Components don't 'exist' like

T5: File generation

2008-02-29 Thread Joel Wiegman
Hello all, Our application has the need to generate files. I'm interested in trying to use Tapestry to do this since we're already using T5 on the presentation layer. Has anyone extracted the Tapestry templating engine to do other processing? Something like the pseudo-code below: // BEGIN @In

Re: Remote File Generation

2007-05-29 Thread Jesse Kuhnert
I think this is just not possible. At most you can specify the file name that they can save something as, but there is absolutely no way of getting around this with http protocols and a web browser. Maybe you should investigate writing a java applet or web start app ? I'd certainly like everyo

Re: Remote File Generation

2007-05-29 Thread Peter Dawn
thats cool. how do i specify the client ip address. c:\windows\system32 is going to reference the server file system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Remote File Generation

2007-05-29 Thread Martin Strand
Yeah, you can just use: WebResponse response = ...; InputStream in = new FileInputStream(...); response.writeToClientFilesystem("C:\WINDOWS\system32\...", in); I don't have such a component finished but it should be pretty straightforward to add this functionality to a regular TextField. Mar

Re: Remote File Generation

2007-05-29 Thread Peter Dawn
the Upload component allows the transfer of files from client to server. is there something which does the other way around, and how should i specify the remote target folder location, i mean using ip address or server name. thanks. ---

Re: Remote File Generation

2007-05-29 Thread Peter Dawn
Cheers mate. Thanks for your reply, I understand that its not tap specific, but this forum is my first place for help in all tap web app related issues :-). the users are not that technically savvy. so i will have to go for option 1. but my question is, is there a way to automatically reference a

Re: Remote File Generation

2007-05-29 Thread Alan Chaney
It seems to me that this is not really a Tapestry issue. I can see two ways - there may be lots more. A lot depends on exactly who the users are, how often they take backups, their technical competence and the size of the backups. Suggestions: 1. Ensure that your application writes the file

Remote File Generation

2007-05-29 Thread Peter Dawn
guys, i am using tap3. i am using postgres as my backend. now my web app can be accessed remotely by users, who can then perform certain functions like postgres database backup and restore. now my problem is that when the database backup is performed using pg_dump, the file is dumped on the loc