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
<[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

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to