Setting a pageMapName in PopupSettings fixed this problem.

On 5/24/2011 9:16 AM, Jered Myers wrote:
I looks like this problem is not replicating in a Quickstart. I thought it might be an expected behavior of some sort as removing the PopupSettings fixed my problem.

On 5/23/2011 10:47 PM, Martin Grigorov wrote:
put a breakpoint in your page constructor and see why it is called twice

On Mon, May 23, 2011 at 11:48 PM, Jered Myers
<[email protected]>wrote:

I am attempting to open a new browser tab to a bookmarkable page.  The
constructor of my page is being called twice. Is there a way I can prevent this from happening? When I remove the PopupSettings the constructor is
only called once, but the page does not open in a new tab.

Here is an example fragment of my implementation in Wicket 1.4.16:

ApplicationClass.java... mount(new QueryStringUrlCodingStrategy("MyPage",
MyPage.class));

MyPageLink.java
public class MyPageLink extends BookmarkablePageLink<Integer>
{
  public MyPageLink(String id, IModel<Integer>  identifierModel)
  {
     super(id, MyPage.class);
     setParameter("Identifier", identifierModel.getObject());
PopupSettings popupSettings = new PopupSettings( blah | blah | blah);
<-- Only PopupSettings.blah here
     setPopupSettings(popupSettings);
  }
}

MyPage.java
public class MyPage extends WebPage
{
    public MyPage(final PageParameters params)
    {
       super(params);
    }
}

--
Jered


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to