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 at the top of
the page, before the . As a result, I figured that I
could simply edit the Chat.html template and switch the
> 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 activ
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 externally
Playing around with the TextileParser code, I am using paraFixer. I
noticed that bold yields bold HTML. Similarly, italic
yields italic HTML. But bold does NOT yield bold
HTML... Looks like we need to add some extra tags to the function
isValidTag. I'd like to see tags like , , and added
for
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 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)
[s
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
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:
http://groups.google.com/group/liftweb/browse_thread/thread/00f7a484e9e71
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 secti
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 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
L
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.
F
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 think I discovered that my issue is related to the fact that the
code is part of a CometActor/CometListener, and it sounds like S isn't
fully functional from this perspective... My clue was the
inStatefulScope_? method documentation.
I do think I managed to work around my specific issue, but I
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, J
On Jan 24, 10:47 am, Indrajit Raychaudhuri
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 more Scala 2.8 fri
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 st
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:
Uhm... What does this mean? What exactly is timing out? Any idea
why it would be random?
(Note that if I wait a few minutes, the page works fine.
> 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 term
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 r
> > 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 Millisecond
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:
http://groups.google.com/group/lif
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 snake_
> 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 w
On Jan 27, 3:49 pm, Jonathan Hoffman 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 smarter and
far mor
On Feb 2, 4:57 pm, David Pollak 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 received this message beca
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 org.apache.catalina.loader.WebappClassLoa
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.
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. Thi
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 authoriza
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]) =
On Feb 7, 11:31 pm, Marius 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 message because you are
On Feb 12, 1:14 pm, Alex Black wrote:
> This looks a bit complex:
>
> http://www.samaxes.com/2009/05/combine-and-minimize-javascript-and-cs...
>
> but its an example of how other people have handled combining css and
> javascript files.
Here is another one: http://code.google.com/p/wro4j/
--
Y
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 a
or 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
> > lo
On Feb 18, 9:14 am, Petr Pudlak 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 inaccessible, for exa
On Feb 24, 12:47 pm, Jeppe Nejsum Madsen 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 :-)
There i
>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 s
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=gst&q=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 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
> here:http://wiki.github.com/dpp/liftweb/logging
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 styl
On Mar 3, 10:56 pm, Ross Mellgren 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 see tha
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 wrote:
> aw writes:
> >
>
> Ross already described how to disable this, but this seems like a
> g
On Mar 4, 6:56 am, Naftoli Gugenheim 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 rather
than the Req
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 get
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:
http://groups.google.com/group/liftweb/browse_thread/thread/807a9397f1e3fa9?hl=e
Ugh, I must have had a cache issue despite the fact that I certainly
did hit refresh before...
I am now seeing 1.4.2 JQuery.
Regarding , I just added that too. This is
definitely a nice feature because caching has been an issue for me.
Thanks Marius!
--
You received this message because you ar
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
liftweb+unsubscr.
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
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 hash
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
wrote:
> Good idea. Please open a ticket
> athttps://liftweb.assembla.com/spaces/liftweb/ticketsand assign it to me.
--
You received this mess
On Mar 4, 9:50 am, David Pollak wrote:
> On Thu, Mar 4, 2010 at 9:27 AM, aw wrote:
> > On Mar 4, 6:56 am, Naftoli Gugenheim wrote:
> > > How about
> > > LiftRules.stripComments.default.set( () => !Req.isIE)
> > > etc.?
>
> This is where Lift's
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
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 searc
On Mar 10, 1:15 am, Timothy Perrett 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:
http://www.extjs.com/d
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 somet
> 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 unsub
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 to
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 thei
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
wrote:
> It's not currently a feature, but please open a
> tickethttp://github.com/dpp/liftweb/issues. We'll get it into M8
--~--~-~--~~---
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
th
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:
http://download.java.net/maven/2/
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 to
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
liftweb+unsubsc
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 re
I need to create a snippet sequence that looks something like this:
name
description
The anchor needs to be generated using SHtml.link, and name &
description need to be bound. As a result, I end up with a template
sequence like this:
Then, I need snippet code
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:
name
description
to this:
name
description
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 th
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:
http://maven.apache.org/plugin-developers/cookbook/attac
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 ta
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 the
75 matches
Mail list logo