2 Replies Latest reply: Feb 8, 2013 6:12 AM by Frank Nimphius-Oracle RSS

    Hovering Progress Bar is always 0 in ADF

    Alejandro Tovar Lanz
      Hi

      I am using JDeveloper 11.1.1.6

      I am working in one implementation of a progress bar which has the following code,
      public class MyProfileExpectedProgressModel extends BoundedRangeModel {
      > public int total = 0;
      > private long _expValue = 0;
      > private long _expMaximum = 100;
      > public long getMaximum() {
      > return 100;
      > }
      > public long getValue() {
      > if (_expValue == 0) {
      > total = Integer.parseInt(ADFUtils.resolveExpression("#{bindings.ExpectedProgress.inputValue}").toString());
      > _expValue = Long.parseLong(ADFUtils.resolveExpression("#{bindings.Percentage.inputValue}").toString());
      > }
      > return _expValue;
      > }
      >
      > public void setValue(long value) {
      > _expValue = value;
      > }
      > public void setMaximum(long maximum) {
      > _expMaximum = maximum;
      > }
      > public void setTotal(int total) {
      > this.total = total;
      > }
      > public int getTotal() {
      > return total;
      > }
      > }

      This is my first time seeing the progress bar implementation but it shouldnt be that complicated. At the moment everything works as required, except that when I hover the Bar I see 0. The business wants to show the total value (the one that appears at the end of bar). No matter what I change, even though the bar changes position and all of that, it always shows 0 when hovered.

      Any sugesstions?