java - Refreshing a page from the click of a menuitem -


I have a Zulu page that lists the menu items pointing to different Zul pages. I like this, when a menu item is clicked, then the menu refreshes the refresh that I have tried from the event sendEvent () approach, but it does not work. What is the best way to do it? Thanks in advance. Here's the code:

  & lt; Menuitem id = "car" label = "car" & gt; & Lt; Attribute name = "onclick" & gt; {Inc.setSrc ("/ zul / car.zul"); Events.andAvent (reload, event); } & Lt; / Attribute & gt; & Lt; / MENUITEM & gt;    

& lt; Include / & gt; Do not use for Zul pages in a better way:

  ... 
...

And then add onClick listeners to java, do not use your script like BTW production.

  @iston ("onclic = # car") public zero carClicked (event ev) {// explicit old content current Site.getChildren (). clear (); // Add new execution Content ("/ zul / car.zul", current site, blank); }   

You have more control and less pain;)

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -