-
This is probably one of the most frequently asked questions on the Facelets mailing list. Why doesn't my c:forEach tag work correctly? Unfortunately, there are may ways to misuse the jstl tags available in Facelets, so the answer isn't always simple. Here is an explanation of the differences between c:forEach and ui:repeat, along with some examples which will hopefully save you some headaches.
Archive for enero, 2011
links for 2011-01-25
links for 2011-01-24
-
Dynamic Attribute Binding:
This allows the following <crud:edit … eyeColorEnum="#{eyeColors}" eyeColorEnumLabel="label" … /> where eyeColorEnum and eyeColorEnumLabel are not known to the composite template in the backend. This is accomplished via a TagHandler which exposes the attribute in the FaceletsContext (VariableMapper is private and not accessible, has to be a better way than forcing it) to the the FacesContext. This allows the attributes to be references via EL in the composite template.
-
I create a new EAR project into Eclipse by seam-gen with RichFaces support. Then I create a session bean which dynamically generates a HtmlOutputText and a RichFaces HtmlPanel object.
links for 2011-01-18
-
One of the key strengths of JavaServer Faces (JSF) is that not only does it provide substantial technology for easy, out of the box component based J2EE Web applications assembly, but it also is a very flexible API which allows for a wide breadth of customizations in numerous and innovative ways. This article introduces and explores the component developer's experience of building custom JSF user interface (UI) components.
-
The litmus test for a component model is: Can you buy components from third-party vendors and plug them into your application? Similar to the way you can buy visual Swing components, you can buy Java ServerFaces (JSF) components! Need a fancy calendar? You have your choice among open source implementations and commercial components. You now have the option of buying instead of building complex Web-based GUI components.
links for 2011-01-13
-
Unique Key Validation
@UniqueConstraint Annotation does not validate the value of entity field. It will not catch the org.hibernate.exception.ConstraintViolationException.