0

Using LR 6.1.0-ce-ga1 and ICEfaces 3.2.0. Have this code in my xhtml:

    <ace:panel>
    <ace:fileEntry 
        required="true"
        requiredMessage="You may not save if you have not selected a file."
        fileEntryListener="#{profileBean.listener}"
        maxFileCount="1"
        maxFileCountMessage="Select one file, please."
        useSessionSubdir="true"
        immediate="true"
        />
</ace:panel>

First, the immediate doesn't work. listener in my bean never gets called. But that's maybe not as important as the following.

I have h:commandButton on the form. When I click it, I see what looks like the beginning of a progress bar drawn like it's going to display file upload progress. This is immediately covered by the following: User Session Expired

This box is often associated with ICEfaces push problems (I've been told by ICEfaces). I added icepush.jar to WEB-INF/lib, but it didn't help. What I'd prefer is not to have the alleged progress bar try to render at all.

So, would appreciate anyone's help in making this file upload work.

P.S., I've tried Tomahawk and plain Apache JSF 2.0, also. I'd like to get the ICEfaces version working, but I'm kind of open to any working solution, given my (Servlet 2.5-based) environment.

Thanks.

4

1 に答える 1

0

ポートレット環境で ace:fileEntry を使用してファイルをアップロードする方法を示しているので、 icefaces3-portletデモのソース コードを確認することをお勧めします。

于 2013-02-20T12:38:46.283 に答える