params in actionSubmit tag

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

params in actionSubmit tag

chichibek bros
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

micke_

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

chichibek bros
Thanks Mikael for your answer but i need to pass variables trough params

2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

micke_
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke

On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks


Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

sergiomichels
In the docs actionSubmit don't have params option:  http://grails.org/doc/2.1.0/ref/Tags/actionSubmit.html 

I think you want to pass them in the form tag.



On Mon, Aug 27, 2012 at 4:27 PM, Mikael Andersson <[hidden email]> wrote:
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke


On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks



Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

micke_
You could always style a link to look like a button, if using the params attribute is important to you or using a form isn't possible.

On 27 August 2012 20:40, Sergio Michels <[hidden email]> wrote:
In the docs actionSubmit don't have params option:  http://grails.org/doc/2.1.0/ref/Tags/actionSubmit.html 

I think you want to pass them in the form tag.



On Mon, Aug 27, 2012 at 4:27 PM, Mikael Andersson <[hidden email]> wrote:
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke


On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks




Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

chichibek bros
thanks for your answer, finaly the solution will be a little tricky, using hidden or with a little help of jquery, do you know the reason why params are not part of actionSubmit implementation?


2012/8/27 Mikael Andersson <[hidden email]>
You could always style a link to look like a button, if using the params attribute is important to you or using a form isn't possible.


On 27 August 2012 20:40, Sergio Michels <[hidden email]> wrote:
In the docs actionSubmit don't have params option:  http://grails.org/doc/2.1.0/ref/Tags/actionSubmit.html 

I think you want to pass them in the form tag.



On Mon, Aug 27, 2012 at 4:27 PM, Mikael Andersson <[hidden email]> wrote:
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke


On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks





Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

sergiomichels
Probably because the html submit button don't have this option too. 

On Tue, Aug 28, 2012 at 11:22 AM, chichibek bros <[hidden email]> wrote:
thanks for your answer, finaly the solution will be a little tricky, using hidden or with a little help of jquery, do you know the reason why params are not part of actionSubmit implementation?



2012/8/27 Mikael Andersson <[hidden email]>
You could always style a link to look like a button, if using the params attribute is important to you or using a form isn't possible.


On 27 August 2012 20:40, Sergio Michels <[hidden email]> wrote:
In the docs actionSubmit don't have params option:  http://grails.org/doc/2.1.0/ref/Tags/actionSubmit.html 

I think you want to pass them in the form tag.



On Mon, Aug 27, 2012 at 4:27 PM, Mikael Andersson <[hidden email]> wrote:
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke


On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks






Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

chichibek bros
it could be great is it (actionSubmit) can be extended in this way, is there some place where to suggest this?  

2012/8/28 Sergio Michels <[hidden email]>
Probably because the html submit button don't have this option too. 


On Tue, Aug 28, 2012 at 11:22 AM, chichibek bros <[hidden email]> wrote:
thanks for your answer, finaly the solution will be a little tricky, using hidden or with a little help of jquery, do you know the reason why params are not part of actionSubmit implementation?



2012/8/27 Mikael Andersson <[hidden email]>
You could always style a link to look like a button, if using the params attribute is important to you or using a form isn't possible.


On 27 August 2012 20:40, Sergio Michels <[hidden email]> wrote:
In the docs actionSubmit don't have params option:  http://grails.org/doc/2.1.0/ref/Tags/actionSubmit.html 

I think you want to pass them in the form tag.



On Mon, Aug 27, 2012 at 4:27 PM, Mikael Andersson <[hidden email]> wrote:
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke


On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks







Reply | Threaded
Open this post in threaded view
|

Re: params in actionSubmit tag

micke_
I'm curious what params in action submit would give you that a g:link styled to look like a button or plain old form with hidden inputs don't ?

On 28 August 2012 20:44, chichibek bros <[hidden email]> wrote:
it could be great is it (actionSubmit) can be extended in this way, is there some place where to suggest this?  


2012/8/28 Sergio Michels <[hidden email]>
Probably because the html submit button don't have this option too. 


On Tue, Aug 28, 2012 at 11:22 AM, chichibek bros <[hidden email]> wrote:
thanks for your answer, finaly the solution will be a little tricky, using hidden or with a little help of jquery, do you know the reason why params are not part of actionSubmit implementation?



2012/8/27 Mikael Andersson <[hidden email]>
You could always style a link to look like a button, if using the params attribute is important to you or using a form isn't possible.


On 27 August 2012 20:40, Sergio Michels <[hidden email]> wrote:
In the docs actionSubmit don't have params option:  http://grails.org/doc/2.1.0/ref/Tags/actionSubmit.html 

I think you want to pass them in the form tag.



On Mon, Aug 27, 2012 at 4:27 PM, Mikael Andersson <[hidden email]> wrote:
If you are referring to the params object in the controller, using a hidden field will do that!
Basically all your form inputs are available in the params object.

If you want the variables to be in the URL, use GET method instead of POST for the form. But regardless will be in the params object available in the controller.

- micke


On 26 August 2012 21:29, chichibek bros <[hidden email]> wrote:
Thanks Mikael for your answer but i need to pass variables trough params


2012/8/26 Mikael Andersson <[hidden email]>

hi

try using hidden fields in the form.

- Micke

On Aug 26, 2012 8:25 PM, "chichibek bros" <[hidden email]> wrote:
hi group is there any way to pass params in actionSubmit tag

i mean something like this

<g:actionSubmit value="Delete" params="[flag:'imp','anotherFlag:''somethingelse']"/>

i tried but i dont get params in the controller

Thanks