On Mar 10, 1:15 am, Timothy Perrett timo...@getintheloop.eu wrote:
Personally, I would say forget ExtJS, compared to Cappuccino its streets
behind:
http://cappuccino.org/
Easily the most exciting UI framework out there right now
Perhaps I should add that I need sophisticated grids:
It is time for me to add some serious widgets to my lift app.
So far, I am most enamored by ExtJS.
Another alternative could possibly be ZK.
Does anybody have any experience with these frameworks? Can you
comment on why integrating them with Scala/Lift would be a bad idea
(or not work)?
I
My model classes mix-in IdPK and have the following boiler-plate for
equals and hashCode:
class Team extends LongKeyedMapper[Team] with IdPK {
override def equals (other : Any) = other match {
case t : Team if t.id.is == this.id.is = true
case _ = false
}
override def
Done. Issue 408. Thanks!
https://www.assembla.com/spaces/liftweb/tickets/408-add-equals-and-hashcode-to-idpk-trait
On Mar 7, 11:53 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
Good idea. Please open a ticket
athttps://liftweb.assembla.com/spaces/liftweb/ticketsand assign it to me.
On Mar 4, 9:50 am, David Pollak feeder.of.the.be...@gmail.com wrote:
On Thu, Mar 4, 2010 at 9:27 AM, aw anth...@whitford.com wrote:
On Mar 4, 6:56 am, Naftoli Gugenheim naftoli...@gmail.com wrote:
How about
LiftRules.stripComments.default.set( () = !Req.isIE)
etc.?
This is where
What's wrong with KeyedMapper's implementation?
Well, that was exactly why I was asking the question, Is this
implementation for equals and hashCode a good idea? I had gotten
this at some point, been using it, and am only questioning it now
because if it truly is a good idea, I think it should
Thanks Jeppe. I definitely like this new logging stuff. I updated
the wiki.
--
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to
I'm overall very impressed by the community response so far to this
post. My first reaction to this was, please don't dismiss it (like
the first response seemed to).
Marius was quick to agree that the web site needs some work. I have
to agree here. I am surprised by a few things:
1. So much
Is there a way to get a consolidated scaladocs for 2.0-M3, just like
http://scala-tools.org/scaladocs/liftweb/1.0/ ?
The above link, for example, is just for common.
It is a major pain to have to traverse through the various projects
finding the right package, and the 1.0 docs are too out of date.
I just upgraded my code to M3 and also replaced my LOGGERs with the
new Loggable trait. I am using LogBack (not Log4j).
I thought that with 2.0-M3, the following call would be deprecated and
no longer necessary: Slf4jLogBoot.enable()
Alas, I discovered that it is still mandatory, otherwise I
I understand from Issue 363 that I can control which version of JQuery
to use. I generally prefer the latest and greatest, and I see that I
am using 1.3.2, so I want to set it to 1.4.2. According to this
thread:
OK, I have disabled the stripping of comments:
LiftRules.stripComments.default.set( () = false )
It seems to work for me.
On Mar 4, 12:36 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
aw anth...@whitford.com writes:
!--[if IE 6] script type=text/javascript id=ie6fix ... /
script
On Mar 4, 6:56 am, Naftoli Gugenheim naftoli...@gmail.com wrote:
How about
LiftRules.stripComments.default.set( () = !Req.isIE)
etc.?
Well, this doesn't quite work because I need a Req class instance, not
just the static object.
Also, to me, this determination is really at the Session level
After fielding calls as to why my UI doesn't look correctly on IE, I
discovered that Lift is doing an optimization in production mode
that is effectively breaking my application's compatibility for IE...
To get around IE6 deficiencies, I am leveraging JQuery. For example,
if I have a CSS style
On Mar 3, 10:56 pm, Ross Mellgren dri...@gmail.com wrote:
There's a FactoryMaker in LiftRules that looks like it may do what you want
-- try:
LiftRules.stripComments.default = () = false
-Ross
This looks promising. Alas: error: reassignment to val
(I'm not familiar with FactoryMaker.)
I was searching for a prior thread and couldn't find it last night,
but I think I found it today:
http://groups.google.com/group/liftweb/browse_thread/thread/1cf5c0e153e98b47/5b60451a961ad78d?lnk=gstq=ByList#
Is this the thread you are referring to?
It leaves me with much to be desired since
Very nice! I am looking forward to this.
On Feb 28, 8:14 am, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
The new logging code is now in master and should be fully usable.
Therefore, the existing logging code has been deprecated.
I've added a Wiki article
From reading Exploring Lift (Section 6.1, page 81), it says that
ByList corresponds to the “field IN (x,y,z)” syntax in SQL.
Well, that was what I needed, so I took it for a test drive. However,
instead of seeing SQL like: where some.id in (4, 9, 20)
I am seeing SQL like: where some.id = 4 or
On Feb 24, 12:47 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
We're currently using Rails migrations and I've been thinking if
putting migrations into the app is really the right approach? What
happens if migrations fail? It's not easy for the app itself to
rollback to the previous version
On Feb 18, 9:14 am, Petr Pudlak petr@gmail.com wrote:
Hi all,
I've written my first application using Lift and now I'm deploying it
into a production. I find it inconvenient that the run mode is
specified as a JVM system property.
First, sometimes JVM system properties are
Is there a way to do a page transition using location.replace?
In some cases, I am interested in not having the back button function.
I think I am looking for an SHtml.link variation that leverages
location.replace.
Perhaps an S.redirectTo variation too.
--
You received this message because you
reason for doing this...?
On 14 Feb 2010, at 08:06, aw wrote:
Is there a way to do a page transition using location.replace?
In some cases, I am interested in not having the back button function.
I think I am looking for an SHtml.link variation that leverages
location.replace.
Perhaps
On Feb 7, 11:31 pm, Marius marius.dan...@gmail.com wrote:
Please open a defect herehttp://www.assembla.com/spaces/liftweb/tickets
Would love to, but the New Ticket button does not seem to exist...
Is this project configured correctly to accept non-teammate
submissions?
--
You received this
Thank you for responding, and I can use your advice to make my code a
little less verbose and concise. Alas, it did not address my core
issue of forcing authentication. The behavior is exactly the same.
If I go to a protected resource with a Role requirement, then
authentication and an
OK, I think I found the source code that is the culprit. From
LiftServlet.scala:
http://github.com/dpp/liftweb/blob/master/framework/lift-base/lift-webkit/src/main/scala/net/liftweb/http/LiftServlet.scala
private def authPassed_?(req: Req): Boolean = {
val checkRoles: (Role, List[Role])
According to:
http://scala-tools.org/mvnsites-snapshots/liftweb/lift-base/lift-webkit/scaladocs/net/liftweb/http/LiftRules$object.html#httpAuthProtectedResource
It says that if I have a rule that responds with Empty, it means that
authentications is performed, but not an authorization check.
I don't think this issue is related to Derby because I am seeing this
problem too -- but I am not using Derby.
What version of Tomcat are you using? I am using 6.0.24 on either
Windows or Solaris 10 and see these errors too, like:
Feb 3, 2010 10:49:22 PM
I just noticed this:
Feb 3, 2010 10:49:23 PM org.apache.coyote.http11.Http11NioProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Feb 3, 2010 11:19:20 PM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.
On Feb 2, 4:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
I'd like to get a sense of how important the community views this defect.
Is it a backport the fix to every milestone and release yesterday or is it
a fix it in 2.0-M2 or someplace in between.
I vote for 2.0-M2.
--
You
Not sure what your use case is here:
1) A single mapped object can exist in different dbs?
2) Different mapped objects can exists in different dbs?
With the current design, 1) is not possible. Once the name of a field
has been determined, it'll stay fixed.
2) Might be doable if we add
On Jan 27, 3:49 pm, Jonathan Hoffman jonhoff...@gmail.com wrote:
Another change that comes to mind: Default to the unminified version in
DevMode
Oh, I like this idea!
I always have to hack my build and rebuild to get the uncompressed
version to debug an error, so the proposed trick would be
One thing that bugs me is how all the logging comes from one logger:
lift [Slf4jLogger.scala:110]
As a result, you don't have the granularity to adjust just
org.liftweb.http or org.liftweb.mapper, for example.
I liked your suggestion about adding a Logging trait:
Would it make sense to have the ConnectionIdentifier play a role?
(Including DefaultConnectionIdentifier.)
Because, for me, the decision to use snake_case or camelCase depends
on the capabilities of the database. If I have an application with
multiple database connections, the decision for
My code is a variation of the Chat sample code. To me, the material
change is the fact that I am running this on Tomcat (6.0.20). I have
never seen this behavior using Jetty (mvn jetty:run) and it isn't
really load related because I am the only user (possibly with two
browser windows).
--
You
Freeze in terms of minutes. But sorry, I haven't timed it yet.
I stumbled across my issue again and checked the logs and the freeze
is apparently 522 seconds:
09:31:41.124 INFO [http-8080-exec-8] lift [Slf4jLogger.scala:110] -
Service req
uest (GET) /mobile/mypage/ took 522397 Milliseconds
Mega weird! Randomly I seem to be running into a problem with my
Comet code. My xhtml doesn't render properly, and if I view source I
see this:
!--FIXME comet type Full(JournalClient) name Full(Other) timeout--
Uhm... What does this mean? What exactly is timing out? Any idea
why it would be
Can you define freeze? Is that the Java process stops for a short period
of time (~1 second)? A long period of time (many minutes)? Until you
restart the Java process? What does the CPU utilization look like? Is the
freezing for a single client/browser or all of them?
Freeze in terms of
On Jan 24, 10:47 am, Indrajit Raychaudhuri indraj...@gmail.com
wrote:
To ensure minimal delta between the master and 280_port_refresh, the
codebase in master has been adjusted considerably to improve Scala 2.8
compatibility. Thus, the master branch continues to be on Scala 2.7.7
but is lot
I have been developing my Lift app using the Jetty plugin on Windows,
but now am deploying production on a Tomcat 6 server on Solaris. I
don't exactly have great details at this moment, but I will admit that
I am observing some behavior differences in Tomcat that I don't see
with Jetty. I do
Arguably, the primary key is a special case of my problem.
I have an object. I populate some fields. Upon persistence, some
fields (like the primary key) is populated. In my particular example,
the field is populated due to a Default rule, but it could just as
well be a Trigger.
Fortunately,
I have an Oracle table that has a timestamp column with a default
value (current_timestamp). Mapper doesn't allow a save operation
unless I specifically specify a value for the timestamp column. I
would prefer to leverage the database's timestamp vs. the middle
tier's. Is there a way that I can
I have this code:
object Auth {
def username = S.containerRequest.map( r = r.asInstanceOf
[HTTPRequestServlet].req.getRemoteUser() ).openOr(UNKNOWN_USER)
}
The background is that I have my own Servlet Filter that performs
authentication. It fits in the chain before the Lift Filter. For
Note that I still see the excessive DISTINCTs in 2.0-M1.
--
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to
liftweb+unsubscr...@googlegroups.com.
I found my issue -- the problem was that I specified
DB.globalDefaultSchemaName, and that was interfering with Schemifier.
Tried 2.0-SNAPSHOT too, but same issue.
I have another thread on trying to change the schema name:
OK, I'm not 100% sure what DB.globalDefaultSchemaName is supposed to
do because specifying it broke Schemifier as well as my queries.
Certainly, it sounded like what I needed, but doesn't do what I
expected...
Basically, I am looking for the Lift equivalent to:
hibernate.default_schema
(See
I enabled SQL logging recently, and started looking at the generated
SQL from Mapper. I was surprised to see that select DISTINCT was
generally being done for queries when it is not necessary. Is that
really necessary?
For example:
Team.findAll(OrderBy(Team.name, Ascending))
translated to:
I found DB.globalDefaultSchemaName, but the Schemifier is still
breaking:
java.util.NoSuchElementException: key not found: mytablename
at scala.collection.Map$class.default(Map.scala:169) [scala-
library-2.7.7.jar:na]
at scala.collection.mutable.HashMap.default(HashMap.scala:33)
I'm pretty sure that I discovered that a bug was introduced that
breaks Schemifier with Oracle...
First of all, Oracle's JDBC driver has the odd behavior of being case
sensitive when it comes to acquiring metadata. For example:
DatabaseMetaData.getColumns(null, MYSCHEMA, MYTABLE, null) is not
Playing around with the TextileParser code, I am using paraFixer. I
noticed that bbold/b yields bold HTML. Similarly, emitalic/em
yields italic HTML. But strongbold/strong does NOT yield bold
HTML... Looks like we need to add some extra tags to the function
isValidTag. I'd like to see tags
I specify my database by specifying a jndiName for
DefaultConnectionIdentifier:
DefaultConnectionIdentifier.jndiName = jdbc/myOracleDb
I really need to specify a default schema too... (For Hibernate, I
would specify this in persistence.xml.) Is there a way to specify a
default schema?
I'm playing with the Chat example, and I am trying to do something
trivial, but I can't get it to work and am at a loss as to why...
Basically, I am interested in having the chat:input at the top of
the page, before the chat:body/. As a result, I figured that I
could simply edit the Chat.html
2. We are still on Scala 2.7.7. No excitement :) Lift is very
sensitive to Scala version and the stability of Lift (and it's
dependencies including Scala) is very important for those who are
critically dependent on Lift. That said, Heiko maintains Lift's port
on Scala 2.8.0 280_port actively.
See: http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html
---
Synchronization
Date formats are not synchronized. It is recommended to create
separate format instances for each thread. If multiple threads access
a format concurrently, it must be synchronized
Note that the Maven Javadoc Plugin has a specific goal defined for
creating a jar of the javadocs:
http://maven.apache.org/plugins/maven-javadoc-plugin/jar-mojo.html
Then you need to add a goal to attach it when you create a package:
I certainly understand the Actor model, but I am new to Akka... From
browsing their wiki (http://wiki.github.com/jboner/akka), it is
unclear to me that they provide a publish/subscribe concept -- and I
think I would need that... Please point me to that reference if you
are aware of that.
I'll
Thank you Derek... Clever trick!
I'm not using 1.1-SNAPSHOT -- I am using 1.1-M7... But that shouldn't
matter to me since I am not using Schemifier to create and manage the
database... (I am using LiquiBase.)
I had imagined an alternative strategy whereby I would provide a
sequence name to
I am looking to add a Chat feature to my Lift app, demonstrating the
Ajax + Comet whiz bang... However, I do need to persist my chat
messages (to a database), and I will have a cluster of (at least) 2
nodes. As a result, what recommendation is there to share an Ajax
event across the cluster so
I need to create a snippet sequence that looks something like this:
a href=next
span class=namename/span
span class=commentdescription/span
span class=arrow/
/a
The anchor needs to be generated using SHtml.link, and name
description need to be bound. As a result, I end up with a
OK, your suggestion definitely makes the snippet code more readable,
but I fear I didn't make my point clear because the snippet code still
is highly coupled with the view layout.
Imagine that I want to change my view from this:
a href=next
span class=namename/span
span
For Oracle database tables, one typically creates a Sequence to
provide primary key values. For example:
create table WIDGET (
id Number(8,0) not null,
name varchar2(50) not null,
...
constraint WIDGET_PK primary key (id),
...
)
create sequence WIDGET_ID_SEQ
When creating
Build is working now. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to
Is there a mode whereby I can turn on pretty printed output for my
xhtml? (I'm thinking of a LiftRule, I think?). Preferably, I'd also
like to control some details like indentation size.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
I upgraded to 1.1-M7 and was surprised to see that javax.mail-1.4.3-
SNAPSHOT is now appearing as a dependency. Generally speaking, we
don't want SNAPSHOT dependencies because they aren't re-creatable, but
somehow, it sneaked into the Java.Net Maven 2 Repository:
I needed a button that goes back, so I created an ajaxButton with
code like:
SHtml.ajaxButton(Cancel, () = JsCmds.jsExpToJsCmd(JsRaw
(history.back();)))
So, is this the best version? Or can this be simplified?
(I didn't feel well acquainted to leveraging Javascript from reading
the
I am using Lift-Mapper with Oracle. Oracle is a case-insensitive
database. For Hibernate projects, I have used the Enhanced Naming
Convention to translate 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
Thank you. I will open an Issue for this. I was reluctant to do it
thinking that it was a user issue. ;-)
On Nov 1, 11:57 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
It's not currently a feature, but please open a
tickethttp://github.com/dpp/liftweb/issues. We'll get it into M8
I don't mean to be negative, but are other options being considered
besides a ticketing system? I kind of wonder if the effort is worth
it when excellent alternatives exist (like JIRA -- their Git
integration may interest you: https://plugins.atlassian.com/plugin/details/4984
-- I have used
That's pretty much my take. The whole Java Calendar/Date/Timezone impl is
poorly designed, hence Joda Time.
I like Joda Time too, and used to be apprehensive about integrating it
as a dependency into my projects -- at least for simple things that I
could probably do with Date/Calendar, just
Thank you for this, and so quickly! I was able to leverage this for
what I needed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To
Sure, I could create a trait as you suggested... But, this sounds
like a common problem -- does this not already exist? I see
discussions about adding it to Scala, but I don't think it exists.
And Lift already has a logging infrastructure (i.e. LogBoot as you
suggest). Does it not make sense
My company is looking for an explanation of how Lift is secure.
I recall reading a comment saying that Lift deals well with most of
the Top 10 OWASP vulnerabilities (http://www.owasp.org/index.php/
Top_10_2007), but how? Most, not all? Are there strategies that are
recommended to deal with the
I am using SLF4J logging, but I am not sure if I am doing it the
right way...
I have pointed Lift to use SLF4J, and I call the enable routine and
have updated dependencies. All of that seems fine.
My question is around, how do my classes best use it... For example,
I am generally doing
72 matches
Mail list logo