Wicket
  1. Wicket
  2. WICKET-1106

WicketTester or TagTester should provide access to the enclosed value of a tag

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0-rc1
    • Component/s: wicket
    • Labels:
      None

      Description

      I would like to test if a tag value is as expected.

      <span wicket:id="xyz">The interesting value</span>

      http://www.nabble.com/TagTester---Howto-get-the-value--tf4689085.html

        Activity

        Hide
        Frank Bille Jensen added a comment -

        As I said on the topic:

        You can use the TagTester#getMarkup():

        "Get markup for this tag. This includes every markup which is between the
        open tag and the close tag."

        If this isn't enough, please say so.

        Show
        Frank Bille Jensen added a comment - As I said on the topic: You can use the TagTester#getMarkup(): "Get markup for this tag. This includes every markup which is between the open tag and the close tag." If this isn't enough, please say so.
        Hide
        Frank Bille Jensen added a comment -

        Looking closer at it, I see that getMarkup returns the entire open-tag+value+close-tag. I'll add a getValue.

        Show
        Frank Bille Jensen added a comment - Looking closer at it, I see that getMarkup returns the entire open-tag+value+close-tag. I'll add a getValue.

          People

          • Assignee:
            Frank Bille Jensen
            Reporter:
            Per Newgro
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development