[Lift] Re: automaticly generated forms and submit button naming

2009-09-28 Thread Martin
Hi, Ross, thank you for your help. This code works perfectly for me. I heaven't noticed I could group many elements in one lift tag. I changed somethings in your code. Maybe it's not worth mentioning but if someone has similar problems it can help a little. I corrected only to things: changed

[Lift] Re: automaticly generated forms and submit button naming

2009-09-28 Thread Ross Mellgren
Ah, that's because it should be a flatMap not a map -- f.toForm.toList.flatMap(form = { bind(...) }) should typecheck. The way you have it now, if the bind expands to more than one element or node, the ones after the first will be dropped. Glad it (mostly) worked for you. -Ross On Sep 28,

[Lift] Re: automaticly generated forms and submit button naming

2009-09-24 Thread Ross Mellgren
It sounds like you probably want p{ SHtml.submit(Title of submit button, () = actionToTakeWhenButtonIsUsedToSubmitForm) }/p By the way, what you have there doesn't seem to be following the usual lift pattern of binding snippets, is there a reason that you prefer this to: template: