[Dojo-interest] dijit.form.textbox ID Attribute Issue (Constructor vs. .attr)

Rob Weiss j105.rob at gmail.com
Thu Mar 18 14:03:57 EDT 2010

So many of the examples I have seen, and *are* posted on the various sites,
seem to open that up for mis-interpretation.

Specifically.... "If the developer passes an ID" would lead one to believe
that if I pass in an ID then, it will be used.

Thanks for the reply. We can mark this closed.

On Thu, Mar 18, 2010 at 1:58 PM, Peter Higgins <dante at dojotoolkit.org>wrote:

> Rob Weiss wrote:
> >
> > Was the expectation to *NOT* change the id after construction? or was
> > this a miss in the .attr getter/setter implementation?
> >
> Correct. I do not believe updating any widget's ID post-creation is
> supported.
> It _should_ be reflected in the API docs as a @const:
>    // id: [const] String
>    //        A unique, opaque ID string that can be assigned by users
> or by the
>    //        system. If the developer passes an ID which is known not to be
>    //        unique, the specified ID is ignored and the
> system-generated ID is
>    //        used instead.
>    id: "",
> Regards,
> Peter
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100318/202e8601/attachment.htm 

More information about the Dojo-interest mailing list