CARVIEW |
Every repository with this icon (

Every repository with this icon (

Description: | The Lift web framework for Scala edit |
-
dppxOn Review Boardx
Functions created during an API request are discarded rather than merged into the Session's list of functions.
Comments
-
dppxOn Review Boardx
Put the determination of how to add the <? xml ?> stuff into LiftRules.
Comments
-
dppxOn Review Boardx
Comments
-
MapperxnafgxOn Review BoardxWork In Progressx
Currently MappedManyToMany.children throws an error when, in the process of looking up the child elements via the join table, a join found to be broken (no child element for it).
Instead, it should use flatMap to skip broken joins. This requires some conversion of indexes between the join list and the children list.
Comments
-
hseebergerxWork In Progressx
It is spelled reset.pasword.confirmarion
Comments
-
derekchenbeckerxwikix
Update Lift and JPA page on Wiki
Lighthouse #23: https://liftweb.lighthouseapp.com/projects/26102/tickets/23
Comments
-
dppx
Support for changing the context root for requests so the root can be blank even if the actual context path is not or that a context path can be added (and all requests will be rewritten removing that context path from the head of the path) or subtracted.
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"
-
dppx
There should be support for image maps in SHtml. See https://groups.google.com/group/liftweb/browse_frm/thread/84fee9386108a922?hl=en#
Comments
-
dppx
-
Mapperx
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.
-
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
-
derekchenbeckerx
It should be reconfigured to use Joda Time
Comments
-
Support for i18n formatting/parsing of numbers
0 comments Created about 1 month ago by jeppenejsumIt would be nice if LIftRules has support for formatting/parsing of numbers in the same way as for dates. Both integers and decimals should be supported
When this is complete, Mapper should use this machinery in MappedInt (for thousand separators) and MappedDouble/Decimal
Comments
-
dppx
Problem:
On heavily JavaScript based forms (sections appearing/enabling depending on user input) it is good practice to outsource form creation code to widget/component classes (homegrown). It improves readability of Snippet code and reusability of widgets. For event registration and other client side code, each component class would generate a head/lift:tail and a script tag. While head/tail tags are merged by the Lift framework, the resulting HTML code still remains cluttered with script tags (example below).Suggested solution:
Introduce a script merge that similarly to head/tail merge merges all script tags in head into one and all script tags in tail into a second one.Comments
-
JsObj requires String for property name, ECMA-262 allows for either String or Number
0 comments Created about 1 month ago by DridusECMA-262 (https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf) section
11.1.5 describes the object initializer syntax as being either empty braces or braces containing PropertyNameAndValueList. PropertyNameAndValueList is comma-separated sequence of PropertyName : AssignmentExpression. PropertyName is one of Identifier, StringLiteral, or NumericLiteral.However, JE.JsObj.apply and JsObj both require the key to be a String, so what I would think the natural translation from the JavaScript:
{ headers: { 1: { sortable: false } } }
To Lift:
JsObj("headers" -> JsObj(1 -> JsObj("sortable" -> false)))
Does not work:
<console>:7: error: type mismatch; found : (Int, net.liftweb.http.js.JsObj) required: (String, net.liftweb.http.js.JsExp) JsObj("headers" -> JsObj(1 -> JsObj("sortable" -> false))) ^
as 1 is not a String. This is trivially worked around by either making ones own JsExp or by converting the Int to a String:
JsObj("headers" -> JsObj("1" -> JsObj("sortable" -> false)))
Apparently because JavaScript is entirely willing to treat strings as numbers and vice versa in property names, however it seems like it would be more natural.
This is low priority to me.
Comments
-
mariusx
Related discussion here: https://groups.google.com/group/liftweb/browse_thread/thread/7de2d785a38bf27f
Br's,
MariusComments
-
aboisvertx
Hi, i newbie for lift and scala.. im using eclipse. i create project by maven and i try to run. thats all bu i get :
INFO - CREATE TABLE users (id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY , firstname VARCHAR(32) , lastname VARCHAR(32) , email VARCHAR(48) , locale VARCHAR(16) , timezone VARCHAR(32) , password_pw VARCHAR(48) , password_slt VARCHAR(20) , textarea VARCHAR(2048) , superuser SMALLINT , validated SMALLINT , uniqueıd VARCHAR(32))
INFO - ALTER TABLE users ADD CONSTRAINT users_PK PRIMARY KEY(id)
INFO - ALTER TABLE users ADD COLUMN id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY
ERROR - Failed to Boot
java.sql.SQLSyntaxErrorException: ALTER TABLE statement cannot add an IDENTITY column to a table.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
Comments
-
dlouwersxWork In Progressx
Add core nl_NL language file. Will also add as default nl language file since nl_BE isn't available.
Comments
-
dlouwersxWork In Progressx
Add Ext Core support to Lift
Comments
-
Lift Mapper (Record) camelCase to snake_case for case insensitive databases
0 comments Created 29 days ago by awhitfordPlease make the Scala identifier to database identifier translation convention dependent on whether the database supports case sensitive or case insensitive identifiers.
For example, Hibernate offers an Enhanced Naming Convention that translates Java camelCase to a more Oracle friendly snake_case. I am interested in doing the same thing with Lift Mapper/
Record. In the mean time, I need to override dbTableName and dbColumnName, but I'd like to avoid that and just agree on the convention.I could imagine that the Database Provider would maintain a flag to say whether the database is case sensitive or not, and then based on that flag, would pass either the camelCase directly (for case sensitive), or snake_case(camelCase) (for case insensitive).
I am specifically using Lift Mapper with Oracle, but I think this issue relates to Lift Record too as well as any other case insensitive database.
See discussion: https://groups.google.com/group/liftweb/t/e7f85ede13b303da
Comments
-
Please add valMinLen and valMaxLen validation functions to net.liftweb.record.field.StringField. If it's preferred to put them in a separate helper object that would be fine as well.
Also, a companion object for LocaleField that has a list of all possible locales (similar to TimeZoneField) would be nice.
Thanks
Comments
-
aboisvertx
The *SNAPSHOT-sources.jar doesn't seem to contain any scala source files, only static resources
Comments
I'm using Maven 2.2.1 and I can't reproduce this on my machine.
I've checked that lift-util, lift-webkit and lift-common source packages (among others) all have appropriate .scala sources
jeppenejsum Thu Nov 12 23:18:25 -0800 2009 | link
Strange again :-)
util & common seem to be ok.
If I do rm -rf ~/.m2/repository && mvn clean test && mvn eclipse:eclipse
And the search through all the source jars, these are the only files found:
find ~/.m2/repository/net/liftweb/ -name "*-sources.jar" -print|xargs -n 1 unzip -l|grep scala
6332 10-23-09 03:27 net/liftweb/actor/LiftActor.scala 1321 10-23-09 03:27 net/liftweb/actor/LAFuture.scala 2463 10-23-09 03:27 net/liftweb/actor/LAPinger.scala 1826 10-23-09 03:27 net/liftweb/common/Actor.scala 14352 10-23-09 03:27 net/liftweb/common/Box.scala 4322 10-23-09 03:27 net/liftweb/util/RE.scala 3010 10-23-09 03:27 net/liftweb/util/BindPlus.scala 7769 10-23-09 03:27 net/liftweb/util/CombParserHelpers.scala 2172 10-23-09 03:27 net/liftweb/util/VCardParser.scala 4287 10-23-09 03:27 net/liftweb/util/Lazy.scala 8053 10-23-09 03:27 net/liftweb/util/Mailer.scala 2420 10-23-09 03:27 net/liftweb/util/ThreadGlobal.scala 1333 10-23-09 03:27 net/liftweb/util/ValueHolder.scala 9586 10-23-09 03:27 net/liftweb/util/Log.scala 3264 10-23-09 03:27 net/liftweb/util/Vars.scala 3140 10-23-09 03:27 net/liftweb/util/LD.scala 11432 10-23-09 03:27 net/liftweb/util/SecurityHelpers.scala 6960 10-23-09 03:27 net/liftweb/util/ListHelpers.scala 4599 10-23-09 03:27 net/liftweb/util/Slf4jLog.scala 1749 10-23-09 03:27 net/liftweb/util/EnumWithDescription.scala 17043 10-23-09 03:27 net/liftweb/util/ClassHelpers.scala 8685 10-23-09 03:27 net/liftweb/util/HttpHelpers.scala 4074 10-23-09 03:27 net/liftweb/util/CSSHelpers.scala 3729 10-23-09 03:27 net/liftweb/util/NamedPartialFunction.scala 1628 10-23-09 03:27 net/liftweb/util/Helpers.scala 1829 10-23-09 03:27 net/liftweb/util/KeyedCache.scala 1593 10-23-09 03:27 net/liftweb/util/Misc.scala 1765 10-23-09 03:27 net/liftweb/util/LRU.scala 3272 10-23-09 03:27 net/liftweb/util/HeadHelper.scala 1159 10-23-09 03:27 net/liftweb/util/ConcurrentLock.scala 5006 10-23-09 03:27 net/liftweb/util/Maker.scala 3757 10-23-09 03:27 net/liftweb/util/ActorPing.scala 3194 10-23-09 03:27 net/liftweb/util/IOHelpers.scala 2771 10-23-09 03:27 net/liftweb/util/Currency.scala 1155 10-23-09 03:27 net/liftweb/util/LoanWrapper.scala 6887 10-23-09 03:27 net/liftweb/util/BasicTypesHelpers.scala 7399 10-23-09 03:27 net/liftweb/util/Props.scala 24153 10-23-09 03:27 net/liftweb/util/BindHelpers.scala 5490 10-23-09 03:27 net/liftweb/util/CurrencyZone.scala 6006 10-23-09 03:27 net/liftweb/util/JSON.scala 12572 10-23-09 03:27 net/liftweb/util/TimeHelpers.scala 2183 10-23-09 03:27 net/liftweb/util/CodeHelpers.scala 14901 10-23-09 03:27 net/liftweb/util/PCDataMarkupParser.scala 2030 10-23-09 03:27 net/liftweb/util/TemplateCache.scala 4660 10-23-09 03:27 net/liftweb/util/ControlHelpers.scala 3649 10-23-09 03:27 net/liftweb/util/SoftReferenceCache.scala 8809 10-23-09 03:27 net/liftweb/util/StringHelpers.scala
This is with Maven 2.2.0, not sure if this changes anything since the jars seem to be downloaded ok?
jeppenejsum Thu Nov 12 23:19:48 -0800 2009 | link
Also, look at the archive date of those files....
-
hseebergerxWork In Progressx
Comments
-
mariusx
Add a way for allowing easy specification of custom HTTP header attributes.
Br's,
MariusComments
-
Run lift-examples/example from SNAPSHOT (11/5) on a local server, autocompletion isn't happening on the AJAX Samples page. The rest of the Ajax stuff seems to work fine.
Comments
-
Ability to manually create Lift session during rewrite
0 comments Created 16 days ago by jeppenejsumNormally, the Lift session is not created in the rewrite phase. It could be useful to manually force a lift session to be created.
More details here: https://groups.google.com/group/liftweb/browse_thread/thread/efb58c2bd56556ef
Comments
-
dppxWork In Progressx
Within the session scope. This is the phase that should be used by CRUDify.
Comments
-
non-autoincrement primary key; MetaMapper opening Empty Box
0 comments Created 12 days ago by opyateDiscussion(s):
1) https://groups.google.com/group/liftweb/browse_thread/thread/bca1ae85f1fa6a3a/b5b97a0da8b517f9?lnk=gst&q=metamapper#b5b97a0da8b517f9
2) https://groups.google.com/group/liftweb/browse_thread/thread/e295526e8a7905c8/d35f233879445ad7?lnk=gst&q=metamapper#d35f233879445ad7Runnable test case here:
https://github.com/opyate/bug.liftweb.metamapperTo re-create:
export JETPORT=8081
cd /tmp
git clone git://github.com/opyate/bug.liftweb.metamapper.git
cd bug.liftweb.metamapper/metamapperbug
mvn -U clean jetty:run -Djetty.port=$JETPORT
# now open your browser on https://localhost:$JETPORT#+ and enter an ID into the input box and click save
Generated exception:
Message: java.lang.NullPointerException: Trying to open an empty Box
net.liftweb.common.EmptyBox.open_$bang(Box.scala:370) net.liftweb.common.EmptyBox.open_$bang(Box.scala:366) net.liftweb.mapper.MetaMapper$$anonfun$runAppliers$1$1.apply(MetaMapper.scala:617)
Comments
-
Allow CRUDify to be mixed with MetaMegaProtoUser
0 comments Created 11 days ago by jeppenejsumCurrently, the "def menus" collide.
Details here:https://groups.google.com/group/liftweb/browse_thread/thread/6f17647690d9aa59/32ccdf5e2907ba83#32ccdf5e2907ba83
Comments
-
mariusxWork In Progressx
if a Ajax functions throws exceptions these are not provided to LiftRules.exceptionHander.
Br's,
MariusComments
-
On Review Boardxtperrettx
-
Hi,
Using the default MegaProtoUser trait for my User class, the following query fails on oracle but works just fine on H2:
scala> User.findAll(By(User.superUser, false)) java.sql.SQLException: Invalid column type at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208) at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:9168) at ora...
Surprisingly however, the following statement works as it should:
scala> User.findAll.head.superUser res22: object com.mi.ahl.hal.ooh.model.User#superUser = true
Is there a quick fix for this issue?
Regards, Mathias
Comments
-
Add Kris Nuttycombe's DataBinding types & traits to lift-webkit.
Comments
-
It should be possible to reconstruct a Mapper object from a non RDBMS source
0 comments Created about 3 hours ago by harryhIf, for example, I have some json:
{ "user": {
"id": 12, "name": "Harry", "age": 31,
} }
I should be able to construct a User Mapper object such that I can then do:
val user = // build user object from json
user.age(32).saveand have the data be correctly saved back to the DB.
Comments
-
On Review Boardxrmellgrenx
Comments
- 1.1▾
- Derby▾
- Mapper▾
- On Review Board▾
- Sitemap▾
- Work In Progress▾
- aboisvert▾
- could not repro.▾
- derekchenbecker▾
- dlouwers▾
- dpp▾
- hseeberger▾
- indrajitr▾
- joni▾
- marius▾
- more info▾
- nafg▾
- nuttycom▾
- rmellgren▾
- tjweir▾
- tperrett▾
- website▾
- wiki▾
- Apply to Selection
-
Change Color…
Preview:preview
- Rename…
- Delete



