0

How to just Reload left side page?

asked 2008-10-27 02:56:28 +0800

Nelo gravatar image Nelo
48 1

Dears,

I've used the borderlayout to segment the left side and right side.
So, my question is "How to just reload left side page?".
I've used toolbarbutton's onClick event like as "Executions.getCurrent().sendRedirect(null);"
But always get all page reload.

Is there anything wrong for me?

Thanks,

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2008-10-27 07:07:13 +0800

robertlee gravatar image robertlee
561

Nelo,
Instead of the west region, what are the components you are trying to update? (Textbox? Listbox?...)
Have you thought about update these components under event handlers?

link publish delete flag offensive edit

answered 2008-10-27 07:20:40 +0800

Nelo gravatar image Nelo
48 1

Hi robertlee,

I've used <zk:include id="test" src="menu.jsp"/> to include a jsp file.
And want to reload this jsp file again.

link publish delete flag offensive edit

answered 2008-10-27 12:53:25 +0800

msrednsi gravatar image msrednsi
106 2

Hello, i use use a div inside the region, and then i do removeChild and create component with the div as a parent:
...
</z:west>
<z:center border="normal" flex="true"
style="background-image:url(img/DesktopBackground.png);">
<z:div id="incvisor" width="100%" height="100%" style="overflow:auto"></z:div>
</z:center>

</z:borderlayout>
...

And:

... if (this.cmpVisor != null) {
this.parent.getFellow("incvisor").removeChild(this.cmpVisor);
}
this.cmpVisor = Executions.createComponents("/explorador/visor/"
+ this.getVisorSeleccionado().getViewResourceURI(), this.parent
.getFellow("incvisor"), null);
...
cmpVisor is a zul component. the "incvisor" div is the parent.


Hope that helps!!!

link publish delete flag offensive edit

answered 2008-10-27 13:26:11 +0800

guleri gravatar image guleri
75 2

..or maybe just give the west element (or even the include???) an id and call .invalidate() on that component? Not tested but, it would be easy :P

link publish delete flag offensive edit

answered 2008-10-28 01:30:03 +0800

Nelo gravatar image Nelo
48 1

Dears,

I'll try.

Very Thanks,

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-10-27 02:56:28 +0800

Seen: 417 times

Last updated: Oct 28 '08

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