You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Anna Simbirtsev <as...@gmail.com> on 2011/09/02 17:05:45 UTC
passing information to the modal window class
Hi, I have a modal window defined like in the following example:
*public class *Modal *extends *WebPage
{
*public *Modal()
{
*final *ModalWindow modal1;
add(modal1 = *new *ModalWindow("modal1"));
modal1.setPageMapName("modal-1");
modal1.setCookieName("modal-1");
modal1.setPageCreator(*new *ModalWindow.PageCreator()
{
*public *Page createPage()
{
*return new *ModalPage1(Modal.this, modal1);
}
});
add(*new *AjaxLink("showModal1")
{
*public **void *onClick(AjaxRequestTarget target)
{
modal1.show(target);
}
});
}
*public class *ModalPage1 *extends *WebPage{
*public *ModalPage1(Modal modal,ModalWindow modalwindow){
public void setData(String m) {
}
}
}
Re: passing information to the modal window class
Posted by Martin Grigorov <mg...@apache.org>.
I see many * characters in your code, but there is no question.
On Fri, Sep 2, 2011 at 6:05 PM, Anna Simbirtsev <as...@gmail.com> wrote:
> Hi, I have a modal window defined like in the following example:
>
> *public class *Modal *extends *WebPage
> {
> *public *Modal()
> {
> *final *ModalWindow modal1;
> add(modal1 = *new *ModalWindow("modal1"));
>
> modal1.setPageMapName("modal-1");
> modal1.setCookieName("modal-1");
> modal1.setPageCreator(*new *ModalWindow.PageCreator()
> {
> *public *Page createPage()
> {
> *return new *ModalPage1(Modal.this, modal1);
> }
> });
>
> add(*new *AjaxLink("showModal1")
> {
> *public **void *onClick(AjaxRequestTarget target)
> {
> modal1.show(target);
> }
> });
>
> }
>
> *public class *ModalPage1 *extends *WebPage{
> *public *ModalPage1(Modal modal,ModalWindow modalwindow){
>
> public void setData(String m) {
>
> }
>
> }
> }
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org