[Lift] How do I add unique id to radio inputs for labels?

2010-03-10 Thread Strom
...preferably the key or hashcode*/) ) Thanks, Strom -- 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

[Lift] Confused about request scope, session scope

2010-02-22 Thread Strom
as the browser is on the site). I've also considered a stateful snippet, but I don't think that's the right way to go about it since there is no clear start and finish to the snippet from where to unregister from. Thanks, Strom -- You received this message because you are subscribed to the Google Groups

[Lift] Re: Confused about request scope, session scope

2010-02-22 Thread Strom
params so people can bookmark their search. Thanks again! Strom -Ross On Feb 22, 2010, at 8:20 PM, Strom wrote: This seems like a silly question to me, but what is considered the scope of a request vs the scope of a session? Which is longer? I'm trying to figure how to go about having

[Lift] Re: Confused about request scope, session scope

2010-02-22 Thread Strom
Sometimes the best solution is the simplest, and in this case, overlooked. Thanks Ross! Strom On Feb 22, 5:46 pm, Ross Mellgren dri...@gmail.com wrote: On Feb 22, 2010, at 8:39 PM, Strom wrote: Thanks for responding Ross. Always helpful. On Feb 22, 5:25 pm, Ross Mellgren dri...@gmail.com

[Lift] Easy way to use ajax to set select option?

2010-02-13 Thread Strom
on that, but if anyone has any experience with something more straightforward, it would be greatly appreciated. Strom -- 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

[Lift] Re: Easy way to use ajax to set select option?

2010-02-13 Thread Strom
Nm, I figured it out. I'm just using the enumeration value's id (index in select field) and running this JsCmds.Run(JE.JsRaw( String.format(document.getElementById('%s').options[%s].selected=true, domId, valueId.toString)).toJsCmd) On Feb 13, 2:05 pm, Strom strommo...@gmail.com wrote

[Lift] JsCmds disabled inputs do not submit information

2010-02-13 Thread Strom
It seems that when I disable form inputs and set their values via JsCmds.setValById, the values don't get submitted to Lift in the form. Has anyone else had this problem? -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email

[Lift] Re: Enumeration.Value versus Enumeration#Value

2010-02-11 Thread Strom
I went with Chritophe's method of forcing the type in the model definition. Thanks, Strom On Feb 11, 6:36 am, Christophe Dehlinger christophedehlin...@gmail.com wrote: Have you tried forcing the type parameters in your MappedEnum declaration ? Like this: object state extends MappedEnum

[Lift] Enumeration.Value versus Enumeration#Value

2010-02-10 Thread Strom
= address.state(selected)) Thanks, Strom -- 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. For more options, visit

[Lift] How to use API offline?

2010-02-02 Thread Strom
missing something? Thanks! Strom -- 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. For more options, visit

[Lift] Re: How to use API offline?

2010-02-02 Thread Strom
continue to work offline for the next few days. I've done mvn clean scala:doc in my project directory, but I'm not sure what to do next. Are the API classes in html format somewhere, or am I missing something? Thanks! Strom -- You received this message because you are subscribed

[Lift] Re: How to use API offline?

2010-02-02 Thread Strom
Ok, I will check. In the meantime, I am cloning from git://github.com/dpp/liftweb.git, so would you be so kind as to show me how I would go about generating the doc and viewing it? Thanks! Strom On Feb 2, 10:44 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: Maybe check if it's on the scala

[Lift] Re: How to use API offline?

2010-02-02 Thread Strom
] And after this, where can I view the doc? Sorry...I'm not very polished on maven. On Feb 2, 10:52 pm, Timothy Perrett timo...@getintheloop.eu wrote: Clone lift from git, cd into the framework directory and run: mvn scala:doc Cheers, Tim On 2 Feb 2010, at 22:35, Strom

[Lift] Re: How to use API offline?

2010-02-02 Thread Strom
something now. As for my other question, how would I go about viewing the api after the scala doc is generated? Thanks! Strom On Feb 2, 11:02 pm, Naftoli Gugenheim naftoli...@gmail.com wrote: What about with -U ? - Stromstrommo...@gmail.com wrote

[Lift] Re: Image resize code

2010-01-28 Thread Strom
with multiple sizes. Don't know what is possible right now because I've only quickly glanced at the ImageHelper and resizer code. Strom On Jan 28, 8:46 am, Jonathan Hoffman jonhoff...@gmail.com wrote: I'm also working on adding some additional functionality and merging it with the function

[Lift] Re: Image resize code

2010-01-28 Thread Strom
a gander at Ross' code. Thanks. Strom On Jan 28, 11:26 am, Jonathan Hoffman jonhoff...@gmail.com wrote: By caching, I assume that you mean persistent storage?  You could store onto the file system after resizing. I was snooping around Ross's github projects and noticed this example for serving

[Lift] Re: Image resize code

2010-01-27 Thread Strom
Where exactly is the code? I don't see anything about image resizing here. Thanks, Strom On Jan 15, 2:50 pm, Timothy Perrett timo...@getintheloop.eu wrote: I've added the code here: http://github.com/dpp/liftweb/tree/wip_tim_285 Cheers, Tim On Jan 15, 8:52 pm, Ross Mellgren dri

[Lift] Form submit redirect with query string

2010-01-26 Thread Strom
I'm having a hard time getting this working. I want to create a search box with a submit button that redirects to the page /search?q= {query}. The code I have does not do anything when I click the submit button. Any help would be appreciated. Thanks! **html** lift:Search Search:

[Lift] Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-25 Thread Strom
for scheduling. Is there documentation I can read for information on how to integrate this Java library (or any java library for that matter) into my lift app and use it? Thanks! Strom -- You received this message because you are subscribed to the Google Groups Lift group. To post to this group

[Lift] Re: Solr (or external API), curl, scala dispatch library, Quartz scheduling questions

2010-01-25 Thread Strom
Wiki article for how to POST to an external XML API. http://wiki.github.com/dpp/liftweb/how-to-post-xml-to-an-external-url-with-databinder-dispatch On Jan 25, 1:47 pm, Strom strommo...@gmail.com wrote: Ok thanks! For those of you looking to do add Databinder's dispatch to your Lift project

[Lift] Re: More questions about dynamic image generation

2009-11-17 Thread Strom
PM, Strom wrote: /**Image.scala **/ objectImageextendsImagewith LongKeyedMetaMapper[Image] {  override def dbTableName = images } classImageextends LongKeyedMapper[Image] with IdPK {  def getSingleton =Image  objectimageextends MappedBinary(this)  object listing extends

[Lift] Re: More questions about dynamic image generation

2009-11-17 Thread Strom
Actually, can I see the code you used? It's weird yours works and mine doesn't. I'd just like to compare. On Nov 17, 10:47 am, Strom strommo...@gmail.com wrote: Thanks Ross, I looked up the mime type and save time in the DB (using postgres), and mime type is image/jpeg while save time is non

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
, image - img src={image.lookup} /) Any ideas on what's happening? Am I doing something wrong? On Nov 10, 3:36 pm, Ross Mellgren dri...@gmail.com wrote: Some answers inline: On Nov 10, 2009, at 6:05 PM, Strom wrote: Questions 1. I see unapply it in the Req object's methods list in the API

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
the code. -Ross On Nov 16, 2009, at 8:14 PM, Strom wrote: Thanks for the reply. I implemented the code and it's working, but sporadically. I'm getting these issues on my Win XP browsers: 1. Internet Explorer 6 and Safari - theimageis broken altogether. 2. FireFox - The initial attempt

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
the code. -Ross On Nov 16, 2009, at 8:14 PM, Strom wrote: Thanks for the reply. I implemented the code and it's working, but sporadically. I'm getting these issues on my Win XP browsers: 1. Internet Explorer 6 and Safari - theimageis broken altogether. 2. FireFox - The initial attempt

[Lift] Re: More questions about dynamic image generation

