Can you please provide the relevant stack track too?
On 19 October 2011 11:16, Bill van Melle <[email protected]> wrote: > I must be missing something really obvious here. TablePane happily > accepts a padding value expressed as a dictionary. So does Label. > But when the bxml serializer gets down to the TabPane below where I > try to set its buttonPadding to the same dictionary, it barfs, saying > "Unable to coerce org.apache.pivot.collections.HashMap to class > org.apache.pivot.wtk.Insets". Aren't the padding values also of type > Insets? What am I doing wrong? > > <Window xmlns="org.apache.pivot.wtk"> > <TablePane styles="{padding:{left:10,right:10,top:5,bottom:5}}"> > <columns> > <TablePane.Column width="1*" /> > </columns> > <TablePane.Row> > <Label text="Some text" > styles="{padding:{left:10,right:10,top:5,bottom:5}}" /> > </TablePane.Row> > <TablePane.Row> > <TabPane styles="{buttonPadding:{left:10,right:10,top:5,bottom:5}}" > > <BoxPane TabPane.tabData="Test" /> > </TabPane> > </TablePane.Row> > </TablePane> > </Window> >
