Tuesday, April 28, 2015

Set page dynamically in tapestry using IPage

Below is sample on how to set page dynamically in tapestry 4.1 using ipage

public IPage doCallMethodSave(IRequestCycle cycle) {
IPage ipage = null;
ipage = cycle.getPage("pageName");
return ipage;

Thursday, April 16, 2015

Postgres Bring row values of a column comma separated to primary key

Employee Master
id bigint
name text
department_id bigint

Department Master
id bigint
name text

select userid,string_agg(gr.roledescription,',') from employee_master employee
INNER JOIN department_master dept ONemployee.department_id=dept.id