[Lift] Re: Swampland

2009-01-12 Thread dwischusen

I've always been a fan of Redmine (http://www.redmine.org/).
Primarily because it's

(1) Easy to set up.
(2) Has a clean, simple UI that uses AJAX in a number of places to
make things a bit more responsive.
(3) Provide a good interface for filtering issues.
(4) Has a good plug-in architecture.

To provide a potential differentiator for Swampland It could be
interesting to "deeply" integrate it with Lift.   Here's what I mean
(this idea is only partially baked, so bear with me):

When you create a new Lift project you could choose to associate it
with a project in Swampland.  Then when the project is being QA'ed or
an exception is thrown Lift could display a form for creating a new
issue in the Swampland project and Lift would automatically take care
of gathering all of the relevant info that would make it easier to
recreate the issue later (stack, environment info, and potentially a
list user interactions/events that occurred preceding the issue).

Derek

On Jan 12, 7:36 am, "David Bernard" 
wrote:
> David,
>
> you forgot to define the licence in the pom.
>
> On Mon, Jan 12, 2009 at 13:33, David Bernard  
> wrote:
> > Do you try to do a bug tracker or a "generic" issue tracker/task planner ?
>
> > Quick note about bug tracker ?
> > * I like id like JIRA, projectPrefix-projectNum and not a global Num
> > (cross project)
> > * supporting part of the JIRA remote API will simplify integration
> > with third-party tool (hudson, eclipse,...) but need to have specs of
> > the JIRA' remote API
> > * for open-source/public project having a voting system could be
> > usefull (not for internal project)
> > * support wiki syntax for description and comments
> > * support for export/import project
> > * support sub-project
> > * I've got other suggestion (as JIRA admin/users) like
> > permissions/groups management
> > * 
> > so many feature, so few time => do it simple and good luck
>
> > Do you want I setup hudson to build and deploy the project on snapshots 
> > repo ?
>
> > /davidB
>
> > On Sun, Jan 11, 2009 at 09:51, Viktor Klang  wrote:
> >> I've used FogBugz and Mantis, and here are my conclusions for a good
> >> issue-tracker:
>
> >> 1) Good integration possibilities (API:s to hook into, different
> >> VCS-backends etc)
> >> 2) Clean and intuitive UI
> >> 3) A priority list is NOT a list with items with different priority
> >> levels!!!
> >>     A priority list is a list in prioritized order, so if you move an item
> >> down, you lower it's priority
> >> 4) It HAS TO support unicode characters properly (Yes Mantis, I'm looking 
> >> at
> >> you)
> >> 5) It has to be able to store and display screenshots easily
> >> 6) It mustn't be a project management tool
> >> 7) It should use an open authentication implementation, so it's not yet
> >> another password to remember
> >> 8) It should be possible to make "templates" for issue-submission
> >> 9) It should be possible to make templates for responding to issues.
> >> 10) Also, I think reporting of statistics should only be done either by
> >> plugins or by external software, and that the issue-tracker can expose it's
> >> raw statistics through API.
>
> >> I hope I didn't forget anything.
>
> >> Cheers,
> >> Viktor
>
> >> On Sat, Jan 10, 2009 at 1:38 AM, David Pollak
> >>  wrote:
>
> >>> Folks,
>
> >>> I'm please to announce my latest open source project: Swampland.
> >>>http://github.com/dpp/swampland/tree/master
>
> >>> Swampland is a bug/issue tracking system built on Lift.  It's licensed
> >>> under the GNU Affero General Public License (there will be a classpath
> >>> exception so Swampland can be run in non-free web containers).
>
> >>> I'm going to be working on Swampland over the next bunch of weeks and it
> >>> will form the basis for the Lift project's bug tracking system.  It will
> >>> also likely be the project the I use in the Lift book.
>
> >>> Early in the process, I'd love to hear from folks about the good and bad
> >>> of various bug tracking system they use so I can use the good and avoid
> >>> pitfalls.
>
> >>> My key goal for Swampland is to build something that's got a very usable
> >>> UI, but also has a RESTful interface that's a first-class part of the
> >>> system.  It will support plugins.
>
> >>> I'm licensing it under a GPL license because I want to make sure that
> >>> anyone who uses it and updates it contributes code back to the project.
>
> >>> Thanks,
>
> >>> David
>
> >>> --
> >>> Lift, the simply functional web frameworkhttp://liftweb.net
> >>> Collaborative Task Managementhttp://much4.us
> >>> Follow me:http://twitter.com/dpp
> >>> Git some:http://github.com/dpp
>
> >> --
> >> Viktor Klang
> >> Senior Systems Analyst

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit

[Lift] Re: Scala 2.7.3 and Lift testing

2009-01-12 Thread TylerWeir

That's good news, or at least the precursor to good news.



On Jan 12, 8:21 pm, "David Pollak" 
wrote:
> Folks,
>
> I've been running tests all day long creating and destroying Lift sessions
> (Lift sessions have Actors and the 2.7.2 reference retention was causing Out
> of Memory Errors.)
>
> So far, the session/Actor creation and destruction process has been working
> perfectly and there's no memory use growth.  I'm cautiously optimistic and
> will give a further update tomorrow around 9am PST.
>
> Thanks,
>
> David
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Collaborative Task Managementhttp://much4.us
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Scala 2.7.3 and Lift testing

2009-01-12 Thread David Pollak
Folks,

I've been running tests all day long creating and destroying Lift sessions
(Lift sessions have Actors and the 2.7.2 reference retention was causing Out
of Memory Errors.)

So far, the session/Actor creation and destruction process has been working
perfectly and there's no memory use growth.  I'm cautiously optimistic and
will give a further update tomorrow around 9am PST.

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] dynamic page content

2009-01-12 Thread Charles F. Munat

I currently have several sites where I permit users to update page 
content using Markdown, saving the code in the database. I use a Page 
object tied to the url of the page, and a PageOps snippet. Then I 
surround the template thus:


   
 
   
   
 
   


Now I realize that I want to include some items (namely banners) that 
are in the default template. I suppose I could just move the 
 tags to the default template (would that work?), 
but I'm wondering if there's a better way.

Is there some simple way I could put every site page (or say, every 
public page) through a snippet that looked for an equivalent page in the 
pages database table and, if it found one, inserted the text, etc. in 
the right places?

Chas.

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: neophyte lift ajax question

2009-01-12 Thread David Pollak
On Mon, Jan 12, 2009 at 3:24 PM, Meredith Gregory
wrote:

> David,
>
> Thanks for the follow up. i found what i believe to be the problem. i'll
> try to post a reasonable analysis in the next few days.


No worries.  I'll take help from you any way I can get it.


