so something like this should work:

public class Home {
   Home() {
     PageParameters default=new PageParameters();
     default.put("......
     init(default);
   }
   Home(PageParameters params) {
      init(params);
   }

   init(PageParameters params) {
               add(mainMenu=new MainMenu("MainMenu"));
                add(searchPanel=new SearchPanel("SearchPanel"));
                add(homeView=new HomeView("HomeView"));
  }


-Igor



On 1/13/06, pepone pepone < [EMAIL PROTECTED]> wrote:
my Home page now is like this

public class Home extends BasePage
{
        private MainMenu mainMenu;
        private SearchPanel searchPanel;
        private HomeView homeView;
        public Home()
        {
                add(mainMenu=new MainMenu("MainMenu"));
                add(searchPanel=new SearchPanel("SearchPanel"));
                add(homeView=new HomeView("HomeView"));
        }
};

HomeView instaciate difrent panels depending of pageParameters. and
depending of what panel instaciate the panel can need to read a
diferent parameter.





On 1/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> if you need a default parameter why not set it in the default constructor?
> and have both default and pageparams constructor forward to an init method?
>
> -Igor
>
>
>
> On 1/13/06, pepone pepone < [EMAIL PROTECTED]> wrote:
> > Hello all
> >
> > is posible with wicket 1.2 set a default parameter to homePage
> >
> > thanks
> > --
> > play tetris http://pepone.on-rez.com/tetris
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>


--
play tetris http://pepone.on-rez.com/tetris


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to