David Delbecq schrieb:
> Bjørn T Johansen a écrit :
>> Does myfaces have a progress bar component one can use
> Define progress bar. Something like 'your are a step 15 out of 20, still
> 5 more forms to complete registration'
> Or something like 'submitting value, then validating , then calling
> action, then redirecting' ?
>
> For the first one, well, it's just a matter of showing picture
> <h:graphicsImage
> value="/images/progress/step_#{myprogressbean.currentStep}.png"/>
>
> For the second one, as everything happens server side there is no point
> trying to show a client progress bar as there is no way in http protocol
> for server to inform client of such progress.
>> or if not, some hints on how to make one?
>>
> There are lots of docs on the net on how to create your own components.
> You problem however might be that JSF renders html, not pictures :). So
> you might go the javascript way. Personnaly, i like the most simple gif
> animation that get removed when operation is complete :)
Actually in this case there is no need for any componentization, 95% of
all progress bar use cases probably can be solved within tomahawk by
application of the partial page rendering control and other non
javascript rendering jsf controls.
(h:image in your case, t:div in the case of a progress bar which has to
grow etc...)