On Mon, Jan 12, 2009 at 3:24 PM, Meredith Gregory <[email protected]>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 < > [email protected]> wrote: > >> >> >> On Mon, Jan 12, 2009 at 1:58 PM, Meredith Gregory < >> [email protected]> 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 < >>> [email protected]> 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 <[email protected]>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: <label for="whatField">Term >>>>> > :</label><hello:whatField /> >>>>> > ---------------------------------------------^ >>>>> > >>>>> > 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 >> >> >> >> > > > -- > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
