You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lherm Nicolas <nl...@sqli.com> on 2016/07/08 16:10:56 UTC

PerthreadManager - PerthreadValue use

Hi,


When I update to 5.3.8 I changed the @PageAttached with PerThreadManager and PerThreadValue.


I used it like this :


private PerThreadValue<T> perThreadValue;


@Inject

private PerthreadManager managerEnv;

 public PerThreadValue<T> getPerThreadValue() {
       if (perThreadValue == null) {
            perThreadValue = managerEnv.createValue();
       }
       return perThreadValue;
  }

I wanna use it to push inside somes object to use it after but it seems that getPerThreadValue() re-initialize automatically so I lose the object which is inside.