Con le java beans....forse
ma non ne sono sicuro, non ho mai affrontato il problema