On Sat, 2008-06-14 at 18:08 -0300, Manuel Corrales wrote:
> Hi, i have a table with one ajax link per line. When i click the link, an
> Modal Window is opened. Now, i want that modal window to show some info,
> just that. How can i "pass" information to this modal window? This
> information will depend on the line data, like a master/detail with a modal
> window.
>
> Thanks in advance.
> Best regards.
>
> Manuel.
class MyModalWindow extends ModalWindow {
Object someProperty;
public MyModalWindow() {}
public MyModalWindow(Object prop) {
this.someProperty = prop;
}
public void setProp(Object prop) {
this.someProperty = prop;
}
...
}
and the usage is:
container.add(new MyModalWindow(someObject))
or
MyModalWindow window = new MyModalWindow();
window.setProp(someObject);
container.add(window);
and later on:
if (someCondition) {
window.show();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]