V3.2 progressBar does not start automatically when ajax=true
Posted: 12 Mar 2012, 21:51
In version 3.1 the below code worked fine.
But in 3.2 final release, we need to explicitly start the progress bar (similar to show case example of ajax usage). Only then the progress is shown in the progressBar.
I understand in v3.2 progressBar is rewritten as a native widget but it should mimic 3.1 behaviour without any explicit call to start it.
Code: Select all
<p:progressBar widgetVar="pb" style="width:200px" value="#{examDeliveryAction.progress}"/>
Code: Select all
<p:progressBar widgetVar="pb" ajax="true" style="width:200px" value="#{examDeliveryAction.progress}"/>
and in JavaScript
$(document).ready(function() {
pb.setValue(#examDeliveryAction.progress});
});