Revision history [back]

click to hide/show revision 1
initial version

answered 2014-09-23 11:50:04 +0800

sathishk gravatar image sathishk

This is my zul file......

<zk xmlns:h="native"> <window id="win" border="none" apply="org.novelerp.controller.DashboardUIController" xmlns:d="&lt;a href=" http:="" www.zkoss.org="" 2005="" zk="" client="" attribute"="">http://www.zkoss.org/2005/zk/client/attribute">

<h:ul> <h:li class="gu no-border" if="${sessionScope.isCRCAdmin}">Billing Plan</h:li> </h:ul>

<tabbox mold="accordion" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') @init('org.novelerp.controller.DashboardUIController')"> <tabs> <tab sclass="gu" id="tabbplan" style="font-size: 13px;" if="${sessionScope.isCustomer}" visible="false">Billing Plan</tab> </tabs> <tabpanels> <tabpanel id="bplanpanel" if="${sessionScope.isCustomer}" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') @init('org.novelerp.controller.DashboardUIController')"> <grid model="@bind(vm.billingPlansList2)" &gt;="" <columns="" sizable="true"> <column label="Billing Date"></column> <column label="Date Description"></column> <column label="MileStone Relavance"></column> <column label="Block"></column> <column label="Billing Status"></column> </columns> <template name="model"> <row> <label value="@bind(each.billingdate)"></label> <label value="@bind(each.datedescription)"></label> <label value="@bind(each.milestonerelavance)"></label> <label value="@bind(each.billingblock)"></label> <label value="@bind(each.billingstatus)"></label> </row> </template> </grid> </tabpanel> </tabpanels>

</tabbox> </window> </zk>

My Controller @NotifyChange("billingPlansList2") @Listen("onClick = #bplanlink") public void billingPlan() { tabbox.setSelectedPanel(bplanpanel); tabfaq.setVisible(false); tabbplan.setVisible(true); billingPlansList2 = new BillingPlanServiceImpl().getBillinPlanList("");

for(BillingPlan bplan : billingPlansList2) { billplan = new BillingPlan(); System.out.println(":bplan.getBillingdate():-"+bplan.getBillingdate()); billplan.setBillingdate(bplan.getBillingdate()); }

BindUtils.postGlobalCommand(null, null, "refresh", null); BindUtils.postNotifyChange(null, null, this, "*");
} @GlobalCommand @NotifyChange("billingPlansList2") public void refresh(){ System.out.println("Enter to refresh global command:-"); }

Please help me.....

This is my zul file......

<zk xmlns:h="native">
 <window id="win" border="none" apply="org.novelerp.controller.DashboardUIController" xmlns:d="&lt;a href=" http:="" www.zkoss.org="" 2005="" zk="" client="" attribute"="">http://www.zkoss.org/2005/zk/client/attribute">

xmlns:d="http://www.zkoss.org/2005/zk/client/attribute"> <div class="dashboard_links" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')"> <h:ul> <h:li class="gu no-border" if="${sessionScope.isCRCAdmin}">Billing Planif="${sessionScope.isCRCAdmin}"> <a id="bplanlink">Billing Plan</a> </h:li> </h:ul>

</div> <tabbox mold="accordion" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')"> <tabs> <tab sclass="gu" id="tabbplan" style="font-size: 13px;" if="${sessionScope.isCustomer}" visible="false">Billing Plan</tab> </tabs> <tabpanels> <tabpanel id="bplanpanel" if="${sessionScope.isCustomer}" apply="org.zkoss.bind.BindComposer" viewmodel="@id('vm') viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')"> <grid model="@bind(vm.billingPlansList2)" &gt;="" <columns="" > <columns sizable="true"> <column label="Billing Date"></column> <column label="Date Description"></column> <column label="MileStone Relavance"></column> <column label="Block"></column> <column label="Billing Status"></column> </columns> <template name="model"> <row> <label value="@bind(each.billingdate)"></label> <label value="@bind(each.datedescription)"></label> <label value="@bind(each.milestonerelavance)"></label> <label value="@bind(each.billingblock)"></label> <label value="@bind(each.billingstatus)"></label> </row> </template> </grid> </tabpanel> </tabpanels>

</tabpanels> </tabbox> </window> </zk>

</zk>

My Controller @NotifyChange("billingPlansList2") @Listen("onClick = #bplanlink") public void billingPlan() billingPlan() { tabbox.setSelectedPanel(bplanpanel); tabfaq.setVisible(false); tabbplan.setVisible(true); billingPlansList2 = new BillingPlanServiceImpl().getBillinPlanList("");

for(BillingPlan

    for (BillingPlan bplan : billingPlansList2)
billingPlansList2) {
 billplan = new BillingPlan();
                System.out.println(":bplan.getBillingdate():-"+bplan.getBillingdate());
        System.out.println(":bplan.getBillingdate():-" + bplan.getBillingdate());
        billplan.setBillingdate(bplan.getBillingdate());
}

} BindUtils.postGlobalCommand(null, null, "refresh", null); BindUtils.postNotifyChange(null, null, this, "*");
"*"); } @GlobalCommand @NotifyChange("billingPlansList2") public void refresh(){ refresh() { System.out.println("Enter to refresh global command:-"); }

}

