2

When I am trying to display page message in vf page I am getting the following issue and that is because of using rendered="true"

Page getting displayed with following code: Displays Scripts

visualforce page code:

        <apex:pageMessage summary="{!myMsg1}" severity="error" strength="2" rendered="true" />

How can I stop getting it?Any solutions?

8
  • have you included that script in your vf page anywhere?
    – Nitin
    Jan 27, 2016 at 9:57
  • could you put your code of entire page?
    – kurunve
    Jan 27, 2016 at 9:58
  • have edited it@ Nitin and kurunve
    – Pril
    Jan 27, 2016 at 10:02
  • @Pril thats not entire page. I am pretty sure that piece, which you put as code here and screenshot have no common part
    – kurunve
    Jan 27, 2016 at 10:17
  • 2
    @Pril problem is that you messed up VF page, especially part with scripts. By some reason, there is <script> tag before <apex:pageMessage ... >. Remove that and it will work better
    – kurunve
    Jan 27, 2016 at 10:38

1 Answer 1

0

I think you have not closed your Script tags .

Please close your Script tags else they are considered as plain texts

<script type="text/javascript" src="/jhefj/kdhefjsgh/jquery"/>

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.