After upgrading to primefaces-3.0.RC1, i noticed that after clicking on an item in a carousel item selection, it would throw an error relating to the fileuploader, and if i took out the fileuploader component, it would again start working fine. Below is a simple example of code:
Carousel:
Code: Select all
<div id="dr">
<p:carousel id="rawr" value="#{cmsDesignBean.templateList}"
var="templates"
itemStyle="width:140px;height:100px; margin-left:14px">
<p:column>
<p:commandLink action="#{cmsDesignBean.updateTemplateImage}"
ajax="true"
update="designform:DesignAd, designform:SideDesign">
<p:graphicImage id="TempImg"
value="#{cmsDesignBean.carouselImages}" width="140px"
height="100px">
<f:param name="Streamed_Carousel" value="#{templates.id}" />
</p:graphicImage>
<f:setPropertyActionListener value="#{templates}"
target="#{cmsDesignBean.templateImage}" />
</p:commandLink>
</p:column>
</p:carousel>
</div>
Code: Select all
<p:fileUpload id="DesignLogoUpload"
value="#{cmsDesignBean.logoFile}" mode="simple"
update="designform:DesignAd, dialogform:xyzBody"
allowTypes="/(\.|\/)(gif|jpe?g|png|wbmp|bmp)$/"
description="Select Images" />
<p:commandButton value="Submit" ajax="false"
action="#{cmsDesignBean.handleLogoUpload}" />
Code: Select all
this.element.find(".fileupload-buttonbar button").unbind("click." + this.options.namespace).button is not a function
http://localhost:8080/ProjectName/javax.faces.resource/fileupload/fileupload.js.xhtml?ln=primefaces&v=3.0.RC1
Line 11