No i neede long before that starup params for the homepage That i know when starting up
the WebApplicaiton.

How can i set a page internal variable?? There is no instance.. There is only a class (the thing you
set on the ApplicationSettings)
>From there the homepage is just instantiated somewhere in the wicket framework.
Now people can set some params for the homepage without doing it again with ugly (static) ways.

johan

Juergen Donnerstag wrote:
Johan,

mind you explaining the purpose of this homepage parameter change to
me? Isn't it much easier to simply set page internal variable in case
no query parameters are given?

Juergen


On Mon, 27 Dec 2004 14:25:03 +0000, Johan Compagner
<[EMAIL PROTECTED]> wrote:
  
Update of /cvsroot/wicket/Wicket/src/java/wicket
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14905/src/java/wicket

Modified Files:
        ApplicationSettings.java
Log Message:
homepage parameters

Index: ApplicationSettings.java
===================================================================
RCS file: /cvsroot/wicket/Wicket/src/java/wicket/ApplicationSettings.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ApplicationSettings.java    26 Dec 2004 11:49:28 -0000      1.5
--- ApplicationSettings.java    27 Dec 2004 14:25:00 -0000      1.6
***************
*** 22,25 ****
--- 22,26 ----
  import java.util.Collections;
  import java.util.List;
+ import java.util.Map;

  import org.apache.commons.logging.Log;
***************
*** 236,239 ****
--- 237,242 ----
          new UnexpectedExceptionDisplay("SHOW_EXCEPTION_PAGE");

+       private Map homePageParameters;
+
      /**
       * Create the application settings, carrying out any necessary initialisations.
***************
*** 788,791 ****
--- 791,812 ----
      }

+       /**
+        * Set the map with the key->value pairs that will be used in the homepage constructor as a PageParameter.
+        * @return The Map with the key->value pairs that will send to the homepage constructor.
+        */
+       public void setHomePageParameters(Map homePageParameters)
+       {
+               this.homePageParameters = homePageParameters;
+       }
+
+       /**
+        * Returns the map with the key->value pairs that are send to the homepage as a PageParameter.
+        * @return The Map with the key->value pairs that will send to the homepage constructor.
+        */
+       public Map getHomePageParameters()
+       {
+               return homePageParameters;
+       }
+
      /**
       * Gets the factory class to be used when creating pages

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-autocvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-autocvs

    


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop


  

Reply via email to