I'm working on an app that allows users to enter their own form templates, which are rendered to HTML forms and filled out. The results are then captured and encoded for later rendering. So the user might input something like:
<p>Name: <form:text name="name" required="true"/><br/> Is this your first visit? <form:yesNo name="firstVisit"/> ..</p> Is it possible to bind the various snippets, but perform special handling on their attribute values? So, for instance, I'd bind an S.text() to all <form:text/>, but it'd set a variable based on its name attribute, and perform rough validations based on whether required is set to true? It isn't immediately obvious how to do this, even when digging through the Lift sources. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---