Search
 
SCRIPT & CODE EXAMPLE
 

HTML

accept method jsf component

<!-- Definition -->
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:ic="http://ivyteam.ch/jsf/component"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions"
	xmlns:cc="http://xmlns.jcp.org/jsf/composite">
  <!-- ... -->
  <cc:interface>
    <cc:attribute name="buttonName1"></cc:attribute>
    <cc:attribute name="buttonName2"></cc:attribute>
    <cc:attribute name="handler1" method-signature="void handler1()"></cc:attribute>
    <cc:attribute name="handler2" method-signature="void handler2()"></cc:attribute>
    <cc:attribute name="motorbikePlateRequest" type="java.lang.Object"></cc:attribute>
  </cc:interface>

  <p:commandButton
    value="Button name 1"
    action="#{cc.attrs.handler1}" update="form" immediate="true">
  </p:commandButton>
  <!-- ... -->
</html>

<!-- Usage -->
<ic:motorbike.number.plate.MotorbikeNumberApprove
   motorbikePlateRequest="#{data.selectedRequest}" buttonName1="Reject"
   handler1="#{logic.rejectNumberPlateRequest}" buttonName2="Approve"
   handler2="#{logic.approveNumberPlateRequest}">
</ic:motorbike.number.plate.MotorbikeNumberApprove>
Comment

PREVIOUS NEXT
Code Example
Html :: pass a method to composite jsf 
Html :: extend in html django 
Html :: angular.io hide 
Html :: meta responsive 
Html :: font awesome thumbs up icon 
Html :: html radio button checked by default 
Html :: auto year in html 
Html :: [(ngModel)] in a select 
Html :: how to add google icons in html 
Html :: html base 
Html :: What is the browser default background color for selected text 
Html :: html form 
Html :: question mark html 
Html :: html submit button 
Html :: how to create a search bar like google in html 
Html :: how to make a link in html 
Html :: how to enable a button when a checkbox is selected in javascript 
Html :: html csrf token input 
Html :: pyscript python 
Html :: meta colors 
Html :: html show < 
Html :: bootstrap 5 toggle switch 
Html :: htmml 
Html :: change date format in html 
Html :: list html 
Html :: table broken html after change page 
Html :: time element html 
Html :: times html 
Html :: ion input form autocomplete 
Html :: what is the html code of changing color 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =