This value must be passed through as the 'class' attribute on generated markup. Create Person.javaĬreate a new Java class file called Person in the package . Listener method to call with a RowSelectorEvent when a row is (de)selected styleClass: false: false: : Space-separated list of CSS style class(es) to be applied when this element is rendered. When a row is clicked ClickActionEvent is called & you can determine in backing bean, if its double-clicked or not by ClickActionEvent.isDblClick (). This is so we can warn the user if they try to select a new employee to update when they have unsaved data. 1 Answer Sorted by: 0 You can use rowSelector tag which has attribute clickListener. I'm trying to use the IceFaces (+ Seam 3 Framework on Jboss AS7) 'ice:rowSelector' tag in a way that when a dataTable's row is cliked, the data in that row will be show in a 'ice:panelGrid' tag with 'ice:outputLabel's. In this page we use the ajax change event to set a flag on the backing bean to indicate that the user has changed the text in the details forms. my managed bean i use .effects.JavascriptContext. Create masterDetails.xhtmlĬreate a new page called masterDetails.xhtml and paste the code below: The approach doesn't matter as long as the jars are included in the deployed war file. Configuration: JavaServer Faces v2.0 Project (Mojarra)Īdd the icefaces.jar (from the ICEfaces 3 bundle) to your project, either through a custom User Library or by putting them into masterDetails /WEB-INF/lib/.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |