# Button & Icon - different behavior regarding method exec

**URL:** <https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [May 25, 2007, 3:28pm UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666 "2007-05-25T15:28:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_M](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@Florian\_M](https://techcommunity.softwareag.com/u/Florian_M)\
**Post date:** [May 25, 2007, 3:28pm UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666/1 "2007-05-25T15:28:55Z")

</div>

Hi,

currently we are facing the following issue: the execution behavior of an adapter method is different, depending on whether an icon or a button is used:

Example 1: Textfield with icon close to the text field; the user populates the text field, and presses the icon → in the adapter method the value provided by the user is not synchronized when executing the method → null will be the value of the field in the adapter representation. Only if a “tab” for instance is executed after populating the field, the value will be available in the method… ☹

Example 2: a button is used instead of the icon → synchronizatrion of field value to the adapter works fine, value is available when executing the method!

Now the question: is there a way of changin this dangerous behavior of icons? Is this behavior “wanted” for some reason? Did anybody manage to create a workaround for this issue?

Thanx, Florian!

---

<div class="post-metadata">

**Author:** ![Martin\_Grumann](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Martin\_Grumann](https://techcommunity.softwareag.com/u/Martin_Grumann)\
**Post date:** [May 23, 2007, 8:57am UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666/2 "2007-05-23T08:57:23Z")

</div>

Hi Florian,

just for understand: does the textfield have own flush behavior (ie do you use FLUSH attribute)?. An XML snippet (textfield,icon) would be great…

Martin

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 25, 2007, 3:58pm UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666/3 "2007-05-25T15:58:34Z")

</div>

Hi Martin,

no - the field is used with the “default” behavior. Actually I forgot to mention the most important point regarding this issue in my last post: the behavior occurs only if the focus is still in the field, in other words if the cursor “is still blinking in the field…”;

all the other fields are synchronized perfectly - sorry for not having mentioned this…

we tried all types of flush behaviors for the “blinking” field, but none of them solves the problem.

Cheers, Florian!

---

<div class="post-metadata">

**Author:** ![Martin\_Grumann](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Martin\_Grumann](https://techcommunity.softwareag.com/u/Martin_Grumann)\
**Post date:** [May 25, 2007, 8:47pm UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666/4 "2007-05-25T20:47:55Z")

</div>

…okay! - it is very likely that your problem is solved after applying Update package 2 for version 2.3. Download is available at “servLine24” - the SAG support and service system.

Hope it helps! Martin

---

<div class="post-metadata">

**Author:** ![Florian\_M](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@Florian\_M](https://techcommunity.softwareag.com/u/Florian_M)\
**Post date:** [May 30, 2007, 11:39am UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666/5 "2007-05-30T11:39:50Z")

</div>

…great patch! Martin, your help really saved us lots of time - thank you!

Cheers, Florian…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/button-icon-different-behavior-regarding-method-exec/57666/6 "2021-04-02T14:38:47Z")

</div>


