This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image cropping in Jsf on the release of mouse

 
HarshAuro Patil
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In jsf , if we want to crop image on mmouse release. then use following code.

h:commandLink action="#{cropAction.crop}" on click="return false;" onmouseup="return true;"
h:graphicImage value="#{cropAction.image}"
h:commandLink

As on click of commandLink the form has been submitting , set on click return false , so form won't submit. Then afer selecting the area when we release the mouse ,set return true, so now form get submitted and we get the coordinate and we can crop the image.
[ November 13, 2008: Message edited by: HarshAuro Patil ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic