CARVIEW |
Every repository with this icon (

Every repository with this icon (

Description: | The Lift web framework for Scala edit |
Loading…
-
derekchenbeckerxwikix
Update Lift and JPA page on Wiki
Lighthouse #23: https://liftweb.lighthouseapp.com/projects/26102/tickets/23
Comments
-
derekchenbeckerx
Fix varchar and text types in SqlServerDriver
Lighthouse #22: https://liftweb.lighthouseapp.com/projects/26102/tickets/22
Comments
-
tjweirxwebsitex
Add Twitter IDs to the team page.
Lighthouse #3: https://liftweb.lighthouseapp.com/projects/26102/tickets/3
Comments
timperrett Sun Jun 28 11:42:44 -0700 2009 | link
lol - i think this is the oldest ticket and its still not fixed ;-)
viktorklang Mon Jun 29 06:55:31 -0700 2009 | link
My first(!) Twitter account (2 minutes old): "viktorklang"
timperrett Mon Jun 29 08:54:07 -0700 2009 | link
mine is "timperrett"
-
SQL Server Alter Table Fail
Lighthouse #25: https://liftweb.lighthouseapp.com/projects/26102/tickets/25
Comments
fter changing one of my Mapper models, and then trying to update the database table I get:
INFO - ALTER TABLE documents ADD COLUMN xmpie_datasource_id BIGINT ERROR - Failed to Boot java.sql.SQLException: Incorrect syntax near the keyword 'COLUMN'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368) at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816) at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254) at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631) at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:584) at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:546) at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:723) at net.sourceforge.jtds.jdbc.JtdsStatement.execute(JtdsStatement.java:1157) at net.liftweb.mapper.Schemifier$.net$liftweb$mapper$Schemifier$$maybeWrite(Schemifier.scala:150) at net.liftweb.mapper.Schemifier$$anonfun$6$$anonfun$apply$9.apply(Schemifier.scala:204) at net.liftweb.mapper.Schemifier$$anonfun$6$$anonfun$apply$9.apply(Schemifier.scala:203) at scala.List.foreach(List.scala:834) at net.liftweb.mapper.Schemifier$$anonfun$6.apply(Schemifier.scala:202) at net.liftweb.mapper.Schemifier$$anonfun$6.apply(Schemifier.scala:184) at scala.List.flatMap(List.scala:1125) at net.liftweb.mapper.Schemifier$.net$liftweb$mapper$Schemifier$$ensureColumns(Schemifier.scala:183) at net.liftweb.mapper.Schemifier$$anonfun$schemify$1$$anonfun$2.apply(Schemifier.scala:61) at net.liftweb.mapper.Schemifier$$anonfun$schemify$1$$anonfun$2.apply(Schemifier.scala:61) at scala.List.foldLeft(List.scala:1059) at net.liftweb.mapper.Schemifier$$anonfun$schemify$1.apply(Schemifier.scala:61) at net.liftweb.mapper.Schemifier$$anonfun$schemify$1.apply(Schemifier.scala:54) at net.liftweb.mapper.DB$.use(DB.scala:305) at net.liftweb.mapper.Schemifier$.schemify(Schemifier.scala:53) at net.liftweb.mapper.Schemifier$.schemify(Schemifier.scala:36) at bootstrap.liftweb.Boot$$M$21056508.boot(Boot.scala:24) at bootstrap.liftweb.Boot$$A$21056508.boot(<generated>) at bootstrap.liftweb.Boot.boot(<generated>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:392) at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:390) at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:912) at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:912) at net.liftweb.util.Full.map(Box.scala:330) at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:912) at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:577) at net.liftweb.http.LiftFilter.init(LiftServlet.scala:552) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1233) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460) at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:222) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:379) at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:321) at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:205) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
The database user has all the permissions to do this. I think its another schemifier bug?
-
Problems with MappedStringIndex (Derby / H2)
Lighthouse #26: https://liftweb.lighthouseapp.com/projects/26102/tickets/26
Comments
I posted this to the mailing list back in december. Posting again so it's preserved :)
I tested this with Scala 2.7.3 and the Lift 1.0 release.
Recently I wanted to have a Mapper with a String uuid as primary key. I found out that MappedStringIndex does that. It didn't work though.Using it with with a derby driver threw this exception:
Caused by: java.sql.SQLException: 'ID' cannot be a column of a
primary key or unique key because it can contain null values.
The create table looked here like it generated the id itself, so the lift generated id isn't saved in the db.
Using the H2 driver:
CREATE TABLE myuuidmapper (id VARCHAR(64)) INSERT INTO myuuidmapper () VALUES ()This means the table has been created but the lift-generated id was not saved in the database.
I attached an example project. Boot.scala is configured to use the Derby driver. If requested I can provide an example for H2.
-
tperrettx
The Liftweb installer for Mac OS X generates a .bash_profile file whether .profile exists already or not. As a result of this, the shell will ignore the preexisting environment variables defined by .profile. The installer should detect the presence of .profile, and perform an append operation instead.
Comments
Haven't seen the details but Macport installer does something very similar. Could be useful.
See the function write_setting() in https://trac.macports.org/browser/trunk/base/portmgr/dmg/postflight
timperrett Wed Aug 26 14:44:33 -0700 2009 | link
bah - this issue is actually arisen from my background... I didnt realize that some people use .profile to store their configuration - I thought everyone used .bash_profile... not to worry, its just a case of changing some of the installer code to check for a .profile as well as .bash_profile.
-
mariusx
the default autocomplete options i.e.
val autocompleteOptions = JsRaw(...
need to be more easily set. I had to override and copy-paste the render function to change these. Making them settable without extending the class would be ideal. making the autocompleteOptions val an overridable outer function would be fine though.
Comments
-
derekchenbeckerxMapperx
-
Buttons labeled "Edit" are commonly used to start editing. The Submit Button in an editable form should be labeled "Save"
Comments
-
Let's say you have a bit of a page like so:
<lift:SomeSnippet.section>
<foo:name/> <lift:SomeSnippet.section>Now, let's assume that computing whatever is bound to <foo:name/>
takes a long time (maybe it takes a network call, or a long database
query, or whatever). You don't want to hold up your entire page view
on that so.....<lift:Util.lazyLoad>
<lift:SomeSnippet.section> <foo:name/> <lift:SomeSnippet.section> </lift:Util.lazyLoad>Then in your Util snippet:
def lazyLoad(xhtml: NodeSeq) = {
val id = "lazy"+System.currentTimeMillis() val (name, exp) = ajaxInvoke(() => { SetHtml(id, xhtml) }){Script(OnLoad(exp.cmd))} }
Feel free to critique if there is a better way of doing this. It's
working pretty good for me so far though.Comments
- 1.1▾
- Derby▾
- Mapper▾
- Sitemap▾
- could not repro.▾
- derekchenbecker▾
- dpp▾
- hseeberger▾
- marius▾
- more info▾
- tjweir▾
- tperrett▾
- website▾
- wiki▾
- Apply to Selection
-
Change Color…
Preview:preview
- Rename…
- Delete



