ADF ÖÐOnClickµÄJavaScriptµÄÖ§³ÖÎÊÌâ
ADF 11g²»ÔÙÖ§³ÖOnclickµÈJavaScript£¬¶øÊDzÉÓÃ<af:clientListener>À´ÊµÏÖÖîÈçɾ³ýijÌõ¼Ç¼µÄÌáʾ¿ò¡£
ʵÏÖ·½Ê½ÈçÏ£º
function confirmDelete() {
if (confirm('Are you sure you want to delete this record?'))
return true;
else
return false;
}
<af:commandLink actionListener="#{bindings.removeRowWithKey.execute}"
action="#{viewCalStatus.deleteCalStatus}" text="Delete">
<af:clientListener method="confirmDelete" type="click"/>
<af:setActionListener from="#{row.rowKeyStr}" to="#{requestScope.calStatusRow}"/>
</af:commandLink>
ADF ÖеÄ<af:commandLink>ºÍ<af:commandButton>´«µÝ²ÎÊýµÄ·½·¨
<af:commandLink id= “” text= “”><f:param name= “param_name” value= “param_value”/></ af:commandLink> ÆÀÂÛ£º<af:commandLink>¿ÉÒÔ²ÉÓø÷½·¨´«µÝ²ÎÊý£¬¶ø<af:commandButton>²»ÐС£²»¹ý¿ÉÒÔÓ¦ÓÃ<h: commandButton >´úÌæ<af:commandButton>ʵÏÖ²ÎÊý´«µÝ¡£¾ßÌå·½·¨ÈçÏ£º <h:commandButton value="¸üÐÂ" action="#{emplBean.edit_action}" id="cb1"> <input type="hidden" name="emplId" value="${emplBean.employee.empno}"/></h:commandButton>
Ïà¹ØÎĵµ£º
°¦£¬ºÜ¾ÃÒÔǰдµÄ´úÂ룬ɹһɹ£¬¹À¼Æ×Ô¼º¿´¶¼¿´²»¶®ÁË£¬:(
var head="display:''"
img_close=new Image()
img_close.src="/sysManage/images/f.gif"
img_open=new Image()
img_open.src="/sysManage/images/fo.gif"
img3=new Image()
img3.src="/sysManage/images/e.gif" ......
½ñÌìµÄ»°ÌâÊÇÈçºÎ¸Ä½ø×Ô¼ºÍøÕ¾µÄ½çÃæ»òÌá¸ßÍøÕ¾µÄÊÓ¾õÌåÑ飬´Ó¶øÈÃÓû§¼ÇÒäÓÌС£
ÎÒÃÇÓÐÈýÖÖÖ÷ÒªµÄ·½·¨(´ÓÄѵ½Ò×):×Ô¼º¶¯ÊÖд½Å±¾;ʹÓÃÀàËÆÓÚjQueryºÍmooToolsµÄJavaScript¿ò¼Ü(¿ÉÒÔÈñàд´úÂë±äµÃ¸üÈÝÒ×Щ);ʹÓÃÄܹ¤×÷ÓÚÏÖÓеÄJavaScript¿ò¼ÜϵÄÌáǰԤÖúõĽű¾»òÄÇÖÖ´ÓÍ·¿ªÊ¼¿ ......
jsÑéÖ¤±íµ¥´óÈ«
1. ³¤¶ÈÏÞÖÆ
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("²»Äܳ¬¹ý50¸ö×Ö·û£¡");
document.a.b.focus();
return false;
}
}
</script>
<form name=a onsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"&g ......
ÎÒÃdz£³£ÔÚ±àдJava³ÌÐòʱ»áÓõ½PropertiesÎļþ£¬°ÑһЩMessageµÈÐÅÏ¢·ÅÔÚPropertiesÎļþ£¬µ«ÊÇÎÒÃÇ¿´µ½µÄ¶¼ÊÇһЩ±àÂë¡£
Struts1.1b2µÄÀý×ÓÖеı¾¹ú×ÊÔ´Îļþ¾¹ýUnicode±àÂëµÄ£¬ËùÒÔÄãÈç¹ûÒªºÍËüµÄÔËÐÐÒ»Ñù£¬Ò²±ØÐ뽫ÄãµÄApplicationResources_zh½øÐÐUnicode±àÂë¡£ÓÐÒÔÏÂÁ½ÖÖ·½·¨£º
¢ÙʹÓÃjdkµÄnative2ascii¹¤¾ß¡£ ......