Skip to content

Changing labels with CssSelector #1236

Open
fanf opened this Issue Mar 8, 2012 · 0 comments

5 participants

@fanf
fanf commented Mar 8, 2012

This ticket follows the discussion on the mailing list about rewrapping Elem:
https://groups.google.com/d/topic/liftweb/uVW4xOPgnk8/discussion

For example:

    <people version="1" otherProp="prop">
      <name>foo</name>
      <friends><name>bar</name></name><name>baz</name></friends>
    </people>
Into:
    <user version="2" otherProp="prop">
      <login>foo</login>
      <knows><name>bar</name></name><name>baz</name></knows>
    </user>

Proposed solution:

"people" #> ((ns: NodeSeq) => <user version="2">{
  val kids = ns.asInstanceOf[Elem].child
  ("name" #> ((ns: NodeSeq) => <login>{ns.asInstanceOf[Elem].child}</login>)).apply(kids)
}</user>)

But should be simpler.

@dpp dpp was assigned Mar 8, 2012
@Shadowfiend Shadowfiend added this to the 3.0-M1 milestone May 13, 2014
@Shadowfiend Shadowfiend assigned Shadowfiend and unassigned dpp May 13, 2014
@farmdawgnation farmdawgnation modified the milestone: 3.0-M2, 3.0-M3 Nov 26, 2014
@Shadowfiend Shadowfiend modified the milestone: 3.0-M3, 3.0-M4 Jan 14, 2015
@fmpwizard fmpwizard modified the milestone: 3.0-M4, 3.0-M6 Mar 22, 2015
@Shadowfiend Shadowfiend modified the milestone: 3.0-M6, 3.0-M7 Jul 26, 2015
@Shadowfiend Shadowfiend modified the milestone: 3.1, 3.0-M7 Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.