Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrimeFaces 14.0.8 fileUpload doesn't work anymore after mapping a new URL #384

Open
giates opened this issue Dec 10, 2024 · 0 comments
Open

Comments

@giates
Copy link

giates commented Dec 10, 2024

Hi,

I've a JSF page with a PrimeFaces fileUpload component.

The fileUpload component is working well until I introduce a new mapping for that page.

.../test.xhtml -> fileUpload works like a charm !

As I configure the new path on @RewriteConfiguration (only 1 rule inside the configuration):

        .addRule(
                Join.path("/test1").to("/test.xhtml")
        );

.../test.xhtml -> fileUpload stops working (no errors in log, no errors in networking browser tab)
.../test1 -> fileUpload stops working (no errors in log, no errors in networking browser tab)

The managed bean is in ViewScoped mode, and repeat, without configuring the new rule the fileUpload perfectly works.

PrimeFaces 14.0.8
Rewrite 10.0.2-Final (rewrite-servlet / rewrite-integration-faces)
Jakarta EE 10.0.0
Payara Server 6.2024.11

I've posted the relevant code on stackoverflow:

https://stackoverflow.com/questions/79268597/primefaces-fileupload-not-working-if-page-is-served-by-ocpsoft-rewrite

Any idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant