Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个返回字符串的方法。我想在我的 JSF 页面上显示它。我如何在不设置属性的情况下做到这一点,因为输出是基于方法输入生成的?
您可以像这样在页面上显示一个字符串;
<h:outputText value="#{backingBean.yourString}"/>