]
Nick Belaevski resolved RF-4188.
--------------------------------
Resolution: Rejected
Assignee: Mikhail Vitenkov (was: Nick Belaevski)
Not sure that it is a good idea to replace TR content by innerHTML
modalPanel: JS function doesn't update output text on
rich:modalPanel under IE6, IE7.
-------------------------------------------------------------------------------------
Key: RF-4188
URL:
https://jira.jboss.org/jira/browse/RF-4188
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: IE6, IE7(3.2.2.BETA4)
Reporter: Mikhail Vitenkov
Assignee: Mikhail Vitenkov
Step 1. Create following function that output modalPanel's size in <script>
section:
<script type="text/javascript">
function multiply(height,width){
var tbody = document.getElementById('tbodyID');
var trs = tbody.getElementsByTagName('TR');
var y = parseInt(height);
var x = parseInt(width);
trs[1].innerHTML = 'modalPanel\'s size: ' + x + 'x' +y + '
px*px';
return false;
}
</script>
Step 2. Inside modalPanle put following panelGrid:
<h:panelGrid columns="2" id="findComponentID">
<tbody id="tbodyID">
<tr>
<td><a4j:commandLink value="getSize" reRender="findID"
onclick="javascript:multiply(#{rich:findComponent('modalPanelID').height},#{rich:findComponent('modalPanelID').width});"></a4j:commandLink>
</td>
</tr>
<tr>
<td><h:outputText /></td>
</tr>
</tbody>
</h:panelGrid>
Step 3. Navigate on the page, contained tested modalPanel.
Step 4. Call modalPanel.
Step 5. Click on "getSize" commandLink
Actual behavior:
Under FF,Opera & Safari following string appears: modalPanel's size: 300x300
px*px
But under IE6 & IE7 following JS Error take place: "Unknown runtime error".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: