I don't think you can include a one-way binding into a two-way binding (at least, you're not supposed to be able to - see the <include> element documentation).

This is an interesting idea for 2.0. I started building a scheme which would let you basically split the binding in places, using a structure like:

 <split>
   <input>
     <structure .../>
   </input>
   <output>
     <structure .../>
   </output>
 </split>

my intention with this was always that you'd have to specify both <input> and <output> if you're using a bidirectional mapping. I suppose it'd be possible to instead allow direction="input"/"output" on any element that can contain other components, and only flag an error if someone tries to use a an input-only component within an output portion of the binding, or vice versa. My only concern with this would be that it might be confusing and lead to errors.

 - Dennis

Mocky Habeeb wrote:

It has occurred to me also on several occasions that this might be a
useful feature, as I do quite a bit of one way mapping. But since I
think you can achieve similar functionality by importing (for instance)
an input only binding, adding the feature may only add convenience. But
I'm all for convenience.

Mocky


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eitan Suez
Sent: Tuesday, September 13, 2005 2:38 PM
To: JiBX Mailing List
Subject: [jibx-users] direction attribute on mapping element?


hello,

 it would seem to me useful to be able to specify
 that a certain class is only unmarshallable
 (direction="input").  it appears however that this
 attribute is only valid at the "binding" element
 level, and not the "mapping" element level, where
 i'd like it to be.  any thoughts?

thanks, eitan



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your
very own Sony(tm)PSP.  Click here to play:
http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to