I meen that it doesn't save data from form to objects.
For example :
I have method for action link and submit like that :
def processSend() = {
var parameters = new Parameters
parameters.initialSearch = initialSearch
WebControler.actionSearch(parameters)
}
and now the part of bind function:
bind("form", ns,
"maxResponses" -> SHtml.text(initialSearch.maxResponses,
initialSearch.maxResponses = _),
//"submit" -> SHtml.link("", () => processSend(), button))
"submit" -> SHtml.submit("Search", processSend))
And the problem is that when I use link then new data for
initialSearch are not saved. But with submit works good.
On Dec 10, 5:48 pm, David Pollak <
feeder.of.the.be...@gmail.com>
wrote:
> On Thu, Dec 10, 2009 at 7:54 AM, dominikgr <
domini...@gmail.com> wrote:
> > Hallo
> > I have problem with SHtml.link. I want that it will work like
> > SHtml.submit. And the question is how can I made this. Thanks for
> > answer
>
> What do you mean "work like"? What does submit do that link doesn't? What
> kind of behavioral differences are you unhappy about?
>
>
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Lift" group.
> > To post to this group, send email to
lif...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
liftweb+u...@googlegroups.com<
liftweb%2Bunsu...@googlegroups.com>
> > .
> Beginning Scalahttp://
www.apress.com/book/view/1430219890