Please help me.....

This is my zul file......

<zk xmlns:h="native">
    <window id="win" border="none" apply="org.novelerp.controller.DashboardUIController" xmlns:d="http://www.zkoss.org/2005/zk/client/attribute">
        <div class="dashboard_links" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')">
            <h:ul>
                <h:li class="gu no-border" if="${sessionScope.isCRCAdmin}">
                    <a id="bplanlink">Billing Plan</a>
                </h:li>
            </h:ul>
        </div>
        <tabbox mold="accordion" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')">
            <tabs>
                <tab sclass="gu" id="tabbplan" style="font-size: 13px;" if="${sessionScope.isCustomer}" visible="false">Billing Plan</tab>
            </tabs>
            <tabpanels>
                <tabpanel id="bplanpanel" if="${sessionScope.isCustomer}" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')">
                    <grid model="@bind(vm.billingPlansList2)" >
                        <columns sizable="true">
                            <column label="Billing Date"></column>
                            <column label="Date Description"></column>
                            <column label="MileStone Relavance"></column>
                            <column label="Block"></column>
                            <column label="Billing Status"></column>
                        </columns>
                        <template name="model">
                            <row>
                                <label value="@bind(each.billingdate)"></label>
                                <label value="@bind(each.datedescription)"></label>
                                <label value="@bind(each.milestonerelavance)"></label>
                                <label value="@bind(each.billingblock)"></label>
                                <label value="@bind(each.billingstatus)"></label>
                            </row>
                        </template>
                    </grid>
                </tabpanel>
            </tabpanels>

        </tabbox>
    </window>
</zk>

My Controller

@NotifyChange("billingPlansList2")
 @Listen("onClick = #bplanlink")
 public void billingPlan() {
     tabbox.setSelectedPanel(bplanpanel);
     tabfaq.setVisible(false);
     tabbplan.setVisible(true);
     billingPlansList2 = new BillingPlanServiceImpl().getBillinPlanList("");

BillingPlanServiceImpl().getBillinPlanList("");

    for (BillingPlan bplan : billingPlansList2) {
        billplan = new BillingPlan();
        System.out.println(":bplan.getBillingdate():-" + bplan.getBillingdate());
        billplan.setBillingdate(bplan.getBillingdate());
    }

    BindUtils.postGlobalCommand(null, null, "refresh", null);
    BindUtils.postNotifyChange(null, null, this, "*");
}

@GlobalCommand
@NotifyChange("billingPlansList2")
public void refresh() {
    System.out.println("Enter to refresh global command:-");
}

Please help me.....

This is my zul file......

<zk xmlns:h="native">
    <window id="win" border="none" apply="org.novelerp.controller.DashboardUIController" xmlns:d="http://www.zkoss.org/2005/zk/client/attribute">
        <div class="dashboard_links" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')">
            <h:ul>
                <h:li class="gu no-border" if="${sessionScope.isCRCAdmin}">
                    <a id="bplanlink">Billing Plan</a>
                </h:li>
            </h:ul>
        </div>
        <tabbox mold="accordion" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')">
            <tabs>
                <tab sclass="gu" id="tabbplan" style="font-size: 13px;" if="${sessionScope.isCustomer}" visible="false">Billing Plan</tab>
            </tabs>
            <tabpanels>
                <tabpanel id="bplanpanel" if="${sessionScope.isCustomer}" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('org.novelerp.controller.DashboardUIController')">
                    <grid model="@bind(vm.billingPlansList2)" >
                        <columns sizable="true">
                            <column label="Billing Date"></column>
                            <column label="Date Description"></column>
                            <column label="MileStone Relavance"></column>
                            <column label="Block"></column>
                            <column label="Billing Status"></column>
                        </columns>
                        <template name="model">
                            <row>
                                <label value="@bind(each.billingdate)"></label>
                                <label value="@bind(each.datedescription)"></label>
                                <label value="@bind(each.milestonerelavance)"></label>
                                <label value="@bind(each.billingblock)"></label>
                                <label value="@bind(each.billingstatus)"></label>
                            </row>
                        </template>
                    </grid>
                </tabpanel>
            </tabpanels>

        </tabbox>
    </window>
</zk>

My Controller

@NotifyChange("billingPlansList2")
@Listen("onClick = #bplanlink")
public void billingPlan() {
    tabbox.setSelectedPanel(bplanpanel);
    tabfaq.setVisible(false);
    tabbplan.setVisible(true);
    billingPlansList2 = new BillingPlanServiceImpl().getBillinPlanList("");

    for (BillingPlan bplan : billingPlansList2) {
        billplan = new BillingPlan();
        System.out.println(":bplan.getBillingdate():-" + bplan.getBillingdate());
        billplan.setBillingdate(bplan.getBillingdate());
    }

    BindUtils.postGlobalCommand(null, null, "refresh", null);
    BindUtils.postNotifyChange(null, null, this, "*");
}

@GlobalCommand
@NotifyChange("billingPlansList2")
public void refresh() {
    System.out.println("Enter to refresh global command:-");
}

Please help me.....

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More