论坛首页 入门技术论坛

t:inputdate button rase a err in tomahowk1.1.6+myface1.2

浏览 2558 次
该帖已经被评为新手帖
作者 正文
   发表时间:2007-07-30  
t:inputdate popup buttion run a err in tomahowk1.1.6 + myface1.2

when i push the button ,javascript run in error,

error :'j_5Fid_5Fjsp_5F451056552_5F5_3Adate1CalendarVar' null or not object.

i was pain for it ..please  help me.



i find the bug..... the reson is javascript not initiate correct caused by the jsf1.2 render kit render in the wrong way !!!!!!

i campare the myface1.2 to myface1.1 render style in thml.

the myface1.1 render like is:

<html>
<head>
<b> <!-- javascript render here !!!!--></b>
</head>
<body>
   <b><!-- jsf to html render here !!! --></b>
</body>
</html>



but the myface1.2 render is not correct like that:

<b><!-- jsf to html render here !!! --></b>
<html>
<head>
<b> <!-- javascript render here !!!!--></b>
</head>
<body>
</body>
</html>

   发表时间:2007-07-30  
i finally resolve the problem ,all run fine;

i modify my jsp code, put the <f:view> tag around all my html like this:

<f:view>
<html>
....
</html>
</f:view>
0 请登录后投票
   发表时间:2007-10-10  
LZ能够告诉我myfaces1.2的配置吗..最近想把子JSF1.2换成myfaces1.2
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics