Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.8-SNAPSHOT
-
None
-
tomcat 6.0.16
java 1.6.0
myfaces 1.1.7-snapshot
tomahawk 1.1.8-snapshot
tomahawk-sandbox 1.1.8-snapshot
Description
I have this jsf page:
<s:inputTextAjax value="#
{inputAjaxBean.text1}" id="text1"
validator="#
"
errorStyle="border:1px solid red; color:red;"
onchange="alert('hello!');"
styleClass="orangeBg"/>
<t:message forceSpan="true" styleClass="errorMessage" for="text1"></t:message>
This is the rendered html:
...<input id="text1" name="text1" type="text" value="" class="myFacesInputSuggestAjax" onchange="_MyFaces_inputAjax_ajaxSubmit1('text1');" /><span id="text1_msgFor" class="errorMessage"></span>...
As you can see, the onchange and styleClass attributes supplied in the inputTextAjax tag were not rendered. Both of these attributes are defined in the tld for this tag. These should be rendered.
As an added note, inputTextAjax doesn't seem to be working at all. I've also checked the example at http://www.irian.at/myfaces-sandbox/inputAjax.jsf. Whenever ajax operations are performed, the 'loading' icon just spins forever. I'll check on this some other time. But for now, I'll only deal with correct attribute rendering first.