[Seasar-user:4431] Re: [S2JSF] initAction時のresponseCompleteでhtmlタグが出力される
[E-MAIL ADDRESS DELETED]
[E-MAIL ADDRESS DELETED]
2006年 8月 28日 (月) 15:30:18 JST
$BJFNS$G$9!#(B
From: "Shouhei Shirai" <[E-MAIL ADDRESS DELETED]>
Sent: Monday, August 28, 2006 3:14 PM
> $B$7$i$$$G$9!#(B
> $B$3$l$O!";d$N(BPC$B$N(B Adobe Reader 7 $B$@$HKvHx$KIU$$$F$/$k(B<html>$B%?%0$,L5;k$5$l$F$$$k(B
$B!)$i$7$/(B
> $BA[Dj$7$?DL$j$K(BPDF$B$,%&%#%s%I%&Fb$K3+$/$,!"(BAdobe Acrobat 6 $B$,%$%s%9%H!<%k$5$l$F(B
$B$$$k(B
> $BJL$N(BPC$B$@$H!"ITL@$J%U%!%$%k$H$7$FJ]B8%@%$%"%m%0$,I=<($5$l$k!"$H$$$&$b$N$G$9!#(B
> Acrobat$B$N%P!<%8%g%s$N0c$$!)$GF0:n$,JQ$o$k$N$G$9!#!JMW5a>e(BAcrobat$B$N%P!<%8%g%sE}(B
$B0l$OIT2D!K(B
Adobe Reader 7 $B$G;n$7$F$$$?0Y!"8=>]$,:F8=$7$J$+$C$?$h$&$G$9!#(B
> $B$J$*!"(B
> $B-!(BS2JSF Example 1.0.16 $B$N(B AddActionImpl $B$K0J2<$NMM$K(B init() $B%a%=%C%I$r<BAu(B
> public String init(){
> try{
> HttpServletResponse res =
(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getR
esponse();
> res.getOutputStream().write("$B$"$"$"$"(B".getBytes());
> }catch(IOException ex){
> ex.printStackTrace();
> }
> FacesContext.getCurrentInstance().responseComplete();
> return null;
> }
>
> $B-"(Badd.html$B$r0J2<$NMM$KJT=8(B
> <html xmlns:m="http://www.seasar.org/maya" m:action="#{addAction.init}" />
> $B$H$7$FI=<($5$l$?(BHTML$B$N%=!<%9$r8+$k$H!"(B
>
> $B$"$"$"$"(B<html></html>
>
> $B$H$J$j$^$7$?!#(B
$B>\:Y$J>pJs$"$j$,$H$&$4$6$$$^$9(Bm(_ _)m
$B$3$A$i$G$b:F8==PMh$^$7$?$N$G!"(BS2JSF$B$r=$@5$7$^$9!#(B
$B$h$m$7$/$*4j$$$7$^$9!#(B
Seasar-user メーリングリストの案内