Francesco,
I really think you should move some of this type of presentation processing
back to the client side. Since you are using Swing on the client side we can
assume that the client is some what powerful. You need to reduce the network
traffic not increase it. I would expect that the serializing of some Swing
components will encompass a lot more than you may need or want. It may seem
cool to do what you are doing but its not practical and not the intended
usage of EJB. When a HTML form is sent back to the browser are the actual
window handles for the components generated on the server side and then
serialized to the browser. NO.
I do recall the Swing team working on an XML serialization format for IDE's.
Nothing has come out of it yet.
By the way it must be hard to visual the form in the xml file. Do you have
tool plugins to serialize and deserialize the form into some xml format. I
think you might be better off just creating the frames (using a IDE) and
using a deployment mechanism similar to JavaWebStart than going through all
of this. What you should be concentrating on is the building of a bridge
between swing components and user objects.
regards,
William Louth
Inprise/Borland
www.inprise.com/appserver
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Francesco Marchioni
Sent: Saturday, December 02, 2000 12:11 PM
To: [EMAIL PROTECTED]
Subject: Serializing Swing Components with EJB
Hello,
I'm posting again a question about my project. So as I said before,
I'm building a project where the "look" of the input Form is generated
on the fly, with Session Beans. The session bean reads the appropriate
XML file and returns a Collection that just says what component I have to
add to the Form.
Now I'd like to go one step farther. Instead of returning a Collection that
merely says "JTextField","JComboBox"..etc I'd like rather to fill up
the collection with Swing Components. So the form is totally built
on the server side and all I have to do on the client side is to "pour"
the components on a JFrame.
Unfortunately weblogic seems to complain when I put Swing classes
in the Collection returned to client....I get strange error messages...
I thought maybe Swing components aren't serializable, but I checked
and they are! Are there other reasons that prevent me to do it?
thanks
Francesco
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".