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.

Reply via email to