Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1589

new location of <input type="hidden" name="autoScroll"> alters page display

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.1.5
    • None
    • JSR-127
    • None

    Description

      One of my page designers pointed out that the autoscroll hidden input location changed between MyFaces Core 1.1.4 and 1.1.5.

      Unfortunately, on this page, it moved right in the middle of a navigation bar, causing a visible space between the two buttons it is located between, on both IE and Firefox.

      Using my limited html knowledge, I tried saving the html to a file and adding style="display:none" just to see if css might be able to solve the problem. It did not.

      My guess is that it is now appearing after the first component to reference autoScroll.

      Is there some style we can apply to this input to make it not affect the display (You'd think that'd be the default behavior, wouldn't you?) Barring all that, maybe this hidden input should be moved to right before the closing form end tag, or wherever the rest of the generated hidden inputs are located.

      Or is my only option to put an unused hidden h:commandButton at the top of the page?

      <h:commandButton style="display: none;" />

      Example page output:

      <div class="nav_menu">
      <input type="submit" class="normal" onmouseout="this.className =
      'normal'" onmouseover="this.className = 'highlight'"
      onclick="if(typeof
      window.clearFormHiddenParams__id12!='undefined')

      {clearFormHiddenParams__id12('_id12');}if(typeof
      window.getScrolling!='undefined'){oamSetHiddenInput('_id12','autoScroll',getScrolling());}"
      value="Search Records" name="_id12:_id16" id="_id12:_id16">
      <input type="hidden" name="autoScroll">
      <input type="submit" class="normal" onmouseout="this.className =
      'normal'" onmouseover="this.className = 'highlight'"
      onclick="if(typeof
      window.clearFormHiddenParams__id12!='undefined'){clearFormHiddenParams__id12('_id12');}

      if(typeof
      window.getScrolling!='undefined')

      {oamSetHiddenInput('_id12','autoScroll',getScrolling());}"
      value="Add Record" name="_id12:_id17" id="_id12:_id17">
      <input type="submit" class="normal" onmouseout="this.className =
      'normal'" onmouseover="this.className = 'highlight'"
      onclick="if(typeof
      window.clearFormHiddenParams__id12!='undefined'){clearFormHiddenParams__id12('_id12');}if(typeof
      window.getScrolling!='undefined'){oamSetHiddenInput('_id12','autoScroll',getScrolling());}

      "
      value="Add Another Record" name="_id12:_id18" id="_id12:_id18">
      <input type="submit" class="normal" onmouseout="this.className =
      'normal'" onmouseover="this.className = 'highlight'"
      onclick="if(typeof
      window.clearFormHiddenParams__id12!='undefined')

      {clearFormHiddenParams__id12('_id12');}if(typeof
      window.getScrolling!='undefined'){oamSetHiddenInput('_id12','autoScroll',getScrolling());}"
      value="Add Info" name="_id12:_id19" id="_id12:_id19">
      <input type="submit" class="normal" onmouseout="this.className =
      'normal'" onmouseover="this.className = 'highlight'"
      onclick="if(typeof
      window.clearFormHiddenParams__id12!='undefined'){clearFormHiddenParams__id12('_id12');}

      if(typeof
      window.getScrolling!='undefined')

      {oamSetHiddenInput('_id12','autoScroll',getScrolling());}

      "
      value="Search Other" name="_id12:_id20" id="_id12:_id20">
      </div>

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkienenb Mike Kienenberger
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: