http://reviewboard.liftweb.net/r/77/

On Thu, Oct 29, 2009 at 4:54 PM, andythedestroyer <
[email protected]> wrote:

>
> You rule!
>
> On Oct 29, 4:23 pm, David Pollak <[email protected]>
> wrote:
> > On Thu, Oct 29, 2009 at 3:41 PM, andythedestroyer <
> >
> > [email protected]> wrote:
> >
> > > Thanks for the response. The ticket number is 144 and here is the link
> > >http://github.com/dpp/liftweb/issues/#issue/144
> >
> > I've got a fix that I'm testing.  I hope to get it into the code before
> the
> > code slush today.
> >
> >
> >
> >
> >
> > > -Andy
> >
> > > On Oct 29, 3:12 pm, David Pollak <[email protected]>
> > > wrote:
> > > > When Lift parses a path, the last element of the path is split at the
> > > first
> > > > '.'.  This allows you to match of "foo" :: "bar", "jpg" vs. "foo" ::
> > > "bar",
> > > > "png"
> >
> > > > However, this is biting you right now... and  I've got a solution.
> >
> > > > Please open a ticket 
> > > > athttp://github.com/dpp/liftweb/issuesandI'll<http://github.com/dpp/liftweb/issuesandI%27ll>get
> > > it
> > > > fixed.
> >
> > > > On Thu, Oct 29, 2009 at 2:27 PM, andythedestroyer <
> >
> > > > [email protected]> wrote:
> >
> > > > > Hello,
> >
> > > > > I am creating a rest api for an app and am having trouble
> extracting a
> > > > > var from the matched request.
> >
> > > > > Object MyApi extends XMLHelperApi {
> > > > >     def dispatch : LiftRules.DispatchPF = {
> > > > >           case Req(List("api","package", packageName), _,
> GetRequest)
> > > > > =>
> > > > >                 () => myMethodThatDoesSomething(packageName)
> > > > >     }
> > > > > }
> >
> > > > > The packageName variable is in the form similar but not exactly
> like
> > > > > java package names ( my.company.package:key=value )
> >
> > > > > so the rest url would be
> >
> > > > >http://domain.com/api/package/my.company.package%3Akey%3Dvalue
> >
> > > > > This should work and the package var in my case expression should
> be
> > > > > "my.company.package:key=value" but it is just "my".
> >
> > > > > I have gone through "The Definitive Guide to Lift" and the group
> > > > > postings but have had no luck so far. I know this should be easy
> and I
> > > > > am just missing something.
> >
> > > > > Thanks
> > > > > Andy
> >
> > > > --
> > > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > > Follow me:http://twitter.com/dpp
> > > > Surf the harmonics
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Surf the harmonics
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
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