Posts

Showing posts from February, 2012

Bootstrap dojo in Portal Development

 The Dojo bootstrap, dojo.js , should only be included once in an HTML page. Following way you can create 1. Define one jsp file say dojoLoadedOnce.jsp: 2. Write conditional code as follows <script type="text/javascript"> var bootstrap_path = "<%=request.getContextPath() %>/dojo/dojo.js"; if(typeof dojo=="undefined") { document.write('<S'); document.write('CRIPT type=\"text/javascript\" src=\"'); document.write(bootstrap_path); document.write('\" ><\/S'); document.write('CRIPT>'); } </script> 3. Like traditional method include this jsp in portal jsp file. <jsp:include page="/dojoLoadedOnce.jsp" /> This will make sure dojo bootstrap included once in html.

Integrating email server

In order to integrate open email server with the software you can follow the following : 1. hmailserver is the open email sever provided which can be easily integrated with your software. Download the latest exe file and install. Check for the port 25 using telnet in case of port clashing. 2. Secondly you can use the roundcube as client to view and do various stuff with your server account. 3. Apply the server setting with the product with which you want to integrate e.g. jboss portal, liferay etc... 4. Thats it.

Display Member Names from WCM on jsp file

Following is a very simple example of using wcp api. Especially for beginners Step 1: Create Porlet project. e.g. Using portlet feature of  RAD 8.0 Step 2: Create Portlet and and a jsp file which will use the wcm api to fetch all the member names. Step3: jsp file will contain wcm related code lines like follows which is self explanatory: i.e. use jndi to have lookup for the service ( its a common way of getting any service may be PUMA, etc ) and use it. NOTE: in order to avoid the compilation error for wcm api, the jar (ilwwcm-api.jar ) has to be in classpath of project. new InitialContext(); WebContentService webContentService = (WebContentService) ctx.lookup( "mywcm.jsp" ); Workspace workspace = webContentService.getRepository().getWorkspace( "portal:service/wcm/WebContentService" ); "XXX" , "YYY" ); String names[] = workspace. getMemberNames() ; for ( int i=0;i<names.length;i++){   out.println(names[i]); } Step 4:  doView()

WAR file Exception- NoModuleFileException

NoMOduleFileException: I could resolved this exception in one of my assignments. The issue was coming after migrating the code base from RAD 7.0 to RAD 7.5 and appliyng fix pack for new version of JSF and richfaces. If you export the enterprise project and try to import in new version of RAD there is a possibility you lend up with noModuleFoundException. Steps to resolve: 1. Goto .seting folder and check the component file. 2. Open the #1 file and check for the entry in it for war file. 3. Probabily the entry is no correct. e.g. archive name is missing. 4. Correct the entry and re-run the project and issue will be resolved. Also you can try add / remove project opening the application.xml in design mode.