Search
 
SCRIPT & CODE EXAMPLE
 

HTML

pass a method to composite jsf

<!-- 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 :: laser full form 
Html :: js cannot copy entire object 
Html :: html load page at certain point 
Html :: html table cell border not showing 
Html :: html viewport 
Html :: move table tfoot at top 
Html :: html radio button checked by default 
Html :: my dixon earbuds are not in sync 
Html :: calculator template html css 
Html :: tailwind custom inline shadow 
Html :: html table line between rows 
Html :: insert image html 
Html :: html video controls 
Html :: ionic button trigger ion-datetime 
Html :: href on a button 
Html :: how to start a html file 
Html :: excel timestamp to date 
Html :: Dropdown and searchable text 
Html :: nuxt select option v-for 
Html :: html fieldset color background 
Html :: Disable right click on your webpage 
Html :: html color maroon hex 
Html :: how to get image on the tab bar html 
Html :: stop website from overscrolling 
Html :: html code example 
Html :: html not a language 
Html :: html date min max 
Html :: emmet vscode twig 
Html :: la balise center en html 
Html :: font asweome cdn 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =