Petals Studio

CDK timeout is not displayed correctly in the JBI editor

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.0
  • Fix Version/s: 1.3.1
  • Component/s: Petals Tools
  • Security Level: Public
  • Description:

    In the JBI editors, spinners always have 0 as the initial value, while the real value is not.
    Example: the CDK timeout.

    Notice that the spinner sets the right value in the model.
    It is only a problem of "model to UI" issue (UI to model works fine).

  • Environment:
    Windows 7

Activity

Hide
Vincent Zurczak added a comment - Mon, 27 Feb 2012 - 12:03:22 +0100

After investigation, it seems it works for some spinners and not for others.
This bug is in fact due to an ambiguity in some models. The CDK timeout element is described twice: one for providers and one for consumers. Sometimes, the data-binding finds the provides first while it has a consumes in the model. And vice-versa.

A solution would consist in factorizing the common elements. But this has an impact on the elements insertion order.
Another solution is to check the parent (provides or consumes) in the intialization command.

Show
Vincent Zurczak added a comment - Mon, 27 Feb 2012 - 12:03:22 +0100 After investigation, it seems it works for some spinners and not for others. This bug is in fact due to an ambiguity in some models. The CDK timeout element is described twice: one for providers and one for consumers. Sometimes, the data-binding finds the provides first while it has a consumes in the model. And vice-versa. A solution would consist in factorizing the common elements. But this has an impact on the elements insertion order. Another solution is to check the parent (provides or consumes) in the intialization command.
Hide
Vincent Zurczak added a comment - Mon, 27 Feb 2012 - 12:49:20 +0100

OK. In fact, this is not that at all.
The CDK timeout was in fact not the right one bcause the UI was generated for the consume timeout. It could not work.
The CDK's UI generation was updated in consequence.

Show
Vincent Zurczak added a comment - Mon, 27 Feb 2012 - 12:49:20 +0100 OK. In fact, this is not that at all. The CDK timeout was in fact not the right one bcause the UI was generated for the consume timeout. It could not work. The CDK's UI generation was updated in consequence.
Hide
Vincent Zurczak added a comment - Mon, 27 Feb 2012 - 13:13:25 +0100

Last comment I hope.
In fact, the first analysis was good. But incomplete. There were two errors, fixed now.

Show
Vincent Zurczak added a comment - Mon, 27 Feb 2012 - 13:13:25 +0100 Last comment I hope. In fact, the first analysis was good. But incomplete. There were two errors, fixed now.

People

Dates

  • Created:
    Mon, 27 Feb 2012 - 10:47:39 +0100
    Updated:
    Mon, 27 Feb 2012 - 13:13:25 +0100
    Resolved:
    Mon, 27 Feb 2012 - 12:53:28 +0100