myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samju <julsam...@netscape.net>
Subject IE Runtime Error function clearFormHiddenParams_back(currFormName)
Date Thu, 06 Dec 2007 11:17:24 GMT

1. webapp use: tomahawk-1.1.7-SNAPSHOT.jar and myfaces-impl/api-1.1.5.jar

2. JSP use:<t:inputHtml value="#{result.webPageScreenShot}"......>

3. webPageScreenShot: could have HTML input of Type hidden.

rendering t:inputHtml under IE cause a runtime error:
'elements.back:_link_hidden_' is null or not an Object. for Firefox this
work well! 

4: Debug:
<input type="hidden" name="back_SUBMIT" value="1" /><input type="hidden"
name="back:_link_hidden_" /><input type="hidden" name="back:_idcl" /><script
type="text/javascript"><!--

	function clear_back()
	{
		clearFormHiddenParams_back('back');
	}
	
	function clearFormHiddenParams_back(currFormName)
	{
		var f = document.forms['back'];
		f.elements['back:_link_hidden_'].value='';
		f.elements['back:_idcl'].value='';
		f.target='';
	}
	
	clearFormHiddenParams_back();

How to let this under IE work?

PS: i already take a look at the Thread "Why does JSF submit through
JavaScript?" didnĀ“t help:-)

-- 
View this message in context: http://www.nabble.com/IE-Runtime-Error-function-clearFormHiddenParams_back%28currFormName%29-tf4955393.html#a14190320
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message