Hi,
i would suggest the way, Werner mentioned; It`s really very easy.
In a very simple example, it can be something like this:
<s:pprPanelGroup id="progressBar" periodicalUpdate="500">
<t:div style="#{bean.style}">
</t:div>
</s:pprPanelGroup>
The getStyle method returns a broader width (same height, color..) on
every poll.
cheers,
Gerald
On 11/24/06, Bjørn T Johansen <[EMAIL PROTECTED]> wrote:
Thx for all the suggestions, I'll see what fit my requirements best... :)
BTJ
On Fri, 24 Nov 2006 15:00:00 +0100
"Matthias Wessendorf" <[EMAIL PROTECTED]> wrote:
> examples from Irian go here:
>
> http://www.irian.at/trinidad-demo/faces/components/progressIndicator.jspx
>
> -M
>
> On 11/24/06, Simon Lessard <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > You can also use Trinidad in addition to my-faces, it has a progress bar
> > component.
> >
> >
> > Regards,
> >
> > ~ Simon
> >
> >
> > On 11/24/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > > 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...)
> > >
> > >
> >
> >
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces