Package org.richfaces.photoalbum.model.event

Examples of org.richfaces.photoalbum.model.event.ErrorEvent


                bos.write(i);
            }
            bos.flush();
            bis.close();
        } catch (MalformedInputException malformedInputException) {
            error.fire(new ErrorEvent("Error", "error uploading image<br/>" + malformedInputException.getMessage()));
        } catch (IOException ioException) {
            error.fire(new ErrorEvent("Error", "IO error<br/>" + ioException.getMessage()));
        }

        fileUploadManager.uploadFile(new FileHandler(file), album);
    }
View Full Code Here


    public void setUserInfoJSON(String userJson) {
        try {
            userInfo = new JSONObject(userJson);
        } catch (JSONException e) {
            error.fire(new ErrorEvent("Error", e.getMessage()));
        }
    }
View Full Code Here

                userAlbums.add(ja.getJSONObject(i));
            }

            gpac.storeAlbums(userAlbums);
        } catch (JSONException e) {
            error.fire(new ErrorEvent("Error", e.getMessage()));
        }
    }
View Full Code Here

TOP

Related Classes of org.richfaces.photoalbum.model.event.ErrorEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.