This may be the problem,

in this case the changes to the UIComponents value take only effect if
they are done between the restoreView and the renderResponse phases!
any changes outside this lifecircle are just discarded, because the
binding component is newly created at restoreView and set into the
bindings bean.

Try without binding with a value expression, the underlying value can
be changed anytime.

Regards
  volker

2006/12/20, John <[EMAIL PROTECTED]>:
Hi Volker,

The binding is there because the backing bean is doing a long for loop,
within which the UIOutput's setValue is being called with a String value
to incrementally update it's text (text version of a progress bar).

John

-----Original Message-----
From: Volker Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 10:37 PM
To: MyFaces Discussion
Subject: Re: [Tobago] - Looking for usage examples for progress bar

Hi John,

yes the 5000 are milliseconds.

are there changes to your model for the t:out? If not you are reloading
all the same, which is not visible.
why is the binding in your test?

try

<t:out value="#{bean.time}"/>

with

public long getTime() {
  new Date.getTime();
}
in the bean class.




2006/12/20, John <[EMAIL PROTECTED]>:
> Hi Volker,
>
> Did I misunderstand the example below for a auto-refreshing panel. I
> did the following code as a test with a t:out tag, and it doesn't
> refresh at all. BTW: I'm assuming the 5000 is milliseconds. ..and I'm
> using t: for tobago tags instead of tc:
>
> <t:cell>
>         <t:panel>
>           <f:facet name="reload">
>             <t:reload frequency="5000" />
>           </f:facet>
>           <t:out id="deleteProgress"
> binding="#{statistics.displayProgressBar}"/>
>         </t:panel>
>       </t:cell>
>
>
> -----Original Message-----
> From: Volker Weber [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 18, 2006 9:37 AM
> To: MyFaces Discussion
> Subject: Re: [Tobago] - Looking for usage examples for progress bar
>
> Hi John,
>
> currently you need to put the progressbar into a panel with a reload
> facet.
>
> <tc:panel>
>   <f:facet name="reload">
>     <tc:reload frequency="5000" />
>   </f:facet>
>   <tc:progress .../>
> </tc:panel>
>
> (not tested, but should work)
>
>
> Regards,
>   Volker
>
> 2006/12/18, John <[EMAIL PROTECTED]>:
> > Hi Bernd,
> >
> > I looked over your example. It seems like only enough code to
> > display the progress bar using the parameters from the
> > BoundedRangeModel. I actually already got that far (displaying the
> > nice progress bar with the paramters from the BoundedRangeModel).
> > But I can't see how you animate the progress bar to represent
> > progress. When I change the model in real-time, the changes aren't
reflected in the progress bar.
> > Even if I completely re-assign the rangeModel to the progressBar, no

> > change visually to the bar.
> >
> > John
> > -----Original Message-----
> > From: Bernd Bohmann [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, December 17, 2006 1:53 PM
> > To: MyFaces Discussion
> > Subject: Re: [Tobago] - Looking for usage examples for progress bar
> >
> > Hello John,
> >
> > in the gendoc webapp in tobago-tool you can find an example for
this.
> > But it is not very useful. I will try to setup a better example with

> > a
>
> > ajax enabled progress bar.. if I get some time :-)
> >
> > Regards
> >
> > Bernd
> >
> > John wrote:
> > > Can't seem to find them anywhere?
> > >
> > > Thanks,
> > >
> > > John
> > >
> >
> >
>
>


Reply via email to