[Seasar-user:8398] Re: Teedaを使用した複数行表示レコード出力方法

Shinpei Ohtani [E-MAIL ADDRESS DELETED]
2007年 6月 18日 (月) 15:58:15 JST


$BBgC+$G$9!#(B

$B2<5-860x$X$N$40U8+$"$j$,$H$&$4$6$$$^$7$?!#(B
$B:#$9$0$K2sEz$G$-$k$h$&$JLdBj$G$O$J$5$=$&$J$N$G!"(B
$B0lC6D4::$5$;$F$/$@$5$$!#(B
$B!t$b$7$+$7$?$iBP1~$7$F$$$J$$2DG=@-$,$"$j$^$9(B


$B2<5-$NHV9f$G(Bissue$B$H$7$FEPO?$7$^$7$?!#(B
https://www.seasar.org/issues/browse/TEEDA-316


07/06/18 $B$K(B [E-MAIL ADDRESS DELETED]<[E-MAIL ADDRESS DELETED]> $B$5$s$O=q$-$^$7$?(B:
> Teeda-html-example$B$N(Bview/grid/multiRowGrid2.htm$B$r8+$J$,$i$$$m$$$m;n$7$^$7$?$,!"$&$^$/F0$-$^$;$s!#(B
> $B62$i$/!"2<5-$,$&$^$/F0$+$J$$860x$@$H;W$$$^$9!#(B
>
> HTML$B$N%F!<%V%k$G!"(B2$B9TJ,$NO"7k$r9T$C$?0lHV:8$N(B1$BNs$N$_$r8GDj$7$?$$>l9g!"0J2<$NDj5A$r9T$&!#(B
> $B-!0lHV:8$N(B1$BNs$r8GDj$K$9$k$?$a$K!"(B colgroup$B%?%0$N;R%?%0(Bcol$B$G!V(Bspan$[E-MAIL ADDRESS DELETED]$r(B1$B!W!V(Bclass$[E-MAIL ADDRESS DELETED]$r(BT_leftFixed$B!W$K$9$k!#(B
> $B-"0lHV:8$N(B1$BNs$KBP$7$F(B2$B9TJ,$NO"7k$r9T$&$?$a$K!"(B</th>$B!"(B</td>$B%?%0$G!V(Browspan$[E-MAIL ADDRESS DELETED]$r(B2$B!W$K$9$k!#(B
> $B0J2<$,$=$NFbMF$G:[E-MAIL ADDRESS DELETED]$7$?%F!<%V%k!#(B
>
> <table align="center"  id="hogeGridY" width="420px" height="150px" >
>         <colgroup>
>                 <col span="1" width="40px" class="T_leftFixed"/>
>                 <col span="3" width="360px" />
>         </colgroup>
>             <thead>
>                 <tr style="background-color:#E6E6FA;">
>                         <th rowspan="2" style="width:40px;height:40px;">1and2Line_1Row</th>
>                         <th colspan="3" style="width:360px;height:20px;">1Line_2and3and4Row</th>
>                 </tr>
>                 <tr style="background-color:#E6E6FA;">
>                         <th colspan="1" style="width:120px;">2Line_2Row</th>
>                         <th colspan="1" style="width:120px;">2Line_3Row</th>
>                         <th colspan="1" style="width:120px;">2Line_4Row</th>
>                 </tr>
>             </thead>
>             <tbody>
>                 <tr >
>                 <td  rowspan="2" style="width:40px;height:40px;"><span id="aa" >aa</span></td>
>                 <td  colspan="3" style="width:360px;height:20px;"><span id="bb">bb</span></td>
>                 </tr>
>                 <tr >
>                 <td colspan="1" style="width:120px;"><span id="cc" >cc</span></td>
>                 <td colspan="1" style="width:120px;"><span id="dd" >dd</span></td>
>                 <td colspan="1" style="width:120px;"><span id="ee" >ee</span></td>
>                 </tr>
>             </tbody>
>     </table>
>
> $B$3$N%F!<%V%k$r<B9T$7!"$=$N8e(BHTML$B%=!<%9$r8+$k$H!"(B
> $B>e5-%F!<%V%k$N(B<tbody>$B%?%0$NB9%?%0(B<td rowspan="2">$B$NItJ,$,2<5-$N$h$&$KE83+$5$l$k!#(B
> $B0lHV:8$NNs$@$18GDj$K$7$?$N$G!"%F!<%V%k%\%G%#$N0lHV:8$NNs$@$1$r0l$D$N%F!<%V%k$G9=@.$7$F$$$k!#(B
>
> $B2<5-(BHTML$B$@$H(B<tr>$B%?%0$N;R%?%0(B<td>$B$G(Browspan$[E-MAIL ADDRESS DELETED]$r(B2$B$K$7$F$$$k$,!"(B<tr>$B%?%0$K(B<td>$B%?%0$O0l$D$7$+$J$$$N$G%F!<%V%k$N8+$?L\$,Jx$l$k!#(B
> $B$=$3$G!"%F!<%V%k%\%G%#$N(Browspan$[E-MAIL ADDRESS DELETED]$r>C$;$P$&$^$/$$$/$+$H;n$7$?$_$?$,!"(B
> $B>e5-(BHTML$B$N(B<td colspan="1" style="width:120px;"><span id="cc" >cc</span></td>$B$,8GDjNs$KF~$C$F$-$F$7$^$$%G%6%$%s$,$&$^$/$$$+$J$$!#(B
> $B!J>e5-(BHTML$B$N(B<td colspan="1" style="width:120px;"><span id="cc" >cc</span></td>$B$NA0$K(B<td></br></td>$B$rF~$l$k$3$H$b;n$7$?$,!"(B
> $B8+$?L\$,NI$/$J$$$N$G(BNG)
>
> <table id="hogeGridYLeftBodyTable" cellspacing="0" cellpadding="0" class="gridTable">
>    <tbody>
>       <tr>
>          <td rowspan="2"><div class="gridCell" style="width:40px;height:40px;"><nobr><span id="aa">aa0</span></nobr></div></td>
>       </tr>
>       <tr>
>          <td rowspan="2"><div class="gridCell" style="width:40px;height:40px;"><nobr><span id="aa">aa1</span></nobr></div></td>
>       </tr>
>       <tr>
>          <td rowspan="2"><div class="gridCell" style="width:40px;height:40px;"><nobr><span id="aa">aa2</span></nobr></div></td>
>       </tr>
>    </tbody>
> </table>
>
> $B2?$+2sHr:v$,$"$l$P!"0F$rD:$-$?$/!#(B
>
>
>
> > $BBgC+MM(B
> >
> >$B:d8}$G$9!#(B
> >
> >Teeda-html-example$B$N(Bview/grid/multiRowGrid2.htm$B$r;29M$7$?$,!"(B
> >$B%5%s%W%k(BHTML$B%U%!%$%k$G$b(Bcol$BMWAG$N(Bspan$[E-MAIL ADDRESS DELETED]$r(B2$B$+$i(B1$B$KJQ99$9$k$HF1MM$N8=>]$,:F8=$7$^$9!#(B
> >$B!!!!!!!!!!(B<!-- $BJQ99A0(B -->
> >       <colgroup>
> >               <col span="2" width="60px" class="T_leftFixed" />$B!!(B// $B8GDjNs$r(B2$B9T(B
> >               <col span="1" width="70px" />
> >       </colgroup>
> >
> >$B!!!!!!!!!!(B<!-- $BJQ998e(B -->
> >       <colgroup>
> >               <col span="1" width="60px" class="T_leftFixed" />$B!!(B// $B8GDjNs$r(B1$B9T(B
> >               <col span="1" width="70px" />
> >       </colgroup>
> >
> >
> >th$BMWAG$N(Browspan$[E-MAIL ADDRESS DELETED]$r(B2$B0J>e$K$7$?>l9g!">e5-(Bcol$BMWAG$N(Bspan$[E-MAIL ADDRESS DELETED]$O(B2$B0J>e$K$7$J$$$H!"8GDjNs$N%l%$%"%&%H$,Jx$l$k$h$&$G$9!#(B
> >$B$I$&$K$+$7$F(B1$BNsL\$@$18GDj$K$9$kJ}K!$O$J$$$N$G$7$g$&$+!#(B
> >$B$465<x$*4j$$CW$7$^$9!#(B
> >
> >
> >>$BBgC+$G$9!#(B
> >>
> >>Teeda-html-example$B$N(Bview/grid/multiRowGrid2.html$B$r(B
> >>$B;29M$K$7$F$_$F$$$?$@$1$^$9$G$7$g$&$+!#(B
> >>$B59$7$/$*4j$$$7$^$9!#(B
> >>
> >>07/06/13 $B$K(B [E-MAIL ADDRESS DELETED]<[E-MAIL ADDRESS DELETED]> $B$5$s$O=q$-$^$7$?(B:
> >>>
> >>>
> >>>
> >>> $B$O$8$a$^$7$F!#(B
> >>> $B:d8}!!$H?=$7$^$9!#(B
> >>>
> >>> $B8=:_!"(BTeeda$B$N(Bgrid$B%3%s%]!<%M%s%H$r;HMQ$72<?^$N$h$&$J9T(B/$BNs$r8GDj$7$?J#?t9TI=<(%l%3!<%I$rI=<($7$h$&$H$7$F$$$^$9!#(B
> >>> (a,b,c$B$r5-:\$7$F$$$kNs$r8GDj!"(Ba$B$r5-:\$7$F$$$k9T$r8GDj$K$7$F$$$k(B)
> >>>
> >>> _ __ __ __ __ __ __ __ __ __ __ __ __ __ _
> >>> |  a    |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
> >>> |_ _ _ |_ _ _ _ _ _| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
> >>> |  b     |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
> >>> |_ _ _ |_ _ _ _ _ _| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
> >>> |  c    |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
> >>> |_ _ _ |_ _ _ _ _ _| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
> >>>
> >>> grid$B%3%s%]!<%M%s%H$r;HMQ$7$FE83+$5$l$?(BHTML$B$G$O2<?^$N$h$&$K8GDjNs$NI=<($,Jx$l$F$7$^$$$^$9!#(B
> >>> $B860x$HBP:vJ}K!$r$465<x$$$?$@$-$?$/!#(B($B8=>]$,H/@8$9$k(BHTML$B$H(Bpage$B%/%i%9$r;qNA$H$7$F2<5-$K5-:\$7$^$9!#(B)
> >>> _ __ __ __ __ __ __ __ __ __ __ __ __ __ _
> >>> |  a |_ |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|  _ | b |_ _ _ _ _
> >>> |_| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
> >>> |    |_ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
> >>> | _c|   | _ _ _ _ _ | _ _ _ _ _ _ _ _ |_ _ _ _ _ |
> >>> |        |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _| _ _ _ |_ _ _ _ _
> >>> |_| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
> >>>
> >>>
> >>>
> >>> $B!Z4D6-![(B
> >>>  OS: Windows XP
> >>>  $B3+H/4D6-(B
> >>>    Eclipse SDK 3.2.0
> >>>    Seasar 2.4.13
> >>>    Teeda 1.0.7
> >>>    dolten 0.20.1
> >>>    Tomcat 5.5.23
> >>>
> >>>
> >>>
> >>> -- $B;qNA(B --
> >>> $B!z(BHTML
> >>> <html>
> >>> <body>
> >>> <style>
> >>> .gridHeader {
> >>>         background-color: green;
> >>>         color: white;
> >>>         font-weight: bold;
> >>>         overflow: hidden;
> >>> }
> >>> .gridTable {
> >>>         background-color: green;
> >>> }
> >>> .gridCell {
> >>>         height: 25px;
> >>>         background-color: white;
> >>> }
> >>> </style>
> >>>
> >>>         <table align="center"  id="hogeGridY" width="420px" height<
> >>> FONT COLOR="#000000" SIZE=2 FACE="$B#M#S(B $B%4%7%C%/(B">="150px" >
> >>>         <colgroup>
> >>>                 <col span="1" width="40px" class="T_l eftFixed" />
> >>>                 <col span="3" width="360px" />
> >>>         </colgroup>
> >>>             <thead>
> >>>                 <tr style="background-color:#E6E6FA;">
> >>>                         <th rowspan="2"
> >>> style="width:40px;height:40px;">1an
> >>> d2Line_1Row</th>
> >>>                         <th colspan="3"
> >>> style="width:360px;height:20px;">1Line_2and3 and4Row</th>
> >>>                 </tr>
> >>>                 <tr style="background-color:#E6E6FA;">
> >>>                         <th colspan="1" style="width:120px;">2Line_2Row</th>
> >>>                         <th colspan="1" style="width:120px;">2Line_3Row</th>
> >>>                         <th colspan="1" style="width:120px;">2Line_4Row</th>
> >>>                 </tr>
> >>>             </thead>
> >>>             <tbody>
> >>>                 <tr >
> >>>                         <td rowspan="2"
> >>> style="width:40px;height:40px;"><span < FONT COLOR="#7F007F" SIZE=2
> >>> FACE="$B#M#S(B
> >>> $B%4%7%C%/(B">id="aa" >aa</span></td>
> >>>                         <td colspan="3"
> >>> style="width:360px;height:20px;"><span id="bb">bb</span></td>
> >>>                 </tr>
> >>>                 <tr >
> >>>                         <td colspan="1" style="width:120px;"><span id="cc"
> >>> >cc</span></td>
> >>>                         <td colspan="1" style="width:120px;"><span id="dd"
> >>> >dd</span></td>
> >>>                         <td colspan="1" style="width:120px;"><span id="ee"
> >>> >ee</span></td>
> >>>                 </tr>
> >>>             </tbody>
> >>>     </table>
> >>>
> >>> </body>
> >>> </html>
> >>>
> >>>
> >>> $B!z(Bpage$B%/%i%9(B
> >>> package tutorial.chura.web.grid;
> >>>
> >>> import java.util.ArrayList;
> >>> import java.util.List;
> >>>
> >>> public class MultiLineTablePage{
> >>>
> >>>         private String aa;
> >>>         private String bb;
> >>>         private String cc;
> >>>         private String dd;
> >>>         private String ee;
> >>>
> >>>         private int hogeIndex;
> >>>         private List hogeItems;
> >>>
> >>>         public String getAa() {
> >>>                 return aa;
> >>>         }
> >>>         public void setAa(String aa) {
> >>>                 this.aa = aa;
> >>>         }
> >>>         public String getBb() {
> >>>                 return bb;
> >>>         }
> >>>         public void setBb(String bb) {
> >>>                 this.bb = bb;
> >>>         }
> >>>         public String getCc() {
> >>>                 return cc;
> >>>         }
> >>>         public void setCc(String cc) {
> >>>                 this.cc = cc;
> >>>         }
> >>>         public String getDd() {
> >>>                 return dd;
> >>>         }
> >>>         public void setDd(String dd) {
> >>>                 this.dd = dd;
> >>>         }
> >>>         public String getEe() {
> >>>                 return ee;
> >>>         }
> >>>         public void setEe(String ee) {
> >>>                 this.ee = ee;
> >>>         }
> >>>         public int getHogeIndex() {
> >>>                 return hogeIndex;
> >>>         }
> >>>         public void setHogeIndex(int hogeIndex) {
> >>>                 this.hogeIndex = hogeIndex;
> >>>         }
> >>>         public List getHogeItems() {
> >>>                 return hogeItems;
> >>>         }
> >>>         public void setHogeItems(List hogeItems) {
> >>>                 this.hogeItems = hogeItems;
> >>>         }
> >>>         public String initialize() {
> >>>                 return null;
> >>>         }
> >>>
> >>>         public String prerender() {
> >>>
> >>>                 List list = new ArrayList(5);
> >>>                 for(int i=0; i < 5; i++) {
> >>>                         ListData listData = new ListData(i);
> >>>                         list.add(listData);
> >>>                 }
> >>>                 setHogeItems(list);
> >>>
> >>>                 return null;
> >>>         }
> >>>
> >>>         /**
> >>>          * $B%$%s%J!<%/%i%9(B
> >>>          * $B8=>]$r0l$D$N(BJava$B%U%!%$%k$G(B
> >>>          * $B:F8=$7$?$+$C$?0Y!";HMQ!#(B
> >>>          */
> >>>     public class ListData{
> >>>
> >>>         private String aa;
> >>>         private String bb;
> >>>         private String cc;
> >>>         private String dd;
> >>>         private String ee;
> >>>
> >>>         ListData(int data) {
> >>>                 setAa("aa" + data);
> >>>                 setBb("bb" + data);
> >>>                 setCc("cc" + data);
> >>>                 setDd("dd" + data);
> >>>                 setEe("ee" + data);
> >>>         }
> >>>
> >>>                 public String getAa() {
> >>>                         return aa;
> >>>                 }
> >>>                 public void setAa(String aa) {
> >>>                         this.aa = aa;
> >>>                 }
> >>>                 public String getBb() {
> >>>                         return bb;
> >>>                 }
> >>>                 public void setBb(String bb) {
> >>>                         this.bb = bb;
> >>>                 }
> >>>                 public String getCc() {
> >>>                         return cc;
> >>>                 }
> >>>                 public void setCc(String cc) {
> >>>                         this.cc = cc;
> >>>                 }
> >>>                 public String getDd() {
> >>>                         return dd;
> >>>                 }
> >>>                 public void setDd(String dd) {
> >>>                         this.dd = dd;
> >>>                 }
> >>>                 public String getEe() {
> >>>                         return ee;
> >>>                 }
> >>>                 public void setEe(String ee) {
> >>>                         this.ee = ee;
> >>>                 }
> >>>     }
> >>>
> >>> }
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Seasar-user mailing list
> >>> [E-MAIL ADDRESS DELETED]
> >>> https://ml.seasar.org/mailman/listinfo/seasar-user
> >>>
> >>>
> >>
> >>
> >>--
> >>=============================
> >>Shinpei Ohtani
> >>[E-MAIL ADDRESS DELETED]
> >=============================
>
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user
>
>


-- 
=============================
Shinpei Ohtani
[E-MAIL ADDRESS DELETED]
=============================



Seasar-user メーリングリストの案内