Access Redmine via sbt.GenericService


<?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:repeat id="repeat1" rows="10" var="entry">
		<xp:this.value><![CDATA[#{javascript:
var p = {
	project_id: 'testproject',
	startIndex: 1,
	count: 50
}
var service = new sbt.GenericService(@Endpoint('redmine'), "/issues.xml");
var doc = service.get(p);
var navigator = new sbt.XmlNavigator(doc); 
var subnav = navigator.get('/issues/issue');
subnav.getCurrentNodes()}]]>
	</xp:this.value>
		<xp:link text="#{xpath:entry:subject}"
			value="#{javascript:'http://YourRedmine.com/issues/'}#{xpath:entry:id}">
		</xp:link>
		<br></br>
	</xp:repeat>
</xp:view>

<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
	<managed-bean>
		<managed-bean-name>redmine</managed-bean-name>
		<managed-bean-class>
			com.ibm.xsp.extlib.sbt.services.client.endpoints.BasicEndpointBean
		</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
		<managed-property>
			<property-name>url</property-name>
			<value>http://YourRedmine.com</value>
		</managed-property>
	</managed-bean>
	<!--
		AUTOGEN-START-BUILDER: Automatically generated by IBM Lotus Domino
		Designer. Do not modify.
	-->
	<!--AUTOGEN-END-BUILDER: End of automatically generated section-->
</faces-config>
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...