Hi,
I'm trying to do something which should be simple I think .. passing
a function to toForm like so :
class AddClient {
def add (inhtml: NodeSeq) : NodeSeq = {
val client = Client.create
def processEntry () = {
client.save
S.notice ("Entre : Prenom " + client.prenom
=>
bind ("client", inhtml,
"firstName" -> client.firstName.asHtml,
In another list view .. so i'm confused ...
Any ideas ?
Thanks
hexa
--
You received this message because you are subscribed to the Google Groups
"Lift&q
Wow it seems that I now get that even without the asHtml...
Using scala 2.7.7 with lift 1.1-M8 ...
On Mar 8, 9:51 pm, hexa wrote:
> Hi all,
>
> I have this code :
>
> class ViewClient
> {
> val clientId = S.param ("id") openOr ""
>
&
> and only partial recompilation.
>
> Connected by MOTOBLUR™ on T-Mobile
>
> -Original message-
> From: hexa
> To: Lift
> Sent: Tue, Mar 9, 2010 03:15:31 GMT+00:00
> Subject: [Lift] Re: asHtml compiler exception traversing code ?
>
> Wow it seems that I now
o be obligated to do the client_id toLong
code...
And juste do inInvoice.client (client) , inInvoice.save
Thanks a lot
hexa
--
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
... would the RequestVar persist in the statefull
snippet?
Also I'm having trouble understanding how that scoping is done for the
RequestVar if anyone could shed some light on it... like why a closure
won't "ref" it... (I'm new to scala)
Thanks
hexa
On Mar 9, 6:21 am, Lu
g". It is the magic which i don't understand
> yet that if you change your client_id from val to var it will be auto
> promoted into Heap and live out Snippet. Try this out.
>
> Change:
> val client_id = clientBox map (_.id.toLong)
> To:
> var client_id = clientBox map (_
x27;s not being set in the same request as it's being read.
>
> -
>
> hexa wrote:
>
> I think we still have a miss understanding
>
> The client_id code clientBox map (_.id.toLong) work ok .. no problems
> with that
>
>
s of scala; but it since it actually
> executes in the next request, it can set RequestVars etc. that the next
> request will see.
>
> -
>
> hexa wrote:
>
> It is not set in the same request as it's being read exactly...
>
> But ho
"amount" -> inInvoice.amount.toForm,
"submit" -> SHtml.submit ("Ajouter Facture", processEntry))
}
}
This yeilds an empty box exception...
The method suggested by Naftoli Gugenheim does the same .. it seems
the is does not "copy" the value e
tion.toForm,
"amount" -> inInvoice.amount.toForm,
"submit" -> SHtml.submit ("Ajouter Facture", processEntry))
}
}
The client* are in the class not the method... works great with a
statful snippet tought
On Mar 9, 7:04 pm, hexa wrote:
> U
an action is
performed on one of them...
Thanks a lot
hexa
--
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...@google
and I guess I could repost the
RequestVar.. need to try that too..
Thanks,
hexa
On Mar 10, 9:33 am, David Pollak
wrote:
> The short answer is "no".
>
> The slightly longer answer is "Can you put both into a single snippet?"
>
> The even longer answer is "H
You've been very helpful really!
I need to make my part now and read both the scala & lift book ,
properly
And experiment but at least now I have solution tails to follow :)
Thanks again
hexa
On Mar 10, 12:22 pm, David Pollak
wrote:
> The simplest answer is to use traits to defi
14 matches
Mail list logo