我正在研究HP自治交织的Teamsite DCT,我正在尝试将jQuery Datepicker添加到"selectDate"文本元素中.
基本上,此文本元素是属性min = 1的复制容器的一部分.因此,在表单加载时,复制器容器的第一个实例具有与选择日期文本项相关联的日期选择器.但是当我添加新的replicant容器时,新实例的select Date文本元素没有填充datepicker.
我的DCT代码是 这里显示的一部分
<script language="javascript" location="webserver" type="text/javascript" src="/iw/macysdotcom/formapi/jquery/js/jquery-ui-1.9.2.custom.min.js" />
<script language="javascript" location="webserver" src="/iw/macysdotcom/formapi/library.js"/>
<script language="javascript" location="template-type" src="shy.js"/>
<root-container location="Root" name="Root">
<container name='sequenceContainer' min='1' max='25' default='0'>
<container name='rowContainer' min='1' max='25' default='0'><label><img src='/iw-cc/teamsite/images/bullets/blue_bullet.png'/> Row Container</label>
<item name="startDate" pathid="startDate" required="t" rowcontinue="t">
<label>Start Date</label>
<text required="f" size="30" maxlength="100">
</text>
</item>
<item name="endDate" pathid="endDate" required="t">
<label>End Date</label>
<text required="f" size="30" maxlength="100">
</text>
</item>
</container>
</container>
</root-container>
Run Code Online (Sandbox Code Playgroud)
JS代码如下
/******************************************************************************
// Setting up some variables. From line Number 15 to 29. …Run Code Online (Sandbox Code Playgroud) 我正在使用相当古老的大型CMS(TeamSite),它有一个如何将其连接到LDAP服务器的示例.我已经阅读了这个例子,它以非常奇怪的方式工作.它只是按预期在"userPassword"字段中存储密码,但它手动执行验证而不是使用bind命令.
这对我没有意义,但我可能在这里错了,因为我以前没有使用过LDAP服务器.你知道为什么有人想手动比较密码而不是使用bind吗?
以下是代码的外观:
Attribute attrPassword = attrs.get("userPassword");
if (attrPassword.size() > 0)
{
String storedPassword = new String((byte[])attrPassword.get(0));
if (password.equals(storedPassword))
{
///.....
Run Code Online (Sandbox Code Playgroud)