I want to create own widget that will be able to interpret the text between start and end tag, eg:
<p1:Btn ui:field="open" >Open</p1:Btn>
Now the UI binder throws error:
Unexpected text in element: "Open" Element <p1:Btn ui:field='open'> (:44)
I supose that the widget have to be somehow marked to allow elements inside.
The second thing is how read the element between tags.
Your widget needs simply implement the HasText interface.