PHP tag library

PHP tag library is engine that implement JSF technology in PHP. Here is example which shows how to use it. Download all files from here

Name View Code
Label First name <h:outputText value="First name"/>
Input text enter John or Bil   <h:inputText value="#{searchAction.firstName}" />
Command button <h:commandButton action="#{searchAction.search()}"/>
Command link Szukaj <h:commandLink action="#{searchAction.search()}">Szukaj</a>
Repeat
John Smith Warsaw
John Kowalski Krakow
Bil Clinton Washington
<table border="1"> <c:repeat var="item" items="#{searchAction.items}">
<tr>
<td><h:outputText value="#{item.firstName}"/></td>
<td><h:outputText value="#{item.lastName}"/></td>
<td><h:outputText value="#{item.city}"/></td>
<td><h:commandButton action="#{searchAction.delete(item.id)}" value="delete"/></td>
</tr>
</c:repeat>
</table>
Calendar <h:calendar id="cal" value="#{searchAction.date}" />
Modal panel
Open dialog
<h:modalPanel var="dialog" title="Title" width="300">
    <h:commandButton value="close" onClick="dialog.close();return false;" style="float:right"/>
</h:modalPanel>
<a href="javascript:dialog.open()" >Open dialog</a>


And here is php component: