[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-18 Thread Jonathan Meeks
Thanks for the tips, Naftoli and David. On Jul 17, 10:46 am, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri, Jul 17, 2009 at 7:30 AM, Jonathan Meeks jonathanme...@gmail.comwrote: I don't see how it would help. How would the SHtml.hidden callback, presumably defined

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread Jonathan Meeks
I don't see how it would help. How would the SHtml.hidden callback, presumably defined deleteFileForm snippet method, know the filename? That value somehow needs to be passed from the fileManager method to the deleteFileForm. I was hoping that the a snippet tag could take attributes where I

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread Naftoli Gugenheim
No, just replace your current hidden tag with SHtml's (use curly baces to embed it in the xml). Their callbacks are executed when their form is submitted. You could also just replace the submit button with an SHtml.submit which works similarly but multiple submit buttons in the same form are

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-17 Thread David Pollak
On Fri, Jul 17, 2009 at 7:30 AM, Jonathan Meeks jonathanme...@gmail.comwrote: I don't see how it would help. How would the SHtml.hidden callback, presumably defined deleteFileForm snippet method, know the filename? That value somehow needs to be passed from the fileManager method to the

[Lift] Re: Snippets creating snippets with embedded 'attributes'

2009-07-16 Thread Naftoli Gugenheim
Why don't you use a SHtml.hidden with a callback? - Jonathan Meeksjonathanme...@gmail.com wrote: I have a snippet (call it the file manager snippet) that creates a list of snippet tags (each called file deletion snippets) to create a virtual file listing