2

I'm trying to understand this code, which was written in a custom component for VF page.

I didn't understand the usage of rendered attribute in output panel with "{!!" . Usually we use only one exclamatory '!' for retrieving the value.

I tried in google, but didn't get any thing regarding this. can someone help me out

    <div class="modal fade" style="display: none; width: 70% !important">
          <apex:outputPanel styleClass="header" layout="block" rendered="{!!movingFavoritesBetweenLists}">
              Search and Add Favorites
          </apex:outputPanel>
2

The {! } is the merge field syntax which gets the value from the controller. The other ! is used to negate a Boolean value.

So, in your example, rendered="{!!movingFavoritesBetweenLists}" means that the apex:outputPanel is rendered if movingFavoritesBetweenLists is false.

  • Thanks martin. That really didn't strike to my mind. Once I read your answer, it looks like a small one. Thank you very much.. – Krishna N Sep 1 '15 at 7:07
  • @KrishnaN No problem. glad to help. – martin Sep 1 '15 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.