Skip to content

Instantly share code, notes, and snippets.

@joaocarloscabral
Last active August 29, 2015 14:17
Show Gist options
  • Save joaocarloscabral/d9f26c2a27a77b8a72f1 to your computer and use it in GitHub Desktop.
Save joaocarloscabral/d9f26c2a27a77b8a72f1 to your computer and use it in GitHub Desktop.
tripfaces xhtml example
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:trip="http://tripfaces.org/components"
template="../templates/template.xhtml">
...
<trip:tour widgetVar="trip" >
<trip:message value="#{messages.hi_my_name_tripfaces}" target="title" />
</trip:tour>
...
<h:outputText id="title" value="#{messages.hello_tripfaces}"/>
<h:commandButton value="#{messages.start_trip}" type="button" onclick="trip.start()"/>
</ui:composition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment