Ext 학습_양식 구성 요소 6

1946 단어 ext
	var f = new Ext.form.FormPanel({
		url: "../../../service/deng/test/testFormPanel",
		method: "post",
		renderTo: "b",
		title: " ",
/** */		style: "padding: 10px",
               frame: true,
		labelAlign: "left",
		width: 650,
		autoHeight: true,
		items: [
		   txtName,
		   txtPassword,
		   grpSex,
		   dateBirthday,
		   grpGobby,
		   chkEdu,
		   numLove,
		   areaAddress,
		   timeWork,
		   htmlIntro,
		   txtPhoto
		],
		
		buttons: [
		     btnSubmit,
		     btnReset
		]
	});
	
	
});

/**
 *  :
 *   FormPanel , :
 *  .x-panel-header, .x-unselectable{
	   text-align: center;
     }
     , , 
     :
    <style type="text/css">
    yy{
	   text-align: center;
     }
   </style>
    FormPanel :
   	ctCls: "yy"   
   ctCls: CSS , ( '')。
 */
 :
    @RequestMapping(value = "/testFormPanel")
    public void testFormPanel(HttpServletRequest request,HttpServletResponse response) throws Exception{
    	response.setContentType("text/html;charset=utf-8");
    	Map<String, String[]> paramsMap = request.getParameterMap();
    	Set<Entry<String, String[]>> sets = paramsMap.entrySet();
    	for(Entry<String,String[]> entry: sets){
			System.err.println(entry.getKey() + "="
					+ Arrays.asList(entry.getValue()));
    	}
    	PrintWriter out = response.getWriter();
    	System.err.println("test");
    	out.println("{success: true,msg:' , !',time:'2010-07-15'}");
    	out.flush();
    	out.close();
    }

좋은 웹페이지 즐겨찾기