Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: dev-tech-xbl Digest, Vol 36, Issue 5

0 views
Skip to first unread message

tigr...@gmail.com

unread,
Jun 7, 2009, 4:44:03 PM6/7/09
to dev-te...@lists.mozilla.org
hello Boris and Stefano
about this same question of xbl 1
Mozilla 'templates' can access multiple different 'rdf' data sources
is that any use in such as this case of Stefano's?
it's a 'single binding' on an 'element'


On Sun, Jun 7, 2009 at 5:00 AM, <dev-tech-x...@lists.mozilla.org>wrote:

> Send dev-tech-xbl mailing list submissions to
> dev-te...@lists.mozilla.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.mozilla.org/listinfo/dev-tech-xbl
> or, via email, send a message with subject or body 'help' to
> dev-tech-x...@lists.mozilla.org
>
> You can reach the person managing the list at
> dev-tech-...@lists.mozilla.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dev-tech-xbl digest..."
>
> Today's Topics:
>
> 1. Re: Multiple bindings on an Element with XBL (1)? (StefanoC)
> 2. Re: Multiple bindings on an Element with XBL (1)? (Boris Zbarsky)
>
>
> ---------- Forwarded message ----------
> From: StefanoC <stefano...@gmail.com>
> To: dev-te...@lists.mozilla.org
> Date: Sat, 6 Jun 2009 08:47:37 -0700 (PDT)
> Subject: Re: Multiple bindings on an Element with XBL (1)?
> On Jun 5, 2:42 am, Boris Zbarsky <bzbar...@mit.edu> wrote:
> > StefanoC wrote:
> > > addBinding is giving me some headaches, in particular it does not add
> > > the <content> template!!!
> > > When i attach the same binding to the same element using MozBinding or
> > > a style it does work.
> >
> > Odd. Do you have a testcase in the form of an extension, just to make
> > sure we're looking at the same thing? Nothing I see in the code should
> > obviously keep that from working. That said, if you have multiple
> > bindings that all have <content>, behavior will of course be odd (e.g.
> > depend on the order you called addBinding in).
> >
> > > Also, removeBinding does not work at all, giving me an error:
> >
> > > uncaught exception: [Exception... "Component returned failure code:
> > > 0x80004005 (NS_ERROR_FAILURE) [nsIDOMDocumentXBL.removeBinding]"
> > > nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
> > >http://js.mixendo.local/html/test.html:: onclick :: line 1" data: no]
> > > [Break on this error]
> >
> > Presumably due to this:
> >
> > // For now we can only handle removing a binding if it's the only one
> > NS_ENSURE_FALSE(binding->GetBaseBinding(), NS_ERROR_FAILURE);
> >
> > Basically, what you're trying to do is not very well supported.
> >
> > -Boris
>
> Boris,
> thanks a lot for your answer and time.
> Indeed, it sounds like we better wait for XBL2 to use multiple
> bindings!
>
> For the not-showing content problem i'll clean up and send you a
> sample extension if you care.
>
> thanks,
> Stefano
>
>
>
> ---------- Forwarded message ----------
> From: Boris Zbarsky <bzba...@mit.edu>
> To: dev-te...@lists.mozilla.org
> Date: Sat, 06 Jun 2009 14:19:31 -0400
> Subject: Re: Multiple bindings on an Element with XBL (1)?
> StefanoC wrote:
>
>> For the not-showing content problem i'll clean up and send you a
>> sample extension if you care.
>>
>
> Please do.
>
> -Boris
>
>
> _______________________________________________
> dev-tech-xbl mailing list
> dev-te...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-xbl
>
>

0 new messages