Skip to content

Instantly share code, notes, and snippets.

Patrick Kwinten PatrickKwinten

Block or report user

Report or block PatrickKwinten

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@PatrickKwinten
PatrickKwinten / ccUtilsGenericView.xsp
Created Oct 19, 2017
custom control for a generic View via Bootstrap table
View ccUtilsGenericView.xsp
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:panel id="pnlContainer"
style="#{javascript:compositeData.panelStyle}">
<div class="row">
<div class="col-md-6">
<xp:panel
tagName="#{javascript:compositeData.headerSize}" id="pnlSubHead">
<xp:text escape="true"
value="#{javascript:compositeData.header}" />
@PatrickKwinten
PatrickKwinten / ccUtilsGenericView.xsp-config
Created Oct 19, 2017
configuration file for custom control
View ccUtilsGenericView.xsp-config
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/custom</namespace-uri>
<default-prefix>xc</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>ccUtilsGenericView</component-type>
<composite-name>ccUtilsGenericView</composite-name>
<composite-file>/ccUtilsGenericView.xsp</composite-file>
@PatrickKwinten
PatrickKwinten / Class for beanNamePicker for NotesView
Created Oct 19, 2017
Now we collect the values from documents in a Notes view
View Class for beanNamePicker for NotesView
package org.wordpress.quintessens.demo.app;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import java.util.Vector;
View Class for beanNamePicker
package org.wordpress.quintessens.demo.app;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lotus.domino.Directory;
import lotus.domino.DirectoryNavigator;
import lotus.domino.NotesException;
@PatrickKwinten
PatrickKwinten / NamePickerDirectory.xsp
Last active Oct 19, 2017
xpage that will call a java class to collect name from the Domino Directory
View NamePickerDirectory.xsp
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:this.data>
<xp:dominoDocument var="document1"></xp:dominoDocument>
</xp:this.data>
<xp:label for="person1">Name field with lookup dialog</xp:label>
<br />
<xp:inputText id="person1" value="#{document1.Person1}"></xp:inputText>
@PatrickKwinten
PatrickKwinten / PostController.java
Created Nov 11, 2016
Controller class for Posts
View PostController.java
package com.wordpress.quintessens.graph.teamroom.controller;
import java.io.Serializable;
import org.openntf.domino.graph2.impl.DFramedTransactionalGraph;
import org.openntf.domino.graph2.impl.DGraph;
import com.ibm.commons.util.io.json.JsonJavaArray;
import com.ibm.commons.util.io.json.JsonJavaObject;
import com.wordpress.quintessens.graph.teamroom.GraphHelper;
@PatrickKwinten
PatrickKwinten / ProfilesController.java
Created Nov 11, 2016
Class to control Profile class
View ProfilesController.java
package com.wordpress.quintessens.graph.teamroom.controller;
import java.io.Serializable;
import org.openntf.domino.graph2.impl.DFramedTransactionalGraph;
import org.openntf.domino.graph2.impl.DGraph;
import com.ibm.commons.util.io.json.JsonJavaArray;
import com.ibm.commons.util.io.json.JsonJavaObject;
import com.wordpress.quintessens.graph.teamroom.GraphHelper;
import com.wordpress.quintessens.graph.teamroom.Post;
import com.wordpress.quintessens.graph.teamroom.Profile;
@PatrickKwinten
PatrickKwinten / graph_profiles.xsp
Created Nov 11, 2016
XPage that displays lists of profiles, posts and responses objects in the Graph
View graph_profiles.xsp
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex"
xmlns:debug="http://www.openntf.org/xsp/debugtoolbar">
<debug:toolbar defaultCollapsed="false" collapseTo="left"></debug:toolbar>
<!-- <xp:this.beforePageLoad><![CDATA[#{javascript:viewScope.put("activePerson","Patrick Kwinten/quintessens")}]]></xp:this.beforePageLoad> -->
<div class="container">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills pull-right">
@PatrickKwinten
PatrickKwinten / migration_error.xsp
Created Nov 11, 2016
XPage that will be displayed when a migration was not successful
View migration_error.xsp
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" pageTitle="Error">
<div class="container">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills pull-right">
<li role="presentation" class="active">
<xp:link escape="true" text="Home" id="link3"
value="/graph_profiles.xsp" />
</li>
@PatrickKwinten
PatrickKwinten / migration_success.xsp
Created Nov 11, 2016
XPage that will be displayed when a migration was successful
View migration_success.xsp
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" pageTitle="Success">
<div class="container">
<div class="header clearfix">
<nav>
<ul class="nav nav-pills pull-right">
<li role="presentation" class="active">
<xp:link escape="true" text="Home" id="link3"
value="/graph_profiles.xsp" />
</li>
You can’t perform that action at this time.