Hi all,I have a situation where depending on some circumstances, any one of three different modal windows could be activated by clicking a single link, which itself changes.
ie add/confirm/removebut only one can be visible at any one time. I don't want three links. Is there any way to do this by setting the onClick handler of the AjaxLink that normally just contains:
final AjaxLink connectionLink = new AjaxLink("connectionLink") {
public void onClick(AjaxRequestTarget target) {
connectionWindow.show(target);
}
};
to be dynamically set, ie connectionWindow.show(target); is set at a
later stage.
Or will I just need multiple modal window placeholders and multiple links and just show/hide the relevant ones?
I would also need the connectionWindow.setWindowClosedCallback to react differently based on which modal window was closed.Is there any point in what I am trying to do or should I just suck it up and have three links/windows and control visibility? Will I achieve any major performance hits by tripling everything?
cheers, Steve
smime.p7s
Description: S/MIME cryptographic signature
