get @RequestParameters on submit

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

get @RequestParameters on submit

George Christman
Hello, I'm wondering if there is a way to read the @RequestParameters on
submit from onActivate?

example
public Class<?> onActivate(@RequestParameter(value = "category", allowBlank
= true) final String categoryParam,

If not, is there another way to get the value without using @Persist?

--
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Reply | Threaded
Open this post in threaded view
|

Re: get @RequestParameters on submit

Taha Hafeez Siddiqi
Hi George,

I am not sure what you mean by "on submit from onActivate" but may be you are looking for

http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html

regards
Taha

On 11-Oct-2013, at 10:27 AM, George Christman <[hidden email]> wrote:

> Hello, I'm wondering if there is a way to read the @RequestParameters on
> submit from onActivate?
>
> example
> public Class<?> onActivate(@RequestParameter(value = "category", allowBlank
> = true) final String categoryParam,
>
> If not, is there another way to get the value without using @Persist?
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York

Reply | Threaded
Open this post in threaded view
|

Re: get @RequestParameters on submit

George Christman
Thanks Taha this resolved my issue, however I now seem to have no way to
handle illegalArgumentExceptions.

Is there away to catch illegalArgumentExceptions in onActivate and redirect
the user away from the page when they occure? This would happen as a result
of URL tampering.

Thanks.


On Fri, Oct 11, 2013 at 2:44 AM, Taha Hafeez Siddiqi <
[hidden email]> wrote:

> Hi George,
>
> I am not sure what you mean by "on submit from onActivate" but may be you
> are looking for
>
>
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html
>
> regards
> Taha
>
> On 11-Oct-2013, at 10:27 AM, George Christman <[hidden email]>
> wrote:
>
> > Hello, I'm wondering if there is a way to read the @RequestParameters on
> > submit from onActivate?
> >
> > example
> > public Class<?> onActivate(@RequestParameter(value = "category",
> allowBlank
> > = true) final String categoryParam,
> >
> > If not, is there another way to get the value without using @Persist?
> >
> > --
> > George Christman
> > www.CarDaddy.com
> > P.O. Box 735
> > Johnstown, New York
>
>


--
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Reply | Threaded
Open this post in threaded view
|

Re: get @RequestParameters on submit

Dmitry Gusev
Probably this can help with exceptions handling?

http://tapestry.apache.org/component-events.html#ComponentEvents-InterceptingEventExceptions


On Mon, Oct 14, 2013 at 10:48 AM, George Christman
<[hidden email]>wrote:

> Thanks Taha this resolved my issue, however I now seem to have no way to
> handle illegalArgumentExceptions.
>
> Is there away to catch illegalArgumentExceptions in onActivate and redirect
> the user away from the page when they occure? This would happen as a result
> of URL tampering.
>
> Thanks.
>
>
> On Fri, Oct 11, 2013 at 2:44 AM, Taha Hafeez Siddiqi <
> [hidden email]> wrote:
>
> > Hi George,
> >
> > I am not sure what you mean by "on submit from onActivate" but may be you
> > are looking for
> >
> >
> >
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html
> >
> > regards
> > Taha
> >
> > On 11-Oct-2013, at 10:27 AM, George Christman <[hidden email]>
> > wrote:
> >
> > > Hello, I'm wondering if there is a way to read the @RequestParameters
> on
> > > submit from onActivate?
> > >
> > > example
> > > public Class<?> onActivate(@RequestParameter(value = "category",
> > allowBlank
> > > = true) final String categoryParam,
> > >
> > > If not, is there another way to get the value without using @Persist?
> > >
> > > --
> > > George Christman
> > > www.CarDaddy.com
> > > P.O. Box 735
> > > Johnstown, New York
> >
> >
>
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>



--
Dmitry Gusev

AnjLab Team
http://anjlab.com
Reply | Threaded
Open this post in threaded view
|

Re: get @RequestParameters on submit

George Christman
Thanks man, exactly what I needed.


On Mon, Oct 14, 2013 at 3:06 AM, Dmitry Gusev <[hidden email]>wrote:

> Probably this can help with exceptions handling?
>
>
> http://tapestry.apache.org/component-events.html#ComponentEvents-InterceptingEventExceptions
>
>
> On Mon, Oct 14, 2013 at 10:48 AM, George Christman
> <[hidden email]>wrote:
>
> > Thanks Taha this resolved my issue, however I now seem to have no way to
> > handle illegalArgumentExceptions.
> >
> > Is there away to catch illegalArgumentExceptions in onActivate and
> redirect
> > the user away from the page when they occure? This would happen as a
> result
> > of URL tampering.
> >
> > Thanks.
> >
> >
> > On Fri, Oct 11, 2013 at 2:44 AM, Taha Hafeez Siddiqi <
> > [hidden email]> wrote:
> >
> > > Hi George,
> > >
> > > I am not sure what you mean by "on submit from onActivate" but may be
> you
> > > are looking for
> > >
> > >
> > >
> >
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html
> > >
> > > regards
> > > Taha
> > >
> > > On 11-Oct-2013, at 10:27 AM, George Christman <[hidden email]
> >
> > > wrote:
> > >
> > > > Hello, I'm wondering if there is a way to read the @RequestParameters
> > on
> > > > submit from onActivate?
> > > >
> > > > example
> > > > public Class<?> onActivate(@RequestParameter(value = "category",
> > > allowBlank
> > > > = true) final String categoryParam,
> > > >
> > > > If not, is there another way to get the value without using @Persist?
> > > >
> > > > --
> > > > George Christman
> > > > www.CarDaddy.com
> > > > P.O. Box 735
> > > > Johnstown, New York
> > >
> > >
> >
> >
> > --
> > George Christman
> > www.CarDaddy.com
> > P.O. Box 735
> > Johnstown, New York
> >
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>



--
George Christman
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Reply | Threaded
Open this post in threaded view
|

Re: get @RequestParameters on submit

Lenny Primak
In reply to this post by Dmitry Gusev
Od you can use tapestry-exceptionpage.  It's great at handling things such as this:

http://docs.codehaus.org/display/TYNAMO/tapestry-exceptionpage+guide


On Oct 14, 2013, at 3:06 AM, Dmitry Gusev wrote:

> Probably this can help with exceptions handling?
>
> http://tapestry.apache.org/component-events.html#ComponentEvents-InterceptingEventExceptions
>
>
> On Mon, Oct 14, 2013 at 10:48 AM, George Christman
> <[hidden email]>wrote:
>
>> Thanks Taha this resolved my issue, however I now seem to have no way to
>> handle illegalArgumentExceptions.
>>
>> Is there away to catch illegalArgumentExceptions in onActivate and redirect
>> the user away from the page when they occure? This would happen as a result
>> of URL tampering.
>>
>> Thanks.
>>
>>
>> On Fri, Oct 11, 2013 at 2:44 AM, Taha Hafeez Siddiqi <
>> [hidden email]> wrote:
>>
>>> Hi George,
>>>
>>> I am not sure what you mean by "on submit from onActivate" but may be you
>>> are looking for
>>>
>>>
>>>
>> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/ActivationRequestParameter.html
>>>
>>> regards
>>> Taha
>>>
>>> On 11-Oct-2013, at 10:27 AM, George Christman <[hidden email]>
>>> wrote:
>>>
>>>> Hello, I'm wondering if there is a way to read the @RequestParameters
>> on
>>>> submit from onActivate?
>>>>
>>>> example
>>>> public Class<?> onActivate(@RequestParameter(value = "category",
>>> allowBlank
>>>> = true) final String categoryParam,
>>>>
>>>> If not, is there another way to get the value without using @Persist?
>>>>
>>>> --
>>>> George Christman
>>>> www.CarDaddy.com
>>>> P.O. Box 735
>>>> Johnstown, New York
>>>
>>>
>>
>>
>> --
>> George Christman
>> www.CarDaddy.com
>> P.O. Box 735
>> Johnstown, New York
>>
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]