csantanapr / dapp-examples

Series of Single Page Apps using the dApp Framework
http://csantanapr.github.io/dapp-examples
Other
5 stars 4 forks source link

ListItems generated by StoreList don't get a unique dom node id #6

Open csantanapr opened 11 years ago

csantanapr commented 11 years ago

Adding request_id to avoid dom id duplicates https://github.com/csantanapr/dapp-examples/blob/master/dapp-request/src/app/views/list/list.js#L32

doing something like this

<ul data-dojo-type="dojox/mobile/EdgeToEdgeStoreList" data-dojo-props="store: this.loadedStores.requests,itemMap:{description:'label'}"> </ul>

assumming store data is { // parameters used to initialize the data store "data": [{ "id": 100, "description": "li id100", }, { "id": 101, "description": "li id101", }, { "id": 102, "description": "li id102", }], "idProperty":"id" } will produce dom nodes with id equal to value id from jsonrest store

`

`

I was expecting id to be dynamic based on registry db like: id="dojox_mobile_ListItem_0" `

`

csantanapr commented 11 years ago

@edchad Can you take a look a this one and see if bug in dojo needs to be open