Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2166

Invalid nested form tag name when the form is not visible and setoutputmarkupplaceholdertag(true) has been called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC3
    • wicket
    • None

    Description

      when the an innerform is invisible and you called setoutputmarkupplaceholdertag(true), onComponentTag not processed and an invalid form tag name results:

      <form wicket:id=rootform>
      <form wicket:id=nestedform style="display: none">
      </form></form>

      Component.render(final MarkupStream markupStream) {

      ...

      if (determineVisibility())

      { // render -> replace form with div }

      else if (markupStream != null)
      {
      if (getFlag(FLAG_PLACEHOLDER))
      {
      final ComponentTag tag = markupStream.getTag();
      renderPlaceholderTag(tag, getResponse()); ///////////////////////
      Here form does not replace "form" with "div"
      }
      markupStream.skipComponent();
      }

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              mmakundi Martin Terra
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified