xpages

XSP Partial Refresh

我的未来我决定 提交于 2019-12-11 05:57:56
问题 I am trying to send a value to server from anchor link and I call following code from a function which is called from the anchor link. Although I am able to trigger partial refresh,I get an error...any pointers please..... var refreshId=dojo.query('[id$="testPanel"]')[0]; alert(refreshId.innerHTML) alert(refreshId.id) var mySubmitValue='whatYouWantToSendHere'; XSP.partialRefreshGet(refreshId, { params: { '$$xspsubmitvalue': mySubmitValue }, onStart: function () { alert('starting'); },

Do I really need a managed bean?

戏子无情 提交于 2019-12-11 05:45:33
问题 Everyting I have read about calling Java from Xpages mentions managed beans. But I really don't need to save the state of my object. Do I still need to make my class managed? What I need to do is to check to see if a password is expired for a user in Directory Services (LDAP). My plan was to check the state using my LDAP class then store the result in a regular session variable. So would I still need to use a managed bean? If not, do I still need to mention the class in faces-config.xml or

How to change date time format on a localized website?

喜你入骨 提交于 2019-12-11 05:43:01
问题 I have a localized website for different languages Users can select which language to use in a profile and this will be applied beforePageLoad using context.setLocalString("en") "en" is default to en-US i believe so the dates on the website is displayed in the US format so I learned that I can use instead. context.setLocale(new Locale("en","gb")) the problem with setLocal is that is does not update the HTML lang="en" attribute so event though the dates are correct after using setLocal the

xpages partial refresh can't save after replicate local replica

青春壹個敷衍的年華 提交于 2019-12-11 05:41:49
问题 Scenario: User preview xpage for editing in web browser. Developer replicate a local replica to the server. User click save button and trigger save action partial/full refresh In 8.5.2 crash the whole database based on can't find java design classes. In 8.5.3 no error CS/SS accrued but there are no changes applied to the document. Seems like if you replicate the sessionID is overridden. Is there a way to fix/detect it? Any ideas? thx 回答1: It relates to this effect: Meaning of java.lang

data table to show only category totals

和自甴很熟 提交于 2019-12-11 05:39:14
问题 I'm trying to implement highcharts and i need a html table for my data source. This is my view. When I bind my data table to this view, it shows every row instead of categories, which is millions of documents. I only need category totals to be seen in table. 回答1: I guess you could use a data table but you might be better off with a repeat control. Use SSJS Or Java and a Notes View Navigator. That has methods to skip from 1 category to another. So your not looping over each document. As you

Query is not understandable - using field Fulltext search [Tags] = “foo”

江枫思渺然 提交于 2019-12-11 05:31:18
问题 I have a problem that only happens rarely with FT search. but once it happens it stays. I use the following search term in the FT search box in Lotus Notes [Tags] = "foo" in most application this search term work fine. but for some applications this search term gives the error "query is not understandable". It does not matter if I replace the value, e.g [Tags] = "boo" produce the same result. and also FIELD Tags = "boo". for the record [Tag] = "foo" works fine so it seem be issues with the

Show only Unread document current View?

别来无恙 提交于 2019-12-11 05:26:39
问题 anyone have a suggest to realize @Command([ViewShowOnlyUnread]) in XPages ViewPanel? And is possibile realize the function "Next Unread" and "Previus Unread"? 回答1: Instead of binding the view panel to a standard view data source, try setting its value attribute to the following expression: importPackage(com.ibm.xsp.model.domino); var targetView = database.getView("Some View"); var unreadEntries = targetView.getAllUnreadEntries(); var unreadModel = new DominoViewEntryCollectionDataModel

xPage dateTime picker validation does not work on date change

微笑、不失礼 提交于 2019-12-11 05:01:05
问题 Here is my datePicker control where expression validation works fine: <xp:inputText id="inputComboUntil"> <xp:this.converter><xp:convertDateTime pattern="MMM d, yyyy"></xp:convertDateTime></xp:this.converter> <xp:this.validators> <xp:validateExpression> <xp:this.expression><![CDATA[#{javascript:var var1 = getComponent("inputDate").getValue(); if(var1!=null){ var var1D:NotesDateTime = session.createDateTime(var1); var var2D:NotesDateTime = session.createDateTime("Today"); var2D.setNow(); if

Is possible to add annotation @ManagedBean in XPages?

假装没事ソ 提交于 2019-12-11 04:58:21
问题 I try to add annotations in a Java class to take the bean in XPages. But when I try this: @ManagedBean(name="photoBean") @SessionScoped public class PhotoBean implements Serializable { private static final long serialVersionUID = -6839844250507324282L; private String idPhoto; private String nomPhoto; public String getIdPhoto() { return idPhoto; } public void setIdPhoto(String idPhoto) { this.idPhoto = idPhoto; } } it doesn't compile: @ManagedBean(name="photoBean") @SessionScoped Is there

How to get display text of combobox and not the alias?

房东的猫 提交于 2019-12-11 04:52:42
问题 I have a combobox with some display values and alias, In SSJS when I do getComponent("comboboxName").getValue() it returns alias value, which is fine. But now I want the display text of the combobox and not the alias value, is there any way to get it? 回答1: Define a SSJS function getComponentLabel() : function getComponentLabel(componentId) { var select = getComponent(componentId); var value = select.getValue(); if (value) { try { var list = select.getChildren(); for (var i = 0; i < list