This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes JSF and the fly likes calling back bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "calling back bean" Watch "calling back bean" New topic

calling back bean

Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi I am trying call a method this way:

<p:fileUpload fileUploadListener="#{Content.handleFileUpload}"

And the method is:

public void handleFileUpload(FileUploadEvent event) {
//"Uploaded: {}", event.getFile().getFileName());
FacesMessage msg = new FacesMessage("Succesful", event.getFile().getFileName() + " is uploaded.");

FacesContext.getCurrentInstance().addMessage(null, msg);


But in the console nothing appears, I have anothers methods in the same file and they works well.

┬┐Any clue?

Don't get me started about those stupid light bulbs.
subject: calling back bean