xpages

Fixing “stretched” XPage extension library dialog box in IE?

我是研究僧i 提交于 2019-12-13 01:20:00
问题 When a dialog box is displayed in IE, it appears to stretch to the right. I understand there might be a temporary fix for this? Can anyone provide that fix? 回答1: We encountered the same problem and solved it by specifying the width of the dialog. This prevents it from stretching to the right. In addition, don't forget to close your Firebug console, if your dialog contains a fair amount of content, it distorts the dialog as well. To reproduce the effect you can copy/paste the code below, add a

Image not displayed in xe:basicContainerNode from Extension Library in XPages

不羁的心 提交于 2019-12-13 01:18:52
问题 I have the following code for a popupmenu from Extension library <xe:popupMenu id="pop"> <xe:this.treeNodes> <xe:basicContainerNode image="/vwicn148.gif" label="Container"> <xe:this.children> <xe:basicLeafNode label="Child" image="/vwicn148.gif"></xe:basicLeafNode> </xe:this.children> </xe:basicContainerNode> </xe:this.treeNodes></xe:popupMenu> <xp:link escape="true" text="Open popup" id="link1"> <xp:eventHandler event="onclick" submit="false"> <xp:this.script><![CDATA[XSP.openMenu(thisEvent,

Where is the compiled java code stored in an nsf / ntf?

浪子不回头ぞ 提交于 2019-12-13 01:15:55
问题 Where is the compiled java code stored in an nsf / ntf? Or is it compiled from the java "files" at runtime? I looked all through the java perspective but do not see anything that jumps out at me. 回答1: Under WebContent/WEB-INF/classes . You can find it with Navigator (Window -> Show Eclipse Views -> Navigator). 来源: https://stackoverflow.com/questions/16701085/where-is-the-compiled-java-code-stored-in-an-nsf-ntf

xpages returning class icon in view column

与世无争的帅哥 提交于 2019-12-13 01:13:30
问题 <i class="fa-trash-o fa" /> ( from http://fortawesome.github.io/Font-Awesome/icons/ ) I want the above class to be the result for a column icon: <xp:this.iconSrc><![CDATA[#{javascript:var class = "fa-trash-o fa"; if (rowData.isDocument() && rowData.getDocument()!= null) { var formName = rowData.getDocument().getItemValueString("Form"); if ( formName == "Aform") { // How can I reffer to the class? => The icon from the class will be shown. } ]]></xp:this.iconSrc> 回答1: You then shouldn't use the

Return from first column of a categorized view when using readers fields

微笑、不失礼 提交于 2019-12-13 00:47:34
问题 I have a Notes Categorized view of documents. Some of these documents have a Reader Field set. I'm building a 'view' of these documents in a series of nested Repeat Control. The first repeat is bound to a viewScope variable, called vsCat1 and I set vsCat1 in the AfterPageLoad event by opening the view and getColumnValue(0) which returns a list of the categorized data. The issue is that there is a category in the list that a particular user does not have Reader access to. So nothing displays

Issue with CSS width and views columns and headers

夙愿已清 提交于 2019-12-13 00:40:49
问题 I have some CSS I am applying to a view header and view column. Here is a sample .viewHeaderName { width:235px; background-color:rgb(192,192,192); color:rgb(0,0,0); font-family:Trebuchet MS,sans-serif; font-size:10t; font-weight:bold; text-align:left; } .viewColumnName { font-family:Trebuchet MS,sans-serif; font-size:9pt; } Basically I am trying to set the width of the column to what I want. I don't want the text in the header or in the column to wrap. This works perfectly for categorized

Xpages get index of repeat in CSJS

末鹿安然 提交于 2019-12-13 00:38:05
问题 I want to get the index of an repeat in CSJS. I tried to get the repeatID and then get the value, but it is not working. var r="view:_id1:repeat1:" var val=document.getElementById(r).value.toString(); 回答1: Create a computed text like this: <xp:text escape="true" id="computedFieldIndexVar" tagName="input"> <xp:this.attrs> <xp:attr name="type" value="hidden"> </xp:attr> <xp:attr name="value" value="#{javascript:var rp:com.ibm.xsp.component.xp.XspDataIterator = getComponent('repeat1');rp

How can I set focus to Edit Box inside repeat control?

☆樱花仙子☆ 提交于 2019-12-12 20:42:53
问题 I would like to set focus + place cursor to an Edit Box (the last one) within a repreat control. The repeat is inside a panel (panelRep). I then have a button outside the panel. This is the client side code for the button which almost works.. Focus is set (blue border around field), but cursor is not placed in field. User must still click the field to be able to write input. Example without focus: Example with focus: Client side code for button which sets focus to last Edit Box in which id

Build Automatically versus Build Manually

北城余情 提交于 2019-12-12 20:42:52
问题 "Build Automatically" is a real pain when you are working on a slow server because sometimes when you change one small item of code (or even just look at it) the whole project seems to rebuild - which can take many minutes and breaks the database in the mean time. If I disable "Build Automatically" and build individual elements manually how much do I need to do? For example if I modify a custom control do I need to rebuild the "parent" Xpage? 回答1: My experience is that if you turn off "Build

Getting “connection was reset” when uploading large files using the file upload control

若如初见. 提交于 2019-12-12 19:20:37
问题 When I'm trying to upload large files (>10Mb) with a file upload control in my XPages application, I'm always redirected to an error page in my browser, saying " The connection to the server was reset while the page was loading ". In the application's xsp.properties file I already set " xsp.upload.maximumsize =128000" which should allow uploads of files with up to 128Mb. However I keep getting the "connection was reset" error. Does anybody know how to fix this problem? 回答1: In addition to xsp