Amit,
By default, by convention, Lift dispatches snippets based on looking up
class names in the <your_project>.snippet package.

If you want to do custom snippet dispatch, you can do so by writing a
DispatchSnippet:

object MyDispatchSnippet extends DispatchSnippet {
  def dispatchIt = {
    case "doLogin" => doLogin _
  }

  def doLogin(in: NodeSeq) = in
}

and in Boot, register the DispatchSnippet:

LiftRules.snippetDispatch.append {
  case "OperatorLoginAction" => MyDispatchSnippet
}


Thanks,

David

On Wed, Feb 25, 2009 at 8:23 AM, Amit Kumar Verma <[email protected]>wrote:

>
> Hi All,
>
> By default lift calls is bind in the way
>
> <lift:OperatorLoginAction.doLogin>
> ....
> .... /* some HTML code here */
> ....
> <lift:OperatorLoginAction.doLogin>
>
> which means the class "OperatorLoginAction" should be in snippet
> folder. But I want to make is more structureded and my hierarchy is
> like this
>
> snippet
>          - entity
>                - operator
>                      - OperatorLoginAction
>
> then how will I invoke doLogin method of this class.
>
> I tried <lift:entity.operator.OperatorLoginAction.doLogin>  even
> <lift:snippet.entity.operator.OperatorLoginAction.doLogin>
> but this is not working, throwing error
>
> WARN - Snippet Failure: SnippetFailure(/loginpage.html -> ParsePath
> (List(loginpage.html),true,false),Full
>
> (com.vtech.myproject.snippet.entity.operator.OperatorLoginAction.doLogin),Class
> Not Found)
>
>
> please help me to make it work.
>
> Thanks
> amit
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to