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 :: html lag on scoll 
Html :: html h1 not show 
Html :: pass a method to composite jsf 
Html :: vue get element by id 
Html :: What is a viewport meta tags 
Html :: json placeholder 
Html :: Call to a member function format() on string 
Html :: 9+15 
Html :: bootstrap diable backround on modal 
Html :: bootstrap 4 button with icon 
Html :: css change font awesome icon color 
Html :: measures have been taken to increase their number. 
Html :: input type phone number 
Html :: how to convert input type file into an icon 
Html :: button functions html 
Html :: ion-select cancel text 
Html :: jQuery script tag to include into HTML 
Html :: disable autocomplete 
Html :: select 
Html :: basic html webpage 
Html :: disabled input fields vue 
Html :: bootstrap position fixed 
Html :: how to make a text box required in html 
Html :: svg xlink 
Html :: how to embed a website in another website 
Html :: html ideas 
Html :: html svg favicon 
Html :: html simbols 
Html :: html for dummies 
Html :: how to add telephone number in html 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =