Struts2中的s:datetimepicker标签如何禁止选择,disable=true不好用,谁有好的解决方案,网上的方法也试验了不管用,我用的版本是struts-2.0.10版本。

解决方案 »

  1.   

    如果你觉得不好用,可以试试javascript或者jquery写的日立选择框插件。
      

  2.   

    s:datetimepicker如何设置成只读状态,disable=true的属性不好用
      

  3.   

    找到解决方案了,官方网址如下:
    https://issues.apache.org/jira/browse/TOBAGO-329
    Log In Views 
    XML Word Printable DetailsType:  Bug Status:  Closed Priority:  Major Resolution: Fixed Affects Version/s: 1.0.10 Fix Version/s: 1.0.11 Component/s: Core Labels: 
    None Environment: 
    winxp prof, tomcat 5.5.20, myfaces 1.1.6 snap, tobago 1.0.11 snap DescriptionIt is possible to open the datepicker and modify the disabled field.具体请看官方网址
      

  4.   

    上边的不是struts2的解决方案,下边则这个网址是:
    https://issues.apache.org/jira/browse/WW-2320?page=com.atlassian.streams.streams-jira-plugin:activity-stream-issue-tab#issue-tabs
    Previous Issue 'WW-2032' 21 of 148 
    Return to search
     Next Issue 'WW-2617'  Struts 2 Struts 2WW-2320
    Datetimepicker disabled tag does not workLog In Views 
    XML Word Printable DetailsType:  Bug Status:  Resolved Priority:  Major Resolution: Fixed Affects Version/s: 2.1.1 Fix Version/s: 2.1.1 Component/s: Plugin - Dojo Tags Labels: 
    None Flags: 
    Patch DescriptionThe following tag is enabled when it should be disabled:
    <sx:datetimepicker name="test" label="test" id="test" disabled="true" />It can however be disabled by calling "dojo.widget.byId('test').disable();"
      

  5.   

    你的disable属性写错了,应该是disabled后面有个"d",即:disabled="true"