`
文章列表

扫描枪扫描值输入

    博客分类:
  • ADF
 
   <af:panelGroupLayout id="pgl2"> <af:resource type="javascript"> function handleEnterEvent(evt) { var _keyCode = evt.getKeyCode(); //调用隐藏的按钮b4 ...

附件初始化空指针

    博客分类:
  • ADF
   初始化附件时出现空指针问题; 解决:因为当前是自己定义的AM,假如要调用另外一个AM里面的内容就需要在taskFlow中拖拉一个调用的那个AM中的vo的Find(因为调用的那个初始化附件方法中是另外一个AM的内容)。
Key key = newRow.getKey(); this.getViewObject().executeQuery(); Row row = this.getViewObject().findByKey(key, 1)[0]; this.getViewObject().setCurrentRow(row);  ----------------------vo的findByKey()读取缓存实体行---------------------         DCIteratorBind ...
<af:button text="修改" id="b3" useWindow="true" windowEmbedStyle="inlineDocument" windowWidth="450" windowHeight="420" windowModalityType="applicationModal" action="#{xysfpBean.getAction}" returnLi ...

form表单级联

    博客分类:
  • ADF
  <af:selectOneChoice value="#{bindings.Dwh.inputValue}" label="#{bindings.Dwh.label}" autoSubmit="true" required="#{bindings.Dwh.hints.mandatory}" shortDesc="#{bindings.Dwh.hints.tooltip}" ...

richTextEditor

    博客分类:
  • ADF
  richTextEditor 保存不了是因为数据库中的该字段设置为clob类型,但是richText默认string,所以页面验证出错,需要在页面设置类型转换,加上 converter="oracle.genericDomain"就可以了
/** * * 扫描报到证号执行方法 */ public void bdzAction(ClientEvent clientEvent) { /** * Bindings做法步骤 * 1 根据bdzh内存查询 * 2 使用ADFUtils.setBoundAttributeValue("") * 3 执行Commit方法: ADFUtils.executeByOperation("Commit") ...
<%@ page language="java" errorPage="/WEB-INF/common/exception.jsp" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> <%@ include file="/WEB-INF/common/taglibs.jsp"%> <html> <head> <title>系统管理 > 用户管理 ...
 查询共享专业以及对比两个list的内容确定是否授权查看: public PageList<TeachResource> findProfList(int page, int pageSize, Long profid,String tag) { User user1 = (User) ServletActionContext.getRequest().getSession().getAttribute("users"); PageList<TeachResource> p=new PageList<TeachResource& ...
public static void main(String arg[]) throws ParseException{ /*java.util.Date nowdate=new java.util.Date(); String myString = "2008-09-08"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA); Date d = sdf.parse(myString); boolean flag = d.before(nowd ...
代码的细节 一、传参 <a class="table-link" href="javascript:companylist('${datas.dataStartId}','${datas.dataTableId}','${datas.dataMobanId}');" >详细</a> '${}'这样表示一个参数,所以上面的表示三个参数。 <script type="text/javascript" language="javascript"> function companylis ...
今天写了一句查询语句,里面涉及到count()统计的使用,刚开始查询的时候老是弹出“什么不是单组分组函数”。百度了一下才知道原来是语法错误了。 select count(),字段1,字段2....涉及多个字段的时候要使用group by 分组,而且group by 后面的就是count()除外的字段名。 实例:select deptno,count(empno) from emp; 报错:不是单组分组函数 原因: 1,  如果程序中使用了分组函数,则有两种情况可以使用: 程序中存在group by,并指定了分组条件,这样可以将分组条件一起查询出来 改为:select dept ...

初来报到

昨天才申请的博客,申请刚满一天才能发表文章或者应用之类的,所以先随便写写尝试一下发表文章,哈哈。这不是技术日志哦~~
Global site tag (gtag.js) - Google Analytics