dialog

How to disable focus for the first input in a Primefaces Dialog?

拟墨画扇 提交于 2019-12-23 07:22:07
问题 I have a Dialog in my Page, which contains a input field (Date, Calendar) . The problem is that the calendar opens directly after opening the dialog, because the focus is set on the first input. Is there a way to disable focus in Primefaces? 回答1: You can change the default behavior; http://forum.primefaces.org/viewtopic.php?f=3&t=29050 You can always override default behaviors of widgets, for example to prevent calendar focus on dialog opening; PrimeFaces.widget.Dialog.prototype.applyFocus =

Keep activity always on top of stack, or in focus when rogue apps launch activities?

核能气质少年 提交于 2019-12-23 06:55:55
问题 I have a fullscreen immersive activity that has to stay fullscreen until the user explicitly exits. (For example, think of something like watching a Youtube video full screen). However, I've noticed recently that a lot of unwanted activities launching can break my app's behaviour. For example, many shady "free apps" tend to generate full-screen transparent activities and show ads, disrupting the user immediately. "Full screen" notification popups from certain apps which are actually full

Get XP to automatically “press” the default button on a dialog box

无人久伴 提交于 2019-12-23 05:41:32
问题 Some time ago, I came across an online article that described how to configure Windows XP to automatically accept the default option on a dialog box. As I (vaguely) recall, it was some sort of oddball registry configuration that did this, and it amazingly worked. Yeah - it's dangerous, but it would be very helpful right now with a problem where I'm trying to run Windows XP in an unattended situation. I'm trying to suppress any kind of interaction. So if you can point me to the magic

What are Android dialog notifications?

徘徊边缘 提交于 2019-12-23 05:29:49
问题 I read an article that said there are 3 types of notification in Android: Toast notifications Status bar notifications Dialog notifications I know what status bar notification and toast notifications are, but I don't know about dialog notifications. Can anyone give me an example? 回答1: A dialog notification is: A dialog is usually a small window that appears in front of the current Activity. The underlying Activity loses focus and the dialog accepts all user interaction. Dialogs are normally

Android Dialog - confused

一曲冷凌霜 提交于 2019-12-23 05:00:42
问题 I've been trying to get a handle on Dialogs. I read the android dev site info and a dozen bolg's. It seems there are several ways of doing it and I'm able to at least get a dialog with 3 buttons (not using a custom dialog with custom layout). If I set up the positive/negative/neutral actions with something like finish(), cancel() etc, it works with those calls. But, what I want to do is have the buttons do something more, if only display a text using a string defined in the Maincode (not a

DialogFragment doesn't show up

拥有回忆 提交于 2019-12-23 04:55:16
问题 At the last, I found what the problem is... If you have a function like this: public void test() { DialogFragment dlg = new LoginDialog(); dlg.show(getSupportFragmentManager(), "login"); } The dialog will only appear when test() finished, I'm not sure if this is the only way Android dialog works but I'll definitely read more on this... Original Question: I'm new to android world, can somebody shed some light? dlg.show() executed without exception but just nothing happens, what should I do to

filter look up in dialog

怎甘沉沦 提交于 2019-12-23 04:47:46
问题 I Have created a dialog in a class, the dialog method is as below static void dialog(Args _args) { Dialog dialog; DialogField dialogFieldCurrentState; DialogField dialogFieldNewState; CustInvoiceTable custInvoiceTable; ; custInvoiceTable = _args.record(); dialog = new Dialog("Change State"); dialogFieldCurrentState = dialog.addField(TypeID(State_LT),"Current State: "); dialogFieldCurrentState.value(custInvoiceTable.State); dialogFieldCurrentState.enabled(false); dialogFieldNewState = dialog

Display Dialog Box when i click on the maps place marker icon?

一笑奈何 提交于 2019-12-23 04:45:16
问题 When I click the certain place in the map in android it shows the alert Dialog ? You want to save the location into particular list for example My place or Favorite so that I can move that place to particular list in. Thanks in Advance...... 回答1: public class MapViewer extends MapActivity { MapView mapView; MapController mapController; GeoPoint mgeoPoint; Drawable marker; MyLocationOverlay mLocationOverlay; MotionEvent e; @Override protected void onCreate(Bundle icicle) { // TODO Auto

how to show dialogs in android taking screen orientation changes into account

懵懂的女人 提交于 2019-12-23 04:40:14
问题 this is driving me crazy. i have read the documentation for creating dialogs in Android and it seems to make sense, except when the screen orientation changes. I have Activity.onCreateDialog() where I create the dialog. I also have Activity.onPrepareDialog() where I prepare the dialog. Then in my Activity.onCreate() method, I call showDialog(id) that's all well and good and behaves properly. now comes the tricky part. I rotate the screen. it destroys the activity and creates a new one.

Open/Save dialog in Chrome browser

ε祈祈猫儿з 提交于 2019-12-23 04:34:38
问题 When the user clicks a link to download a PDF, it is supposed to display a Open/Save dialog box. This feature , am able to see in IE and FF . But Chrome , it directly opens a PDF. While googling for this issue, looks like this has been raised as a bug. Has this bug has been fixed in Chrome browser ? Can anyone tell me how to do this ? 回答1: Serve your file with the Content-Disposition: attachment header. 来源: https://stackoverflow.com/questions/17016842/open-save-dialog-in-chrome-browser