[Trinidad] Using <tr:inputFile> fails when using PrettyFaces URLs

View: New views
1 Messages — Rating Filter:   Alert me  

[Trinidad] Using <tr:inputFile> fails when using PrettyFaces URLs

by Lincoln Baxter, III :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Trinidad folks,

I've been trying to work on this issue from my end in PrettyFaces, but
I am having trouble tracking it down -- it's pretty weird.

So far, what I can tell is:

When using an action listener on tr:inputFile, the ActionEvent is
never fired, and when using direct value binding
(value="#{foo.file}"), the binding is never bound to the backing bean.
The file *is* actually uploaded, and is wrapped with trinidad's
version FileUploadRequestWrapper (or whatever it's called, sorry I
don't have it up at the moment.)


The thing that confuses me is: After doing some URL parsing,
PrettyFaces simply forwards all requests to FacesServlet, using native
JSF viewIds... so I'm not sure why Trinidad would be breaking on a
Pretty URL as opposed to a non-Pretty URL. I thought it might be
related to an issue with my PrettyViewHandler, but that method is only
called once by the form, which is correct behavior in this specific
scenario.

Would you guys mind taking a look? The user who reported this to me
has created a Maven project with a simple reproduction of the problem.

http://www.kuro-shishi.be/static/brokenupload-maven-project.zip

Thanks!
-Lincoln

1. http://www.mail-archive.com/users@.../msg53362.html
2. http://groups.google.com/group/prettyfaces-users/browse_thread/thread/ef3fbf54e40ea8e4