[richfaces-issues] [JBoss JIRA] Updated: (RF-2364) Progress Bar: works wrong with Long value returned

Tsikhon Kuprevich (JIRA) jira-events at lists.jboss.org
Fri Apr 11 12:18:59 EDT 2008


     [ http://jira.jboss.com/jira/browse/RF-2364?page=all ]

Tsikhon Kuprevich updated RF-2364:
----------------------------------

    Fix Version/s: 3.2.1

> Progress Bar: works wrong with Long value returned
> --------------------------------------------------
>
>                 Key: RF-2364
>                 URL: http://jira.jboss.com/jira/browse/RF-2364
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Ilya Shaikovsky
>         Assigned To: Ilya Shaikovsky
>             Fix For: 3.2.0, 3.2.1
>
>
> Demosite need this fix.
> 	      <rich:progressBar value="#{progressBarBean.currentValue}" id="progressBar" interval="10000"
> 	      label="#{progressBarBean.currentValue} %" enabled="true">
> 	      	<f:facet name="initial">
> 	      		<h:outputText value="Process indicator"/>
> 	      	</f:facet>
> 	      </rich:progressBar>
> 	public Long getCurrentValue(){
> 		if (isEnabled()){
> 			System.out.println(new Date().getTime() - startTime);
> 			System.out.println((new Date().getTime() - startTime)/1000);
> 			return (new Date().getTime() - startTime)/1000;
> 		}else
> 			return Long.valueOf(-1);
> 	}
> 	public String startProcess() {
> 		setEnabled(true);
> 		setStartTime(new Date().getTime());
> 		return null;
> 	}
> if I use the same code but call getSeconds and return Integer - works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list