Hi,
I ran into the same problem. The Alert case class takes only a string.
|case class Alert(val text : String
http://java.sun.com/javase/6/docs/api/java/lang/String.html)| |
|I.e. the result of getWidth is quoted such that it remains a plain
string when it is evaluated on client side. Best
Hi,
as a rule of thumb: when the Lift class expects a String as parameter,
this will also be a String on JavaScript side. Alert expects a String,
so it does not matter if the string is Hello World!,
getAvailableWidth() or anything else. By the time it reaches the
client, Lift has already made
Hi,
Marius wrote:
On Nov 18, 6:31 pm, Paul Butcher p...@paulbutcher.com wrote:
I'm seriously considering Lift for a new project. I know what the
benefits of Scala and Lift are (that's why I'm seriously considering
this as a route forwards :-) What I'm wondering is whether there are
any
Hi again,
sorry for answering my own post. Should have looked at the documentation
first.
It's as simple as:
val username = User.find(id).choice( Full(_.name) )( Full(User not
found) ).open_!
(not checked for syntax!)
Regards,
Eros
Eros Candelaresi wrote:
Hi,
I like the getOrElse way
Hi,
I like the getOrElse way of accessing data very much as it allows to
handle non-existing values with very little code. However, I am still
looking for a more elegant replacement for this:
val username = User.find(id).getOrElse(User.create.name(User not
found)).name
Ok, this is very
Hi,
I'm be interested too. So if you still have invitations left... :)
Regards,
Eros
Jim Barrows schrieb:
Who wants a wave invite?
Not sure how long Google will take to process them.. but I have some!
I just added the lifehack list to my wave account, and I think firefox
nearly died.
for that. Also I don't
want to reinvent the wheel. Is there something that I missed? Some kind
of script merge?
Kind regards,
Eros Candelaresi
--snip
script type=text/javascript
//![CDATA[
jQuery(document).ready(function()
{jQuery('#'+'F766360102107OWD