I am using SimpleFormController
in my application to handle form submisions. One thing that I am missing is the request object which has passed onSubmit (request, response ..)
is different from the initial request object which is received by formBackingObject (..) Happens
. Obviously because this is the new request from the web once again.
I want to use the same parameters from the requested object in submit (..) formBackingObject (..)
.
It may be possible that I can collect them from the hidden areas by jossi, but I am trying to get some elegant perspectives.
Is there any way to do this?
Edit:
I'm overriding
formBackingObject (HTTPSArlet Request) `
and
<<> Methods in my class.
> Formbacking object (..)
will be called for intent view and I will have some variables from the request object if the user forms If I am called onsmember (..)
, then I have another request that is different from the object which I received in formbackingObject (..)
.
What I am asking, is there any way to catch the initial 'request' parameter (like request.getParameter ()
), so that I can use them You can send onsite (..)
to send them back & amp; Through hidden areas? '
formBackingObject ()
The method is being called when the user starts the initial form Requests for the scene. This is a completely different HTTP request when a user submits the form on which the
onsmitt ()
method is called.
If you want to save the state with the first HTTP request, it is available in another HTTP request, your best option is to save it in an HTTP session.
Example: In your formBackingObject ()
method:
http session session = request.getSession (); Session.setAttribute ("param1", request.getParameter ("param1")); Session.setAttribute ("Ultimate 2", request.getParameter ("param2"));
and your onSubmit ()
method:
http session session = request.getSession (); String Param 1 = (string) session.getAttribute ("param1"); String param2 = (string) session.getAttribute ("param2");
Popular posts from this blog
When the property grid is reached, only the conversion mechanism (often called) is called "Foo!" Returns the property string in the grid when I click to edit I get an exception Type.oo. Object type can not be changed to type. (Not properly translated,) What is a clue from the convert format, why not? And the error indicates that it is trying to convert to a string, not from. I think that when I want to edit this object, it will have to be converted from foo to string, and when the editing ends. Public class FooTypeConverter: StringConverter {public override object ConvertFrom (ITypeDescriptorContext Reference, CultureInfo Culture, Object Value) {New Foo (string) value); } Convert the public override object (Type the ITE DiskText Contact Reference, CultureInfo Culture, Object Value, Type Type) {Return "Foo!"; } Public override bool CanConvertFrom (ITypeDescriptorContext reference, type source type) {back true; } Public Override Bull CanConvertTo (ITypeDescrip...
Just ask someone to solve this problem? I want to create a multilevel menu I can not find the right solution generated with multilevel array, it always gets an array_push error My study came from the original idea But still my Can not match the need. This is my MySQL [code] ----- --------------------- --------------- | ID | PARENT_ID | Name | Link | Seq | 1 | 0 | Dashboad | Dashboard / | 1 | 2 | 0 | Menu 1 | Menu 1 / | 2 | 3 | 0 | Menu 2 | Menu 2 / | 3 | 4 | 0 | Menu 3 | Menu 3 / | 4 | 5 | 2 | Joint Add / | 1 | 6 | 3 | Joint Add / | 1 | 7 | 2 | Edit | Edit / | 2 | 8 | 4 | Joint Add / | 1 ------------------------------------------ [/ Code] I want to do something like this in my array array ('dashboard' = & gt; array ('id' = & gt; '' 'Dame' = & gt; 'Dashboard', 'Title' = & gt; 'Dashboard', 'MatchMin' = & gt; Base_URL (). 'Dashboard /', 'Active' => = & Gt; NULL), ...
I am trying to change the format of the month that shows in the popup (not in the date that the picker actually I do not have any choice anywhere to do this, do I like to use a sub-string () or something else? What I normally display is Trying to change: Class = "ui-datepicker-title"> January & lt; / span & gt; ... & lt; / div & gt; Div>