Re: Extend SwiXML to remove need for backing object

Don Brown <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
Actually, I needed the very same thing and created a solution a while 
back.  I created an pluggable interface to tell the swixml engine how to 
lookup actions.  My particularl implementation looked up the action via 
Swing.  I submitted a patch, but it never got any attention.  I could 
dig it up if you'd like, but it was against built 135 if I remember 
right.  As you noticed, there isn't any way to do this with swixml 
currently.

Don

Andy Depue wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hello,
>  I'm attempting to create a general GUI framework by combining SwiXML with 
>Spring (see http://www.springframework.org ).  I would like to perform this 
>integration without having to create a custom version of SwiXML, but I'm 
>finding it rather difficult.  Primarily, I am attempting to replace the 
>SwinEngine backing object (the user supplied "client" object that is the 
>recipient for controls and the provider of actions) with a Spring BeanFactory 
>instead.  However, SwiXML is "hardcoded" to use introspection for looking up 
>Actions.  In other words, the code that performs this functionality is 
>embedded within a private method in Parser (applyAttributes).  Moreover, even 
>if Parser could be extended, SwingEngine holds a private reference to the 
>Parser with no way for me to replace that private reference with my own 
>Parser instance.  My only option would be to overload the actual "render" and 
>"insert" methods in SwingEngine, but I feel like that would make my solution 
>too brittle (if a future version of SwiXML expanded the functionality of 
>these methods, my versions of them would become obsolete).  I would like to 
>extend SwiXML so that it looks up Actions via a "getBean" call on a Spring 
>BeanFactory instead of introspection against the client backing object.  Any 
>ideas?
>
>  Thanks,
>    Andy
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (GNU/Linux)
>
>iD8DBQFArN6HdgQy3TUmt38RAiEoAJ9yKoNEUg07LRH1/yEgOywPWIdrJACfVCHQ
>XM2rUc4itVcv1iJ9LNMZi0I=
>=ma9t
>-----END PGP SIGNATURE-----
>
>_______________________________________________
>Forum mailing list
>[email protected]
>http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.