i have the following problem: I have a view and added some buttons to the toolbar of the view. Now i want that the text of the buttons changing when the button was pressed, i.e. the text of the button is "login" and after pressing the button, the text should be "logout". I tried to use the IElementupdater, but i have the problem that my button is disappearing when i press it. I also added the Command to my Filemenu, there it works properly. What can i do? Here is the simple Handler code:

T. Wilhelm wrote:
> Hey all,
>
> i have the following problem: I have a view and added some buttons to
> the toolbar of the view. Now i want that the text of the buttons
> changing when the button was pressed, i.e. the text of the button is
> "login" and after pressing the button, the text should be "logout". I
> tried to use the IElementupdater, but i have the problem that my button
> is disappearing when i press it. I also added the Command to my
> Filemenu, there it works properly. What can i do? Here is the simple
> Handler code:
>
>
> public class TestHandler extends AbstractHandler implements
> IElementUpdater {
> @Override
> public Object execute( ExecutionEvent event) throws ExecutionException {
> System.out.println("TestHandler.execute()");
> return null;
> }
> @Override
> public void updateElement( UIElement element, Map parameters) {
> element.setText("Another text");
> }
> }

I think you're seeing a layout problem. What if you try starting with
"loginhexadecimal" and then switch to "logout"?

T. Wilhelm wrote:
> Hi Paul,
>
> i also thought about a Layout problem, and so i tried it like you
> mentioned with "LoginHexadecimal" and "Logout". Well it worked, but
> thats no adequate solution or workaround. Is there a way to force the
> toolbar to layout() again ? Any other idea?