0

Can It Possible forEach loaded Variable again when i given NotifyChange in a method?

asked 2012-08-19 09:54:59 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hi I am Dispalying ListHeader Dynamically By following code

<listhead  >
				 <listheader forEach="${vm.columns}" >
				 <label value="${each}"   />
				 </listheader>
 
			</listhead>

Can it is possible i can load again the forEach variable on Notifychange. In Java Class i am doing Like this.

Class Level variables
boolean showPopup = false;
String[] columns = new String[] { "Process", "Refrence", "Status" };

@Command("renderedUserSelection")
	@NotifyChange("*")
	public void renderedUserSelection() {
  
  
     columns = new String[] { "Test1 ", "Test2 ", "Test3 " };
     showPopup = false;
    
	 }

But when i am calling this method showPopu changes are Notified in Zul file but not able to change the value of columns variable.Can any tell me how can i resolve this issue?
Thanks

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2012-08-20 12:06:09 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Thanks Vincentjian ,
It worked for me i am trying some more thing if i will get any issue i will ask you
thanks for ur support

link publish delete flag offensive edit

answered 2012-08-20 11:18:36 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2012-08-20 11:18:54 +0800

Hi sjoshi,

You should put children binding in <listhead> and generate multiple <listheader> by template as follows:

<listhead children="@load(vm.list)">
    <template name="children" var="node">
        <listheader label="@load(node)" ></listheader>
    </template>
</listhead>

link publish delete flag offensive edit

answered 2012-08-20 09:30:39 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hi Thanks for ur reply...But when I am doing like this

	<reorderListbox model="@load(vm.processDataModel)"
			emptyMessage=" Emply List">
			<listhead>
				<listheader children="@load(vm.list)">
					<template name="children" var="node">
						<label value="@load(node)" />
					</template>

				</listheader>
			</listhead>

As mentioned in this post Here
Only One List Header is display which show all list header label in sigle header.

Do u know how can i resolve this issue

link publish delete flag offensive edit

answered 2012-08-20 01:13:39 +0800

vincentjian gravatar image vincentjian
2245 6

Hi sjoshi,

You can use template. Please refer to this thread.

link publish delete flag offensive edit

answered 2012-08-19 11:34:11 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

According to Zk it is not possible ...
But Still i did not get any solution to Show Dynamc Headers and change according t me

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-08-19 09:54:59 +0800

Seen: 114 times

Last updated: Aug 20 '12

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