You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2007/04/20 00:27:15 UTC

[jira] Created: (MYFACES-1589) new location of alters page display

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

                 Key: MYFACES-1589
                 URL: https://issues.apache.org/jira/browse/MYFACES-1589
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-127
    Affects Versions: 1.1.5
            Reporter: Mike Kienenberger
            Priority: Minor


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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.