> i'm sort of under the gun, right now.
>
> Best wishes,
>
> --greg
>
> On Mon, Jan 12, 2009 at 2:26 PM, David Pollak <
> feeder.of.the.be...@gmail.com> wrote:
>
>>
>>
>> On Mon, Jan 12, 2009 at 1:58 PM, Meredith Gregory <
>> lgreg.mered...@gmail.com> wrote:
>>
>>> Chas, et al,
>>>
>>> To clarify
>>>
>>>-  Suppose you only had the ajax form in the site menu. You would
>>>never call the bind. So, the namespace would not be set up and the form
>>>should/would not work.
>>>
>>> As long as the ajax form is enclosed in a snippet invocation and the
>> snippet does binding, then, no matter the source, the snippet will bind the
>> namespaced XML.
>>
>>>
>>>-
>>>- Additionally, in the given sample application the behavior
>>>associated to the widgets in HelloForm2 is not (necessarily) the 
>>> behavior in
>>>the ajaxform. So, that's also a source of confusing erroneous behavior, 
>>> as i
>>>expect the user to see the behavior from the bind.
>>>
>>> The bind call will happen if it's in your snippet and your snippet is
>> called from the XHTML page.
>>
>>
>>>
>>>-
>>>- Furthermore, if you have the set up as in bullet one and make a
>>>call to bind before returning the xml:group, you still get the unknown
>>>namespace error.
>>>
>>>
>> The snippet is responsible for transforming its input into valid output.
>> Valid output may contain other namespaces (or even the current namespace).
>> It is a logic error on the part of the snippet not to provide this
>> transformation.
>>
>> With all this being said, I've struggled with how to add some form of
>> type-safety to Lift's views... stuff that can be verified at compile-time
>> rather than run-time.  To date, I have not been able to come up with a way
>> of creating type-safe Lift views without resorting to the hell of SOAP/WSDL
>> style declarations.  If you can apply your amazing mind to the problem, I'd
>> love to get something that I can wrap my not so amazing (and pretty
>> math-deprived) brain around.
>>
>> Thanks,
>>
>> David
>>
>>
>>>
>>>-
>>>
>>> Best wishes,
>>>
>>> --greg
>>>
>>>
>>> On Mon, Jan 12, 2009 at 1:22 PM, Meredith Gregory <
>>> lgreg.mered...@gmail.com> wrote:
>>>
  Chas,

 That's exactly what i thought. But, that would be a bug -- unless i've
 misunderstood something -- because, then the effect of the bind is bleeding
 over into the behavior of the ajax form.

 Best wishes,

 --greg


 On Mon, Jan 12, 2009 at 1:19 PM, Charles F. Munat wrote:

>
> Greg,
>
> The "hello" namespace is set up in the call to bind in
> HelloForm2.scala:
>
> class HelloForm2 {
>   object who extends RequestVar(Full("world"))
>
>   def show(xhtml: NodeSeq): NodeSeq = {
> bind("hello", xhtml,
> "whoField" -> text(who.openOr(""), v => who(Full(v))) % ("size"
> -> "10") % ("id" -> "whoField"),
> "submit" -> submit(?("Send"), () => println("value:" +
> who.openOr("") + " :: " + param("whoField"))),
> "who" -> who.openOr("")
> )
>   }
> }
>
> Note the bind("hello", above.
>
> Not sure if I'm understanding your question exactly, but hope that
> helps.
>
> Chas.
>
> Meredith Gregory wrote:
> > Lifted,
> >
> > i have been using the AJAXForm example from the hellodarwin sample as
> a
> > template for my simple little experiments with lift. Occasionally, i
> > have gotten
> >
> > XML Parsing Error: prefix not bound to a namespace
> > Location: http://localhost:8080/AJAXREPLForm
> > Line Number 72, Column 46:Term
> > :
> > -^
> >
> > when i try to visit my little AJAXForm. This is troublesome for two
> reasons.
> >
> > * often i just recopy and reedit a site that appears to work --
> with
> >   the same edits -- and it just works.
> > * after some digging i think this complaint is legit and wonder
> how
> >   it could work in the hellodarwin ajax example -- how is the
> >   'hello' namespace being setup in the hellodarwin ajax example?
> >
> > i hate to be asking questions of this type, but i can find no
> > documentation to help sort this out.
> >
> > Best wishes,
> >
> > --greg
> >
> > --
> > L.G. Meredith
> > Managing Partner
> > Biosimilarity LLC
> > 806 55th St NE
> > Seattle, WA 98105
> >
> > +1 206.650.3740
> >
> > http://biosimilarity.blogspot.com
> >
> > >
>
>
>


 --
 L.G. Meredith
 Managing Partner
>

[Lift] Re: neophyte lift ajax question

2009-01-12 Thread Meredith Gregory
David,

Thanks for the follow up. i found what i believe to be the problem. i'll try
to post a reasonable analysis in the next few days. i'm sort of under the
gun, right now.

Best wishes,

--greg

On Mon, Jan 12, 2009 at 2:26 PM, David Pollak  wrote:

>
>
> On Mon, Jan 12, 2009 at 1:58 PM, Meredith Gregory <
> lgreg.mered...@gmail.com> wrote:
>
>> Chas, et al,
>>
>> To clarify
>>
>>-  Suppose you only had the ajax form in the site menu. You would
>>never call the bind. So, the namespace would not be set up and the form
>>should/would not work.
>>
>> As long as the ajax form is enclosed in a snippet invocation and the
> snippet does binding, then, no matter the source, the snippet will bind the
> namespaced XML.
>
>>
>>-
>>- Additionally, in the given sample application the behavior
>>associated to the widgets in HelloForm2 is not (necessarily) the behavior 
>> in
>>the ajaxform. So, that's also a source of confusing erroneous behavior, 
>> as i
>>expect the user to see the behavior from the bind.
>>
>> The bind call will happen if it's in your snippet and your snippet is
> called from the XHTML page.
>
>
>>
>>-
>>- Furthermore, if you have the set up as in bullet one and make a call
>>to bind before returning the xml:group, you still get the unknown 
>> namespace
>>error.
>>
>>
> The snippet is responsible for transforming its input into valid output.
> Valid output may contain other namespaces (or even the current namespace).
> It is a logic error on the part of the snippet not to provide this
> transformation.
>
> With all this being said, I've struggled with how to add some form of
> type-safety to Lift's views... stuff that can be verified at compile-time
> rather than run-time.  To date, I have not been able to come up with a way
> of creating type-safe Lift views without resorting to the hell of SOAP/WSDL
> style declarations.  If you can apply your amazing mind to the problem, I'd
> love to get something that I can wrap my not so amazing (and pretty
> math-deprived) brain around.
>
> Thanks,
>
> David
>
>
>>
>>-
>>
>> Best wishes,
>>
>> --greg
>>
>>
>> On Mon, Jan 12, 2009 at 1:22 PM, Meredith Gregory <
>> lgreg.mered...@gmail.com> wrote:
>>
>>> Chas,
>>>
>>> That's exactly what i thought. But, that would be a bug -- unless i've
>>> misunderstood something -- because, then the effect of the bind is bleeding
>>> over into the behavior of the ajax form.
>>>
>>> Best wishes,
>>>
>>> --greg
>>>
>>>
>>> On Mon, Jan 12, 2009 at 1:19 PM, Charles F. Munat wrote:
>>>

 Greg,

 The "hello" namespace is set up in the call to bind in HelloForm2.scala:

 class HelloForm2 {
   object who extends RequestVar(Full("world"))

   def show(xhtml: NodeSeq): NodeSeq = {
 bind("hello", xhtml,
 "whoField" -> text(who.openOr(""), v => who(Full(v))) % ("size"
 -> "10") % ("id" -> "whoField"),
 "submit" -> submit(?("Send"), () => println("value:" +
 who.openOr("") + " :: " + param("whoField"))),
 "who" -> who.openOr("")
 )
   }
 }

 Note the bind("hello", above.

 Not sure if I'm understanding your question exactly, but hope that
 helps.

 Chas.

 Meredith Gregory wrote:
 > Lifted,
 >
 > i have been using the AJAXForm example from the hellodarwin sample as
 a
 > template for my simple little experiments with lift. Occasionally, i
 > have gotten
 >
 > XML Parsing Error: prefix not bound to a namespace
 > Location: http://localhost:8080/AJAXREPLForm
 > Line Number 72, Column 46:Term
 > :
 > -^
 >
 > when i try to visit my little AJAXForm. This is troublesome for two
 reasons.
 >
 > * often i just recopy and reedit a site that appears to work --
 with
 >   the same edits -- and it just works.
 > * after some digging i think this complaint is legit and wonder
 how
 >   it could work in the hellodarwin ajax example -- how is the
 >   'hello' namespace being setup in the hellodarwin ajax example?
 >
 > i hate to be asking questions of this type, but i can find no
 > documentation to help sort this out.
 >
 > Best wishes,
 >
 > --greg
 >
 > --
 > L.G. Meredith
 > Managing Partner
 > Biosimilarity LLC
 > 806 55th St NE
 > Seattle, WA 98105
 >
 > +1 206.650.3740
 >
 > http://biosimilarity.blogspot.com
 >
 > >



>>>
>>>
>>> --
>>> L.G. Meredith
>>> Managing Partner
>>> Biosimilarity LLC
>>> 806 55th St NE
>>> Seattle, WA 98105
>>>
>>> +1 206.650.3740
>>>
>>> http://biosimilarity.blogspot.com
>>>
>>
>>
>>
>> --
>> L.G. Meredith
>> Managing Partner
>> Biosimilarity LLC
>> 806 55th St NE
>> Seattle, WA 98105
>>
>> +1 206.650.3740
>>
>> http://biosimilarity.blogspot.com
>>
>>
>>
>
>
> --
> Lift, th

[Lift] Re: neophyte lift ajax question

2009-01-12 Thread David Pollak
On Mon, Jan 12, 2009 at 1:58 PM, Meredith Gregory
wrote:

> Chas, et al,
>
> To clarify
>
>-  Suppose you only had the ajax form in the site menu. You would never
>call the bind. So, the namespace would not be set up and the form
>should/would not work.
>
> As long as the ajax form is enclosed in a snippet invocation and the
snippet does binding, then, no matter the source, the snippet will bind the
namespaced XML.

>
>-
>- Additionally, in the given sample application the behavior associated
>to the widgets in HelloForm2 is not (necessarily) the behavior in the
>ajaxform. So, that's also a source of confusing erroneous behavior, as i
>expect the user to see the behavior from the bind.
>
> The bind call will happen if it's in your snippet and your snippet is
called from the XHTML page.


>
>-
>- Furthermore, if you have the set up as in bullet one and make a call
>to bind before returning the xml:group, you still get the unknown namespace
>error.
>
>
The snippet is responsible for transforming its input into valid output.
Valid output may contain other namespaces (or even the current namespace).
It is a logic error on the part of the snippet not to provide this
transformation.

With all this being said, I've struggled with how to add some form of
type-safety to Lift's views... stuff that can be verified at compile-time
rather than run-time.  To date, I have not been able to come up with a way
of creating type-safe Lift views without resorting to the hell of SOAP/WSDL
style declarations.  If you can apply your amazing mind to the problem, I'd
love to get something that I can wrap my not so amazing (and pretty
math-deprived) brain around.

Thanks,

David


>
>-
>
> Best wishes,
>
> --greg
>
>
> On Mon, Jan 12, 2009 at 1:22 PM, Meredith Gregory <
> lgreg.mered...@gmail.com> wrote:
>
>> Chas,
>>
>> That's exactly what i thought. But, that would be a bug -- unless i've
>> misunderstood something -- because, then the effect of the bind is bleeding
>> over into the behavior of the ajax form.
>>
>> Best wishes,
>>
>> --greg
>>
>>
>> On Mon, Jan 12, 2009 at 1:19 PM, Charles F. Munat  wrote:
>>
>>>
>>> Greg,
>>>
>>> The "hello" namespace is set up in the call to bind in HelloForm2.scala:
>>>
>>> class HelloForm2 {
>>>   object who extends RequestVar(Full("world"))
>>>
>>>   def show(xhtml: NodeSeq): NodeSeq = {
>>> bind("hello", xhtml,
>>> "whoField" -> text(who.openOr(""), v => who(Full(v))) % ("size"
>>> -> "10") % ("id" -> "whoField"),
>>> "submit" -> submit(?("Send"), () => println("value:" +
>>> who.openOr("") + " :: " + param("whoField"))),
>>> "who" -> who.openOr("")
>>> )
>>>   }
>>> }
>>>
>>> Note the bind("hello", above.
>>>
>>> Not sure if I'm understanding your question exactly, but hope that helps.
>>>
>>> Chas.
>>>
>>> Meredith Gregory wrote:
>>> > Lifted,
>>> >
>>> > i have been using the AJAXForm example from the hellodarwin sample as a
>>> > template for my simple little experiments with lift. Occasionally, i
>>> > have gotten
>>> >
>>> > XML Parsing Error: prefix not bound to a namespace
>>> > Location: http://localhost:8080/AJAXREPLForm
>>> > Line Number 72, Column 46:Term
>>> > :
>>> > -^
>>> >
>>> > when i try to visit my little AJAXForm. This is troublesome for two
>>> reasons.
>>> >
>>> > * often i just recopy and reedit a site that appears to work --
>>> with
>>> >   the same edits -- and it just works.
>>> > * after some digging i think this complaint is legit and wonder how
>>> >   it could work in the hellodarwin ajax example -- how is the
>>> >   'hello' namespace being setup in the hellodarwin ajax example?
>>> >
>>> > i hate to be asking questions of this type, but i can find no
>>> > documentation to help sort this out.
>>> >
>>> > Best wishes,
>>> >
>>> > --greg
>>> >
>>> > --
>>> > L.G. Meredith
>>> > Managing Partner
>>> > Biosimilarity LLC
>>> > 806 55th St NE
>>> > Seattle, WA 98105
>>> >
>>> > +1 206.650.3740
>>> >
>>> > http://biosimilarity.blogspot.com
>>> >
>>> > >
>>>
>>>
>>>
>>
>>
>> --
>> L.G. Meredith
>> Managing Partner
>> Biosimilarity LLC
>> 806 55th St NE
>> Seattle, WA 98105
>>
>> +1 206.650.3740
>>
>> http://biosimilarity.blogspot.com
>>
>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://group

[Lift] Re: neophyte lift ajax question

2009-01-12 Thread Meredith Gregory
Chas, et al,

To clarify

   -  Suppose you only had the ajax form in the site menu. You would never
   call the bind. So, the namespace would not be set up and the form
   should/would not work.
   - Additionally, in the given sample application the behavior associated
   to the widgets in HelloForm2 is not (necessarily) the behavior in the
   ajaxform. So, that's also a source of confusing erroneous behavior, as i
   expect the user to see the behavior from the bind.
   - Furthermore, if you have the set up as in bullet one and make a call to
   bind before returning the xml:group, you still get the unknown namespace
   error.

Best wishes,

--greg

On Mon, Jan 12, 2009 at 1:22 PM, Meredith Gregory
wrote:

> Chas,
>
> That's exactly what i thought. But, that would be a bug -- unless i've
> misunderstood something -- because, then the effect of the bind is bleeding
> over into the behavior of the ajax form.
>
> Best wishes,
>
> --greg
>
>
> On Mon, Jan 12, 2009 at 1:19 PM, Charles F. Munat  wrote:
>
>>
>> Greg,
>>
>> The "hello" namespace is set up in the call to bind in HelloForm2.scala:
>>
>> class HelloForm2 {
>>   object who extends RequestVar(Full("world"))
>>
>>   def show(xhtml: NodeSeq): NodeSeq = {
>> bind("hello", xhtml,
>> "whoField" -> text(who.openOr(""), v => who(Full(v))) % ("size"
>> -> "10") % ("id" -> "whoField"),
>> "submit" -> submit(?("Send"), () => println("value:" +
>> who.openOr("") + " :: " + param("whoField"))),
>> "who" -> who.openOr("")
>> )
>>   }
>> }
>>
>> Note the bind("hello", above.
>>
>> Not sure if I'm understanding your question exactly, but hope that helps.
>>
>> Chas.
>>
>> Meredith Gregory wrote:
>> > Lifted,
>> >
>> > i have been using the AJAXForm example from the hellodarwin sample as a
>> > template for my simple little experiments with lift. Occasionally, i
>> > have gotten
>> >
>> > XML Parsing Error: prefix not bound to a namespace
>> > Location: http://localhost:8080/AJAXREPLForm
>> > Line Number 72, Column 46:Term
>> > :
>> > -^
>> >
>> > when i try to visit my little AJAXForm. This is troublesome for two
>> reasons.
>> >
>> > * often i just recopy and reedit a site that appears to work -- with
>> >   the same edits -- and it just works.
>> > * after some digging i think this complaint is legit and wonder how
>> >   it could work in the hellodarwin ajax example -- how is the
>> >   'hello' namespace being setup in the hellodarwin ajax example?
>> >
>> > i hate to be asking questions of this type, but i can find no
>> > documentation to help sort this out.
>> >
>> > Best wishes,
>> >
>> > --greg
>> >
>> > --
>> > L.G. Meredith
>> > Managing Partner
>> > Biosimilarity LLC
>> > 806 55th St NE
>> > Seattle, WA 98105
>> >
>> > +1 206.650.3740
>> >
>> > http://biosimilarity.blogspot.com
>> >
>> > >
>>
>> >>
>>
>
>
> --
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
>
> +1 206.650.3740
>
> http://biosimilarity.blogspot.com
>



-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: neophyte lift ajax question

2009-01-12 Thread Meredith Gregory
Chas,

That's exactly what i thought. But, that would be a bug -- unless i've
misunderstood something -- because, then the effect of the bind is bleeding
over into the behavior of the ajax form.

Best wishes,

--greg

On Mon, Jan 12, 2009 at 1:19 PM, Charles F. Munat  wrote:

>
> Greg,
>
> The "hello" namespace is set up in the call to bind in HelloForm2.scala:
>
> class HelloForm2 {
>   object who extends RequestVar(Full("world"))
>
>   def show(xhtml: NodeSeq): NodeSeq = {
> bind("hello", xhtml,
> "whoField" -> text(who.openOr(""), v => who(Full(v))) % ("size"
> -> "10") % ("id" -> "whoField"),
> "submit" -> submit(?("Send"), () => println("value:" +
> who.openOr("") + " :: " + param("whoField"))),
> "who" -> who.openOr("")
> )
>   }
> }
>
> Note the bind("hello", above.
>
> Not sure if I'm understanding your question exactly, but hope that helps.
>
> Chas.
>
> Meredith Gregory wrote:
> > Lifted,
> >
> > i have been using the AJAXForm example from the hellodarwin sample as a
> > template for my simple little experiments with lift. Occasionally, i
> > have gotten
> >
> > XML Parsing Error: prefix not bound to a namespace
> > Location: http://localhost:8080/AJAXREPLForm
> > Line Number 72, Column 46:Term
> > :
> > -^
> >
> > when i try to visit my little AJAXForm. This is troublesome for two
> reasons.
> >
> > * often i just recopy and reedit a site that appears to work -- with
> >   the same edits -- and it just works.
> > * after some digging i think this complaint is legit and wonder how
> >   it could work in the hellodarwin ajax example -- how is the
> >   'hello' namespace being setup in the hellodarwin ajax example?
> >
> > i hate to be asking questions of this type, but i can find no
> > documentation to help sort this out.
> >
> > Best wishes,
> >
> > --greg
> >
> > --
> > L.G. Meredith
> > Managing Partner
> > Biosimilarity LLC
> > 806 55th St NE
> > Seattle, WA 98105
> >
> > +1 206.650.3740
> >
> > http://biosimilarity.blogspot.com
> >
> > >
>
> >
>


-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: neophyte lift ajax question

2009-01-12 Thread Charles F. Munat

Greg,

The "hello" namespace is set up in the call to bind in HelloForm2.scala:

class HelloForm2 {
   object who extends RequestVar(Full("world"))

   def show(xhtml: NodeSeq): NodeSeq = {
 bind("hello", xhtml,
 "whoField" -> text(who.openOr(""), v => who(Full(v))) % ("size" 
-> "10") % ("id" -> "whoField"),
 "submit" -> submit(?("Send"), () => println("value:" + 
who.openOr("") + " :: " + param("whoField"))),
 "who" -> who.openOr("")
 )
   }
}

Note the bind("hello", above.

Not sure if I'm understanding your question exactly, but hope that helps.

Chas.

Meredith Gregory wrote:
> Lifted,
> 
> i have been using the AJAXForm example from the hellodarwin sample as a 
> template for my simple little experiments with lift. Occasionally, i 
> have gotten
> 
> XML Parsing Error: prefix not bound to a namespace
> Location: http://localhost:8080/AJAXREPLForm
> Line Number 72, Column 46:Term 
> :
> -^
> 
> when i try to visit my little AJAXForm. This is troublesome for two reasons.
> 
> * often i just recopy and reedit a site that appears to work -- with
>   the same edits -- and it just works.
> * after some digging i think this complaint is legit and wonder how
>   it could work in the hellodarwin ajax example -- how is the
>   'hello' namespace being setup in the hellodarwin ajax example?
> 
> i hate to be asking questions of this type, but i can find no 
> documentation to help sort this out.
> 
> Best wishes,
> 
> --greg
> 
> -- 
> L.G. Meredith
> Managing Partner
> Biosimilarity LLC
> 806 55th St NE
> Seattle, WA 98105
> 
> +1 206.650.3740
> 
> http://biosimilarity.blogspot.com
> 
> > 

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] neophyte lift ajax question

2009-01-12 Thread Meredith Gregory
Lifted,

i have been using the AJAXForm example from the hellodarwin sample as a
template for my simple little experiments with lift. Occasionally, i have
gotten

XML Parsing Error: prefix not bound to a namespace
Location: http://localhost:8080/AJAXREPLForm
Line Number 72, Column 46:Term
:
-^

when i try to visit my little AJAXForm. This is troublesome for two reasons.

   - often i just recopy and reedit a site that appears to work -- with the
   same edits -- and it just works.
   - after some digging i think this complaint is legit and wonder how it
   could work in the hellodarwin ajax example -- how is the 'hello' namespace
   being setup in the hellodarwin ajax example?

i hate to be asking questions of this type, but i can find no documentation
to help sort this out.

Best wishes,

--greg

-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
806 55th St NE
Seattle, WA 98105

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Urgent call for testing IE against Lift apps

2009-01-12 Thread Charles F. Munat

Will do.

David Pollak wrote:
> 
> 
> On Mon, Jan 12, 2009 at 12:48 PM, Charles F. Munat  > wrote:
> 
> 
> I have IE6 and IE7 running in VMWare on one of my Linux boxes. I'd
> planned to test my various Lift sites (five so far) against both soon. I
> can move this up and try to do it this week.
> 
> That said, most of my apps are pretty straightforward CRUD and basic
> AJAX, so I'm not sure how helpful that will be. But I'm happy to do it.
> 
> 
> It's mostly about formatting.  Does the stuff in IE look the way it's 
> supposed to look.  I doubt that the changes I made will have any subtle 
> impact on Ajax and Comet.  It'll either work or totally fail.
>  
> 
> 
> 
> Do you have a testing protocol? What sorts of things do you want me to
> do? 
> 
> 
> Load pages and make sure they look okay.
>  
> 
> (I assume this is all functional testing. Have you looked at
> Windmill? http://adamchristian.com/archives/tag/windmill )
> 
> Chas.
> 
> David Pollak wrote:
>  > Folks,
>  >
>  > We're getting close to shipping Lift 0.10.  I've recently made some
>  > changes to how Lift renders XHTML into HTML for IE.  I'd like to
> get 2
>  > to 5 folks to do some serious testing of their Lift apps against IE 6
>  > and 7 over the next few days.  Who will be kind enough to volunteer?
>  >
>  > Thanks,
>  >
>  > David
>  >
>  >
>  > --
>  > Lift, the simply functional web framework http://liftweb.net
>  > Collaborative Task Management http://much4.us
>  > Follow me: http://twitter.com/dpp
>  > Git some: http://github.com/dpp
>  >
>  > >
> 
> 
> 
> 
> 
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Collaborative Task Management http://much4.us
> Follow me: http://twitter.com/dpp
> Git some: http://github.com/dpp
> 
> > 

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Urgent call for testing IE against Lift apps

2009-01-12 Thread David Pollak
On Mon, Jan 12, 2009 at 12:48 PM, Charles F. Munat  wrote:

>
> I have IE6 and IE7 running in VMWare on one of my Linux boxes. I'd
> planned to test my various Lift sites (five so far) against both soon. I
> can move this up and try to do it this week.
>
> That said, most of my apps are pretty straightforward CRUD and basic
> AJAX, so I'm not sure how helpful that will be. But I'm happy to do it.


It's mostly about formatting.  Does the stuff in IE look the way it's
supposed to look.  I doubt that the changes I made will have any subtle
impact on Ajax and Comet.  It'll either work or totally fail.


>
>
> Do you have a testing protocol? What sorts of things do you want me to
> do?


Load pages and make sure they look okay.


> (I assume this is all functional testing. Have you looked at
> Windmill? http://adamchristian.com/archives/tag/windmill )
>
> Chas.
>
> David Pollak wrote:
> > Folks,
> >
> > We're getting close to shipping Lift 0.10.  I've recently made some
> > changes to how Lift renders XHTML into HTML for IE.  I'd like to get 2
> > to 5 folks to do some serious testing of their Lift apps against IE 6
> > and 7 over the next few days.  Who will be kind enough to volunteer?
> >
> > Thanks,
> >
> > David
> >
> >
> > --
> > Lift, the simply functional web framework http://liftweb.net
> > Collaborative Task Management http://much4.us
> > Follow me: http://twitter.com/dpp
> > Git some: http://github.com/dpp
> >
> > >
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Urgent call for testing IE against Lift apps

2009-01-12 Thread Charles F. Munat

I have IE6 and IE7 running in VMWare on one of my Linux boxes. I'd 
planned to test my various Lift sites (five so far) against both soon. I 
can move this up and try to do it this week.

That said, most of my apps are pretty straightforward CRUD and basic 
AJAX, so I'm not sure how helpful that will be. But I'm happy to do it.

Do you have a testing protocol? What sorts of things do you want me to 
do? (I assume this is all functional testing. Have you looked at 
Windmill? http://adamchristian.com/archives/tag/windmill )

Chas.

David Pollak wrote:
> Folks,
> 
> We're getting close to shipping Lift 0.10.  I've recently made some 
> changes to how Lift renders XHTML into HTML for IE.  I'd like to get 2 
> to 5 folks to do some serious testing of their Lift apps against IE 6 
> and 7 over the next few days.  Who will be kind enough to volunteer?
> 
> Thanks,
> 
> David
> 
> 
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Collaborative Task Management http://much4.us
> Follow me: http://twitter.com/dpp
> Git some: http://github.com/dpp
> 
> > 

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Urgent call for testing IE against Lift apps

2009-01-12 Thread David Pollak
Folks,

We're getting close to shipping Lift 0.10.  I've recently made some changes
to how Lift renders XHTML into HTML for IE.  I'd like to get 2 to 5 folks to
do some serious testing of their Lift apps against IE 6 and 7 over the next
few days.  Who will be kind enough to volunteer?

Thanks,

David


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Replacing a NodeSeq

2009-01-12 Thread David Pollak
Charles,

Without any more understanding of JPA than I have gleaned based on the
messages on this list, I'm guessing that you have a transaction open on the
thread for the first request and each of subsequent requests are going
against different DB transactions and thus the changes that one makes don't
appear for the other requests.  Try removing the RDBMS component from the
code (just store stuff in an object someplace) and see if that works.  If it
does, it'll help narrow down the issue.

Thanks,

David


On Mon, Jan 12, 2009 at 11:08 AM, Charles F. Munat  wrote:

> Here is the actual code (only the names have been shortened):
>
> def getWidgetsBlock: NodeSeq = {
>   val widgets =
> Model.createNamedQuery[Widget]("findAllWidgets")
>   .findAll
>   .toList.map((x: Widget) => {(x.id.toString, x.name)})
>   val currentWidgets = JPA.setToWrapper(thing.widgets)
> .toList.map((x: Widget) => {(x.id.toString, x.name)})
>   val unusedWidgets = (widgets -- currentWidgets)
>
>   
> Widgets
> {JPA.setToWrapper(thing.widgets).toList.map(
>   (x: Widget) => {
> 
>   {SHtml.ajaxButton("-",
> () => {
>  val w = Model.getReference[Widget](classOf[Widget], x.id)
>   val t = Model.getReference[Thing](classOf[Thing], thing.id)
>   p.widgets.remove(w)
>   Model.merge(t)
>  Model.flush()
>   SetHtml("widgetsBlock", getWidgetsBlock)
>}, ("title", "Remove this widget"), ("class", "removeButton")
>  )}
>  style="clear:right">{x.name}
>   
> })}
>  {(if (unusedWidgets.isEmpty) Text("") else
>   
> Add an widget
> {SHtml.ajaxForm(
>class="addButton" title="Add this widget"/>
>   {
> SHtml.select(unusedWidgets, Empty,
>(id: String) => {
> val w = Model.getReference[Widget](classOf[Widget],
>   id.toLong)
> val t = Model.getReference[Thing](classOf[Thing],
>   thing.id)
> p.widgets.add(w)
> Model.merge(t)
> Model.flush()
>  SetHtml("widgetsBlock", getWidgetsBlock)
>   }, ("id", "selectWidget")
> )
>   })}
> 
>   
>   )}
> }
>
> bind("thing", xhtml,
>  "widgetsBlock" -> getWidgetsBlock
> )
>
> And on the page:
>
> 
>   
> 
>
> Attached is a screen shot of what this actually looks like on the live
> site for anyone who's interested. (Assessment Purpose = Widget, Project
> = Thing.)
>
> I see that SetHtml should work, but am not sure what I'm doing wrong.
>
> I think this is a pretty cool way to handle many-to-many relationships,
> so if I can get this to work, maybe Derek can sneak it into the JPA
> example somehow. If he agrees with my assessment, that is.
>
> Chas.
>
> David Pollak wrote:
> >
> >
> > On Sun, Jan 11, 2009 at 4:58 PM, Charles F. Munat  > > wrote:
> >
> >
> > Yeah, I found this and have been playing with it, but am sort of
> stuck.
> > What I'm doing looks something like this (but is much more
> complicated):
> >
> > def getForm: NodeSeq = {
> >   val widgets = [List(id,name) of unused widgets]
> >
> >   if (widgets.isEmpty)
> > All widgets are in use.
> >   else
> > SHtml.ajaxForm(
> >   
> >   {SHtml.select(
> > widgets,
> > Empty,
> > (id: String) => {
> >   val w = Model.getReference[Widget](classOf[Widget],
> id.toLong)
> >   val t = Model.getReference[Thing](classOf[Thing], thing.id
> > )
> >   t.widgets.add(w)
> >   Model.merge(t)
> >   Model.flush()
> >   SetHtml("widgetForm", getForm)
> > }
> >   }, ("id", "optionSelector")
> > )
> > }
> >
> > def view(xhtml: NodeSeq): NodeSeq = {
> >   bind("widgets", xhtml, "addForm" -> getForm)
> > }
> >
> > Then I want to insert it here:
> >
> > 
> >   
> > 
> >
> > If I replace "getForm" in SetHtml above with Rats!, then
> it
> > works perfectly and when I click the + button the entire form is
> > replaced by "Rats!" But I need it to regenerate the form with either
> one
> > fewer widgets in the select *or* the entire form replaced by an "All
> > widgets are in use" message. But calling getForm from within getForm
> > doesn't work... I get the current form, not the form *after* the
> widget
> > has been added.
> >
> > I say the real one is more complicated because it also lists the
> widgets
> > with "-" buttons next to them which permits them to be removed from
> the
> > set. Each of these actions also requires the XHTML to be recalculated
> > and redisplayed.
> >
> > Does this make any sense?
> >
> >
> > Yes.  Th

[Lift] Re: Replacing a NodeSeq

2009-01-12 Thread Charles F. Munat
Here is the actual code (only the names have been shortened):

def getWidgetsBlock: NodeSeq = {
   val widgets =
 Model.createNamedQuery[Widget]("findAllWidgets")
   .findAll
   .toList.map((x: Widget) => {(x.id.toString, x.name)})
   val currentWidgets = JPA.setToWrapper(thing.widgets)
 .toList.map((x: Widget) => {(x.id.toString, x.name)})
   val unusedWidgets = (widgets -- currentWidgets)

   
 Widgets
 {JPA.setToWrapper(thing.widgets).toList.map(
   (x: Widget) => {
 
   {SHtml.ajaxButton("-",
 () => {
  val w = Model.getReference[Widget](classOf[Widget], x.id)
  val t = Model.getReference[Thing](classOf[Thing], thing.id)
  p.widgets.remove(w)
  Model.merge(t)
  Model.flush()
  SetHtml("widgetsBlock", getWidgetsBlock)
}, ("title", "Remove this widget"), ("class", "removeButton")
  )}
  {x.name}
   
 })}
  {(if (unusedWidgets.isEmpty) Text("") else
   
 Add an widget
 {SHtml.ajaxForm(
   
   {
 SHtml.select(unusedWidgets, Empty,
   (id: String) => {
 val w = Model.getReference[Widget](classOf[Widget],
   id.toLong)
 val t = Model.getReference[Thing](classOf[Thing],
   thing.id)
 p.widgets.add(w)
 Model.merge(t)
 Model.flush()
 SetHtml("widgetsBlock", getWidgetsBlock)
   }, ("id", "selectWidget")
 )
   })}
 
   
   )}
}

bind("thing", xhtml,
  "widgetsBlock" -> getWidgetsBlock
)

And on the page:


   


Attached is a screen shot of what this actually looks like on the live 
site for anyone who's interested. (Assessment Purpose = Widget, Project 
= Thing.)

I see that SetHtml should work, but am not sure what I'm doing wrong.

I think this is a pretty cool way to handle many-to-many relationships, 
so if I can get this to work, maybe Derek can sneak it into the JPA 
example somehow. If he agrees with my assessment, that is.

Chas.

David Pollak wrote:
> 
> 
> On Sun, Jan 11, 2009 at 4:58 PM, Charles F. Munat  > wrote:
> 
> 
> Yeah, I found this and have been playing with it, but am sort of stuck.
> What I'm doing looks something like this (but is much more complicated):
> 
> def getForm: NodeSeq = {
>   val widgets = [List(id,name) of unused widgets]
> 
>   if (widgets.isEmpty)
> All widgets are in use.
>   else
> SHtml.ajaxForm(
>   
>   {SHtml.select(
> widgets,
> Empty,
> (id: String) => {
>   val w = Model.getReference[Widget](classOf[Widget], id.toLong)
>   val t = Model.getReference[Thing](classOf[Thing], thing.id
> )
>   t.widgets.add(w)
>   Model.merge(t)
>   Model.flush()
>   SetHtml("widgetForm", getForm)
> }
>   }, ("id", "optionSelector")
> )
> }
> 
> def view(xhtml: NodeSeq): NodeSeq = {
>   bind("widgets", xhtml, "addForm" -> getForm)
> }
> 
> Then I want to insert it here:
> 
> 
>   
> 
> 
> If I replace "getForm" in SetHtml above with Rats!, then it
> works perfectly and when I click the + button the entire form is
> replaced by "Rats!" But I need it to regenerate the form with either one
> fewer widgets in the select *or* the entire form replaced by an "All
> widgets are in use" message. But calling getForm from within getForm
> doesn't work... I get the current form, not the form *after* the widget
> has been added.
> 
> I say the real one is more complicated because it also lists the widgets
> with "-" buttons next to them which permits them to be removed from the
> set. Each of these actions also requires the XHTML to be recalculated
> and redisplayed.
> 
> Does this make any sense?
> 
> 
> Yes.  The problem as far as I can see is the place that state is 
> maintained (the list of what widgets are on the page) is missing. 
>  You've got the t.widgets.add call, but the whole state management thing 
> seems like a mystery and I think that's where the problem is coming from.
> 
> 
>  
> 
> 
> 
> Chas.
> 
> David Pollak wrote:
>  > SetHtml(id: String, stuff: NodeSeq)
>  >
>  > It's a JsCmd and it replaces the contents of the Elem with the
> give id
>  > on the page with stuff.
>  >
>  > Is this what you were looking for?
>  >
>  > On Sun, Jan 11, 2009 at 2:58 PM, Charles F. Munat  
>  > >> wrote:
>  >
>  >
>  > Is there a JsCmd for replacing a NodeSeq? I want an AJAX
> button to run
>  > some code on the server, gener

[Lift] Re: Replacing a NodeSeq (further explanation)

2009-01-12 Thread Derek Chen-Becker
It's a little hard for me to wrap my head around this, but it seems like it
should work as long as you're properly updating the widgets val on each
call. Have you tried putting in some simple logging statements to ensure
that the intended flow of your processing is being honored?

Derek

On Sun, Jan 11, 2009 at 6:19 PM, Charles F. Munat  wrote:

>
> Essentially, the problem I am having, I think, is that SetHtml hard
> codes the HTML that will replace the current HTML. I need to use the
> HTML returned from the AJAX call to replace the current HTML.
>
> So I don't think SetHtml is going to work.
>
> Does this make more sense? Am I on the right track?
>
> Chas.
>
> Charles F. Munat wrote:
> > Yeah, I found this and have been playing with it, but am sort of stuck.
> > What I'm doing looks something like this (but is much more complicated):
> >
> > def getForm: NodeSeq = {
> >val widgets = [List(id,name) of unused widgets]
> >
> >if (widgets.isEmpty)
> >  All widgets are in use.
> >else
> >  SHtml.ajaxForm(
> >
> >{SHtml.select(
> >  widgets,
> >  Empty,
> >  (id: String) => {
> >val w = Model.getReference[Widget](classOf[Widget], id.toLong)
> >val t = Model.getReference[Thing](classOf[Thing], thing.id)
> >t.widgets.add(w)
> >Model.merge(t)
> >Model.flush()
> >SetHtml("widgetForm", getForm)
> >  }
> >}, ("id", "optionSelector")
> >  )
> > }
> >
> > def view(xhtml: NodeSeq): NodeSeq = {
> >bind("widgets", xhtml, "addForm" -> getForm)
> > }
> >
> > Then I want to insert it here:
> >
> > 
> >
> > 
> >
> > If I replace "getForm" in SetHtml above with Rats!, then it
> > works perfectly and when I click the + button the entire form is
> > replaced by "Rats!" But I need it to regenerate the form with either one
> > fewer widgets in the select *or* the entire form replaced by an "All
> > widgets are in use" message. But calling getForm from within getForm
> > doesn't work... I get the current form, not the form *after* the widget
> > has been added.
> >
> > I say the real one is more complicated because it also lists the widgets
> > with "-" buttons next to them which permits them to be removed from the
> > set. Each of these actions also requires the XHTML to be recalculated
> > and redisplayed.
> >
> > Does this make any sense?
> >
> > Chas.
> >
> > David Pollak wrote:
> >> SetHtml(id: String, stuff: NodeSeq)
> >>
> >> It's a JsCmd and it replaces the contents of the Elem with the give id
> >> on the page with stuff.
> >>
> >> Is this what you were looking for?
> >>
> >> On Sun, Jan 11, 2009 at 2:58 PM, Charles F. Munat  >> > wrote:
> >>
> >>
> >> Is there a JsCmd for replacing a NodeSeq? I want an AJAX button to
> run
> >> some code on the server, generate a NodeSeq, and then replace the
> >> similar NodeSeq on the page. I'm looking through the commands and I
> >> don't see how to do that, except to use Run and then JQuery...
> >>
> >> Am I missing something? This seems like a common scenario, so I'm
> >> thinking it's probably in there.
> >>
> >> Thanks,
> >> Chas.
> >>
> >>
> >>
> >>
> >>
> >> --
> >> Lift, the simply functional web framework http://liftweb.net
> >> Collaborative Task Management http://much4.us
> >> Follow me: http://twitter.com/dpp
> >> Git some: http://github.com/dpp
> >>
> >
> > >
>
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Replacing a NodeSeq

2009-01-12 Thread David Pollak
On Sun, Jan 11, 2009 at 4:58 PM, Charles F. Munat  wrote:

>
> Yeah, I found this and have been playing with it, but am sort of stuck.
> What I'm doing looks something like this (but is much more complicated):
>
> def getForm: NodeSeq = {
>   val widgets = [List(id,name) of unused widgets]
>
>   if (widgets.isEmpty)
> All widgets are in use.
>   else
> SHtml.ajaxForm(
>   
>   {SHtml.select(
> widgets,
> Empty,
> (id: String) => {
>   val w = Model.getReference[Widget](classOf[Widget], id.toLong)
>   val t = Model.getReference[Thing](classOf[Thing], thing.id)
>   t.widgets.add(w)
>   Model.merge(t)
>   Model.flush()
>   SetHtml("widgetForm", getForm)
> }
>   }, ("id", "optionSelector")
> )
> }
>
> def view(xhtml: NodeSeq): NodeSeq = {
>   bind("widgets", xhtml, "addForm" -> getForm)
> }
>
> Then I want to insert it here:
>
> 
>   
> 
>
> If I replace "getForm" in SetHtml above with Rats!, then it
> works perfectly and when I click the + button the entire form is
> replaced by "Rats!" But I need it to regenerate the form with either one
> fewer widgets in the select *or* the entire form replaced by an "All
> widgets are in use" message. But calling getForm from within getForm
> doesn't work... I get the current form, not the form *after* the widget
> has been added.
>
> I say the real one is more complicated because it also lists the widgets
> with "-" buttons next to them which permits them to be removed from the
> set. Each of these actions also requires the XHTML to be recalculated
> and redisplayed.
>
> Does this make any sense?


Yes.  The problem as far as I can see is the place that state is maintained
(the list of what widgets are on the page) is missing.  You've got the
t.widgets.add call, but the whole state management thing seems like a
mystery and I think that's where the problem is coming from.




>
>
> Chas.
>
> David Pollak wrote:
> > SetHtml(id: String, stuff: NodeSeq)
> >
> > It's a JsCmd and it replaces the contents of the Elem with the give id
> > on the page with stuff.
> >
> > Is this what you were looking for?
> >
> > On Sun, Jan 11, 2009 at 2:58 PM, Charles F. Munat  > > wrote:
> >
> >
> > Is there a JsCmd for replacing a NodeSeq? I want an AJAX button to
> run
> > some code on the server, generate a NodeSeq, and then replace the
> > similar NodeSeq on the page. I'm looking through the commands and I
> > don't see how to do that, except to use Run and then JQuery...
> >
> > Am I missing something? This seems like a common scenario, so I'm
> > thinking it's probably in there.
> >
> > Thanks,
> > Chas.
> >
> >
> >
> >
> >
> > --
> > Lift, the simply functional web framework http://liftweb.net
> > Collaborative Task Management http://much4.us
> > Follow me: http://twitter.com/dpp
> > Git some: http://github.com/dpp
> >
> > >
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Replacing a NodeSeq (further explanation)

2009-01-12 Thread David Pollak
On Sun, Jan 11, 2009 at 5:19 PM, Charles F. Munat  wrote:

>
> Essentially, the problem I am having, I think, is that SetHtml hard
> codes the HTML that will replace the current HTML.


SetHtml does what you want:

Nothing here, yet
{
  ajexButton("Press me", () => SetHtml("foo", Text("The current time is:
"+(new java.util.Date)))
}


Each time you press the button, the time will update.

Thanks,

David



> I need to use the
> HTML returned from the AJAX call to replace the current HTML.
>
> So I don't think SetHtml is going to work.
>
> Does this make more sense? Am I on the right track?
>
> Chas.
>
> Charles F. Munat wrote:
> > Yeah, I found this and have been playing with it, but am sort of stuck.
> > What I'm doing looks something like this (but is much more complicated):
> >
> > def getForm: NodeSeq = {
> >val widgets = [List(id,name) of unused widgets]
> >
> >if (widgets.isEmpty)
> >  All widgets are in use.
> >else
> >  SHtml.ajaxForm(
> >
> >{SHtml.select(
> >  widgets,
> >  Empty,
> >  (id: String) => {
> >val w = Model.getReference[Widget](classOf[Widget], id.toLong)
> >val t = Model.getReference[Thing](classOf[Thing], thing.id)
> >t.widgets.add(w)
> >Model.merge(t)
> >Model.flush()
> >SetHtml("widgetForm", getForm)
> >  }
> >}, ("id", "optionSelector")
> >  )
> > }
> >
> > def view(xhtml: NodeSeq): NodeSeq = {
> >bind("widgets", xhtml, "addForm" -> getForm)
> > }
> >
> > Then I want to insert it here:
> >
> > 
> >
> > 
> >
> > If I replace "getForm" in SetHtml above with Rats!, then it
> > works perfectly and when I click the + button the entire form is
> > replaced by "Rats!" But I need it to regenerate the form with either one
> > fewer widgets in the select *or* the entire form replaced by an "All
> > widgets are in use" message. But calling getForm from within getForm
> > doesn't work... I get the current form, not the form *after* the widget
> > has been added.
> >
> > I say the real one is more complicated because it also lists the widgets
> > with "-" buttons next to them which permits them to be removed from the
> > set. Each of these actions also requires the XHTML to be recalculated
> > and redisplayed.
> >
> > Does this make any sense?
> >
> > Chas.
> >
> > David Pollak wrote:
> >> SetHtml(id: String, stuff: NodeSeq)
> >>
> >> It's a JsCmd and it replaces the contents of the Elem with the give id
> >> on the page with stuff.
> >>
> >> Is this what you were looking for?
> >>
> >> On Sun, Jan 11, 2009 at 2:58 PM, Charles F. Munat  >> > wrote:
> >>
> >>
> >> Is there a JsCmd for replacing a NodeSeq? I want an AJAX button to
> run
> >> some code on the server, generate a NodeSeq, and then replace the
> >> similar NodeSeq on the page. I'm looking through the commands and I
> >> don't see how to do that, except to use Run and then JQuery...
> >>
> >> Am I missing something? This seems like a common scenario, so I'm
> >> thinking it's probably in there.
> >>
> >> Thanks,
> >> Chas.
> >>
> >>
> >>
> >>
> >>
> >> --
> >> Lift, the simply functional web framework http://liftweb.net
> >> Collaborative Task Management http://much4.us
> >> Follow me: http://twitter.com/dpp
> >> Git some: http://github.com/dpp
> >>
> >
> > >
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Swampland

2009-01-12 Thread David Bernard

David,

you forgot to define the licence in the pom.

On Mon, Jan 12, 2009 at 13:33, David Bernard  wrote:
> Do you try to do a bug tracker or a "generic" issue tracker/task planner ?
>
> Quick note about bug tracker ?
> * I like id like JIRA, projectPrefix-projectNum and not a global Num
> (cross project)
> * supporting part of the JIRA remote API will simplify integration
> with third-party tool (hudson, eclipse,...) but need to have specs of
> the JIRA' remote API
> * for open-source/public project having a voting system could be
> usefull (not for internal project)
> * support wiki syntax for description and comments
> * support for export/import project
> * support sub-project
> * I've got other suggestion (as JIRA admin/users) like
> permissions/groups management
> * 
> so many feature, so few time => do it simple and good luck
>
> Do you want I setup hudson to build and deploy the project on snapshots repo ?
>
> /davidB
>
> On Sun, Jan 11, 2009 at 09:51, Viktor Klang  wrote:
>> I've used FogBugz and Mantis, and here are my conclusions for a good
>> issue-tracker:
>>
>> 1) Good integration possibilities (API:s to hook into, different
>> VCS-backends etc)
>> 2) Clean and intuitive UI
>> 3) A priority list is NOT a list with items with different priority
>> levels!!!
>> A priority list is a list in prioritized order, so if you move an item
>> down, you lower it's priority
>> 4) It HAS TO support unicode characters properly (Yes Mantis, I'm looking at
>> you)
>> 5) It has to be able to store and display screenshots easily
>> 6) It mustn't be a project management tool
>> 7) It should use an open authentication implementation, so it's not yet
>> another password to remember
>> 8) It should be possible to make "templates" for issue-submission
>> 9) It should be possible to make templates for responding to issues.
>> 10) Also, I think reporting of statistics should only be done either by
>> plugins or by external software, and that the issue-tracker can expose it's
>> raw statistics through API.
>>
>>
>> I hope I didn't forget anything.
>>
>> Cheers,
>> Viktor
>>
>> On Sat, Jan 10, 2009 at 1:38 AM, David Pollak
>>  wrote:
>>>
>>> Folks,
>>>
>>> I'm please to announce my latest open source project: Swampland.
>>> http://github.com/dpp/swampland/tree/master
>>>
>>> Swampland is a bug/issue tracking system built on Lift.  It's licensed
>>> under the GNU Affero General Public License (there will be a classpath
>>> exception so Swampland can be run in non-free web containers).
>>>
>>> I'm going to be working on Swampland over the next bunch of weeks and it
>>> will form the basis for the Lift project's bug tracking system.  It will
>>> also likely be the project the I use in the Lift book.
>>>
>>> Early in the process, I'd love to hear from folks about the good and bad
>>> of various bug tracking system they use so I can use the good and avoid
>>> pitfalls.
>>>
>>> My key goal for Swampland is to build something that's got a very usable
>>> UI, but also has a RESTful interface that's a first-class part of the
>>> system.  It will support plugins.
>>>
>>> I'm licensing it under a GPL license because I want to make sure that
>>> anyone who uses it and updates it contributes code back to the project.
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> --
>>> Lift, the simply functional web framework http://liftweb.net
>>> Collaborative Task Management http://much4.us
>>> Follow me: http://twitter.com/dpp
>>> Git some: http://github.com/dpp
>>>
>>>
>>
>>
>>
>> --
>> Viktor Klang
>> Senior Systems Analyst
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Swampland

2009-01-12 Thread David Bernard

Do you try to do a bug tracker or a "generic" issue tracker/task planner ?

Quick note about bug tracker ?
* I like id like JIRA, projectPrefix-projectNum and not a global Num
(cross project)
* supporting part of the JIRA remote API will simplify integration
with third-party tool (hudson, eclipse,...) but need to have specs of
the JIRA' remote API
* for open-source/public project having a voting system could be
usefull (not for internal project)
* support wiki syntax for description and comments
* support for export/import project
* support sub-project
* I've got other suggestion (as JIRA admin/users) like
permissions/groups management
* 
so many feature, so few time => do it simple and good luck

Do you want I setup hudson to build and deploy the project on snapshots repo ?

/davidB

On Sun, Jan 11, 2009 at 09:51, Viktor Klang  wrote:
> I've used FogBugz and Mantis, and here are my conclusions for a good
> issue-tracker:
>
> 1) Good integration possibilities (API:s to hook into, different
> VCS-backends etc)
> 2) Clean and intuitive UI
> 3) A priority list is NOT a list with items with different priority
> levels!!!
> A priority list is a list in prioritized order, so if you move an item
> down, you lower it's priority
> 4) It HAS TO support unicode characters properly (Yes Mantis, I'm looking at
> you)
> 5) It has to be able to store and display screenshots easily
> 6) It mustn't be a project management tool
> 7) It should use an open authentication implementation, so it's not yet
> another password to remember
> 8) It should be possible to make "templates" for issue-submission
> 9) It should be possible to make templates for responding to issues.
> 10) Also, I think reporting of statistics should only be done either by
> plugins or by external software, and that the issue-tracker can expose it's
> raw statistics through API.
>
>
> I hope I didn't forget anything.
>
> Cheers,
> Viktor
>
> On Sat, Jan 10, 2009 at 1:38 AM, David Pollak
>  wrote:
>>
>> Folks,
>>
>> I'm please to announce my latest open source project: Swampland.
>> http://github.com/dpp/swampland/tree/master
>>
>> Swampland is a bug/issue tracking system built on Lift.  It's licensed
>> under the GNU Affero General Public License (there will be a classpath
>> exception so Swampland can be run in non-free web containers).
>>
>> I'm going to be working on Swampland over the next bunch of weeks and it
>> will form the basis for the Lift project's bug tracking system.  It will
>> also likely be the project the I use in the Lift book.
>>
>> Early in the process, I'd love to hear from folks about the good and bad
>> of various bug tracking system they use so I can use the good and avoid
>> pitfalls.
>>
>> My key goal for Swampland is to build something that's got a very usable
>> UI, but also has a RESTful interface that's a first-class part of the
>> system.  It will support plugins.
>>
>> I'm licensing it under a GPL license because I want to make sure that
>> anyone who uses it and updates it contributes code back to the project.
>>
>> Thanks,
>>
>> David
>>
>> --
>> Lift, the simply functional web framework http://liftweb.net
>> Collaborative Task Management http://much4.us
>> Follow me: http://twitter.com/dpp
>> Git some: http://github.com/dpp
>>
>>
>
>
>
> --
> Viktor Klang
> Senior Systems Analyst
>
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Google syntax highlighter on the Lift site

2009-01-12 Thread David Bernard

On Thu, Jan 8, 2009 at 20:37, czerwonka  wrote:
>
> I apologize if this is not the right place, but I noticed that you
> have the Google code formatter installed on the Lift site.
>
> http://liftweb.net/index.php/Lift_View_First
> http://code.google.com/p/syntaxhighlighter/wiki/Usage
>
> Given that it's a MediaWiki site, how did you get the pages to include
> the Javascript references?  Did you use and extension?
>
> http://www.mediawiki.org/wiki/Extension:Javascript

No I didn't use the extension. I "craply/simply" modify the template
(mono) to include the js files in the header.

/davidB

>
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---