onchange and styleClass are not rendered in inputTextAjax
---------------------------------------------------------

                 Key: TOMAHAWK-1340
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1340
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: AJAX Form Components
    Affects Versions: 1.1.8-SNAPSHOT
         Environment: tomcat 6.0.16
java 1.6.0
myfaces 1.1.7-snapshot
tomahawk 1.1.8-snapshot
tomahawk-sandbox 1.1.8-snapshot
            Reporter: Paul Rivera


I have this jsf page:

      <s:inputTextAjax value="#{inputAjaxBean.text1}" id="text1"
          validator="#{inputAjaxBean.validateText1}"
          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.

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

Reply via email to