Maybe I don't quite get your problem. But. You are saying that you use 
Wicket 2. Why don't you do something like this?

class MyPage {
  public MyPage(PageParameters parameters) {
    this.parameters = parameters;
  }

  public PageParemeters getParameters() {
    return parameters;
  }
}

class MyComponent {
        MyComponent(MarkupContainer parent, String id) {
                Parameters parameters = ((MyPage)getPage()).getParameters();
        }
}

?

-Matej

Korbinian Bachl wrote:
> Hi,
>  
> i've got a problem and i dont know how to solve it. I work with
> PageParameters and the thing that i allways have to pull them around makes
> me sad. Is there a way how i can have a global object holding the current
> PageParameters that can be accessed without passing in the PageParameters
> into a constructor?
>  
> e.g: not matter where i want to access
> GlobalThreadSpecificObject.getParam("foo") - i can call it on any component
> or in any page... ?
>  
> The reason is that i use IndexedPageParams and have panels that are
> dependent on a specific param value and also need a flexible way to change
> the number, the params are hanging on as the number of preceeding
> PageParameters can change later on 
> 
> Best Regards,
> 
> Korbinian
> 
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to