The partial function to match a request to a response
The partial function to match a request to a response
A trait that holds a response for the MVCHelper.
A trait that holds a response for the MVCHelper. Conversions exist from Unit (just serve the template), CssBindFunc (do the substitution on the template), NodeSeq (run the template), LiftResponse (send the response back), or Box or Option of any of the above.
Apply the Rest helper
Apply the Rest helper
Turn a Box[T] into the return type expected by DispatchPF.
Turn a Box[T] into the return type expected by DispatchPF. Note that this method will return messages from Failure() and return codes and messages from ParamFailure[Int[(msg, _, _, code)
Convert an Empty into an appropriate LiftResponse.
Convert an Empty into an appropriate LiftResponse. In the case of Failure, you may want to display a particular error message to the user.
Is the Rest helper defined for a given request
Is the Rest helper defined for a given request
Validate what, if it passes validation, then redirect to the new URL, else display the messages using S.error and redisplay the current page.
Validate what, if it passes validation, then redirect to the new URL, else display the messages using S.error and redisplay the current page.
Serve an MVC page based on matching the path
Serve an MVC page based on matching the path
Mix this trait into a class to provide support for MVC style coding. Each controller line is defined as:
The above code matches /user/4, loads the user with primary key 4 from the database, then applies the transform to the /user.html template replacing the node with the id "name" with the firstName of the user