Re: Model window issue

2011-08-08 Thread rmattler
I do this in my app.  I open a modal window and when you hit save I open
another modal window to confirm your save and if you confirm I close both
modal windows.

modalConfirm.close(target);
modalSelectDate.close(target);


IndicatingAjaxLinkVoid btnConfirmSave = new
IndicatingAjaxLinkVoid(btnConfirmSave) {

@Override
protected IAjaxCallDecorator 
getAjaxCallDecorator() {
return new
AjaxPostprocessingCallDecorator(super.getAjaxCallDecorator()) {
private static final long 
serialVersionUID = 1L;

@Override
public CharSequence 
postDecorateScript(CharSequence script) {
return script + 
this.disabled = true; this.style.display =
\none\;;
}

@Override
public CharSequence 
postDecorateOnSuccessScript(CharSequence script) {
return script +  
this.disabled = false;;
}
};
}

@Override
public void onClick(AjaxRequestTarget target) {
if (target != null) {


for (Positions position : 
positions) {

position.setVolunteersByFkVolunteerScheduled(session.getVolunteers());

positionsDAO.save(position);
}

//  wmc.setVisible(false);
target.addComponent(wmc);
modalConfirm.close(target);
modalSelectDate.close(target);


}

}

};

btnConfirmSave.setOutputMarkupId(true);
btnConfirmSave.setMarkupId(buttonConfirmOK);
add(btnConfirmSave);

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3727987.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Model window issue

2011-08-08 Thread Archana
In my application both the model windows are pretty much of same size. So
when one model window opens on the other one, it looks very odd. for that
reason I need to some how make the underneath model window inactive or
hidden, so that it will not look odd. I can not close the Model window 1 as
it is the parent one. If I close it the child i.e. Model window 2 will not
open.

Please give me some suggestions on this. 

-
Thanks  Regards,
Archana
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3728161.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org