• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin


Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We had some help with the following modalPanel popup.
My question is why does rendered = #{rateInfo} ? I cannot reproduce this on other links if I don't understand how they got rateInfo.

<h:outputLink value="#"
id="#{prefix}_shipping_method_link" styleClass="b_popup"
<span>Rates & Information.</span>
<rich:componentControl for="#{prefix}_panel_shippingRates"
attachTo="#{prefix}_shipping_method_link" operation="show"
event="onclick" />
</h:outputLink> </span></p>

<rich:modalPanel id="#{prefix}_panel_shippingRates" width="600"
height="600" styleClass="popup_window" rendered="#{rateInfo}">
<f:facet name="header">
<h:panelGroup id="#{prefix}_panel_shippingRatespg1">
<h3>Shipping Rates & Information</h3>
<f:facet name="controls">
<h:panelGroup id="#{prefix}_panel_shippingRatespg2">
styleClass="hidelink" id="#{prefix}_panel_shippingRateshidelink" />
<rich:componentControl for="#{prefix}_panel_shippingRates"
attachTo="#{prefix}_panel_shippingRateshidelink" operation="hide"
event="onclick" />

<ui:include src="ship_info.xhtml" />
<ui:include src="ship_rate.xhtml" />

<br />
<h:outputLink id="#{prefix}_panel_shippingRatescloselink" value="#">
<rich:componentControl for="#{prefix}_panel_shippingRates"
attachTo="#{prefix}_panel_shippingRatescloselink" operation="hide"
event="onclick" />

Saloon Keeper
Posts: 27876
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're being a little casual in your use of EL. For example, you don't normally say "rendered="#{rateinfo}"", you say "rendered="#{someBean.rateInfo"", where "someBean is a JSF managed bean that has a rateInfo property and therefore a "public boolean isRateInfo()" method.
    Bookmark Topic Watch Topic
  • New Topic