2009-11-16 Thread Strom
) } else { images(0).imageUrl } } } //end class On Nov 16, 5:53 pm, Strom strommo...@gmail.com wrote: Thanks Ross, I'll try to get some code up in a bit. In the meantime, can you explain how to use Firebug to check the content type? I looked under the HTML and DOM inspectors

[Lift] Re: How to create a HTML selection based on a Enumeration?

2009-11-10 Thread Strom
I made a wiki article for this purpose (based on the thread I started that Ross linked): http://wiki.github.com/dpp/liftweb/how-to-make-radio-lists-and-drop-downs-from-enumerations Hope that helps. On Nov 10, 8:24 am, Ross Mellgren dri...@gmail.com wrote: Does this thread help?

[Lift] More questions about dynamic image generation

2009-11-10 Thread Strom
forward, or is there another alternative method to fetch and display user uploaded images from the database? Thanks, Strom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email

[Lift] Binding enumerations with radio buttons or select list

2009-10-28 Thread Strom
Has anyone figure out how to bind enumerations as radio buttons or a drop down list? I have an enumeration: object ExchangeMethod extends Enumeration { val Pickup = Value(Pickup) val Ship = Value(Ship) val PickupOrShip = Value(Pickup or Ship) } And I want to put radio buttons in an html

[Lift] Re: Binding enumerations with radio buttons or select list

2009-10-28 Thread Strom
how to do the same type of thing with radio buttons? On Oct 28, 12:06 pm, Ross Mellgren dri...@gmail.com wrote: SHtml.selectObj[ExchangeMethod.Value](ExchangeMethod.elements.map(el   = (el, el.toString)), Empty, selected = println(selected)) ? -Ross On Oct 28, 2009, at 2:59 PM, Strom wrote

[Lift] Re: Binding enumerations with radio buttons or select list

2009-10-28 Thread Strom
: http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/util/Box.html This post might be overkill, but I figured someone who is completely lost, like I was, will find some useful information. Strom On Oct 28, 2:47 pm, Ross Mellgren dri...@gmail.com wrote: (untested, uncompiled, and generally

[Lift] Re: Binding enumerations with radio buttons or select list

2009-10-28 Thread Strom
I would post on the wiki, but I've never added content to a wiki, and I can't create an account for the LiftWiki (only admins can make new accounts?). If someone wants to post this information on there somewhere, go for it! Strom On Oct 28, 5:39 pm, Ross Mellgren dri...@gmail.com wrote: +1

[Lift] Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Strom
I'm not sure if this is a scala or a lift related question, but when I try to bind a submit button, I'm having some confusion on using zero parameter functions as the () - Any parameter in the submit signature. The signature for the method in question is SHtml.submit(value : String, func : () =

[Lift] Re: Newbie: zero parameter functions, bind call-by-name function curiosity

2009-10-27 Thread Strom
that the scala interpreter evaluates both the value and the function when I use: scala def testFunc() : Int = 3 scala testFunc Int = 3 scalatestFunc() Int = 3 Strom On Oct 27, 7:19 am, Ross Mellgren dri...@gmail.com wrote: Did you mean () = processForm by chance? () - processForm is a pair

[Lift] Newbie post: Where are the basics and best practices?

2009-10-21 Thread Strom
Hello everyone, I am pretty much brand new to lift and scala, and I come from a non- framework jsp/java servlet/hibernate background. I've been reading this board, Beginning Scala, The lift book, and googling how to use the lift framework, but I can't seem to find some basic info. Please help me

[Lift] Re: Newbie post: Where are the basics and best practices?

2009-10-21 Thread Strom
Very cool. Thanks for all the tips David! I will try to ask more as I continue my journey through this new endeavor, seeing as how quickly I got the info I needed. Strom On Oct 21, 8:05 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Oct 21, 2009 at 4:15 PM, Strom strommo

[Lift] Re: Newbie post: Where are the basics and best practices?

2009-10-21 Thread Strom
Once I get my bearings I'll be sure to contribute to this community. Thanks! On Oct 21, 9:10 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Wed, Oct 21, 2009 at 8:11 PM, Strom strommo...@gmail.com wrote: Very cool. Thanks for all the tips David! I will try to ask more as I