method not calling.
aniinprni Jun 21, 2011 1:14 AMHi,
i wrote one method for file upload in the richfaces.there i am calling this method.but that method is not calling when i am clicking on the file upload method.but in the file upload the image is uploading but my method is not calling.here is the code.
-------------------------------------------------------------
<tr>
<td width="120" class="required-field"><h:outputText value="Image Upload"/></td>
<td>
<h:panelGroup id="imgdec" >
<s:decorate >
<table cellspacing="0" cellpadding="0">
<tr><td>
<rich:fileUpload id="imageUpload"
fileUploadListener="#{ezeeLinkPsManagement.imageFileListener}"
immediateUpload="true"
required="true"
maxFilesQuantity="1"
listHeight="100px" acceptedTypes="jpg, gif, png, bmp, jpeg">
<a:support event="onuploadcomplete" reRender="imagePanel,imgdec"/>
</rich:fileUpload>
</td></tr>
<tr><td>
<s:message errorClass="error"/>
</td></tr>
</table>
</s:decorate>
</h:panelGroup>
</td>
</tr>
<tr>
<td width="120" class="required-field"><h:outputText value="Contract File Upload"/></td>
<td>
<h:panelGroup id="condec" >
<s:decorate >
<table cellspacing="0" cellpadding="0">
<tr><td>
<rich:fileUpload id="conUpload"
fileUploadListener="#{ezeeLinkPsManagement.contractFileListener}"
immediateUpload="true"
required="true"
maxFilesQuantity="1"
listHeight="100px" acceptedTypes="jpg, gif, png, bmp">
</rich:fileUpload>
</td></tr>
<tr><td>
<s:message errorClass="error"/>
</td></tr>
</table>
</s:decorate>
</h:panelGroup>
</td>
</tr>
i wrote one method for file upload in the richfaces.there i am calling this method.but that method is not calling when i am clicking on the file upload method.but in the file upload the image is uploading but my method is not calling.here is the code.
-------------------------------------------------------------
<tr>
<td width="120" class="required-field"><h:outputText value="Image Upload"/></td>
<td>
<h:panelGroup id="imgdec" >
<s:decorate >
<table cellspacing="0" cellpadding="0">
<tr><td>
<rich:fileUpload id="imageUpload"
fileUploadListener="#{ezeeLinkPsManagement.imageFileListener}"
immediateUpload="true"
required="true"
maxFilesQuantity="1"
listHeight="100px" acceptedTypes="jpg, gif, png, bmp, jpeg">
<a:support event="onuploadcomplete" reRender="imagePanel,imgdec"/>
</rich:fileUpload>
</td></tr>
<tr><td>
<s:message errorClass="error"/>
</td></tr>
</table>
</s:decorate>
</h:panelGroup>
</td>
</tr>
<tr>
<td width="120" class="required-field"><h:outputText value="Contract File Upload"/></td>
<td>
<h:panelGroup id="condec" >
<s:decorate >
<table cellspacing="0" cellpadding="0">
<tr><td>
<rich:fileUpload id="conUpload"
fileUploadListener="#{ezeeLinkPsManagement.contractFileListener}"
immediateUpload="true"
required="true"
maxFilesQuantity="1"
listHeight="100px" acceptedTypes="jpg, gif, png, bmp">
</rich:fileUpload>
</td></tr>
<tr><td>
<s:message errorClass="error"/>
</td></tr>
</table>
</s:decorate>
</h:panelGroup>
</td>
</tr>