当前位置: 代码迷 >> Ajax >> struts 二 class ajax
  详细解决方案

struts 二 class ajax

热度:441   发布时间:2012-10-07 17:28:51.0
struts 2 class ajax
1.  空格              value

2.  hidden       hide all
3.  areaSelect   title value
4.  fromText     value

--------------------------
<input type="text" name="member.username" class="formText {required: true, minlength: 2, maxlength: 20, username: true, remote: 'member!checkUsername.action', messages: {remote: '用户名已存在!'}}" />
	// 地区选择菜单

---
	<input type="text" name="receiver.name" class="formText {required: true, messages: {required: '请输入收货人姓名!'}}" value="${(receiver.name)!}" />
--

---------------------------------

--------------------
 <input type="text" name="receiver.areaPath" class="areaSelect  {required: true, messages: {required: '请选择地区!'}, messagePosition: '#addressMessagePosition'}" value="${(receiver.areaPath)!}" />
									<span id="addressMessagePosition"></span>

   var city =   $(".areaSelect").lSelect({
		url: "${base}/shop/area!ajaxChildrenArea.action"// Json数据获取url
	});

--------------------------------------------

------------------------

---------------------------------------
  相关解决方案