使用webspace的中带的liferay时,一些简单的配置:
1.to make sure when a user login in ,he sees the home page ,you can change add or modify the portal-ext.properties file in /glassfish2/domains/domain1/applications/j2ee-modules/webspace/WEB-INF/classes file and set default.landing.page.path=/web/guest/home
2.配置当用户没有权限访问portlet时,不显示错误信息和portlet本身
layout.show.portlet.access.denied=false
layout.show.portlet.inactive=false
3.配置默认的登录页面
auth.login.url=/c/portal/login?redirect=%2Fweb%2Fguest%2Ftest
4.auth.forward.by.redirect=true可以设置登录之后跳转的页面根据登录页面接受到的redirect参数来决定。所以同时应该设置auth.login.url=/c/portal/login?p_l_id=10131&redirect=%2Fweb%2Flibrarian%2Fhome,则登录成功后会跳转到/web/librarian/home页面
5.liferay默认的设置是登录后自动记录登录前要访问的页面,登录成功后自动跳转到该页面,配置auth.forward.by.last.path=false可以让登录成功页面固定显示,通过default.landing.page=/web/guest/home可以配置。
jsf和mysql:
1.mysqldump -h 192.168.9.106 -ulibrary -p --default-character-set=gb2312 lib>c:/lib.sql用来远程导出数据同时设置编码。
2.visual jsf的table插件自带了分页功能,但是当用户离开分页所在页面再回来时,如果不加处理还是显示原来的的分页数,rowGroup.setPage(1);可以用跟table插件绑定的rowgroup来设置回到本页面时显示第一页数据。