You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bram Van Dam <br...@cronos.be> on 2009/06/29 08:00:05 UTC

[Trinidad] File upload doesn't work when using PrettyFaces

Hi folks,

When using tr: in combination with PrettyFaces, the uploads don't seem 
to work properly. When using an action listener, the event is never 
fired and when using direct value binding (value="#{foo.file}"), the 
binding is never done so file remains null.

The problem only occurs when using the pretty version of the URL. When 
using the default /faces/foo.jspx, it works fine. This has also been 
posted on the Pretty Faces mailing list, without a resolution so far. If 
anyone knows of a way to fix this, or where the problem might lie, 
please speak up :-)

I've created a little sample project which illustrates the problem. It's 
pretty self explanatory, just fire it up, upload and look at
the console output. Then try it without the pretty URL and you'll notice
the difference on the console.

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

PrettyFaces mailing list post: 
http://groups.google.com/group/prettyfaces-users/browse_thread/thread/ef3fbf54e40ea8e4

Thanks,

  - Bram


Re: [Trinidad] File upload doesn't work when using PrettyFaces

Posted by Bram Van Dam <br...@cronos.be>.
Bram Van Dam wrote:
> When using tr: in combination with PrettyFaces, the uploads don't seem
** When using tr:inputFile...


Re: [Trinidad] File upload doesn't work when using PrettyFaces

Posted by Matthias Wessendorf <ma...@apache.org>.
On Wed, Jul 1, 2009 at 1:06 PM, Bram Van Dam<br...@cronos.be> wrote:
> Matthias Wessendorf wrote:
>>
>> I have never used PrettyFaces. Have you done some debuging inside the
>> Trinidad code?
>
> I've had a quick look at it myself, but there's so much code in Trinidad
> that it's pretty confusing (at least to me). Lincoln of the PrettyFaces team
> has had a look at it, and his assertion is as follows:
>
> "And actually, what I've learned so far is that the file upload succeeds,
> but the valueChangeListener never fires. That's why I'm confused, and
> thinking its a Trinidad oddity."

Nice said :-) Let me try to give it a shot w/in the next days..

-Matthias

>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Re: [Trinidad] File upload doesn't work when using PrettyFaces

Posted by Bram Van Dam <br...@cronos.be>.
Matthias Wessendorf wrote:
> I have never used PrettyFaces. Have you done some debuging inside the
> Trinidad code?

I've had a quick look at it myself, but there's so much code in Trinidad 
that it's pretty confusing (at least to me). Lincoln of the PrettyFaces 
team has had a look at it, and his assertion is as follows:

"And actually, what I've learned so far is that the file upload 
succeeds, but the valueChangeListener never fires. That's why I'm 
confused, and thinking its a Trinidad oddity."



Re: [Trinidad] File upload doesn't work when using PrettyFaces

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,

I have never used PrettyFaces. Have you done some debuging inside the
Trinidad code?

-Matthias

On Mon, Jun 29, 2009 at 8:00 AM, Bram Van Dam<br...@cronos.be> wrote:
> Hi folks,
>
> When using tr: in combination with PrettyFaces, the uploads don't seem to
> work properly. When using an action listener, the event is never fired and
> when using direct value binding (value="#{foo.file}"), the binding is never
> done so file remains null.
>
> The problem only occurs when using the pretty version of the URL. When using
> the default /faces/foo.jspx, it works fine. This has also been posted on the
> Pretty Faces mailing list, without a resolution so far. If anyone knows of a
> way to fix this, or where the problem might lie, please speak up :-)
>
> I've created a little sample project which illustrates the problem. It's
> pretty self explanatory, just fire it up, upload and look at
> the console output. Then try it without the pretty URL and you'll notice
> the difference on the console.
>
> http://www.kuro-shishi.be/static/brokenupload-maven-project.zip
>
> PrettyFaces mailing list post:
> http://groups.google.com/group/prettyfaces-users/browse_thread/thread/ef3fbf54e40ea8e4
>
> Thanks,
>
>  - Bram
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf