You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by resign <se...@yahoo.de> on 2012/03/06 14:46:07 UTC
Environment Environmental Service T5.2.6
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Environment Environmental Service T5.2.6
Posted by resign <se...@yahoo.de>.
>I have absolutely no idea about what you're trying to do.
:-)
sorry, i will try to describe my problem.
I have a page with two actionLinks. This page contains a component with
select list.
This select list must contains a different entries depends on clicked
actionLinks of parent page.
resign
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Environment-Environmental-Service-T5-2-6-tp5540838p5543324.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Environment Environmental Service T5.2.6
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
I have absolutely no idea about what you're trying to do.
On Tue, 06 Mar 2012 11:00:02 -0300, resign <se...@yahoo.de> wrote:
>> You're doing it wrong. Environment works during rendering and you're
>> using
> it on an event handler method.
>
> ok, undestand :-)
>
> But how can i resolve my problem?
>
> TML_1 - Page
> ..
> [ACTION LINK TO SET PARAMETER to A]
> ...
> [ACTION LINK TO SET PARAMETER to B]
> ...
> <t:myComponent parameter="myParameterValue" />
> ...
>
> MyComponent.tml
> ...
> ${myParameterValue}
>
>
> Have i use zone?
>
> thanks and greetings,
> resign
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Environment-Environmental-Service-T5-2-6-tp5540838p5540886.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Environment Environmental Service T5.2.6
Posted by resign <se...@yahoo.de>.
>You're doing it wrong. Environment works during rendering and you're using
it on an event handler method.
ok, undestand :-)
But how can i resolve my problem?
TML_1 - Page
..
[ACTION LINK TO SET PARAMETER to A]
...
[ACTION LINK TO SET PARAMETER to B]
...
<t:myComponent parameter="myParameterValue" />
...
MyComponent.tml
...
${myParameterValue}
Have i use zone?
thanks and greetings,
resign
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Environment-Environmental-Service-T5-2-6-tp5540838p5540886.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Environment Environmental Service T5.2.6
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 06 Mar 2012 10:46:07 -0300, resign <se...@yahoo.de> wrote:
> Hi,
Hi!
> i try to proceed one value to a component.
> For this i try to use the Environment class.
Why don't you use a parameter instead?
> But it doesn't work :-(
You're doing it wrong. Environment works during rendering and you're using
it on an event handler method.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org