Search
 
SCRIPT & CODE EXAMPLE
 

HTML

pass 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 method to composite jsf component 
Html :: Website Navbar / Menu Links with Sub menu odoo 
Html :: html h1 not show 
Html :: html numeric keyboard 
Html :: upload only img 
Html :: Multibyte string input conversion in PHP is active and must be disabled 
Html :: metaverse 
Html :: turn of blur html canvas 
Html :: [(ngModel)] in a select 
Html :: foreach jstl 
Html :: html image tag 
Html :: html not displaying 
Html :: meta initial scale 
Html :: am pm time html javascript 
Html :: ionic vertical align center 
Html :: what is dir attribute in html 
Html :: html structure 
Html :: html error page template 
Html :: select empty option 
Html :: predefine data list in input tag 
Html :: check button html 
Html :: twig format currency 
Html :: href add delay 
Html :: how to summon an entity with a tag 
Html :: django base html 
Html :: html link tag for other website 
Html :: html align text left 
Html :: thymeleaf input radio checked 
Html :: ion input password 
Html :: embed maps responsive 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =