Hi,

i try to proceed one value to a component.
For this i try to use the Environment class. But it doesn't work :-(
I also couldn't find any examples about this.

My code:

TML:
 ...
 <t:eventLink id="myEvent">GO</t:eventLink>
 ...

Java Page
 ...
@Inject
private Environment environment;

private ParamObject parameter;
...
void onMyEvent(){
  parameter.setValue("X");
  environment.push(ParamObject.class, parameter);
}

Java Compoment
...
@Environmental
private ParamObject parameter;

 void onpageAttached(){
  parameter.getValue();
}
...

The error:

No object of type ParamObject is available from the Environment.  Available
types are (none).

Any ideas?

greetings,
resign


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Environment-Environmental-Service-T5-2-6-tp5540838p5540838.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to