I open a popup using the jsf command button. After closing the popup, when I click the same button again, I cannot open the popup. So when I click the same button twice, I cannot open it. When I debug and look at it, the debug point does not fall into the method. What could be the reason for this? How can I solve this?
My commandButton:
<a4j:commandButton id="me_ge_knowledge" value="Knowledge"
actionListener="#{knowledgeBean.setPkByPage(column.id)}"
render="knowledgePopup"
oncomplete="#{rich:component('mt_knowledge_popup')}.show();">
</a4j:commandButton>
Related
When I cilck on a button on main toolbar, I am displaying a popup form (PXSmartPanel) with few fields on it. Whenever I click on the main toolbar button, I want first the control should go to the popup form and based on buttons on popup form (Ok/Cancel), it should perform the action.
However, I tried that but eventually when I click on button on main toolbar, it first executes the code behind for that button and then shows popup.
Any suggestions?
Found the solution. You can use AskExt method of your DAC class to show popup first and then execute your code.
You can also use px:PXSmartPanel with AskExt. With help of PXSmartPanel you can customize your screen, and even add some buttons to your pop up. Here I wrote "short" manual how to do it.
I m automating a page where there is a popup and on that there is radio button and a submit button, when i click on radio button my test fail giving error that hidden object cannot be performed action like click but its visible (not hidden) where as when i click on submit button on same popup is click. i have checked its properties but there is nothing which i can change it just have simple id,name,value which is changing dynamicly and for that i have even used regex
please help me out
Thanks
It's possible that there is another radio button on the page with similar properties. Is this a recorded object? Is the popup window listed as the parent?
Can you post the Regex you are using, the control's properties, and the properties of the popup window?
if your are using IE whose version is > 9.0.19 then there was a patch release by Microsoft to overcome this issue
http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/17/coded-ui-mtm-issues-on-internet-explorer-with-kb2870699.aspx
Hi I am facing the problem on ICS like dialog is dismissed when we click outside dialog window, due to which I am getting problem like I don't get any confirmation from user.
Please help.
Check this method from the Android Developers site for dialog.
Try using the
dialog.setCanceledOnTouchOutside (boolean cancel)
Pass a boolean value to enable/disable dialog behaviour when touched outside of the dialog window.
Also go through these links:
How do I fire an event when click occurs outside a dialog
How to cancel an Dialog themed like Activity when touched outside the window?
I hope this answers your question.
You may use
dialog.setCancelable(true/false);
OR
dialog.setCanceledOnTouchOutside(true/false);
For the latest vesrions of Android;
It will disable outSideTouching event.
dialog.setCancelable(false)
Dialog CAN NOT cancel when touch out side OR press BACK key
dialog.setCanceledOnTouchOutside(false)
Dialog CAN NOT cancel when touched outside BUT ABLE to canceled when press BACK key
<p:commandButton id="cmdCancel" value="#{label.cancel}" action="cancel"/>
<p:hotkey bind="Alt+C" action="cancel" />
Hi ,
I have one button cancel and i binded it to short cut key "Alt+C" (refer above code) in prime faces.
And when i use press short cut key "Alt+C", it perform the cancel action and
but it also open the browser favorites menu on pressing the "Alt+C".
How can i stop this opening browser operation?Please suggest me any solution,.......
I guess that you simply can not override some of the browser's hardwired default hotkeys.
Think of pressing Alt+F4 to close the browser window etc.
Even the normal HTML hotkey attribute is not guaranteed to work if the browser already does something else when pressing the hotkey combination.
My answer is thus; Do not rely on hotkeys in a website to work at all.
When I click a commandButton, I would like to execute some js to switch the current tab panel to another tab panel. My tabPanel is switchType="client".
You can use
RichFaces.switchTab('tabPanelId','tabLabel','tabId') method to change tabs.
Detailed information can be found here