Roland's Microblog
  • Login
Personal instance, for family and real-life friends. If you want an account, consider running own instance to enlarge and decentralize the network.
  • Public

    • Public
    • Network
    • Groups
    • Recent tags
    • Popular
    • People

Roland Häder (roland)'s status on Wednesday, 24-Aug-2016 11:48:16 CEST

  1. Roland Häder (roland)'s status on Wednesday, 24-Aug-2016 11:48:16 CEST Roland Häder Roland Häder
    • Java
    • Roland Häder
    Improving my !java #javaee application by replacing ...

    <h:outputText styleClass="errors" value="#{msg.ADMIN_LIST_LAND_LINE_EMPTY}" rendered="#{phoneController.allLandLineNumbers().isEmpty()}" />

    ... with ...

    <ui:fragment rendered="#{phoneController.allLandLineNumbers().isEmpty()}">
    <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
    <ui:param name="message" value="#{msg.ADMIN_LIST_LAND_LINE_EMPTY}" />
    <ui:param name="styleClass" value="errors" />
    </ui:include>
    </ui:fragment>

    Yes, the ugly ui:fragment is being (ab-)used here. But as I wrote before, I'm in big need of a #JSF tag that only renders the body, if "rendered" equals true.
    Wednesday, 24-Aug-2016 11:48:16 CEST from web permalink

Feeds

  • Activity Streams
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Roland's Microblog is a social network, courtesy of Mailer-Project. It runs on GNU social, version 1.2.0-beta4, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Roland's Microblog content and data are available under the Creative Commons Attribution 3.0 license.