No really. That is for constructing an S object, as it needs the
reuest and session object. Lift calls that when processing statefull
requests and rendering pieline, bound functions etc. are executed in
this context. There is another function S.initIfUninitted where S can
be initialized having onl
I just read the scaladoc comment of S.init. Does it have anything to do with
this subject?
-
Heiko Seeberger wrote:
Ah, yes!Sorry, I did not get the point, but obviously the val is to be
blamed ;-)
Now it's running, thanx!!!
Heiko
2009/8/5 marius d.
>
> I
Ah, yes!Sorry, I did not get the point, but obviously the val is to be
blamed ;-)
Now it's running, thanx!!!
Heiko
2009/8/5 marius d.
>
> I'm aware about the override thing but I don't see why you would do it
> in such way. Since you don't have state, you don't have a session =>
> you don't hav
The point marius was making is that if it was a def or lazy val it wouldn't get
called so early.
-
Heiko Seeberger wrote:
def can be overridden with val. But this is a Scala thingy, please do not
bother. If it makes you easier replace val with def.
The questi
I'm aware about the override thing but I don't see why you would do it
in such way. Since you don't have state, you don't have a session =>
you don't have S. Are you using a statelesDispatchPf ?
You can do:
1. Use your own ResourceBundles
2. Or a hacky thingy like:
val session = LiftRules.getLi
def can be overridden with val. But this is a Scala thingy, please do not
bother. If it makes you easier replace val with def.
The question remains: How can i18n be done in "stateless" (request state)
cases?
2009/8/5 marius d.
>
> I thought validations is a function not a val:
>
> override val v
In any case why is localization attached to state?
-
marius d. wrote:
I thought validations is a function not a val:
override val validations should probably be
override def validations ?
or
override lazy val validations ?
Br's,
Marius
On Aug 5, 7:48 am
I thought validations is a function not a val:
override val validations should probably be
override def validations ?
or
override lazy val validations ?
Br's,
Marius
On Aug 5, 7:48 am, Heiko Seeberger
wrote:
> I would like to internationalize my code. Something like:
> Mapper class:
>
> cla
I would like to internationalize my code. Something like:
Mapper class:
class Course
extends LongKeyedMapper[Course]
with IdPK {
...
override val validations =
valMinLen(3, ?("minLen", 3)) _ ::
valMaxLen(50, ?("maxLen", 50)) _ ::
Nil
}
Localized messages:
minLen=A
S lifetime is per request. S is not constructed on Boot. Could you
post a code snippet on what you're trying to achieve?
Br's,
Marius
On Aug 4, 12:43 pm, Heiko Seeberger
wrote:
> Hi,
>
> When I try to use internationalization via S.? in a Mapper class, I get the
> below exception while booting
10 matches
Mail list logo