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

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Mon Mar 3 08:18:08 EST 2008


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: Andrei Markavtsov
             Fix For: 3.2.0


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