Buddhika Ariyaratne

Greenhorn
+ Follow
since Dec 18, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Buddhika Ariyaratne

Hi All,
I am using Netbeans 7.01 and GlassFish. I downloaded PrimeFaces 3.2 and added it to the library. I followed the FileUpload example in http://www.primefaces.org/showcase/ui/fileUploadSimple.jsf. It gives a warning and the holds the functioning of p:fileUpload. I inserted a p:commandButton, but it also seems to be the same. I inserted h:commandButton and it functions as expected with same back bean method. But <p:spinner /> and p:growl are functioning as expected.

The warning in the GLassFish 3.x log is WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /web, because request parameters have already been read, or ServletRequest.getReader() has already been called.
I got rid of that warning after following the discussion on http://code.google.com/p/primefaces/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Stars%20Type%20Status%20Priority%20TargetVersion%20Reporter%20Owner%20Summary&groupby=&sort=&id=1195, still there was no change in the functionality.

Backbean Code



xhtml code





I will be grateful to someone who can detect the issue.
Thanks in advance.
9 years ago
JSF

Brendan Healey wrote:What you should find (I've not tested this recently with the most recent Mojarra versions) is that it doesn't
quite work as you'd expect with f:ajax. The problem has always been that on the current request cycle
the EL expression is resolved, but only on the next request is the render target updated, and this is probably
not quite what you wanted.

The workaround involves not using render= on the f:ajax tag, but instead adding the component to be
rendered from a listener. In this case instead of using f:ajax render="yourtarget", or more specifically
f:ajax render="#{bean.propertyContainingTheStringYourTarget}", you'd do it like this:



If you're using the richfaces a4j:ajax, the developers had the good common sense to handle this situation
and you don't require the workaround.

Regards,
Brendan.



That solved my issue when using JSF without any library. I am using PrimeFaces when necessary and will check on that.
10 years ago
JSF
I am using JSF ajax as shown below.



Is it possible to give the list of web components for render attribute through el from a managed bean? (Like render=#{bean.controlList} )
10 years ago
JSF
Thank you very much for the detailed answer. I will try and post a feedback after attempting.
10 years ago
JSF
I will be grateful to someone who can tell me a JSF library which allows me to add windows within the webpage with maximize , minimize and restore buttons, which can be moved and zorder can be changed by the user, like in a MDI windows application. Thanks in advance.
10 years ago
JSF