Skip to content

Instantly share code, notes, and snippets.

@Rokko11

Rokko11/child.xhtml

Created Dec 10, 2015
Embed
What would you like to do?
Not typesafe ui:param
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<ui:define name="columns">
<!-- At this like, the IDE does not know the type of "key". So autocompletion and refactorings of "property" will fail. -->
<h:outputText value="#{key.property}"/>
</ui:define>
</ui:composition>
<ui:include src="test.xhtml">
<ui:param name="key" value="#{value}"/>
</ui:include>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.