We have thought about a solution approach, which we would present you:

This is the chain of calls, if you add a new contact with the HTML GUI:
        de.fu_berlin.inf.dpp.ui.frontend\html\js\views\.js: addContact();
        → de.fu_berlin.inf.dpp.ui.frontend\html\js\models\contact.js: create()
        → de.fu_berlin.inf.dpp.ui.frontend\html\js\saros-api.js: addContact()
        → de.fu_berlin.inf.dpp.ui.core_facades.StateFacade.java: addContact()

The last called function is a java function. Because the HTML code is written 
only for view and to add a contact is a business logic task, we fix the problem 
in the java function. There we ask if this contact is already existing. If yes, 
it would open a message dialog like "Contact exists already: " +  [jid]" with 
the swing function JoptionPane.showMessageDialog(). If not, the contact will be 
added.

If the approach fits to conventions and other rules of the project we would 
implement it. We will be also happy about suggestions for improvement.


---

** [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:** Tue Nov 03, 2015 01:45 PM 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.
------------------------------------------------------------------------------
_______________________________________________
DPP-Robot mailing list
DPP-Robot@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-robot

Reply via email to