You need to sign in to do that
Don't have an account?
Lightning User
error handling
Hi,
Is there a way to not render a component if there is something in the apex:messages? Thanks.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi,
Is there a way to not render a component if there is something in the apex:messages? Thanks.
You can use dic parameter and hide the compoenets on the exception or error and rerender the page.
What are you trying do?
Well I got the error printed in <apex:messages> but I only want to show what's in <apex:messages> if there is something in there. I'm trying to hide a <apex:pageBlock> if there is something in <apex:messages>
If it helps to give me a solution the error is the result of a query on page load that has no records.
Did you tried adding the return statement once exception occurs?
The error happens in the constructor so I can't return anything
I've figured it out, thanks for trying to help.