Re: [Lift] Eearly functions not working in 280_port_refresh

2010-02-27 Thread David Pollak
On Sat, Feb 27, 2010 at 8:32 AM, Michel wrote:

> Hi!
>
> I compiles Lift myself using the branch "280_port_refresh". I
> registered a function to be called early in the request cycle to set
> the web servers character encoding:
>
> override def boot {
>  def makeUtf8(r: HTTPRequest) {
>//will never be called!
>r.setCharacterEncoding("UTF-8")
>  }
>
>  LiftRules.early.append(makeUtf8)
>  ...
> }
>
> The makeUtf8 function is never called although it is correctly
> appended to the early list (I checked that using breakpoints in
> Eclipse. I double checked by temporarily throwing dummy
> RuntimeExceptions).
>
> Is this a bug or am I doing something wrong?
>

Sounds like a bug.  Please open a ticket at
https://liftweb.assembla.com/spaces/liftweb/tickets


>
> Thanks,
> Michel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>


-- 
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 lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



[Lift] Eearly functions not working in 280_port_refresh

2010-02-27 Thread Michel
Hi!

I compiles Lift myself using the branch "280_port_refresh". I
registered a function to be called early in the request cycle to set
the web servers character encoding:

override def boot {
  def makeUtf8(r: HTTPRequest) {
//will never be called!
r.setCharacterEncoding("UTF-8")
  }

  LiftRules.early.append(makeUtf8)
  ...
}

The makeUtf8 function is never called although it is correctly
appended to the early list (I checked that using breakpoints in
Eclipse. I double checked by temporarily throwing dummy
RuntimeExceptions).

Is this a bug or am I doing something wrong?

Thanks,
Michel

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.