RichFaces fileupload and h:message problem

后端 未结 2 546
时光取名叫无心
时光取名叫无心 2021-01-22 00:15

I am using RichFaces 4. My problem is that the message does not appear at all. If I use rich:message the message appears briefly then dissapears.

This is the controller:

相关标签:
2条回答
  • 2021-01-22 00:21

    The problem was the a4j:ajax tag. It was sending a second request, and the messages were cleared. This works:

    <h:form id="uploadForm" enctype="multipart/form-data">
        <h:message id="message" showDetail="true" for="uploader" errorClass="error" warnClass="warning" infoClass="info" fatalClass="fatal"/>
        <rich:fileUpload id="uploader"
                 fileUploadListener="#{itemController.uploadListener}"
                 maxFilesQuantity="1"
                 acceptedTypes="csv"
                 render="items, message" />
    </h:form>
    
    0 讨论(0)
  • 2021-01-22 00:32

    Rich upload doesn't rerender messages:

    https://community.jboss.org/message/55888
    https://issues.jboss.org/browse/RF-3566

    0 讨论(0)
提交回复
热议问题