On Thu, Nov 6, 2008 at 4:42 PM, Erick Fleming <[EMAIL PROTECTED]> wrote:
> That did it. I normally have a habit of doing a clean when something is
> unexplainable, but I guess I failed to try it this time.
>
> Thanks and sorry to bother.
No worries.
Also... I prefer:
val user = currentUser.is openOr new User
to
val user = currentUser.is match {
case Empty => new User
case Full(m) => m
}
>
>
> On Thu, Nov 6, 2008 at 6:33 PM, David Pollak <
> [EMAIL PROTECTED]> wrote:
>
>>
>>
>> On Thu, Nov 6, 2008 at 4:15 PM, Erick Fleming <[EMAIL PROTECTED]>wrote:
>>
>>> No. Just VIM and maven-plugin.
>>
>>
>> Try doing an mvn clean jetty:run and see what happens.
>>
>>
>>>
>>>
>>> On Thu, Nov 6, 2008 at 5:17 PM, David Pollak <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>>> Are you using Eclipse for development?
>>>>
>>>>
>>>> On Thu, Nov 6, 2008 at 3:13 PM, Erick Fleming <[EMAIL PROTECTED]>wrote:
>>>>
>>>>> I've been racking my brain on this for some time and don't understand
>>>>> the problem. The cancel button redirects fine, but the save button gives
>>>>> an
>>>>> error. What am I missing?
>>>>>
>>>>> <lift:UserOps.edit form="POST">
>>>>> <tr><td>Id:</td><td><field:id /></td></tr>
>>>>> <tr><td>First Name:</td><td><field:first /></td></tr>
>>>>> <tr><td>Last Name:</td><td><field:last /></td></tr>
>>>>> <tr><td>Active:</td><td><field:active /></td></tr>
>>>>> <tr><td>User Name:</td><td><field:name /></td></tr>
>>>>> <tr><td colspan="2"><field:save /> <field:cancel /></td></tr>
>>>>> </lift:UserOps.edit>
>>>>>
>>>>> def edit(xhtml: NodeSeq): NodeSeq = {
>>>>>
>>>>> val user = currentUser.is match {
>>>>> case Empty => new User
>>>>> case Full(m) => m
>>>>> }
>>>>>
>>>>> bind("field", xhtml,
>>>>> "id" -> SHtml.text(user.id.toString, (x) => println("saving
>>>>> user")),
>>>>> "name" -> SHtml.text(user.userName, user.userName = _),
>>>>> "first" -> SHtml.text(user.firstName, user.firstName = _),
>>>>> "last" -> SHtml.text(user.lastName, user.lastName = _),
>>>>> "active" -> SHtml.checkbox(user.active, user.active = _),
>>>>> "save" -> SHtml.submit("save", { DataService.update(user);
>>>>> S.redirectTo("list") }),
>>>>> "cancel" -> SHtml.submit("cancel", { S.redirectTo("list") })
>>>>> )
>>>>> }
>>>>>
>>>>>
>>>>> Message: java.lang.NoSuchMethodError: java.lang.Object.apply()V
>>>>> org.liftscheduler.snippet.UserOps$$anonfun$edit$6.apply(<generated>)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> org.liftscheduler.snippet.UserOps$$anonfun$edit$6.apply(<generated>:47)
>>>>> net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:896)
>>>>> net.liftweb.http.S$NFuncHolder$$anonfun$apply$46.apply(S.scala:896)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> scala.List.map(List.scala:798)
>>>>> net.liftweb.http.S$NFuncHolder.apply(S.scala:896)
>>>>>
>>>>> net.liftweb.http.LiftSession$$anonfun$buildFunc$1$2.apply(LiftSession.scala:248)
>>>>>
>>>>> net.liftweb.http.LiftSession$$anonfun$6$$anonfun$apply$17.apply(LiftSession.scala:264)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> net.liftweb.http.LiftSession$$anonfun$6$$anonfun$apply$17.apply(LiftSession.scala:264)
>>>>> ....
>>>>> scala.List.map(List.scala:798)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lift, the simply functional web framework http://liftweb.net
>>>> Collaborative Task Management http://much4.us
>>>> Follow me: http://twitter.com/dpp
>>>> Git some: http://github.com/dpp
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Collaborative Task Management http://much4.us
>> Follow me: http://twitter.com/dpp
>> Git some: http://github.com/dpp
>>
>>
>>
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---