Search
 
SCRIPT & CODE EXAMPLE
 

HTML

accept method 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 :: nuxt cursor focus 
Html :: accept method jsf component 
Html :: use of extends in html django 
Html :: angular.io hide 
Html :: link new tab html 
Html :: bootstrap Badges Contextual variations 
Html :: tailwind image text 
Html :: html make page not zoomable 
Html :: how to embed an image in html 
Html :: bs bg color 
Html :: iframe maps 
Html :: html color gold hex 
Html :: show location on google map using latitude and longitude web html 
Html :: sort table in html 
Html :: HTML5 Option Groups 
Html :: onclick nothing 
Html :: bootstrap colored link 
Html :: tailwind css checkbox 
Html :: html how to make element focusable 
Html :: android location access 
Html :: html color names 
Html :: call modal by id href 
Html :: html meta tags for seo 
Html :: input number limit digits 
Html :: button disabled ionic 
Html :: html downloading a file 
Html :: laravel hide html tags 
Html :: html samp 
Html :: how to add two radio button in html 
Html :: javascript change the number of range on change 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =