我创建了一些动画.gifs,它们在Firefox和Chrome中运行良好,但在IE 10中运行不佳.有没有办法解决这个问题?试着在各种浏览器中查看下面的图像.
我正在编写向用户发送邮件的代码.邮件文本包含日期.正确计算日期时,即使所有用户都使用德语Windows操作系统并在Notes首选项中将德语设置为其语言,日期也会以英语显示.这是我的代码:
Set dt = New NotesDateTime(doc.GetItemValue("abc")(0))
dts = Format$(dt.LSLocalTime, "dddd, dd. MMMM yyyy")
mailText = replaceSubstring(mailText, "Datum", dts, True)
Run Code Online (Sandbox Code Playgroud)
在邮件中,日期显示为,例如,
2015年12月9日星期三
什么时候应该出现
Mittwoch,09.Dezember 2015
用户单击Notes客户端中的按钮后执行代码.并非所有邮件都有此问题,但我无法在遇到此问题的用户的操作系统和Notes首选项设置中检测到任何错误.我怎样才能让这个日期以德语而不是英语出现?
我已将一些代码从一个自定义控件复制到新的自定义控件.我复制的代码包含一些xe扩展库,现在所有这些xe组件都显示错误消息,说明前缀xe未绑定(元素"xe:djContentPane"的前缀"xe"未绑定).有没有办法解决这个问题?
我正在尝试禁用Dojo组合框的客户端验证失败.我添加了一个dojo属性"required"并将其设置为false但这仍然无效.我确实希望启用服务器端验证,这就是我设置required ="true"的原因.任何人都可以看到需要对以下代码进行哪些更改?
<xe:djComboBox id="djComboBox1" required="true" disableClientSideValidation="true">
<xe:this.dojoAttributes>
<xp:dojoAttribute name="required" value="false">
</xp:dojoAttribute>
</xe:this.dojoAttributes>
<xp:selectItem itemLabel="" />
<xp:selectItem itemLabel="Apples" />
<xp:selectItem itemLabel="Oranges" />
<xp:selectItem itemLabel="Pears" />
<xp:selectItem itemLabel="Bananas" />
<xp:selectItem itemLabel="Plums" />
</xe:djComboBox>
Run Code Online (Sandbox Code Playgroud) 我正在尝试从XPage的beforePageLoad事件中的配置文件中获取值.为此,我使用Server Side Javascript:
var currdb:NotesDatabase = database;
var profdoc:NotesDocument = currdb.getProfileDocument("frmProfile","");
var showRefInfo = profdoc.getItemValueString("ShowReferenceInformation");
sessionScope.put("showRefInfo",@Text(showRefInfo));
Run Code Online (Sandbox Code Playgroud)
字段"ShowReferenceInformation"可以具有值1或0.我已将此值从0更改为1,但是我的SSJS代码继续返回0.可能导致此问题的原因是什么?
使用Dojo验证文本框时,如果我尝试提交XPage而不在Dojo验证文本框中输入任何值,我会看到消息"此值是必需的".有没有办法自定义此消息?(我希望用另一种语言传达此消息)
我正在计划在新的Lotus Domino服务器上安装一个新的XPages应用程序,我很想知道
a)选择Domino 9而不是Domino 8.5.3 FP2会更好吗?
b)最好选择Domino 64位还是32位?
任何意见是极大的赞赏.
我正在使用OpenNTF POI 4 XPages插件.这非常适合生成Word文档.现在,在生成Word文档之后,我想创建一个新的响应文档,并将word文档作为附件存储在此响应文档的富文本字段中.这是我的代码(在POI 4 XPages小部件的poi postGenerationProcess属性中):
var doc:NotesDocument = currentDocument.getDocument();
var rdoc:NotesDocument = database.createDocument();
rdoc.appendItemValue("Form", "frmRespTempl");
rdoc.appendItemValue("Subject", "Embedded Word Document");
var rtitem:NotesRichTextItem = rdoc.createRichTextItem("Body");
rtitem.embedObject(xwpfdocument);
rdoc.makeResponse(doc);
rdoc.save();
Run Code Online (Sandbox Code Playgroud)
不幸的是,这给了我错误:
com.ibm.jscript.InterpretException: Script interpreter error, line=13,
col=8: [TypeError] Method NotesRichTextItem.embedObject(org.apache.poi.xwpf.usermodel.XWPFDocument)
not found, or illegal parameters
Run Code Online (Sandbox Code Playgroud)
有什么提示我怎么能做到这一点?
实施Knut Hermann下面提出的建议,我得到:
错误:Documentgeneration POI LIB期间出错:1.2.6.201312211419 StackTrace:com.ibm.xsp.exception.EvaluationExceptionEx:在com.ibm.xsp.binding.javascript.JavaScriptMethodBinding.invoke(JavaScriptMethodBinding.java:126)执行JavaScript动作表达式时出错at biz.webgate.dominoext.poi.component.containers.UIDocument $ 1.run(UIDocument.java:300)at java.webgate.dominoext.poi.component.containers.UIDocument $ 1.run(UIDocument.java:1)at java .security.AccessController.doPrivileged(AccessController.java:251)在biz.webgate.dominoext.poi.component.containers.UIDocument.doPostGenerationProcessPrivileged(UIDocument.java:298)在biz.webgate.dominoext.poi.component.containers.UIDocument .postGenerationProcess(UIDocument.java:290)在biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.processDocument(DocumentProcessor.java:233)在biz.webgate.dominoext.poi.component.kernel.DocumentProcessor.generateNewFile(DocumentProcessor .java:143)在biz.webgate.dominoext.poi.component.c ontainers.UIDocument.processAjaxRequest(UIDocument.java:208)在biz.webgate.dominoext.poi.component.actions.DocumentGenerationServerAction.invoke(DocumentGenerationServerAction.java:48)在com.ibm.xsp.actions.ActionGroup.invoke(行动小组. java:135)at com.ibm.xsp.application.ActionListenerImpl.processAction(ActionListenerImpl.java:60)at com.ibm.xcomp.component.UIEventHandler的javax.faces.component.UICommand.broadcast(UICommand.java:324) .broadcast(UIEventHandler.java:366)在com.ibm.xsp.component.UIDataPanelBase.broadcast(UIDataPanelBase.java:400)在com.ibm.xsp.component.UIDataPanelBase.broadcast(UIDataPanelBase.java:400)在融为一体. ibm.xsp.component.UIDataPanelBase.broadcast在com.ibm.xsp.component.UIDataPanelBase(UIDataPanelBase.java:400)在com.ibm.xsp.extlib.component.layout.UIVarPublisherBase.broadcast(UIVarPublisherBase.java:183).广播(UIDataPanelBase.java:400)at com.ibm.xsp.component.UIViewRootEx.broadcast(UIViewRootEx.java:1535)at javax.faces.component.UIViewRoot.broadcast 位于com.sun.faces的com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:94)的javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:428)上的事件(UIViewRoot.java:307) .lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)位于com.ibm.xsp.controller.FacesControllerImpl.execute(FacesControllerImpl.java:250)的com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:96) )com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet.java:223)位于com.ibm.xsp.webapp.FacesServlet的com.ibm.xsp.webapp.FacesServletEx.serviceView(FacesServletEx.java:204). com.ibm.xsp.webapp.FacesServletEx.service(FacesServletEx.java:138)上的com.ibm.xsp.webapp.DesignerFacesServlet.service(DesignerFacesServlet.java:103)中的service(FacesServlet.java:160) .designer.runtime.domino.adapter.ComponentModule.invokeServlet(ComponentModule.java:576)at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(NSFComponentModule.java:1281)at com.ibm.designer.ru …
我正在使用Lotus Notes 8.5.3 FP1和扩展库.我有一个自定义控件,每次我尝试在Domino Designer中打开该自定义控件时都会导致Lotus Notes客户端崩溃.大多数自定义控件和Xpages打开没有问题.我该如何调试并解决这个问题?我已经尝试过卸载并重新安装扩展库但问题仍然存在.在浏览器中打开包含该自定义控件的XPage也是不可能的.这给出了错误500 HTTP Web服务器:命令未处理异常.
Started at: Tue May 06 13:13:23 2014
Ended at: Tue May 06 13:13:41 2014
Time Spent: 00:00:18
Generated Messages:
INFO (0): This NSD was generated due to a Domino shutdown hang.
There will not be a FATAL thread. Any processes/threads other than
the main server thread and the server timeout thread which started
this NSD should be examined to determine why they did not terminate
when requested to do so.
INFO (0): …
Run Code Online (Sandbox Code Playgroud) 使用LotusScript,我可以使用Set notesDocumentCollection = db.GetProfileDocCollection()来获取数据库中所有配置文件的集合.我想用SSJS做同样的事情.但是,database.getProfileDocCollection(profileName)要求我使用特定的配置文件名称.在SSJS中是否有任何方法可以在数据库中获取所有配置文件的集合(如LotusScript的情况)?
xpages ×8
lotus-notes ×7
dojo ×3
lotus-domino ×3
lotusscript ×2
animated-gif ×1
apache-poi ×1
java ×1
lotus ×1
ssjs ×1
xpages-ssjs ×1