blasphemy!!!! :-)
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Well, Lift-the-project is more than the web framework, so this is the
right place :-)
/Jeppe
Hehe yeah I was really hoping to find a lift-json list rather than posting on the lift list :)
On Fri, Mar 4, 2011 at 12:39 PM, Andy Czerwonka <andy.cz...@gmail.com> wrote:
blasphemy!!!! :-)
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Could you try to replace a call to paranamer.lookupParameterNames with a
call to LocalvariablesNamesEnhancer.lookupParameterNames?
If it works we can then abstract parameter name reading and let Play
users configure a strategy which works in that environment.
Cheers Joni
Very nice, thanks for finding it out! I will abstract parameter reading
now and will make the reading strategy configurable. Details will follow
soon.
> One caveat: When I defined the case class outside the class I was
> using for testing it worked fine. However when I defined the case
> class inline within the test method or within the test class, there
> was an extra field called $outer. Is this supposed to be filtered out
> by the clean function defined in constructorArgs?
This is expected behavior. Scalac makes a class inner class when it is
defined within a class. An inner class gets an implicit reference to the
outer class, the extra field called $outer you saw. Serializable case
classes must be defined in a package or in an object.
Cheers Joni
> Thanks again
> Dirk
>
> On Tue, Mar 8, 2011 at 12:26 AM, Dirk McCormick <di...@mccormick.cx>
> wrote:
> Hi, sorry for the late response, I was away for the weekend.
>
>
> > Lift is a broad ranging framework and we welcome all
> questions from
> > all users of any Web framework. The key take-away is that
> we're here
> > to help.
>
>
> That's great, thanks!
>
>
> > Could you try to replace a call to
> paranamer.lookupParameterNames with a
> > call to LocalvariablesNamesEnhancer.lookupParameterNames?
>
>
> Yes, I'll give it a go and get back to you tomorrow.
> Thanks again
> Dirk
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb
Hi,
Pushed a new configuration option to trunk. You can configure Play
specific parameter name reading strategy in a following way:
object PlayParameterNameReader extends ParameterNameReader
{
def lookupParameterNames(constructor: JConstructor[_]) = ...
}
implicit val formats = new DefaultFormats {
override val parameterNameReader = PlayParameterNameReader
}
A convenient place to put that implicit is a package object. For
instance if your project is namespaced as foo.bar, you can put that
implicit definition to a package object foo.bar and it will be in scope
for all subpackages.
Cheers Joni
I think you still need it on CLASSPATH though. It is not used at all if
you configure a different name reading strategy but there's references
to it in classes since it is the default strategy.
Cheers Joni
Cheers Joni
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> Hi Joni,
> Did you push this to master? It looks like the most recent change on github
> was on the 28th of January:
> https://github.com/lift/liftThanks,
You need to look here: https://github.com/lift/framework
Perhaps it's time to delete the old github repo?
/Jeppe
/Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
We should keep the old repo around (history is very important), but change the README
> On Tue, Mar 15, 2011 at 2:45 PM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote:
>
>> Dirk <dirk...@gmail.com> writes:
>>
>> > Hi Joni,
>> > Did you push this to master? It looks like the most recent change on
>> github
>> > was on the 28th of January:
>> > https://github.com/lift/liftThanks,>
>>
>> You need to look here: https://github.com/lift/framework>
>> Perhaps it's time to delete the old github repo?
>>
>
> We should keep the old repo around (history is very important), but change
> the README
I've changed the READMEs...
Another idea is to fork the repo to another account and keep history
there and delete it from the lift namespace....
/Jeppe
I've written an "extension method" for updating the
parameterNameReader:
https://gist.github.com/891235
I wish it to be in the Lift repo as normal method...
BTW: In some cases, the default parameterNameReader works well. For
example, if you (de)serialize only classes from an external module
which is linked by Maven, it is probably on the classpath and it works
well.
Vít Šesták 'v6ak'
On Mar 16, 10:08 am, Jeppe Nejsum Madsen <je...@ingolfs.dk> wrote:
> David Pollak <feeder.of.the.be...@gmail.com> writes:
> > On Tue, Mar 15, 2011 at 2:45 PM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote:
>
> >> Dirk <dirkm...@gmail.com> writes:
>
> >> > Hi Joni,
> >> > Did you push this to master? It looks like the most recent change on
> >> github
> >> > was on the 28th of January:
> >> >https://github.com/lift/liftThanks,>
>
> >> You need to look here:https://github.com/lift/framework>
> >> Perhaps it's time to delete the old github repo?
>
> > We should keep the old repo around (history is very important), but change
> > the README
>
> I've changed the READMEs...
>
> Another idea is to fork the repo to another account and keep history
> there and delete it from the lift namespace....
>
> /Jeppe
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.