Issue Bug Closed

#89729Exception when adding LinkButtons to a SplitButton

Johannes Kasberger 11/21/19, 15:34 updated 02/27/20, 12:42

Description

The addItem method of the SplitButton class expects items of the type AbstractButton. In the render method it calls getName and getValue that are only defined for InputButtons but not LinkButtons resulting in an exception.

I don’t see a reason why LinkButtons should not be supported for SplitButtons so I’d suggest that the fix is to add the rendering code for LinkButtons (or simply use the render method of the children).

Reviews 2