[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread Derek Chen-Becker
What you're doing generally looks right, although depending on the exact syntax you might be able to make it a bit more concise. Is there something in particular that's not working? Derek On Mon, Jul 27, 2009 at 12:23 PM, José María josemariar...@gmail.comwrote: Hi. I have the following

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread Derek Chen-Becker
Also, you could define some helpers objects to simplify type testing: object IntField { def unapply (in : String) = try { Some(in.toInt) } catch { case nfe : NumberFormatException = None } } And then you can use it in matching statements: scala val test = List(One, 12,

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread edgarchan
Hola. All parameters put it on the map are available in the request, so you can use S.param function to get them. in your example case RewriteRequest(ParsePath(company :: id :: page :: text ::Nil, , true, _), GetRequest, _) = RewriteResponse(company :: Nil, Map (id - id, page - page)) in any

[Lift] Re: URL Rewrite and complex paths

2009-07-27 Thread Timothy Perrett
FYI, I detail lift's rewriting scheme here: http://is.gd/wq4K Cheers, Tim On Jul 27, 9:52 pm, edgarchan edgarchancarri...@gmail.com wrote: Hola. All parameters put it on the map are available in the request, so you can use S.param function to get them. in your example case