inputFile valuechangeListener doesn't generate javascript
---------------------------------------------------------

                 Key: TRINIDAD-2122
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2122
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 2.0.0
         Environment: trinidad-2.0.0, myfaces-2.1.1, spring 3.0.5, jpa 2
            Reporter: Chamber


Including  valueChangeListener to a inputFile component doesn't add any 
javascript code so the event AttributeChangeEvent will never be fire up and 
neither call the method associated:

Code:
<tr:form usesUpload="true">
   <tr:inputFile  valueChangeListener="#{backBean.uploadFile}" 
autoSubmit="true"/>
</tr:form>

Code generated:
<form id="j_id274853562_1061eef8" ...>
...<input id="j_id274853562_1061eed2" name="j_id274853562_1061eed2" 
class="af_inputFile_content" type="file">
...
</form>

Backing bean code 
public void uploadFile(ValueChangeEvent event) {
...
}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to