FileUpload Single does not work with Babylon

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
User avatar
ajotta
Posts: 71
Joined: 16 Feb 2016, 13:41
Location: Brasil
Contact:

18 Jul 2022, 18:25

I'm trying to use FileUpload Single in a project with PrimeFaces 11.0.4 with Babylon 6.0.0 theme and I've done everything and it just doesn't work.

I have the same code in another project with PrimeFaces 11.0.3 and the Ultima 4.0.1 theme that works fine.

Code: Select all

<div class="card">
    <h:form>
        <p:fileUpload listener="#{fileUploadView.handleFileUpload}" mode="advanced"
                      update="messages" auto="true" sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>

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

Code: Select all

public void handleFileUpload(FileUploadEvent event) {
        FacesMessage message = new FacesMessage("Successful", event.getFile().getFileName() + " is uploaded.");
        FacesContext.getCurrentInstance().addMessage(null, message);
    }
I created a class with just these codes and it doesn't give any error.

https://www.loom.com/share/64887af0223e ... 537a6c4556

See that it opens and it just doesn't give the message as success with the file name, I go to the log and there's nothing
--
Jarciano Silva
CEO - Chief Executive Officer
ajotta | https://ajotta.com

User avatar
ajotta
Posts: 71
Joined: 16 Feb 2016, 13:41
Location: Brasil
Contact:

19 Jul 2022, 20:03

I did a direct test with just the theme and it worked, now I'm trying to find out what might be causing my project not to work.
--
Jarciano Silva
CEO - Chief Executive Officer
ajotta | https://ajotta.com

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 Jul 2022, 10:25

Thanks a lot for your update! Good luck!

Post Reply

Return to “Babylon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest