You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Angelo C." <an...@gmail.com> on 2011/07/11 06:35:40 UTC

use of ActivationRequestParameter

hi,
not sure if I understand this correctly, was hoping i can do this:

www.sample.com/test?123

for that I created following page class, but queryParam is always null:

public class Test {

    @ActivationRequestParameter
    private String queryParam;

    Object onActivate() {
        System.out.println(queryParam);
        return null;
    }

}

?


--
View this message in context: http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573855.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: use of ActivationRequestParameter

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 11 Jul 2011 01:59:31 -0300, Taha Hafeez <ta...@gmail.com>  
wrote:

> Always no, most of the time yes. Grabbing all opportunities before  
> Thiago is awake :)

I'm awake, but it's 2am here in Belo Horizonte, Brazil and I'm quite lazy  
now. :P

-- 
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


Re: use of ActivationRequestParameter

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
Tapestry 5 in action book has all the goodies. Tremendously helpful. 



On Jul 11, 2011, at 1:18 AM, "Angelo C." <an...@gmail.com> wrote:

> hi taha,
> 
> right, you and Tiago, always come to my mind when I post a question, see who
> answer my question:)
> 
> 
>> @ActivationRequestParameter 
>> private String name; 
> 
>> as the field name is used by default 
> 
>> http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html#value()
> 
> oh, just notice this, T5 has all this goodies that difficult to find, or not
> so obvious.
> 
> Thanks, 
> 
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573926.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
> 

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


Re: use of ActivationRequestParameter

Posted by Taha Hafeez <ta...@gmail.com>.
Hi Bob,

There is already a section http://tapestry.apache.org/annotations.html but
it points to the javadoc. Instead it would be better if this page contained
a description/example of each annotation and a pointer to the annotation's
javadoc.

It is a good idea for a blog post "Tapestry Annotations"

regards
Taha


On Mon, Jul 11, 2011 at 4:19 PM, Bob Harner <bo...@gmail.com> wrote:

> Angelo,
>
> If you can think of where in the documentation you would tend to look for
> this, I will make sure it gets added there.
>
> Bob Harner
> On Jul 11, 2011 1:18 AM, "Angelo C." <an...@gmail.com> wrote:
> > hi taha,
> >
> > right, you and Tiago, always come to my mind when I post a question, see
> who
> > answer my question:)
> >
> >
> >>@ActivationRequestParameter
> >>private String name;
> >
> >>as the field name is used by default
> >
> >>
>
> http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html#value()
> >
> > oh, just notice this, T5 has all this goodies that difficult to find, or
> not
> > so obvious.
> >
> > Thanks,
> >
> >
> > --
> > View this message in context:
>
> http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573926.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: use of ActivationRequestParameter

Posted by Bob Harner <bo...@gmail.com>.
Angelo,

If you can think of where in the documentation you would tend to look for
this, I will make sure it gets added there.

Bob Harner
On Jul 11, 2011 1:18 AM, "Angelo C." <an...@gmail.com> wrote:
> hi taha,
>
> right, you and Tiago, always come to my mind when I post a question, see
who
> answer my question:)
>
>
>>@ActivationRequestParameter
>>private String name;
>
>>as the field name is used by default
>
>>
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html#value()
>
> oh, just notice this, T5 has all this goodies that difficult to find, or
not
> so obvious.
>
> Thanks,
>
>
> --
> View this message in context:
http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573926.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: use of ActivationRequestParameter

Posted by "Angelo C." <an...@gmail.com>.
hi taha,

right, you and Tiago, always come to my mind when I post a question, see who
answer my question:)


>@ActivationRequestParameter 
>private String name; 

>as the field name is used by default 

>http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html#value()

oh, just notice this, T5 has all this goodies that difficult to find, or not
so obvious.

Thanks, 


--
View this message in context: http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573926.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: use of ActivationRequestParameter

Posted by Taha Hafeez <ta...@gmail.com>.
On Mon, Jul 11, 2011 at 10:19 AM, Angelo C. <an...@gmail.com> wrote:

> hi taha,
>

Hi


>
> seems you are online all the time:) i tried that /test/123, not working
> too,
>

Always no, most of the time yes. Grabbing all opportunities before Thiago is
awake :)


> however I realize it should have been:
>
> /test?name=123
>
> Oops, that is for adding context.

You can also do

@ActivationRequestParameter
private String name;

as the field name is used by default

http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html#value()



> @ActivationRequestParameter("name")
>    private String queryParam;
>
> that works.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573878.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
>
>
regards
Taha

Re: use of ActivationRequestParameter

Posted by "Angelo C." <an...@gmail.com>.
hi taha,

seems you are online all the time:) i tried that /test/123, not working too,
however I realize it should have been:

/test?name=123

@ActivationRequestParameter("name")
    private String queryParam;

that works.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573878.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: use of ActivationRequestParameter

Posted by Taha Hafeez <ta...@gmail.com>.
Did you try

www.sample.com/test/123

regards
Taha


On Mon, Jul 11, 2011 at 10:05 AM, Angelo C. <an...@gmail.com> wrote:

> hi,
> not sure if I understand this correctly, was hoping i can do this:
>
> www.sample.com/test?123
>
> for that I created following page class, but queryParam is always null:
>
> public class Test {
>
>    @ActivationRequestParameter
>    private String queryParam;
>
>    Object onActivate() {
>        System.out.println(queryParam);
>        return null;
>    }
>
> }
>
> ?
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/use-of-ActivationRequestParameter-tp4573855p4573855.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
>
>