Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3991

Change window title not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 8.5.1.2
    • Components
    • None

      I've got a window which has id="windowTest". It's a popup window I open with

      Executions.createComponents("~./zul/includes/demande/windowTest.zul", null, args)
      

      In my ViewModel i've got a wire on the window

      @Wire
      Window windowTest
      

      In my AfterCompose I initialize the window title :

      void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
              Selectors.wireComponents(view, this, false)
              windowTest.setTitle("test")
          }
      

      Everything works fine, the popup open with the title "test".

      I've got a button with a command and when I pushed it it does :

      @Command
      public void myCommand() {
      windowTest.setTitle("toto")
      }
      

      The title of the window is now : "tototest"....

            Leon03 Leon03
            pafi pafi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified