-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using "" in @NotifyChange. Folliwing is scenario I am facing problem: I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange(""). It is creating problem when I selected an item from combobox and it first call setter for selectedFilter() and then command "filterItems" is executed but because of using "*" wildcard in @NotifyChange it is triggering the same event second time but the filters are cleared this time so the output is not as expected. If anybody face the same problem, or suggestions are welcome.
2 | No.2 Revision |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using "" in @NotifyChange. Folliwing is scenario I am facing problem: I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange(""). It is creating problem when I selected an item from combobox and it first call setter for selectedFilter() and then command "filterItems" is executed but because of using "*" wildcard in @NotifyChange it is triggering the same event second time but the filters are cleared this time so the output is not as expected. If anybody face the same problem, or suggestions are welcome.
3 | No.3 Revision |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using ""
"*" in @NotifyChange. Folliwing is scenario I am facing
problem:problem:
I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange("*").
<combobox selectedItem="@bind(vm.selectedFilter)"
value="Show All Items" model="@load(vm.itemCategoriesForSearch)"
onChange="@command('filterItems')">
<template name="model">
<comboitem label="${each.name}" />
</template>
</combobox>
and VM code is :
@NotifyChange(""). ")
@Command
public void filterMenuItems()
{
// code to filter items
}
It is creating problem when I selected an item from combobox and it first call setter for selectedFilter() and then command "filterItems" is executed but because of using "*" "" wildcard in @NotifyChange it is triggering the same event second time but the filters are cleared this time so the output is not as expected.
If anybody face the same problem, or suggestions are welcome.
4 | No.4 Revision |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using
"*" in @NotifyChange. Folliwing is scenario I am facing problem:
I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange("*").
<combobox selectedItem="@bind(vm.selectedFilter)"
value="Show All Items" model="@load(vm.itemCategoriesForSearch)"
onChange="@command('filterItems')">
<template name="model">
<comboitem label="${each.name}" />
</template>
</combobox>
and VM code is :
@NotifyChange("") @Command public
void@NotifyChange("*") @Command public
5 | No.5 Revision |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using
"*" in @NotifyChange. Folliwing is scenario I am facing problem:
I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange("*").
<combobox selectedItem="@bind(vm.selectedFilter)"
value="Show All Items" model="@load(vm.itemCategoriesForSearch)"
onChange="@command('filterItems')">
<template name="model">
<comboitem label="${each.name}" />
</template>
</combobox>
</combobox>
and VM code is :as follows:
@NotifyChange("*") @Command public void filterMenuItems() { // code to filter items
}
It is creating problem when I selected an item from combobox and it first call setter for selectedFilter() and then command "filterItems" is executed but because of using "*" wildcard in @NotifyChange it is triggering the same event second time but the filters are cleared this time so the output is not as expected.
If anybody face the same problem, or suggestions are welcome.
6 | No.6 Revision |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using
"*" in @NotifyChange. Folliwing is scenario I am facing problem:
I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange("*").
<combobox selectedItem="@bind(vm.selectedFilter)"
value="Show All Items" model="@load(vm.itemCategoriesForSearch)"
onChange="@command('filterItems')">
<template name="model">
<comboitem label="${each.name}" />
</template>
</combobox>
and VM code is as follows:
@NotifyChange("*") @Command public
It is creating problem when I selected an item from combobox and it first call setter for selectedFilter() and then command "filterItems" is executed but because of using "*" wildcard in @NotifyChange it is triggering the same event second time but the filters are cleared this time so the output is not as expected.
If anybody face the same problem, or suggestions are welcome.
7 | No.7 Revision |
I have upgraded my zk project from zk 7.0.2 to 8.5.0 and I have faced a problem while using
"*" in @NotifyChange. Folliwing is scenario I am facing problem:
I am using combobox and bind a property with selectedItem="@bind(vm.selectedFilter)" and calling a command onChange="@command('filterItems')" and above filterItems command I am using @NotifyChange("*").
<combobox selectedItem="@bind(vm.selectedFilter)"
value="Show All Items" model="@load(vm.itemCategoriesForSearch)"
onChange="@command('filterItems')">
<template name="model">
<comboitem label="${each.name}" />
</template>
</combobox>
and VM code is as follows:
@NotifyChange("*") @Command public
@Command
public void filterMenuItems() {
// code to filter items
}
It is creating problem when I selected an item from combobox and it first call setter for selectedFilter() and then command "filterItems" is executed but because of using "*" wildcard in @NotifyChange it is triggering the same event second time but the filters are cleared this time so the output is not as expected.
If anybody face the same problem, or suggestions are welcome.