Monday, September 22, 2008

3. Customizing Login Page

Add Rolling Alert message on Clarity Login Page. Login page should look like below




1. Go to D:\niku\clarity\webroot\ui\evolution2\xsl folder, if clarity is installed in “d:” drive.

2. Open login_en.xsl file in notepad or wordpad editor.

3. Locate following code (aroung line number 58).



4. Add following code (Add this code after )



Above code creates a table without border and add a message text with marquee in clarity login page.

5. Save file.

6. Restart application services.



Thursday, September 4, 2008

2. How to use Java class in GEL and tokenize string









Main code starts from Line 4
Line 4: core:new will create new object of className attribute. Give a path of class in className. Same as we use in import statement in JAVA
Line 5: This line is optional. Here in this sample we have input parameter to constructor of StringTokenizer. We can pass parameter to constructore using core:arg tag.
Line 6: This is while loop and here I am calling function of Test object. Note Test is from var in line 4.
Line 7: Here I am calling nextToken function of Test object which will return token in var attribut.
Line 8: Printin Token on consol