Details
Description
Updates for form sends invalid content for empty form.
In IE6-7 browsers empty forms (for example after modal popup is closed) are displayed with one line of empty area
- this area should not be visible/
Example of empty form after inner modal is closed
<FORM class="iceFrm" id="ts3" onsubmit="return false;" action="javascript:;" method="post" class="iceFrm" enctype="application/x-www-form-urlencoded">
<INPUT type="hidden" name="ts3" value="ts3" /><INPUT type="hidden" name="icefacesCssUpdates" value="" />
<DIV id="ts3:stateSavingMarker">
<INPUT id="javax.faces.ViewState" type="hidden" name="javax.faces.ViewState" value="1" />
<INPUT type="hidden" name="javax.faces.RenderKitId" value="ICEfacesRenderKit" />
</DIV>
<DIV id="ts3hdnFldsDiv" style="DISPLAY: none"></DIV>
</FORM>
As you see div id="ts3:stateSavingMarker" should also got style="DISPLAY: none"
Patch for FormRendered.java
line 390
root.appendChild( n );
((Element) n).setAttribute( "id", id );
> ((Element) n).setAttribute(HTML.STYLE_ATTR, "display:none;");
domWriter.trackMarkerNode( n );
In IE6-7 browsers empty forms (for example after modal popup is closed) are displayed with one line of empty area
- this area should not be visible/
Example of empty form after inner modal is closed
<FORM class="iceFrm" id="ts3" onsubmit="return false;" action="javascript:;" method="post" class="iceFrm" enctype="application/x-www-form-urlencoded">
<INPUT type="hidden" name="ts3" value="ts3" /><INPUT type="hidden" name="icefacesCssUpdates" value="" />
<DIV id="ts3:stateSavingMarker">
<INPUT id="javax.faces.ViewState" type="hidden" name="javax.faces.ViewState" value="1" />
<INPUT type="hidden" name="javax.faces.RenderKitId" value="ICEfacesRenderKit" />
</DIV>
<DIV id="ts3hdnFldsDiv" style="DISPLAY: none"></DIV>
</FORM>
As you see div id="ts3:stateSavingMarker" should also got style="DISPLAY: none"
Patch for FormRendered.java
line 390
root.appendChild( n );
((Element) n).setAttribute( "id", id );
> ((Element) n).setAttribute(HTML.STYLE_ATTR, "display:none;");
domWriter.trackMarkerNode( n );
Activity
Krashan Brahmanjara
created issue -
Krashan Brahmanjara
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | err2.PNG [ 11936 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Component/s | Framework [ 10013 ] | |
Assignee Priority | P2 | |
Assignee | Yip Ng [ yip.ng ] | |
Priority | Major [ 3 ] | Minor [ 4 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 1.8.2 [ 10190 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #19302 | Fri Sep 25 09:57:05 MDT 2009 | yip.ng | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/FormRenderer.java
|
yip.ng
made changes -
Attachment | screenshot-1.png [ 12008 ] |
yip.ng
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P2 |
Empty form view from iedeveloper