点集贵州电脑网
 
 
 梦想之源 ›› 灌水专区 ›› 在T4中DatePicker的问题 版主:
灌水专区
新建论坛
申请免费TS
1 / 1 页
<< 1 >>
跳转
 主题:在T4中DatePicker的问题
 
 lele
发表时间:[2007-11-09 11:34:08] [向作者发站内短信] [复制链接告诉朋友]
等 级:列兵
经 验:498
性 别:帅哥
文 章:138
精 华:0

<page-specification class="com.longcredit.KEye.app.business.SingleObjPage">  
   
    <component id="Privilege" type="Privilege">
        <binding name="pageName" value="'report'"/>
    </component>
   
   
    <component id="report_alert" type="Hidden">
          <binding name="value" value="ognl:po"/>
    </component>
       
    <component id="device_type" type="PropertySelection">
        <binding name="model" value="ognl:getSelect('1000001','action=getdeviceprototypelist')"/>
        <binding name="value" value="ognl:po.prototypeid"/>
    </component>
   
    <component id="fromdate" type="DatePicker">
        <binding name="translator" value="translator:date,pattern=yyyyMMdd" />
        <binding name="value" value="ognl:po.fromdate"/>
    </component>

    <component id="todate" type="DatePicker">
        <binding name="translator" value="translator:date,pattern=yyyyMMdd" />
        <binding name="value" value="ognl:po.todate"/>
    </component>
</page-specification>

 

组件定义如上

<body jwcid="@Body">

<div id="container">
<span jwcid="@Head"/>
<span jwcid="Privilege"/>

<div id="content">
 <div id="position">您现在的位置:BrowseView >> <a href="#">报表</a>>>告警查询</div>
 <div id="innerContent">
 
 
 <div class="story">
 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="cTable">
   <tr><form jwcid="getAlertReport@Form">
 <table>
  <td width="3%" rowspan="2" class="contentTableLeft"></td>
  <td width="15%" class="contentTable">
   <h3><img src="images/img_system.gif" />告警报表</h3>
   <div class="sectionTables">
     <div class="innerSectionTables"></div>
   </div>  </td>
  <td width="79%" class="contentTable">
   设备原型:<select name="select"  id="prototypeid"  jwcid="device_type"></select>   
      
   从:<span  jwcid="fromdate"/>  至:<span jwcid="todate"/>
  
  
     <input name="submit" type="submit" value="查 询"  /> </td>
  <td width="3%" rowspan="2" class="contentTableRight"></td>

<table>
  </form>
   </tr>
 </table>
 </div>  
<span jwcid="@Foot"/>
</body>

 

显示错误 :页面能显示出来 但是有JS错误提示  ,页面上显示日期组件的地方没有正常的图形,是红X,错误提示为: calendar_fromdate 为空或者不是对象


 楼主更多新贴 :  
灌水专区jfreechart图形上的链接
灌水专区itemselection的问题
灌水专区ognl:devicegroup.id
灌水专区foreach的问题
  楼1  
等 级:列兵
经 验:498
性 别:帅哥
文 章:138
精 华:0
 lele
发表时间:[2007-11-09 11:35:00] [向作者发站内短信] [复制链接告诉朋友]

之前没有加 @Body 所以出了错误 提示没有 Body Component 加上了之后, 页面没问题了但是 有JS错误提示

 

  楼2  
等 级:下士
经 验:1683
性 别:帅哥
文 章:496
精 华:2
 干煸四季豆
发表时间:[2007-11-09 15:18:16] [向作者发站内短信] [复制链接告诉朋友]

这个是路径问题。因为你的页面不是在web根目录下,或者URL中含有目录。

而T附带的JS默认以http://127.0.0.1:8080/xxxx.js的方式嵌入。

要解决这个问题,需要你调整web容器的web-app路径。

1 / 1 页
<< 1 >>
跳转
  快速回复
  帐号: 密码: 匿名不登陆
回复内容:  
验 证 码:
 
 
·VIP收费TS,您明智的选择!
·9800GT+19'液晶DIY仅售3500元
·双核特惠:1999、2999、3999
·什么是点金积分,如何查看自
·团购一期:三星R458-DS0G+高
  
贵州点集科技发展有限责任公司·点集贵州电脑网 版权所有©2006-2008
中华人民共和国增值电信业务经营许可证 黔B-20070010号
客服QQ: 93804809818866281927205370
电子邮件: deangi@vip.sina.com
技术支持: 0851-5109268