日期:2014-05-18  浏览次数:20945 次

求正规的中文日历控件,jsf用,谢谢!
rt

------解决方案--------------------
apache myfaces 里面有inputDate
------解决方案--------------------
jscalendar-1.0~

------解决方案--------------------
<%@ taglib uri= "http://myfaces.apache.org/tomahawk " prefix= "t "%>
使用上面的标签库
你需要下载apache myfaces上的tomahawk.jar文件。里面有一个 <t:inputCalendar> 标签用它就可以了,当然tomahawk里面还有其它一些相关的标签,具体用法你可以自己去看看。我现在就用的是这个,感觉不错,呵呵
------解决方案--------------------
<HTML>
<HEAD>
<TITLE> 请选择日期和时间 </TITLE>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<script>
function outAll(){
// var pathStr = window.location.href;
// var fieldName = pathStr.substring(pathStr.indexOf( "?field= ")+7,pathStr.length);
// var obj = opener.document.getElementById(fieldName);
// obj.value = c.getDate() + ' '+ m.getTime();
var tempTime=c.getDate();
// alert(dialogArguments.maxLength);
if(tempTime.substring(6,7)== "- ")
{
tempTime = tempTime.substring(0,5) + "0 " + tempTime.substring(5,10)
}//alert(tempTime.substring(9,10));
if(tempTime.substring(9,10)== " ")
{
tempTime = tempTime.substring(0,8) + "0 " + tempTime.substring(8,9)
}
dialogArguments.value=tempTime.substring(0,10);
window.close()
}
</script>
</HEAD>
<BODY>
<style type= "text/css ">
body {
background-color: #eeeeee;
}
.m_fieldset {
padding: 0,10,5,10; text-align: center; width: 150px;
}
.m_legend {
font-family: Tahoma; font-size: 11px; padding-bottom: 5px;
}
.m_frameborder {
border-left: 2px inset #D4D0C8; border-top: 2px inset #D4D0C8;
border-right: 2px inset #FFFFFF; border-bottom: 2px inset #FFFFFF;
width: 100px; height: 19px; background-color: #FFFFFF;
overflow: hidden; text-align: right; font-family: "Tahoma "; font-size: 10px;
}
.m_arrow {
width: 16px; height: 8px; font-family: "Webdings "; font-size: 7px;
line-height: 2px; padding-left: 2px; cursor: default;
}
.m_input {
width: 18px; height: 14px; border: 0px solid black; font-family: "Tahoma ";
font-size: 9px; text-align: right; ime-mode:disabled;
}
.c_fieldset {
padding: 0,10,5,10; text-align: center; width: 180px;
}
.c_legend {
font-family: Tahoma; font-size: 11px; padding-bottom: 5px;
}
.c_frameborder {
border-left: 2px inset #D4D0C8; border-top: 2px inset #D4D0C8;
border-right: 2px inset #FFFFFF; border-bottom: 2px inset #FFFFFF;
background-color: #FFFFFF; overflow: hidden; font-family: "Tahoma ";
font-size: 10px; width:160px; height:120px;
}
.c_frameborder td {
width: 23px; height: 16px; font-family: "Tahoma ";
font-size: 11px; text-align: center; cursor: default;
}
.c_frameborder .selected {
background-color:#0A246A; width:12px; height:12px; color:white;
}
.c_frameborder span {
width:12px; height:12px;
}
.c_arrow {
width: 16px; height: 8px; font-family: "Webdings "; font-size: 7px;
line-height: 2px; padding-left: 2px; cursor: default;
}
.c_year {
font-family: "Tahoma "; font-size: 11px; cursor: default; width:55px; height:1