Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6816137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:53:24+00:00 2026-05-26T20:53:24+00:00

I want to upload images after cropping them. I do it this way:, first

  • 0

I want to upload images after cropping them. I do it this way:, first upload the image and show within the page. But the problem is that when I crop the image and click the submit button,the corresponding image cropper bean is not called. I don’t know where I’m wrong.

xhtml code:

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
<script src="jquery-1.4.2.js"></script>
<script src="jquery.Jcrop.js"></script>
<script src="jquery.min.js"></script>
<script src="jquery.Jcrop.min.js"></script>

</h:head>
<h:body>
<h:form  >
<p:panel header="FILE UPLOAD WITH CROPPER" style="width:900px; margin: 0 auto; margin-top:0px">

<p:fileUpload fileUploadListener="#{photoUploadAction.handleImageUpload}"  
        mode="advanced"   
        update="getImageId,messages"  auto="true" 

        allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>  

<p:growl id="messages" showDetail="true"/>  

<p:growl id="uploadMessages" showSummary="true" showDetail="true"/>

<p:outputPanel id="getImageId">

<h:panelGrid columns="2">

 <p:imageCropper id="cropperId" value="#{imageCrop.croppedImage}"
              image="images/#{photoUploadVO.imageName}"/>
  <p:graphicImage value="cropImages/#{imageCrop.imageName}" cache="false"/>
 </h:panelGrid>

   <p:commandLink value="Crop" update="getImageId" action="#{imageCrop.crop}" type="submit" />
</p:outputPanel>
</p:panel>
</h:form>
</h:body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:53:24+00:00Added an answer on May 26, 2026 at 8:53 pm

    I dint understand your question properly, up to my understanding, I think you may not created a managedBean for your imageCropperBean in your faces.config. or else just declare an annotation before the cropperBean Class @managedBean

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hai guys, I want to upload images through my web page to a folder
I'm trying to put together an image uploader. I want to upload images into
I want to partially update page when i upload or delete the image. What
I have xml file with collection image urls and I want upload this url
I tried this code to upload two images to PHP server. But response is
I want multi-upload image by codeigniter and use from following libraries, my problem is
This time my question is the following: I want to upload images using a
I want to let users upload Images. The file gets re-named (by adding the
I want to upload data, images, txt files, pdf documents , etc. Im using
I want to upload an image file into mysql database on Android Mobile Programming,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.