pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Serialization exception
Date Fri, 18 Feb 2011 07:13:34 GMT
Use one or more define blocks in your BXML.  This will create the objects,
but won't attempt to set/add them to the enclosing class (C).

<bxml:define>
<TablePane bxml:id="tablePane" />
<TableView bxml:id="tableView" />
</bxml:define>

http://pivot.apache.org/tutorials/bxml-primer.html

Chris

On 18 February 2011 05:10, lello <rborrelli@gmail.com> wrote:

>
> Hi all,
> I have some problem with the serialization of a bxml file.
> Basically I have a class which is a just a container with some covenience
> methods:
>
> public class C implements Bindable {
>  @BXML private TablePane tablePane;
>  @BXML private TableView tableView;
>
>  //contructor...
>
>  public TablePane getPane() {
>    return tablePane
>  }
>
>  // some other method
> }
>
> then I have a bxml file which reads something like.
>
> <mynamespace:C>
>
> <TablePane bxml:id="tablePane" />
>
> <-- and so on-->
> </mynamespace:C>
>
> Now, when I try to serialize this file I get a serialization exception that
> says "C is not a Sequence".
> Is it possible to do what I am doing or is it totaly wrong?
>
> thanks
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/Serialization-exception-tp2522820p2522820.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>

Mime
View raw message