On Sep 8, 1:18 am, glenn gl...@exmbly.com wrote:
Marius,
Please bear with me. I'm a little slow in following the logic here.
Don't worry glen.
I understand I can protect the resource as you suggest from all
but users with admin roles, using the LocParam,
HttpAuthProtected(() =
Hi,
I've noticed that some special char xml tags are being interpreted by
lift rather than passing through to the browser.
source code in my template:
div
amp;
copy;
quot;
raquo;
lt;
gt;
/div
result from curl http://localhost:8080/
Nice thoughts but personally I don't think this should be part of Lift
core framework. However an admin panel could be provided via a lift
widget and would be pretty interesting thing to have.
Br's,
Marius
On Sep 8, 2:16 am, DFectuoso santiago1...@gmail.com wrote:
I was thinking about how
That's because the url post/show is being intercepted by the same
rewrite rule that matches post/id urls. To get around this, try
adding an if statement to your rewrite rule:
LiftRules.rewrite.append {
case RewriteRequest(ParsePath(List(post, id), _, _, _), _, _)
if (id != show) =
On Mon, Sep 7, 2009 at 3:05 PM, Timothy Perrett timo...@getintheloop.euwrote:
Thanks Jon, thats super.
Super +1
Cheers, Tim
On Sep 7, 7:25 pm, jon jonhoff...@gmail.com wrote:
Done:
http://wiki.github.com/dpp/liftweb/how-to-fix-file-locking-problem-wi...
On Sep 7, 1:49 pm, Timothy
On Mon, Sep 7, 2009 at 11:38 PM, jon jonhoff...@gmail.com wrote:
Hi,
I've noticed that some special char xml tags are being interpreted by
lift rather than passing through to the browser.
source code in my template:
div
amp;
copy;
quot;
raquo;
Sorry. I did an end of friday commit and forgot to add some untracked
files.
I moved a bunch of stuff from http to util so that that stuff could be used
more broadly.
If I've got bandwidth today, I'll write up the changes and how they can help
in a variety of situations.
On Mon, Sep 7, 2009 at
On Mon, Sep 7, 2009 at 9:17 PM, Grant Wood smackt...@gmail.com wrote:
Hello Lifters,
If I create a template with the following:
lift:surround with=page_master at=content
a class=thickbox href=/media/?height=440width=640Foo/a
lift:bind name=content /
/lift:surround
I will be served an
Has anyone used dispatch from databinder.net? Its an http library in
Scala.
I do not know how to set the User-Agent header.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send
Marius,
With your help, I think I'm getting closer to understanding what is
needed
here.
One thing though, is that I believe I do need to manually check if the
user has the
appropriate role (in the DB) before I can set userRoles RequestVar.
See, in my application,
I have no way of knowing in
Cool, thank you very much!
On Sep 8, 8:56 pm, Xavi Ramirez xavi@gmail.com wrote:
That's because the url post/show is being intercepted by the same
rewrite rule that matches post/id urls. To get around this, try
adding an if statement to your rewrite rule:
LiftRules.rewrite.append {
Please forgive me for including so much code but I have an important
demo fast approaching and I'm kind of in a bind. I am using
Databinders Dispatch http library which is a wrapper around Javas
HttpClient library. I have included the Http class below. Does anyone
see how to set the user-agent
On Sep 8, 7:00 pm, glenn gl...@exmbly.com wrote:
Marius,
I guess there is little more to be said on this issue. Keep in mind
that
in many real-world applications, dynamically assigned user roles are a
requirement. And it's possible for users to have multiple roles, each
in a different
Jack,
I'm not sure where N8han (the author of Databinder) hangs out, but it's not
on the Lift list. :-(
Sorry.
David
On Tue, Sep 8, 2009 at 8:58 AM, jack jack.wid...@gmail.com wrote:
Please forgive me for including so much code but I have an important
demo fast approaching and I'm kind of
Can't find
RewriteResponse.apply(List[String], Map[String, String], Boolean)
in 1.0 API, is it a new feature?
On Sep 8, 11:52 pm, David Pollak feeder.of.the.be...@gmail.com
wrote:
or:
LiftRules.rewrite.append {
case RewriteRequest(ParsePath(List(post, id), _, _, _), _, _)
=
I'm trying to set up a simple web service using Lift v1.0. I've
scoured
across many examples but because of changes in the api's, none of them
compile. I finally found an example of a dispatcher tha compiles but
in the
sample as in others the dispatcher is added in the boot method of the
Boot
I've added a page with links to my posts
http://wiki.github.com/dpp/liftweb/example-crudify-a-entity
. I am just starting out with Lift and Scala but am happy to receive
any comments.
On Sep 8, 12:16 am, Randinn rand...@gmail.com wrote:
I'll ask the author.
On Sep 2, 3:49 am, David Pollak
Agreed - cant help but feel this is a little gimmicky and not really
part of lifts core values; that said, as Marius points out this might
work as a widget.
Cheers, Tim
On 8 Sep 2009, at 11:36, marius d. wrote:
Nice thoughts but personally I don't think this should be part of Lift
core
IMHO, you'd probably get better traction with such questions in a
wider audience on the main scala-user list over at EPFL...
Cheers, Tim
On 8 Sep 2009, at 17:26, Jack Widman wrote:
Right. I will try to keep to the topic :)
I actually found him and he quickly answered me.
On Tue, Sep 8,
Can you privately send me a zipped file containing your project (please
remove the target directory before sending). I think there is something
very wrong, but can't diagnose it from the stack trace.
On Tue, Sep 8, 2009 at 9:43 AM, abruzzo java.peri...@gmail.com wrote:
I'm trying to set up a
On Tue, Sep 8, 2009 at 9:41 AM, night_stalker usur...@gmail.com wrote:
Can't find
RewriteResponse.apply(List[String], Map[String, String], Boolean)
in 1.0 API, is it a new feature?
It's probably a new feature in 1.1 to address the issue that you identified.
I recommend running against
say I wanted to change the port / host that the Mailer uses.
how would I go about that?
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Lift group.
To post to this group, send email to
On Tue, Sep 8, 2009 at 6:40 AM, night_stalker usur...@gmail.com wrote:
Cool, thank you very much!
On Sep 8, 8:56 pm, Xavi Ramirez xavi@gmail.com wrote:
That's because the url post/show is being intercepted by the same
rewrite rule that matches post/id urls. To get around this, try
On Mon, Sep 7, 2009 at 11:22 AM, Timothy Perrett timo...@getintheloop.euwrote:
OK, so its been running for a while now and it looks like its
featuring that same file open problem as before
Can one of the admins fix it?
restarted.
Also, if there are scala-tools.org related issues,
Right. I will try to keep to the topic :)
I actually found him and he quickly answered me.
On Tue, Sep 8, 2009 at 12:24 PM, David Pollak feeder.of.the.be...@gmail.com
wrote:
Jack,
I'm not sure where N8han (the author of Databinder) hangs out, but it's not
on the Lift list. :-(
Sorry.
On Sep 8, 6:12 pm, glenn gl...@exmbly.com wrote:
Marius,
With your help, I think I'm getting closer to understanding what is
needed
here.
One thing though, is that I believe I do need to manually check if the
user has the
appropriate role (in the DB) before I can set userRoles
setting user-agent header. My question is answered
--~--~-~--~~~---~--~~
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
Ah, IE7 seems to be confused about the character encoding of the
page. When the encoding is set to Auto Select it chooses Western
European (Windows) and the © displays as ©. If I turn off Auto
Select and manually set to Unicode (UTF-8) it displays correctly.
I have
You need to set system properties:
System.setProperty(mail.smtp.starttls.enable,true);
System.setProperty(mail.smtp.host, host)
System.setProperty(mail.smtp.port, 587)
System.setProperty(mail.smtp.auth, true)
Mailer.authenticator = Full(new Authenticator {
On Tue, Sep 8, 2009 at 10:37 AM, jon jonhoff...@gmail.com wrote:
Ah, IE7 seems to be confused about the character encoding of the
page. When the encoding is set to Auto Select it chooses Western
European (Windows) and the © displays as ©. If I turn off Auto
Select and manually set to
Note that if you're on 1.1-SNAPSHOT you can set customProperties on
the Mailer which would allow to use some other configuration mechanism
than system property (like Props or Configgy).
val props = Map[String,String](mail.smtp.host - ...)
Mailer.customProperties = props
Hi.
Boxes are giving me a hard time.
Say you have a model of a Product.
If I've a snippet that retrieves a Product from the DB:
val product : Box[Product] = Product.find(2)
And now I want to bind product with bind(), product is a Box and it
can be empty, how can I bind something that
Aha,
It is a header problem. If the charset is specified in the content-
type IE will pick the right encoding. I added the following to my
Boot (I already had LiftRules.useXhtmlMimeType = false):
LiftRules.determineContentType = {
case _ = text/html; charset=utf-8
}
Maybe
There should be implicits that allow you to bind to a Box of a NodeSeq, so you
can bind to prodBox.map(_.toForm). Otherwise bind to
prodBox.map(_.toForm).openOr(NodeSeq.Empty) etc.
-
José Maríajosemariar...@gmail.com wrote:
Hi.
Boxes are giving me a hard
Well it depends on precisely what you want. If you want your snippet
to become empty if the product is not there, try:
productBox.map(product = {
bind(product, ns, ...)
}).openOr(NodeSeq.Empty)
If you want only certain bind positions empty, do the same thing
inside the bind:
That's my code:
val product = Product.find(id)
producto.map(product =
bind(product, xhtml,
url_enlace -- /product/ + product.id.toString ,
)
).openOr(NodeSeq.Empty)
}
and I get this error:
[INFO] use java command with args in file forced
Because the compiler interpret your expression as you expect. Instead
of:
url_enlace - (/product/ + product.id.toString)
which is what you wanted, it got:
(url_enlace - /product/) + product.id.toString)
which it can do because it can take an arbitrary object:
(url_enlace - /product/):
Operators starting with - and + have the same precendence so they are combined
left to right. Thus you are concatenating a BindParam with a String, returning
a String.
-
José Maríajosemariar...@gmail.com wrote:
It worked when I put the () around the bind
Precedence is determined by the first character of an operator.
-
Ross Mellgrendri...@gmail.com wrote:
Because the compiler interpret your expression as you expect. Instead
of:
url_enlace - (/product/ + product.id.toString)
which is what you wanted, it
You declared the LiftFilter twice in your web.xml file:
filter
filter-nameLiftFilter/filter-name
display-nameLift Filter/display-name
descriptionThe Filter that intercepts lift calls/description
filter-classnet.liftweb.http.LiftFilter/filter-class
/filter
THis caused the
Yup
-
José Maríajosemariar...@gmail.com wrote:
OMG
So, as - begins with - then it has the precedence of the operator
-
On Sep 8, 7:52 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Precedence is determined by the first character of an operator.
It worked when I put the () around the bind param
and the question is ... why?
On Sep 8, 7:35 pm, Ross Mellgren dri...@gmail.com wrote:
So that doesn't seem to be a box-related thing so much as a bind
argument related thing, probably because you have a precedence
problem... try:
What was the answer now that you have attained it?
On Sep 9, 3:02 am, Jack Widman jack.wid...@gmail.com wrote:
You are right. I will fine tune my determine which is a good question to ask
mechanism :)
On Tue, Sep 8, 2009 at 12:54 PM, Timothy Perrett
timo...@getintheloop.euwrote:
IMHO,
I adapted the code but not the error, Producto is Product in Spanish.
On Sep 8, 7:35 pm, Ross Mellgren dri...@gmail.com wrote:
So that doesn't seem to be a box-related thing so much as a bind
argument related thing, probably because you have a precedence
problem... try:
OMG
So, as - begins with - then it has the precedence of the operator
-
On Sep 8, 7:52 pm, Naftoli Gugenheim naftoli...@gmail.com wrote:
Precedence is determined by the first character of an operator.
-
Ross Mellgrendri...@gmail.com wrote:
So that doesn't seem to be a box-related thing so much as a bind
argument related thing, probably because you have a precedence
problem... try:
producto.map(product =
bind(product, xhtml,
url_enlace - (/product/ + product.id.toString),
)
).openOr(NodeSeq.Empty)
Also, FYI,
Sorry. should have thought to tell everyone. I have been coding all day
with tunnel vision!
The : method adds a Map[String, String] of headers to the request object:
http://databinder.net/sxr/dispatch-http/0.5.2/main/Http.scala.html#10878
For user agent it would be something like
val
Okay... I'll check in the change after Charles finishes the M5 build
On Tue, Sep 8, 2009 at 12:10 PM, jon jonhoff...@gmail.com wrote:
Aha,
It is a header problem. If the charset is specified in the content-
type IE will pick the right encoding. I added the following to my
Boot (I already
I am trying to do what is mentioned below but am struggling with the
object side of things for my particular case. This all relates back
to trying to auto-generate some classes that I posted back a while ago
on. I would love to generate 1 file that has the trait and the object
in it that I then
S.setHeader can be used in Lift to set a response header.
Derek
On Tue, Sep 8, 2009 at 9:02 AM, jack jack.wid...@gmail.com wrote:
Has anyone used dispatch from databinder.net? Its an http library in
Scala.
I do not know how to set the User-Agent header.
Cool. Thanks. The useful things about Lift seem to never end.
On Tue, Sep 8, 2009 at 6:51 PM, Derek Chen-Becker dchenbec...@gmail.comwrote:
S.setHeader can be used in Lift to set a response header.
Derek
On Tue, Sep 8, 2009 at 9:02 AM, jack jack.wid...@gmail.com wrote:
Has anyone used
Hello,
I'm having trouble finding the URL anchor (e.g.
www.foo.com/test.html#this-is-the-url-anchor) while performing a URL
rewrite. i looked through the HTTPRequest object, but I can't seem to
find it any where.
Any idea where it might be?
Thanks,
Xavi
Right -- not knowing personally as to core vs widget (that is up to
'management'), but I would also look to the web2py and django (even
Google app engine) frameworks for nice admin interface inspiration...
On Sep 7, 4:16 pm, DFectuoso santiago1...@gmail.com wrote:
I was thinking about how
Simple, but appropriate, I think, question.
I am using jetty on port 8080. How do configure my server so that when
people just type in my domain name, they get the index.html of my
application. Its been a few years since I did this.
--~--~-~--~~~---~--~~
You
-Djetty.port=80 I think.
Or set up a front end web server like nginx or apache that routes between 80
and 8080.
-
jackjack.wid...@gmail.com wrote:
Simple, but appropriate, I think, question.
I am using jetty on port 8080. How do configure my server so that
On Tue, Sep 8, 2009 at 6:55 PM, Xavi Ramirez xavi@gmail.com wrote:
Hello,
I'm having trouble finding the URL anchor (e.g.
www.foo.com/test.html#this-is-the-url-anchor) while performing a URL
rewrite. i looked through the HTTPRequest object, but I can't seem to
find it any where.
Any
Hi, folks,
I'm moving one of my old ruby based apps over to Scala/Lift to learn
Lift better, and here's one thing I was not able to find how to do.
Some forms in the old app have onsubmit event on the form tag which
combines / pre-validates things in the form, puts the output into a
hidden
On Tue, Sep 8, 2009 at 4:19 PM, abruzzo java.peri...@gmail.com wrote:
Whoops! Should have looked there. That fixed it. Thanks again for the
help.
Sure thing.
On Sep 8, 4:44 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
You declared the LiftFilter twice in your web.xml file:
On whatever command line you use to launch jetty.
-
Jack Widmanjack.wid...@gmail.com wrote:
And (pardon the noobality of this question) Where do I put the
-Djetty.port=80?
On Tue, Sep 8, 2009 at 10:30 PM, Naftoli Gugenheim naftoli...@gmail.comwrote:
Hi,
I am new to lift so I hope this is not an ignorant question/problem.
I am having a problem where my json handler stops working. I believe
it is timing out independent of the session.
If I have my browser open for a short while, the json functions stop
working but the ajax functions keep
This is a bug that was introduced a few months ago and fixed last week.
It'll be fixed in M5 and the fix is available on SNAPSHOT.
On Tue, Sep 8, 2009 at 9:04 PM, dave dinosau...@gmail.com wrote:
Hi,
I am new to lift so I hope this is not an ignorant question/problem.
I am having a problem
61 matches
Mail list logo