Adding id attribute with CSSBind for list #1110

Closed
indrajitr opened this Issue Sep 13, 2011 · 4 comments

Comments

Projects
None yet
3 participants
Owner

indrajitr commented Sep 13, 2011

Please see the related discussion on the Google Group:
[[url:http://www.example.com| http://groups.google.com/group/liftweb/browse_thread/thread/376ae47e5075c71d/86b4690bcb01d15a#86b4690bcb01d15a]]

Ive just upgraded my project from 2.9.0-1/2.4-M3 ----> 2.9.1/2.4-M4 and Ive noticed one regression.

Snippet:

def test = {
val myIdList = List("xx1", "xx2", "xx3", "x4")
".thinglist *" #>
(".thing" #> myIdList.map(t => {
".thing [id]" #> t.key
})
)
}

Template:

...should result in:

...but with 2.4-M4, it results in:

  

It looks like only the first li gets the "id" attribute.
Even stranger, if I change the attribute that is being added from "id" --> "idblah", it works properly.

Owner

indrajitr commented Sep 14, 2011

I think this is related to #1111

Member

pbrant commented Sep 17, 2011

(In [[r:b415b357a1d91aa3e43c21fec51ed0a126f70dae]]) Allow unique transform created id attributes

When post-processing a transform created list, keep id attributes as
long as they are unique over the list.

Refs #1110

Branch: pmb-issue-1110

Member

pbrant commented Sep 21, 2011

(In [[r:fafa49bd2576ec7088f45ac7c9146f7d6ee2b4b7]]) Allow unique transform created id attributes

When post-processing a transform created list, keep id attributes as
long as they are unique over the list.

Closes #1110

Branch: master

pbrant was assigned Mar 1, 2012

@etorreborre etorreborre pushed a commit to etorreborre/framework that referenced this issue Dec 3, 2014

@pbrant pbrant Allow unique transform created id attributes
When post-processing a transform created list, keep id attributes as
long as they are unique over the list.

Closes #1110
fafa49b

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment