5 Replies Latest reply on Aug 25, 2009 9:58 AM by Jan Winter

    rich:inputNumberSpinner in a table

    neilac333 Novice

      I am using the rich:inputNumberSpinner inside a table of Widget objects on an order form to represent the quantity of widgets desired. Also on the form are the total for each widget (quantity * price) and the total for the entire order.

      As you might suspect, I need to have those totals updated instantaneously when the spinner is updated. The problem is that if I try to use a valueChangeListener method, I don't have access to the individual widget whose quantity was updated (because the sole parameter is the ValueChangeEvent object). I have considered ugly hacks like naming my spinners in a clever way and using that information in my Java code, but that is so lame.

      Any insight into how I can accomplish this in a more elegant way?

      Thanks.