`
文章列表

iCal4J tutorial

sessionEvent.getProperties().add(new Summary("xxxx summary));  iCal4J is library to generate/parse Calendar ics file.   Its simple to use until you know what to do, the docs is not good at all.   Here is a few simple steps     1. Create Calendar object - the big Calendar object matching ...
Although its old tech, but just getting an idea how to setup secured server.   Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() ); KeyStore keystore = KeyStore.getInstance( KEYSTORE_TYPE ); keystore.load( new FileInputStream( keyStoreFilename ), keyStorePassword.toCharArray() ); ...
To use appache http server in front of tomcat   load the setting in a seperated file into httpd.conf under apache http server conf folder.LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so ProxyRequests Off <Proxy *> Order deny,allow ...
There is a few different confusing Tag and URL in Maven pom.xm   <scm> url points to SVN URL which hold the subversion code you check in/out. <repository> points to library url when pom.xml has dependency, it will pull out from there (<snapshots>true</snapshots> means it s ...

jQuery notes

To avoid confliction in portlet environment   var yourNS= {}; yourNSjQuery = jQuery.noConflict(true);; yourNSjQuery jQuery(function(){     var $ = yourNSjQuery .jQuery;     ............... });
WSDL Java Message  input1...n                     Opteraton Method Message output Return value Fault Message Exception Service Service Class PortType PortType Class     Binding - define message format and protocol details   Port - define interface expos ...

porltet

    博客分类:
  • SDO
DeployMyPortlet.xml <request     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xsi:noNamespaceSchemaLocation="PortalConfig_1.2.xsd"     type="update"     create-oids="true"     >     <portal action="locate" >         ...
UICommand actionRef="action to be triggered" commandName="used for actionlistener to determined where to go"   <ui:Component> insert into component tree, ignore outside content <ui:fragment> insert into tree, not ignore outside content   <ui:Composition& ...

SDO

    博客分类:
  • SDO
  XML -> SDO Object             ResourceSet resourceSet = new ResourceSetImpl();             resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()                 .put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());                        ...

JPA Notes 2

    博客分类:
  • JPA
When entity got detached when transaction is over, commited when application-managed persistence context is closed stateful bean is removed, its persistence context will be removed clear method call from EntityManager transaction rollback when entity is serialized Merge process merge ...
Most of notes here coming from the book [ Apress Pro EJB 3 JPI]   http://developers.sun.com/learning/javaoneonline/2006/coreenterprise/TS-9056.pdf ?   Persistent Unit A set of managed classes that are mapped to a single database and their mapping metadata. An entity manager factor ...
JSF Life Cycle   1. Restore View Store everything: component, listener, validator in a FaceContext tree under viewRoot. currentView id is used to mark the current view. If not there, created it otherwise, update it.   2. apply request value. get value from request and save it to view tree. If ...
Criteria in Hibernate has been there for a while, this morning it my first time to play with it. Great gain today. List a few key points to remember for all fellows.   1. Key to dynamic search. (of course can not solve all problem).   2. table join - Criterial#createAlias("property", &q ...
1. XML Schema Comment xs: document - can be located anywhere in schema xs:appinfo xs: name space comment. e.g. <xs:element doc:doc="xxxx" xmlns:doc="xxxxxxxx" > xml comment <!-- ....-->  
1. a few concepts to remember Expression: Something which evaluates to a value. Example: 1+2/x (to be executed, return a value). Statement: A line of code which does something. Example: GOTO 100 Function delcaration : function Identifier ( FormalParameterList opt ){ FunctionBody ...
Global site tag (gtag.js) - Google Analytics