If you going to use the DialogManger to show a new window you would also need
to provide a html page that only contain the information “the Contact name
already exist, please chose another one to add” (or something similar).
Therefor you would need to implement a BrowserPage that contain the location
of this html document. For any interaction in this page (like a “close” or
“okay” button” you also need to create a (very simple) BrowserFunctions.
Long story short: It’s a lot of busy work to solve this with a new HTML page
dialog (and this might also not be the best user expirence). The better, and
probably easier, way would be to use the JavaScriptEvent "showError":
`Browser.run("SarosApi.trigger(‘showError’," + errorMessage + ")"). `
This would show an Message in the current browser (aka in the “open dialog”
like the MainPage). You can find an example in the
SessionWizardPageBrowserFunctions.java (line 64)
If you want more information about this approach you can contact me. There is
also a patch in the review (sadly not yet finished) which will make the usage
of these JavaScriptEvents a lot more easy.
---
** [bugs:#857] Add contact which is already available leads to rename**
**Status:** open
**Group:** OTHER
**Labels:** HTML
**Created:** Tue Aug 18, 2015 02:07 PM UTC by Bastian Sss
**Last Updated:** Mon Nov 09, 2015 11:06 AM UTC
**Owner:** nobody
When you add a contact which is already in your contact list, the contact is
renamed according to the name you chose while adding. Instead, there should be
a prompt or so to say that the contact is already added.
---
Sent from sourceforge.net because dpp-robot@lists.sourceforge.net is subscribed
to https://sourceforge.net/p/dpp/bugs/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/dpp/admin/bugs/options. Or, if this is a mailing
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
DPP-Robot mailing list
DPP-Robot@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-robot