Skip to content

Instantly share code, notes, and snippets.

View priyankahdp's full-sized avatar
💭
Everything changes, nothing remains without change

Priyanka Kulathilaka priyankahdp

💭
Everything changes, nothing remains without change
View GitHub Profile
/*
* Copyright (c) 1996-2001
* Logica Mobile Networks Limited
* All rights reserved.
*
* This software is distributed under Logica Open Source License Version 1.0
* ("Licence Agreement"). You shall use it and distribute only in accordance
* with the terms of the License Agreement.
*
*/
@priyankahdp
priyankahdp / form.xhtml
Created June 24, 2014 05:35
collapsibleDataTable Expand Issue
....
<script>
function richTreeCollapse(){
$('[id$=sbtbl]').each(function(n){this.rf.component.collapse();});
}
</script>
<div style="text-align: center">
<a4j:commandButton id="btnCopEdit" value="Edit" execute="@form" disabled="#{corporateManagementController.enableAdd}"
oncomplete="if(#{!facesContext.validationFailed}) {#{rich:component('infoPopup')}.show();};richTreeCollapse()"
@priyankahdp
priyankahdp / MySessionListener.java
Created June 17, 2014 08:36
JSF Page Redirect Issue
package **.******.***.***.util;
import java.util.Date;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class MySessionListener implements HttpSessionListener {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<rich:extendedDataTable value="#{treeBean.merchantService.currentSelection.children}" var="child" style="width:660px;height:250px;" id="merchantTable"
rendered="#{treeBean.merchantService.currentSelection != null}" >
<rich:column width="100px">
@Service("userDetailsServiceClient")
public class UserDetailServiceImpl implements UserDetailsService {
@Autowired
private SessionFactory sessionFactory;
@Autowired
private Assembler assembler;
@Autowired
private IUserDetailService userDetailsServiceClient;
@priyankahdp
priyankahdp / CorporateManagementController.java
Created May 13, 2014 11:37
JSP POPUP Form Submit Issue..
package lk.dialog.ist.cms.jsf.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class TestMain {
public static void main(String[] args) {
boolean bl=true;
byte b=10;
short s=54;
int i=150;
long l=125L;
float f=32.5f;
double d=99.45;
public class TestMain {
public static void main(String[] args) {
boolean bl=true;
byte b=10;
short s=54;
int i=150;
long l=125L;
float f=32.5f;
double d=99.45;
public class TestMain {
public static void main(String[] args) {
boolean bl=true;
byte b=10;
short s=54;
int i=150;
long l=125L;
float f=32.5f;
double d=99.45;
public class TestMain {
public static void main(String[] args) {
boolean bl=true;
byte b=10;
short s=54;
int i=150;
long l=125L;
float f=32.5f;
double d=99.45;