@marius - this is a super undocumented feature... How am I only finding out
about this now?! Lol
Tim
On 27/03/2009 20:13, "marius d." wrote:
>
> Of course if you want it simpler just use:
>
> bind("f", xhtml,
> "query" -> SHtml.text(query, query = _),
> "submit" -> SHtml.submit("S
That results in much cleaner markup. Thanks, Marius.
On Mar 27, 3:40 pm, "marius d." wrote:
> If I may you can also use something like:
>
> bind("f", xhtml,
> "query" -> {n: NodeSeq => (for (node <- BindHelpers.currentNode)
> yield BindHelpers.mixinAttributes(SHtml.text(query, query = _))(
Of course if you want it simpler just use:
bind("f", xhtml,
"query" -> SHtml.text(query, query = _),
"submit" -> SHtml.submit("Submit", processSearch)
)
Query:
and Lift will automatically merge the attributes for you ;)
Br's,
Marius
On Mar 27, 9:40 pm, "marius d." wrote:
> If I
If I may you can also use something like:
bind("f", xhtml,
"query" -> {n: NodeSeq => (for (node <- BindHelpers.currentNode)
yield BindHelpers.mixinAttributes(SHtml.text(query, query = _))(node))
open_! },
"submit" -> SHtml.submit("Submit", processSearch)
)
Query:
the difference is
Hi Timothy,
Thanks for your response. After I posted this message I realized that
JavaRebel failed to reload a class. I restarted the application and
the code works now. This thread did not appear in the list at that
time (due to moderation perhaps) so I could not reply to it in time.
Yes, I'
Hi Bradford,
Can you just elaborate on what your trying to achieve? My assumption
is that you want to set the ID of the input field?
When your working with lift you dont need to define the input fields
in the HTML, only on the serverside.
Try this:
bind("f", xhtml,
"query" -> SHtml.text(qu