File Upload does not do PPR with h:outpouttext

UI Components for JSF
Post Reply
varunagrawal
Posts: 36
Joined: 12 Aug 2010, 15:49

25 Aug 2010, 23:03

<h:form prependId="false">
<h:outputText id="message" value="this is old value" escape="false" ></h:outputText>
<p:fileUpload update="messages" fileUploadListener="#{FileUploadController.handleFileUpload}" allowTypes="*.jpg;*.png;*.gif;" description="Images"/>
</h:form>


As you can see above the <h:outputText is not updated to new value after file is uploaded.
However if I try the same with <p:growl id=message /> , the growl component is shown with relevant message.
But I want to update the outputText field and display of growl message is of no value to me.
Please if someone can help me on the issue.

thanks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

25 Aug 2010, 23:51

id of text is message and update option referes to messages, there is a typo.

varunagrawal
Posts: 36
Joined: 12 Aug 2010, 15:49

26 Aug 2010, 15:22

oooo..
I am sorry..that is just a typo here.......
In my original code , I have no type and still it is not working...

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests