0

How to take control of a variable (not component) from main controller?

asked 2012-01-02 04:19:22 +0800

GuzZpaWn gravatar image GuzZpaWn
111 2

I have the next code:


<windows id="win" apply="pbz.ctrl.myWinController">
....
   <div id="div" apply="pbz.ctrl.myDivController">
      ----
  </div>
...
</windows>

now i have these controllers:

public myWinController extends GenericForwardComposer implements Serializable{  
  ........
}

public myDivController extends GenericForwardComposer implements Serializable{  
  private List<requerimientodetaVO> lista;
  ......
}

I wanna know how can I take control of lista and how to send some args from myWinController to myDivController.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-01-11 04:07:51 +0800

TonyQ gravatar image TonyQ
642
https://www.masterbranch....

I am not sure if that's a better way ,
but at least you could do this:

1.use "setAttribute" to the win component as a data
2.use getFellow("win") in div 's composer to get the component
3.use getAttribute to get the result

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-01-02 04:19:22 +0800

Seen: 126 times

Last updated: Jan 11 '12

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