Skip to content

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

@giates

Description

@giates

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions