Results 1 to 1 of 1
- 11-12-2008, 06:24 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 1
- Rep Power
- 0
Image cropping in Jsf on the release of mouse
Hi,
In jsf , if we want to crop image on mmouse release. then use following code.
<h:commandLink action="#{cropAction.crop}" onclick="return false;" onmouseup="return true;">
<h:graphicImage value="#{cropAction.image}" />
</h:commandLink>
As on click of commandLink the form has been submitting , setting onclick return false , so form won't submit. Then afer selecting the area when we release the mouse ,setting return true, so now form get submitted and we get the coordinate and we can crop the image.
Similar Threads
-
How to show pixel Coordinate and RGB value when mouse is tracking over an image
By Mazharul in forum Java 2DReplies: 1Last Post: 08-25-2008, 08:48 PM -
release info
By venkatashiva in forum Java SoftwareReplies: 3Last Post: 01-01-2008, 05:25 AM -
StreamCruncher 2.3 Release Candidate
By JavaBean in forum Java SoftwareReplies: 0Last Post: 11-21-2007, 07:53 PM -
StreamCruncher 2.1 Release Candidate
By JavaBean in forum Java SoftwareReplies: 0Last Post: 07-18-2007, 05:47 PM -
p-unit 0.10-release
By levent in forum Java SoftwareReplies: 0Last Post: 05-28-2007, 08:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks