# File lib_wpm/wpm.rb, line 2428 def form component = @parent_component loop do case (component) when FormWidget return component when Page, NilClass raise WidgetError, "not found a form widget upper #{widget_id.inspect}" end component = component.parent_component end raise 'internal error' end