Trying to save user profile picture does not work this way

2017-01-24 Thread Olar Andrei
Hello, I have an app where each user can have a profile picture. When the user first registers a new standard profile picture will be set for him which will be editable. So I am creating the profile picture after the registration as shown below: String femalePicture =

Re: Is there a possiblity to display a message on the page you are redirected to?

2016-12-16 Thread Olar Andrei
; Hope that helps > > Vassilis > > > > > > On Sat, Dec 17, 2016 at 12:22 AM, Olar Andrei <olarand...@gmail.com> > wrote: > >> Hello, >> >> I have this small example. I am on the user page. In the constructor the >> UserInfo

Is there a possiblity to display a message on the page you are redirected to?

2016-12-16 Thread Olar Andrei
Hello, I have this small example. I am on the user page. In the constructor the UserInfo object is set. If something happens I want to redirect back to the login page, which I do like in the example below. Is there a possibility to display a message back on the login page like "An error

Re: How to make sure object is set before initWidget()

2016-12-14 Thread Olar Andrei
Hello, I have done like you said it. But I have another problem now. As you can see the setUsername() method sets the username, and by using a simple alert I've checked and it's correct. BUT that method does not get called before the constructor, that means that initWidget() gets called

Re: How to make sure object is set before initWidget()

2016-12-12 Thread Olar Andrei
After you have called the RPC, you then set the ui elements. > > for e.g. > private void setMenu(UserInfo userInfo) { > label.setName(userInfo.getName()); > } > > > > > > On Monday, December 12, 2016 at 5:05:08 PM UTC-5, Olar Andrei wrote: >> >> Hello, &

Re: How to make sure object is set before initWidget()

2016-12-12 Thread Olar Andrei
Hello, It does not work like this, I've already tried. It says "Error: java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()" because my class extends Composite (I forgot to mention it). Like it is

How to make sure object is set before initWidget()

2016-12-12 Thread Olar Andrei
Hello, I'm creating a menu, and I basically need my UserInfo object already set (based on the username) before creating the menu and doing the initWidget(). Basically I have the username, and based on this, I query the DB and get everything else based on that username. But I am using an RPC

Got UmbrellaException when trying to show loading screen on async login processing using MaterialLoading

2016-12-09 Thread Olar Andrei
Hello, I have a little problem here, which I try to figure out why it is happening. I use GWT Material Design in my project, and I just wanted to show a loading screen while the login is being processed, but I get an UmbrellaException, and the loading icon just spins there forever... If I

Re: Adding Material Design Inherits elements to already existing vanilla GWT project changes the main look of the application

2016-11-28 Thread Olar Andrei
@Jens If that is the case (can't check right now), is there a possibility to disable that? Beacause I just want to redraw the login and register screen using MD. The main app I want to stay the same using vanilla gwt. -- You received this message because you are subscribed to the Google

Adding Material Design Inherits elements to already existing vanilla GWT project changes the main look of the application

2016-11-28 Thread Olar Andrei
Hello everybody, Today I'm trying to integrate GWT Material Design into my project. I already have an existing vanilla GWT project to which I wish to add some other look and feel by using MD. I have added all the necessary depencies in my pom file and I have also added these lines in the

Update conversation by displaying new messages when they are sent

2016-09-20 Thread Olar Andrei
Hello, In my GWT application I have a messaging system integrated within. When a specific conversation gets opened, a query runs and selects all messages available for this conversation. From the same view you can reply to that conversation. When replying, the other user has to click a small

Adjust DB structure to support filtering conversations and deleting them

2016-09-18 Thread Olar Andrei
I know this is not a specific GWT question, but I have an issue. I have a GWT application, which has a conversation system integrated within. To this conversation system, I have the following DB structure. create table if not exists conversation( id int(11) PRIMARY KEY AUTO_INCREMENT,

Re: Do something when clicking on suggestion

2016-09-16 Thread Olar Andrei
Yes, that works. I thought I need to extend SuggestBox.DefaultSuggestionDisplay, but seems it's not needed. Thank you very much. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Do something when clicking on suggestion

2016-09-16 Thread Olar Andrei
Hi Eddy, No, that is not my problem. The method getDBSuggestions() is implemented and returns the desired results. It returns conversations from the DB. My problem is that I want something to happen (open the specific conversation) when clicking on the desired suggestion. Like for example the

Do something when clicking on suggestion

2016-09-15 Thread Olar Andrei
Hello everybody, I have sort of a conversation system integrated in my application. The class ConversationWidget represents the main widget for the conversation system. Somewhere there I have a suggestion box, which I want to use to search through all the available conversations based on some

Re: Access specific link from dynamically build FlexTable

2016-08-08 Thread Olar Andrei
Yes, that is not what I expected, but thank you for your suggestion. I will take it later into consideration. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Access specific link from dynamically build FlexTable

2016-08-07 Thread Olar Andrei
Hello, I have to implement a messaging system for my application. I want all my conversations to be visible and the user should select one of those to open. I'm creating a FlexTable from a List of Conversations returned to me via RPC. My ideea to select one conversation of all available was to

Advice for implementing a messaging system

2016-06-15 Thread Olar Andrei
Hello I want to implement a messaging system for my application. My application has users, who connect based on a username and password. I want to make them able to send messages one to another. I would like to know what ways/steps how this could be implemented. For now I only got one ideea,

Re: How to make my app more secure. URL token

2016-06-08 Thread Olar Andrei
Well, thanks everybody. I will implement this asap. I thought there might be another way, then to validateing the hash or the username. luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris: > > Hello, > > For now my aplication (MVP) has a login page, and 2 other palces, the

Re: How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
:47:47 UTC+3, Olar Andrei a scris: > > Hello, > > For now my aplication (MVP) has a login page, and 2 other palces, the > AdminPlace and the UserPlace. > My URL looks like this: > > http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin > > The login form con

Re: How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
w should I change this ? luni, 6 iunie 2016, 14:47:47 UTC+3, Olar Andrei a scris: > > Hello, > > For now my aplication (MVP) has a login page, and 2 other palces, the > AdminPlace and the UserPlace. > My URL looks like this: > > http://127.0.0.1:/AdministrareBl

How to make my app more secure. URL token

2016-06-06 Thread Olar Andrei
Hello, For now my aplication (MVP) has a login page, and 2 other palces, the AdminPlace and the UserPlace. My URL looks like this: http://127.0.0.1:/AdministrareBloc.html#AdminPlace:Admin The login form consists of username and password, where the username is passed as a token to the next

Unable to make loading screen appear

2016-06-06 Thread Olar Andrei
Hello I have created in my HTML a div holding an image like this: ... Loading... ... It has display: block by default, so until my aplication is loaded it stays there. In my onModuleLoad(), after loading is finished, I hide it like this

Re: Getting username from url only works after refresh

2016-06-01 Thread Olar Andrei
quot;Where does the UserPlace come from ? " ? Thanks marți, 31 mai 2016, 01:25:10 UTC+3, Olar Andrei a scris: > > My login based application, requires to always know the username of the > logged in user. (MVP) . So I'm getting the username from the url, but when > the page opens after

Re: Getting username from url only works after refresh

2016-06-01 Thread Olar Andrei
I'll take your option into consideration. But for now I'm running out of time and I want to know how to fix the problem specified in my previous post. About the code splitting stuff. Because the browser downloads code before he needs it. marți, 31 mai 2016, 01:25:10 UTC+3, Olar Andrei a scris

Re: Getting username from url only works after refresh

2016-06-01 Thread Olar Andrei
So the page should wait to see if connection was successful, and then download the code, right ? Why isn't this happening ? Thanks in advance marți, 31 mai 2016, 01:25:10 UTC+3, Olar Andrei a scris: > > My login based application, requires to always know the username of the >

Re: Getting username from url only works after refresh

2016-05-31 Thread Olar Andrei
Ok. Then let me be a little more precise. How do you normally pass a variable between 2 places. How should i access my username from the UserViewImpl knowing the facts above ? I've tried using History.getToken(), and when the page gets loaded the username does not appear (i have a widget

Re: Getting username from url only works after refresh

2016-05-31 Thread Olar Andrei
UserView { ... public UserViewImpl() { Widget mainMenu = createMenu(); initWidget(mainMenu); } ... } How can I access the username I send from my *LoginViewImpl *like shown above in my* UserViewImpl ? * Thanks in advance marți, 31 mai 2016, 01:25:10 UTC+3, Olar Andrei a scris

Getting username from url only works after refresh

2016-05-30 Thread Olar Andrei
My login based application, requires to always know the username of the logged in user. (MVP) . So I'm getting the username from the url, but when the page opens after the login succeeded, I can't get the username from the url, because it does not appear to exists, but it is there. It only

Need help with an ideea on file processing

2016-05-16 Thread Olar Andrei
Hello, I have a application, which has 2 main places. The AdminPlace, for the admin, and the UserPlace for the Users. I made a helper class, which generates html from excel, which I want to use it like this: The admin uploads an excel file, from which html code gets generated and displayed in

Re: Sorting cell table columns populated from gwt rpc not working

2016-05-13 Thread Olar Andrei
Hello, Thank you. It work perfectly now. Have a nice day, Andrei vineri, 13 mai 2016, 21:12:40 UTC+3, Olar Andrei a scris: > > Hello, I'm pretty new to GWT > > > I have a problem trying to sort specific columns from a cell table, whcih > is populated from the DB, using

Sorting cell table columns populated from gwt rpc not working

2016-05-13 Thread Olar Andrei
Hello, I'm pretty new to GWT I have a problem trying to sort specific columns from a cell table, whcih is populated from the DB, using RPC. Basically I'm trying to sort the family name column alphabetically, and it's just not working. Table gets fully populated, but sorting does not work.

Unable to catch onFailure() GWT AsyncCallback

2016-04-15 Thread Olar Andrei
I am creating an appliaction which requires user authentication. I have one problem when I'm trying to log in. When I type a correct username and password, the onSuccess method is called. But when I type a wrong one, or empty fields, then the onFailure() method is NOT called. I really want

What needs to be done after a successful login

2016-04-11 Thread Olar Andrei
Hello, I'm new to GWT and a I have a problem, which I don't understand quite well. I'm making a GWT application where a user is required to log in. So I do my stuff, by checking the username and password if they match and so on. But, on the onSuccess() method, what needs to be done in order to