Re: dijit.form.SimpleTextarea placeHolder?

This is a known issue, due to the fact that the Textarea widgets are
currently a single node and thus there's nothing to really properly
position the placeHolder node. From what I understand, Bill gave it a
few tries but couldn't come up with something yet that didn't face some
sort of regression.
http://bugs.dojotoolkit.org/ticket/11145
--Ken
On 3/31/2011 9:45 PM, Rob Gillan wrote:
> Hi,
>
> Programmatically creating a dijit.form.SimpleTextarea using 1.6. The
> placeHolder does not show up for some reason.
>
> Creation:
> var inp = new dijit.form.SimpleTextarea(cellparams);
>
> where cellparams:
> {id:"library_search_keywords", name:"document_keywords",
> style:"width:auto;", placeHolder:"keywords", maxLength:"255",
> cols:"30", rows:"2"}
>
> We've tested with Chrome and Firefox with the same result. Any ideas
> greatly appreciated,
>
> Cheers
> Rob
> _______________________________________________

Re: dijit.form.SimpleTextarea placeHolder?

Rob Gillan <rob <at> mosais.com>
2011-04-01 01:51:22 GMT

Ken,
Thanks, my bad for not checking the list first.
Cheers
Rob
On 01/04/2011, at 12:49 PM, Kenneth G. Franqueiro wrote:
> This is a known issue, due to the fact that the Textarea widgets are
> currently a single node and thus there's nothing to really properly
> position the placeHolder node. From what I understand, Bill gave it a
> few tries but couldn't come up with something yet that didn't face
> some
> sort of regression.
>
> http://bugs.dojotoolkit.org/ticket/11145
>
> --Ken
>
> On 3/31/2011 9:45 PM, Rob Gillan wrote:
>> Hi,
>>
>> Programmatically creating a dijit.form.SimpleTextarea using 1.6. The
>> placeHolder does not show up for some reason.
>>
>> Creation:
>> var inp = new dijit.form.SimpleTextarea(cellparams);
>>
>> where cellparams:
>> {id:"library_search_keywords", name:"document_keywords",

Re: (no subject)

Ali Gangji <cogent <at> gmail.com>
2011-04-01 03:58:41 GMT

I can't speak to the intentions of those who wrote the stores available in Dojo, but it seems to me that functions like getIdentity should not require the item to be in the store. In this case the grid's onDelete handler will be executed whether the item is removed through the grid or by some other means. It needs to still be able to get information about the item. This is perhaps why functions like getValue take the whole item as a parameter and not just an id. It also enables you to call these functions on items before they are put in to the store.

I have been trying to implement my own datastore for use with the Datagrid.
My implementation of "deleteItem" deletes the item from my local store,
then calls onDelete. The problem I see is that the datagrid tries to invoke
another store call for the item just deleted, in my case it invokes
getIndentity(item). As my item has been deleted, this throws an exception
to say the item is not valid (as it has been deleted from the store), Other
stores in Dojo (but not all) don't bother to check isItem for a getIdentity
call so don't experience the same problem.

I was wondering if someone could clarify the deleteItem contract as well as
the onDelete notification regarding whether other calls to the same item
during an onDelete notification should be honoured or not.

Custom build djconfig and dojo 1.6

Daniele Leorsini <leorsida <at> gmail.com>
2011-04-01 08:29:23 GMT

Hi,i'm using custom build and i'm trying to upgrade my webapp from dojop 1.5 to new dojo 1.6
On my profile, i embedded the djConfig parameter on command line, but if i replace it with data-dojo-config on new version it doesn't work

Re: Datastore Notification API OnDelete Query

Dave Kelsey <d_kelsey <at> uk.ibm.com>
2011-04-01 08:56:29 GMT

Many thanks for the clarification Jared, is GetIndentity the only one with
this caveat ?
regards
Dave Kelsey
> There's an explicit caveat that getIdentity should still work for a
> deleted item specifically so widgets that use identity to map items
> can use it to clear caches, etc. All dojo provided stores that
> implement notification work that way.
>
> Sincerely,
> -- Jared Jurkiewicz
>
> On Thu, Mar 31, 2011 at 7:13 AM, Dave Kelsey <d_kelsey <at> uk.ibm.com> wrote:
> >
> > (Appologies forgot to include a subject header)
> >
> > I have been trying to implement my own datastore for use with the
Datagrid.
> > My implementation of "deleteItem" deletes the item from my local store,
> > then calls onDelete. The problem I see is that the datagrid tries to
invoke
> > another store call for the item just deleted, in my case it invokes
> > getIndentity(item). As my item has been deleted, this throws an
exception
> > to say the item is not valid (as it has been deleted from the store),
Other
> > stores in Dojo (but not all) don't bother to check isItem for a
getIdentity
> > call so don't experience the same problem.
> >
> > I was wondering if someone could clarify the deleteItem contract as
well as
> > the onDelete notification regarding whether other calls to the same
item
> > during an onDelete notification should be honoured or not.
> >
> > Regards
> > Dave
> >
_______________________________________________
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