silly me - apologies! This is what I did.

public class QuickStartPanel extends Panel {

   public QuickStartPanel(String id) {
       super(id);
       add(new AjaxFallbackLink("ajaxLink"){

           @Override
           public void onClick(AjaxRequestTarget ajaxTarget) {
               Fragment frag = new MyFragment(Index.DYNAMIC_PANEL_HOLDER_ID
,"myfragment",
                       QuickStartPanel.this);
               getPage().replace(frag); // replaced the existing panel
(with the same ID) with the fragment. But the existing panel
                                      // is  QuickStartPanel !.

               ajaxTarget.addComponent(frag); //The error message makes
sense now - it says that
                                                     // it cannot find
QuickStartPanel (the markup provider) in the Page as I replaced it in the
                                                     // last step!.
           }
       });
   }

:)

On 11/28/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

should work, create a quickstart

-igor


On 11/27/06, karthik Guru <[EMAIL PROTECTED] > wrote:

> Hi All,
>
> I'm using a fragment and added it to AjaxTarget from within a Panel in
> the Page.
> if <wicket:fragment> is placed in the Panel and Panel is specified as
> the markup provider , then i get an exception saying that the fragment is
> not found in the specified markup provider( i.e the Panel).
>
> But if i move the <wicket:fragment> to the enclosing page and specify
> the Page as the markup provider, it works!
> Any reason why Panels cannot act as the Markup provider for fragments?
>
> The fragment is accessed only from within the Panel and hence I wanted
> to keep it there instead of moving it to the enclosing Page.
>
> thanks!
> karthik-
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
-- karthik --
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to