You need to sign in to do that
Don't have an account?
fehays-wbsn
pageBlock facet header cannot contain apex component
Hi,
I'm trying to put an apex:selectList inside the header facet of a pageBlock and it doesn't appear to work. Is this something I should be able to do?
Thanks.
Hello fehays-wbsn;
I think this can be a bug of salesforce when rendering apex:facet component. You may overcome this problem by placing the <table> inside the <apex:form> as below.
All Answers
Hello fehays-wbsn;
You can insert a selectList inside the header facet as below.
Page:
Controller:(Example)
I see that does work. It turns out, that my problem has something to do with the selectList being inside of a table.
My page looks like this:
This causes the page to break and the select is not rendered. Any idea why that wouldn't work?
Hello fehays-wbsn;
I think this can be a bug of salesforce when rendering apex:facet component. You may overcome this problem by placing the <table> inside the <apex:form> as below.
Yep that worked. Thank you!