Scaalp
unread,Mar 3, 2012, 9:35:36 AM3/3/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lif...@googlegroups.com
Hello,
following the path given by David, I reached my goal with the following code :
override def screenTop = recipient.uniqueFieldId.map(id => <span>{Script(OnLoad(Focus(id)))}</span>)
But this seems a bit awkard to me, as I had to add a span, to transform
the Node returned by Script into the Elem needed by screenTop. Maybe
should screenTop be of type Box[Node], instead of Box[Elem] ?
But I found another way that pleases me better : overwrite the toForm method of my LiftScreen :
override def toForm = recipient.uniqueFieldId.map(id => Script(OnLoad(Focus(id)))).toOption ++: super.toForm
Pascal