Uploaded image for project: 'ZK JSP'
  1. ZK JSP
  2. ZKJSP-11

When apply a composer, the composer's doBeforeCompose() is never called during creation phase

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None

      Description

      This bug is the root cause of ZK-1542

      Under my test, zuljsp doesn't call a composer's doBeforeCompose(). This will cause @WireVariable not work.

      Affected Version

      since 1.4.1 to 2.1

      Work Around

      Call Selectors.wireVariables() manually in doAfterCompose().

      public class SearchController extends SelectorComposer<Component> {
      
         public void doAfterCompose(Component comp) throws Exception {
       
          	super.doAfterCompose(comp);
          	Selectors.wireVariables(getPage(), this, _resolvers);
       
          }
      
      }
      

            benbai benbai
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: