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

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2007年 6月 18日 (月) 15:41:37 JST


Teeda-html-example$B$N(Jview/grid/multiRowGrid2.htm$B$r8+$J$,$i$$$m$$$m;n$7$^$7$?$,!"$&$^$/F0$-$^$;$s!#(J
$B62$i$/!"2<5-$,$&$^$/F0$+$J$$860x$@$H;W$$$^$9!#(J

HTML$B$N%F!<%V%k$G!"(J2$B9TJ,$NO"7k$r9T$C$?0lHV:8$N(J1$BNs$N$_$r8GDj$7$?$$>l9g!"0J2<$NDj5A$r9T$&!#(J
$B-!0lHV:8$N(J1$BNs$r8GDj$K$9$k$?$a$K!"(J colgroup$B%?%0$N;R%?%0(Jcol$B$G!V(Jspan$[E-MAIL ADDRESS DELETED]$r(J1$B!W!V(Jclass$[E-MAIL ADDRESS DELETED]$r(JT_leftFixed$B!W$K$9$k!#(J
$B-"0lHV:8$N(J1$BNs$KBP$7$F(J2$B9TJ,$NO"7k$r9T$&$?$a$K!"(J</th>$B!"(J</td>$B%?%0$G!V(Jrowspan$[E-MAIL ADDRESS DELETED]$r(J2$B!W$K$9$k!#(J
$B0J2<$,$=$NFbMF$G:[E-MAIL ADDRESS DELETED]$7$?%F!<%V%k!#(J

$B!!!!(J<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(JHTML$B%=!<%9$r8+$k$H!"(J
$B>e5-%F!<%V%k$N(J<tbody>$B%?%0$NB9%?%0(J<td rowspan="2">$B$NItJ,$,2<5-$N$h$&$KE83+$5$l$k!#(J
$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!#(J

$B2<5-(JHTML$B$@$H(J<tr>$B%?%0$N;R%?%0(J<td>$B$G(Jrowspan$[E-MAIL ADDRESS DELETED]$r(J2$B$K$7$F$$$k$,!"(J<tr>$B%?%0$K(J<td>$B%?%0$O0l$D$7$+$J$$$N$G%F!<%V%k$N8+$?L\$,Jx$l$k!#(J
$B$=$3$G!"%F!<%V%k%\%G%#$N(Jrowspan$[E-MAIL ADDRESS DELETED]$r>C$;$P$&$^$/$$$/$+$H;n$7$?$_$?$,!"(J
$B>e5-(JHTML$B$N(J<td colspan="1" style="width:120px;"><span id="cc" >cc</span></td>$B$,8GDjNs$KF~$C$F$-$F$7$^$$%G%6%$%s$,$&$^$/$$$+$J$$!#(J
$B!J>e5-(JHTML$B$N(J<td colspan="1" style="width:120px;"><span id="cc" >cc</span></td>$B$NA0$K(J<td></br></td>$B$rF~$l$k$3$H$b;n$7$?$,!"(J
$B!!8+$?L\$,NI$/$J$$$N$G(JNG)

<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:$-$?$/!#(J



> $BBgC+MM(J
>
>$B:d8}$G$9!#(J
>
>Teeda-html-example$B$N(Jview/grid/multiRowGrid2.htm$B$r;29M$7$?$,!"(J
>$B%5%s%W%k(JHTML$B%U%!%$%k$G$b(Jcol$BMWAG$N(Jspan$[E-MAIL ADDRESS DELETED]$r(J2$B$+$i(J1$B$KJQ99$9$k$HF1MM$N8=>]$,:F8=$7$^$9!#(J
>$B!!!!!!!!!!(J<!-- $BJQ99A0(J -->
>	<colgroup>
>		<col span="2" width="60px" class="T_leftFixed" />$B!!(J// $B8GDjNs$r(J2$B9T(J
>		<col span="1" width="70px" />
>	</colgroup>
>
>$B!!!!!!!!!!(J<!-- $BJQ998e(J -->
>	<colgroup>
>		<col span="1" width="60px" class="T_leftFixed" />$B!!(J// $B8GDjNs$r(J1$B9T(J
>		<col span="1" width="70px" />
>	</colgroup>
>
>
>th$BMWAG$N(Jrowspan$[E-MAIL ADDRESS DELETED]$r(J2$B0J>e$K$7$?>l9g!">e5-(Jcol$BMWAG$N(Jspan$[E-MAIL ADDRESS DELETED]$O(J2$B0J>e$K$7$J$$$H!"8GDjNs$N%l%$%"%&%H$,Jx$l$k$h$&$G$9!#(J
>$B$I$&$K$+$7$F(J1$BNsL\$@$18GDj$K$9$kJ}K!$O$J$$$N$G$7$g$&$+!#(J
>$B$465<x$*4j$$CW$7$^$9!#(J
>
>
>>$BBgC+$G$9!#(J
>>
>>Teeda-html-example$B$N(Jview/grid/multiRowGrid2.html$B$r(J
>>$B;29M$K$7$F$_$F$$$?$@$1$^$9$G$7$g$&$+!#(J
>>$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
>>> |_| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
>>> |    |_ _|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ |
>>> | _c|   | _ _ _ _ _ | _ _ _ _ _ _ _ _ |_ _ _ _ _ |
>>> |        |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _| _ _ _ |_ _ _ _ _ 
>>> |_| _ _ _ _ _ _ _ _ |_ _ _ _ _ |
>>>
>>>
>>>
>>> $B!Z4D6-![(J
>>>  $B!!(JOS: Windows XP
>>>  $B!!3+H/4D6-(J
>>>    Eclipse SDK 3.2.0
>>>    Seasar 2.4.13
>>>    Teeda 1.0.7
>>>    dolten 0.20.1
>>>    Tomcat 5.5.23
>>>
>>>
>>>
>>> -- $B;qNA(J --
>>> $B!z(JHTML
>>> <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(J $B%4%7%C%/(J">="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(J
>>> $B%4%7%C%/(J">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(Jpage$B%/%i%9(J
>>> 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(J
>>>          * $B8=>]$r0l$D$N(JJava$B%U%!%$%k$G(J
>>>          * $B:F8=$7$?$+$C$?0Y!";HMQ!#(J
>>>          */
>>>     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 メーリングリストの案内