Thanks, that works. I didn't get that far in the doc before trying to mess
with the code.
Just a quick question, what does padding do? I change the values and nothing
appears to change.
On Wed, 5 Aug 2009 08:04:48 am Greg Brown wrote:
> Just a little more detail - the reason is that the "styles" property
> refers to a read-only dictionary. Text node content is only supported
> for string setter properties.
>
> But, you could set your styles like this:
>
> <styles padding="10" horizontalAlignment="center"
> verticalAlignment="center"/>
>
> On Aug 4, 2009, at 5:50 PM, Scott Lanham wrote:
> > Howdy,
> >
> > I am working through the WTKX Primer doc and saw the part about how
> > properties
> > could either be specified as an attribute or as an element. So I
> > thought I
> > would pull the styles property out into an element to see what
> > happens:
> >
> > <styles>{padding:10, horizontalAlignment:'center',
> > verticalAlignment:'center'}</styles>
> >
> > Except this gives a runtime error:
> >
> > org.apache.pivot.serialization.SerializationException: Unexpected
> > characters
> > in READ_ONLY_PROPERTY element.
> >
> > I can't see why this shouldn't work, but that doesn't mean much ;-)
> >
> > Many Thanks,
> >
> > Scott.