This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf image Zoom in and Zoom out

 
sriram Ganapathi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using <pe:imageAreaSelect> and <pe:imageRotateAndResize> in primefaces but i trying do some ajax event
inside <pe:imageAreaSelect> & <pe:imageRotateAndResize> is not working. it giving some error like <p:ajax>
Unable to attach <p:ajax> to non-ClientBehaviorHolder parent.Also i need to do Zoom in , Zoom out operation how to do that.


Please Help.

This is my code


<pe:imageAreaSelect id="areaSelect"
for="myImage"
widgetVar="areaSelectWidget"
autoHide="true"
parentSelector="#imageWrapper">
<p:ajax event="selectEnd" listener="#{imageController.selectEndListener}" update="growl"/>
</pe:imageAreaSelect>

<pe:imageRotateAndResize id="rotateAndResize" for="myImage" widgetVar="rotateAndResizeWidget">
<p:ajax event="rotate" listener="#{imageController.rotateListener}"
update="growl" oncomplete="areaSelectWidget.reload();"/>
<pe:javascript event="resize" execute="areaSelectWidget.reload();"/>
</pe:imageRotateAndResize>

Regards,
Sriram
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic