zoukankan      html  css  js  c++  java
  • 下拉列表,选择项的实现方式:

    Code

    其中
    select name:值为当前form的名称。
    property:下拉对象所对应的某个属性。
    dbOptions name:值为当前form的名称。
    keyType:搜索数据源的SQL语句。(其中第一列为option value,第二列为显示在页面的值)。
    hasNull:true为允许为空,ALL:当该属性为空时,意思为所有。

    <html:select name="zlAdjustForm" property="vo.dealResult" styleClass="input100">
        
    <htmlext:dbOptions name="zlAdjustForm" keyTypes="zl_jdcc_fcjyjl" hasNull="true"/>
    </html:select>

    其中
    select name:值为当前form的名称。
    property:下拉对象所对应的某个属性。
    dbOptions name:值为当前form的名称。
    keyType:字典表中,编码说明字段为zl_jdcc_fcjyjl的所有明细选项。
    hasNull:true为允许为空,ALL:当该属性为空时,意思为所有。

    在显示数据列表时使用:

    <htmlext:write name="vo" property="orgArea" keyType="gd_area_outland"/>
    在View页面显示数据时使用:
    <htmlext:write name="zlJdccCompanyNamesForm" property="vo.orgArea" keyType="行政区划"/>
  • 相关阅读:
    centos6和centos7网卡修改
    centos7.4编译安装LNMP
    centos7yum安装LNMP
    jira搭建
    centos6.9编译安装LNMP
    监控命令命令
    linux设置命令历史的时间戳
    zabbix3.0安装
    Mysql(centos7) 主从搭建
    Android 利用剪切板(clipboardManager )实现数据传递
  • 原文地址:https://www.cnblogs.com/kfarvid/p/1517563.html
Copyright © 2011-2022 走看看