Key Listener called again and again if I click on Browser's back Button with Activity and Places in GWT -


i creating search page , have use activity , places in gwt. have used key listener when user press enter redirect user on result page. problem when user use browser button , again press enter key listener call twice same if user again click button next time call trice , on. there solution this?

you're adding listener when activity starts never remove (e.g. when activity stops).

the full solution depends how code activity (do reuse activity instances? have separate view activity acting presenter/controller? if so, view singleton, or @ list lives longer activity , can reused activity instance? etc.)


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -