Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Vijayan M
Issues with rich:fileUpload
May 16, 2012 9:32 PM
Answer

Vijayan M

Rank: New Member

Posts: 11

Join Date: May 9, 2012

Recent Posts

I have issues with rich:fileUpload .

1<h:form id="f1" enctype="multipart/form-data">            <h:messages />            <h:panelGrid columns="2" columnClasses="top,top">                <rich:fileUpload fileUploadListener="#{candidateController.uploadCandidate}"                    id="upload" acceptedTypes="doc, zip, html"                    ontyperejected="alert('doc, zip, html');"                    maxFilesQuantity="5">                    <a4j:ajax event="uploadcomplete" execute="@none" render="info" />                </rich:fileUpload>                <bridge:inputFile binding="#{candidateController.attachment}" />                <h:commandButton                    actionListener="#{candidateController.uploadCandidate}"                    value="Upload" />            </h:panelGrid>        </h:form>


Listener is not getting invoked when i click on Upload of rich:fileUpload.

Below code works fine, but how do i get the content from com.liferay.faces.bridge.component.HtmlInputFile ?

1<bridge:inputFile binding="#{candidateController.attachment}" />                <h:commandButton                    actionListener="#{candidateController.uploadCandidate}"                    value="Upload" />


rich:fileUpload looks fancy, is there anyway i can use the rich upload component?

I have attached the image for your reference.
Attachment

Attachments: rich-fileUpload.png (17.0k)
Neil Griffin
RE: Issues with rich:fileUpload
May 17, 2012 7:14 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1973

Join Date: July 26, 2005

Recent Posts

Thanks for creating the separate thread. I'll try and take a look at the source code of rich:fileUpload today and see if we can make it work it in the bridge. I'll let you know some more info as soon as I know more.
Neil Griffin
RE: Issues with rich:fileUpload
May 18, 2012 12:38 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1973

Join Date: July 26, 2005

Recent Posts

Just wanted to let you know that I've done a high level review of the code. Facing similar challenges to those found in the PrimeFaces code. We'll see what we can do. Again, I'll post an update when I know more.
Neil Griffin
RE: Issues with rich:fileUpload
May 18, 2012 4:19 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1973

Join Date: July 26, 2005

Recent Posts

I made some progress on this feature today. Please "watch" FACES-1234 for status updates.
Vijayan M
RE: Issues with rich:fileUpload
May 18, 2012 11:31 PM
Answer

Vijayan M

Rank: New Member

Posts: 11

Join Date: May 9, 2012

Recent Posts

Thank you so much for your help.
Neil Griffin
RE: Issues with rich:fileUpload
May 22, 2012 6:12 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1973

Join Date: July 26, 2005

Recent Posts

You're very welcome. I got rich:fileUpload working in the bridge and updated the richfaces4-portlet demo accordingly. You will need to download the 3.0.0-RC1-SNAPSHOT (Liferay 6.0.x) or 3.1.0-RC1-SNAPSHOT (Liferay 6.1.x) version of the bridge or the richfaces4-portlet demo to try it out.
Vijayan M
RE: Issues with rich:fileUpload
May 30, 2012 5:35 AM
Answer

Vijayan M

Rank: New Member

Posts: 11

Join Date: May 9, 2012

Recent Posts

rich:fileUpload works fine now. Thank you so much for your help.
Neil Griffin
RE: Issues with rich:fileUpload
May 30, 2012 7:39 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1973

Join Date: July 26, 2005

Recent Posts

My pleasure, thanks again for reporting this issue.