This commit is contained in:
Massimiliano Assante 2022-09-22 17:04:13 +02:00
parent cfeef31ec1
commit caa2570450
6 changed files with 39 additions and 22 deletions

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" output="target/messages-2.5.1/WEB-INF/classes" path="src/main/java"> <classpathentry kind="src" output="target/messages-2.5.3-SNAPSHOT/WEB-INF/classes" path="src/main/java">
<attributes> <attributes>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry excluding="**" kind="src" output="target/messages-2.5.1/WEB-INF/classes" path="src/main/resources"> <classpathentry excluding="**" kind="src" output="target/messages-2.5.3-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
<attributes> <attributes>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
@ -30,11 +30,11 @@
<attribute name="test" value="true"/> <attribute name="test" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="src" output="target/messages-2.5.1/WEB-INF/classes" path="target/generated-sources/gwt"> <classpathentry kind="src" output="target/messages-2.5.3-SNAPSHOT/WEB-INF/classes" path="target/generated-sources/gwt">
<attributes> <attributes>
<attribute name="optional" value="true"/> <attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/> <attribute name="maven.pomderived" value="true"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="output" path="target/messages-2.5.1/WEB-INF/classes"/> <classpathentry kind="output" path="target/messages-2.5.3-SNAPSHOT/WEB-INF/classes"/>
</classpath> </classpath>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> <?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
@ -12,7 +13,8 @@
<wb-module deploy-name="messages"> <wb-module deploy-name="messages">
@ -25,7 +27,8 @@
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
@ -38,7 +41,8 @@
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/> <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
@ -51,7 +55,8 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
@ -64,9 +69,11 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
@ -79,7 +86,8 @@
<property name="java-output-path" value="/message-conversations/target/message-conversations-0.0.1-SNAPSHOT/WEB-INF/classes"/> <property name="java-output-path" value="/message-conversations/target/message-conversations-0.0.1-SNAPSHOT/WEB-INF/classes"/>
@ -92,7 +100,8 @@
<property name="context-root" value="messages"/> <property name="context-root" value="messages"/>
@ -105,7 +114,8 @@
</wb-module> </wb-module>

View File

@ -4,16 +4,19 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v2.5.3-SNAPSHOT] -2 022-09-22
## [v2.5.2] -2022-06-16 - Fix Bug #23898: open with email addresse preset is not working anymore
## [v2.5.2] - 2022-06-16
- Released for removal HL from portal - Released for removal HL from portal
## [v2.5.1] -2021-09-09 ## [v2.5.1] - 2021-09-09
- Fixed attachment issue #21972 - Fixed attachment issue #21972
## [v2.5.0] -2021-07-28 ## [v2.5.0] - 2021-07-28
- Ported to git - Ported to git
@ -21,7 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Temporarely removed possibility to add attachments - Temporarely removed possibility to add attachments
## [v2.4.0] -2019-10-25 ## [v2.4.0] - 2019-10-25
- Bug #17876 the message menu isn't fully displayed if there is only one message or no other messages below - Bug #17876 the message menu isn't fully displayed if there is only one message or no other messages below

View File

@ -13,7 +13,7 @@
<groupId>org.gcube.portets.user</groupId> <groupId>org.gcube.portets.user</groupId>
<artifactId>messages</artifactId> <artifactId>messages</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>2.5.2</version> <version>2.5.3-SNAPSHOT</version>
<description> <description>
gCube Messages Portlet for exchanging messages with other users. gCube Messages Portlet for exchanging messages with other users.
</description> </description>

View File

@ -323,7 +323,8 @@ public class ApplicationView extends Composite {
private void displayNewOrReplyMessage() { private void displayNewOrReplyMessage() {
WRITING_MESSAGE = true; WRITING_MESSAGE = true;
FAB.setVisible(false); FAB.setVisible(false);
messagesCollection.clearActive(); if (messagesCollection != null)
messagesCollection.clearActive();
scrollerPanel.clear(); scrollerPanel.clear();
scrollerPanel.add(newMessageDisplay); scrollerPanel.add(newMessageDisplay);
newMessageDisplay.setFocusOnUsersInput(); newMessageDisplay.setFocusOnUsersInput();
@ -334,7 +335,10 @@ public class ApplicationView extends Composite {
private void prepareNewMessageForSendTo(String[] usernamesToSendTo) { private void prepareNewMessageForSendTo(String[] usernamesToSendTo) {
newMessageDisplay = new WriteMessage(convService, this); newMessageDisplay = new WriteMessage(convService, this);
newMessageDisplay.setNewMessageForSendTo(usernamesToSendTo); newMessageDisplay.setNewMessageForSendTo(usernamesToSendTo);
GWT.log("setNewMessageForSendTo - Done");
displayNewOrReplyMessage(); displayNewOrReplyMessage();
GWT.log("displayNewOrReplyMessage - Done");
} }
@UiHandler("newMessage") @UiHandler("newMessage")

View File

@ -83,7 +83,7 @@ public class WriteMessage extends Composite {
} }
public void setNewMessageForSendTo(String[] usernames) { public void setNewMessageForSendTo(String[] usernames) {
GWT.log("her add the users"); GWT.log("setNewMessageForSendTo - here add the users");
convService.getUsersInfo(usernames, new AsyncCallback<ArrayList<WSUser>>() { convService.getUsersInfo(usernames, new AsyncCallback<ArrayList<WSUser>>() {
@Override @Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
@ -91,7 +91,7 @@ public class WriteMessage extends Composite {
@Override @Override
public void onSuccess(ArrayList<WSUser> result) { public void onSuccess(ArrayList<WSUser> result) {
for (WSUser user : result) { for (WSUser user : result) {
acModal.addItem(new UserSuggestion(user)); acModal.addItem(new UserSuggestion(user));
} }
} }
}); });