0

refresh a window

asked 2008-12-27 12:56:45 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai,

i am create a window that contain all item, inside that window have a button new that call entry window.

i would to refresh the first window. after save action in entry window.

is there any an example ?

TIA,

Andy Susanto

delete flag offensive retag edit

9 Replies

Sort by ยป oldest newest

answered 2008-12-27 14:08:47 +0800

wandersky gravatar image wandersky
3

try {
entryWindow.doModal(); //do something when the entryWindow is modal.
} catch (Exception ex){}
if (entryWindow.getAttribute("OK")!=null) {
firstWindow.refresh();
}

May be this can help you.

link publish delete flag offensive edit

answered 2008-12-27 22:32:23 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai wandersky,

yes something like that, but .refresh method it does not have.

so any other way ?


TIA,

Andy Susanto

link publish delete flag offensive edit

answered 2008-12-29 01:21:56 +0800

robertlee gravatar image robertlee
561

updated 2008-12-29 01:22:11 +0800

Hi Andy,
Does Executions.sendRedirect ring any bells?

link publish delete flag offensive edit

answered 2008-12-29 15:15:19 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai Robert,

yes using Executions.sendRedirect the list page update. but my menu is missing.

in my page i have a menubar. how can i refresh without remove my menubar ?


TIA,

Andy Susanto

link publish delete flag offensive edit

answered 2008-12-30 01:10:12 +0800

robertlee gravatar image robertlee
561

updated 2008-12-30 01:10:56 +0800

Hi Andy, I have two questions for you:

When did you load/create your menubar?
Are you able to load/create it at different phases (in Component/Page Lifecycle) other than your current approach?

If you can post your findings on the forum it would be very helpful to others having the same issue.

Hope this helps,
Cheers
Robert Lee

link publish delete flag offensive edit

answered 2008-12-30 07:08:09 +0800

ibsolution gravatar image ibsolution
468 1 1 6

updated 2008-12-30 07:08:30 +0800

hai,

i create menu in main.zul and every time user choose a menu. i create window manually from CreateComponent method.

menu
list
entry

that is my zul window

TIA,

Andy Susanto

link publish delete flag offensive edit

answered 2008-12-31 10:03:36 +0800

A gravatar image A
117 2

hi,

firstWindow.invalidate();

May be this can help you.

link publish delete flag offensive edit

answered 2009-01-01 12:59:44 +0800

ibsolution gravatar image ibsolution
468 1 1 6

hai A,

i can not help only using invalidate(); because my list window always show because entry button on that list.

i think you can see that image first

Regards,

Andy Susanto

link publish delete flag offensive edit

answered 2009-01-05 02:28:37 +0800

robertlee gravatar image robertlee
561

updated 2009-01-05 02:29:02 +0800

Hi Andy,

You can try using echoEvent to register a call to a custom event that triggers the creation of your window.

See EchoEvents under ZK's dev guide.

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: 2008-12-27 12:56:45 +0800

Seen: 384 times

Last updated: Jan 05 '09

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