We all know the difference between build time and render time. It is definitely not a great idea to put a <ui:include>
tag (build time) inside a <ui:repeat>
(render time), but is the opposite okay to do? Can we use <ui:repeat>
inside a <ui:include>
?
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- h:selectOneMenu in p:dataTable doesn't submit
- PrimeFaces block UI does not work when the compone
- primefaces orderlist not getting updated with the
- JSF2 composite cc.attrs expression does not evalua
相关文章
- How to allow numbers only using f:validateRegex
- JSF 2.0: ajax request when press ENTER
- Formatting a double in JSF
- f:convertNumber on Double: ClassCastException
- SeamPhaseListener - Could not start transaction -
- How do I access EJB bean when inside a custom Conv
- Getting value from dynamically created inputText
- JSF 2.0 javascript onload/oncomplete
Both ways are OK.
This is not true. You can safely do so. The only limitation is that you can't use the
var
of<ui:repeat>
insidesrc
of<ui:include>
. In other words, the following approach will not work:This will only work when you replace
<ui:repeat>
by<c:forEach>
.But if you are not doing that, e.g.
Then there is no problem. Everything will work just fine.
You can also safely do so. If you face a problem, just press "Ask Question" button on right top.
See also: