Archive | JSF RSS feed for this section

Get Request and Session Parameters and Attributes from JSF pages

HttpServletRequest req = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); HttpServletResponse res = (HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse(); Fuente: http://stackoverflow.com/questions/550448/get-request-and-session-parameters-and-attributes-from-jsf-pages

Continue Reading ·
post-author

DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled.

Error: Solución:

Continue Reading ·
post-author

JSF DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled

Error: DataModel must implement org.primefaces.model.SelectableDataModel when selection is enabled. Solución: just add this attribute rowKey to the datatable tag : <p:dataTable border="1" value="#{projectAdminisrationMB.projectNoUsersList}" var="userObj" rowKey="#{userObj.name}"selection="#{projectAdminisrationMB.selectedUsers}" selectionMode="multiple" rowIndexVar="rowIndex" binding="#{table2}">

Continue Reading ·
post-author

Proyecto JavaServer Faces 2 PrimeFaces con MySQL 5

Es un proyecto que enseña a utilizar el framework JavaServer Faces 2.1 más PrimeFaces con MySQL 5.5 en NetBeans 7.1 mediante un proyecto que dará mantenimiento a 2 tablas (categorias y noticias) como muestra figura siguiente:    

Continue Reading ·
post-author

Curso de Java Server Faces

Continue Reading ·
post-author

Cursos Java de Global Mentoring

Continue Reading ·
post-author

02 Creando primera pantalla con JSF

Continue Reading ·
post-author

01 Primeros pasos con JSF

Continue Reading ·
post-author