Skip to content

Instantly share code, notes, and snippets.

@Rokko11
Created December 10, 2015 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rokko11/5f9f033c9c846c60a1e2 to your computer and use it in GitHub Desktop.
Save Rokko11/5f9f033c9c846c60a1e2 to your computer and use it in GitHub Desktop.
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