[Seasar-user:20024] Re: [S2Dxo]値が渡されない
Koichi Kobayashi
[E-MAIL ADDRESS DELETED]
2010年 7月 29日 (木) 18:30:19 JST
$B>.NS(B (koichik) $B$G$9!%(B
Date: Thu, 29 Jul 2010 16:50:27 +0800
From: $BM{!!{,!JBg1'Ch!K(B <[E-MAIL ADDRESS DELETED]>
To: <[E-MAIL ADDRESS DELETED]>
Subject: [Seasar-user:20022] [S2Dxo]$BCM$,EO$5$l$J$$(B
> S2Dxo$B$rMxMQ$9$k;~$K!"CM$,EO$5$l$J$$$G$9!#!JMxMQ$7$?%i%$%V$,!'(Bs2-framework-2.4.41.jar$B$G$9!#!K(B
>
> $BMxMQ>l9g!'C1=c$J(BPOJO$B"*%M%9%H(BPOJO$B$KCM$rEO$9(B
$B$=$NJQ49$O%5%]!<%H$5$l$F$$$^$;$s!%(B
http://s2container.seasar.org/2.4/ja/s2dxo.html#propertyName
------------------------------------------------------------
$BJQ4985$N%W%m%Q%F%#L>$K$O!$%M%9%H$7$?(BJavaBeans$B$N%W%m%Q%F%#L>$r(B
$B%T%j%*%[E-MAIL ADDRESS DELETED]$j$G;XDj$9$k$3$H$b$G$-$^$9!%(B
ename : name, dname : department.name
------------------------------------------------------------
$B%M%9%H$7$?%W%m%Q%F%#$r;XDj$G$-$k$N$O!$JQ49!V85!W(B(src)
$B$G$"$C$F!$JQ49![E-MAIL ADDRESS DELETED]!W(B (dest) $B$G$O!V$"$j$^$;$s!W!%(B
$BK\Bj$H$O4X78$"$j$^$;$s$,!$(B
> @ConversionRule("$B!G(Binfo.address' : 'addr'")
'addr' $B$N$h$&$KJQ49!V85!W(B (':' $B$N8eB&(B) $B$r%/%*!<%H$9$k$H(B
$BJQ4985(B JavaBeans $B$N%W%m%Q%F%#$NCM$G$O$J$/!$J8;zNs$,(B
$[E-MAIL ADDRESS DELETED](B JavaBeans $B$[E-MAIL ADDRESS DELETED]$5$l$k(B ($B$3$NNc$G$O$5$l$^$;$s$,(B) $B$N$G(B
$BCm0U$7$F$/$@$5$$!%(B
$BK\Mh$d$j$?$+$C$?$3$H$K$D$$$F$O!$(B
Dxo $B%$%s%?%U%'!<%9$r(B
public interface XXXXDxo {
void convert(Output src, Form dest);
@ConversionRule("address : addr")
void convert(Output src, Info dest);
}
$B$H$7$F!$(B
dxo.convert(output, form);
dxo.convert(output, form.getInfo());
$B$HB3$1$F8F$S=P$7$F$/$@$5$$!%(B
--
<component name="koichik">
<property name="fullName">"Koichi Kobayashi"</property>
<property name="email">"[E-MAIL ADDRESS DELETED]"</property>
<property name="blog">"http://d.hatena.ne.jp/koichik"</property>
</component>
Seasar-user メーリングリストの案内