lift Questions
1
Solved
I have written a program to pull a Maybe out of a pair:
deMaybe :: (a, Maybe b) -> Maybe (a, b)
deMaybe (_, Nothing) = Nothing
deMaybe (x,Just y) = Just (x, y)
I know that Maybe is a monad and ...
3
Solved
I have a Scala app built with Lift framework. It has a few .conf files. When I open those .conf files in my IntelliJ IDEA Ultimate Fancy Pants Edition, I do not see any buttons to fold those curly ...
Confucian asked 20/6, 2017 at 1:20
8
Solved
I am trying to use Spring with Scala. I know Autowired works with Scala class, but I am using a web-framework that requires an object and I want to inject a dao into it. I wonder how to do this? So...
7
Solved
Is there a bare-bones Scala web framework? I basically need the essential features such as:
Routing.
GET/POST/PUT parameter handling.
A simple templating engine (content substitution based).
Seri...
1
I'm trying to make a EnumListField in Lift/Record/Squeryl, similar to MappedEnumList in LiftMapper. The storage type should be Long/BIGINT. I understand that if I define:
def classOfPersistentFiel...
3
Solved
I'm working with LiftWeb, XML and the bind method.
This works:
scala> val id = "test"
id: java.lang.String = test
scala> <a href={id}>link</a>
res4: scala.xml.Elem = <a hr...
3
Solved
I am developing web app using Scala and Lift framework. I have record in DB which contains html perex of page
<b>Hi all, this is perex</b>
And in one scenario I need to print to user...
Shull asked 22/3, 2011 at 14:13
7
Solved
So I have a Map in Scala like this:
val m = Map[String, String](
"a" -> "theA",
"b" -> "theB",
"c" -> "theC",
"d" -> "theD",
"e" -> "theE"
)
and I want to serialize this stru...
Vacuole asked 7/6, 2011 at 20:43
3
In Lift Web Framework, dependencies for Simple Build Tool (SBT) are specified in LiftProject.scala. That file includes this code:
override def libraryDependencies = Set(
"net.liftweb" %% "lift-...
5
Solved
I have a date input box in my lift application, and I want to check that a user-entered date is in correct format: dd/mm/yyyy.
How can I write a regex check for this in scala? I've looked at patte...
2
Solved
I am attempting to use JSON to send data between the browser and my app.
I am attempting to use Lift 1.0 to create and parse JSON strings, but for some reason I am unable to parse the JSON I just ...
7
Solved
I just got started with Scala/LiftWeb/Sbt developing, and I'd like to import a Sbt project in IntelliJ Idea.
Actually, I managed to import my project in two different ways:
1) with Maven. I create...
Bagger asked 22/11, 2010 at 21:18
2
Can I use Scala and Java in the same project? I am new with programming so it's a litte bit confusing for me.
From my research I have read that the best combination to get a good project is the co...
1
I am upgrading existing code from Rogue 1.1.8 to 2.0.0 and lift-mongodb-record from 2.4-M5 to 2.5.
I'm having difficulty writing MongoCaseClassField that contains a scala enum, that I really could...
4
3
Solved
I'm trying to integrate a Lift application into some existing Java code. In one of my snippets, I have an Array of Java objects that I need to map that into a NodeSeq. I can get an Array of Node's,...
1
I am developing an ecommerce site in Lift with MongoDB
I need to store some data for product prices
My question is this:
What field type should I use in MongoDB if I want to store data type BigD...
Glaciology asked 15/1, 2015 at 15:53
3
Solved
I'm learning Json4s library.
I have a json fragment like this:
{
"records":[
{
"name":"John Derp",
"address":"Jem Street 21"
},
{
"name":"Scala Jo",
"address":"in my sweet dream"
}
]
}
...
4
Solved
Specifically, I'm saving a file upload to local file in a Lift web app.
Ogawa asked 6/5, 2010 at 16:16
3
Does anyone know of a OAuth 2.0 provider (server side) implementation for Scala/Lift? I see Scala 2.0 client, but no provider.
3
Solved
I need to manipulate and calculate lots of things related to date, such as "is today?", "is before yesterday?", "now plus 3 days" etc. Is there any library or dsl in scala that can help with that? ...
7
Solved
We are thinking on moving our Rest API Server (it is inside the web service, on Symfony PHP) to Scala for several reasons: speed, no overhead, less CPU, less code, scalability, etc. I didn't ...
2
Solved
I am having trouble deserializing a org.joda.time.DateTime field from JSON into a case class.
The JSON:
val ajson=parse(""" { "creationDate": "2013-01-02T10:48:41.000-05:00" }""")
I also set th...
Haakon asked 12/4, 2013 at 21:0
1
Solved
I am using sbt console to debug some web application, written with Lift Framework.
Every time running it, I run some commands to initialize framework.
import bootstrap.liftweb.Boot
(new Boot).boo...
2
Solved
I need to write a small Web based UI that would run on a raspi and since I'm trying to pull some Scala into my daily work, I'd like to use one of Play, Scalatra or Lift. Does anybody have experienc...
Altocumulus asked 16/1, 2014 at 15:41
1 Next >
© 2022 - 2024 — McMap. All rights reserved.