You need to sign in to do that
Don't have an account?

IDs and pageBlockButtons
This is a pretty minor issue but thougt I'd post anyway...
If I have a commandButton inside a pageBlockButtons section of a pageBlock with location left to the default of "both" then any ID I give the commandButton will be the same on the top button as the bottom button.
This is invalid HTML and means that I can't access that button from javascript. IE and FF both behave much the same - they don't complain, but pick the top button only.
Anybody have a workaround?
Thanks
Kenny
If I have a commandButton inside a pageBlockButtons section of a pageBlock with location left to the default of "both" then any ID I give the commandButton will be the same on the top button as the bottom button.
This is invalid HTML and means that I can't access that button from javascript. IE and FF both behave much the same - they don't complain, but pick the top button only.
Anybody have a workaround?
Thanks
Kenny
Why not use two pageBlockButtons?
then you can access both "thePage:theForm:theBlock:theButtons:clickMe" and "thePage:theForm:theBlock:theBottomButtons:clickMe".