You need to sign in to do that
Don't have an account?
Simrin
When i click on selectList, i can get values but when i press command button. the search fucntion is not executed at all
Command button not firing properly
<apex:commandButton id="search" styleClass="search" action="{!search}" image="{!URLFOR($Resource.search)}" style=" height: 50px; width: 50px;"> </apex:commandButton> public void search() { system.debug('###'+typeSelected+'#'+category+'#'); }I have two select list aboove in the page.
When i click on selectList, i can get values but when i press command button. the search fucntion is not executed at all
Add reRender it will work .
Else rerender some component which you want to reload .
All Answers
I am just guessing, try changing the method name, Id name and styleclass. I am saying this because I think Search is keyword.
Let me know.
Regards,
Santosh
Can you try by removing styleclass attribute .As both styleclass and style is there in one component it will create problem .
Thanks
Manoj
It seems to be no issue with your commandbutton .Can you paste your complete code here ?
is the command button like feature i was trying, I need command button
Add reRender it will work .
Else rerender some component which you want to reload .