How does this rich domain model get serialised during an RPC/JMS call ? I noticed that the EntityManager is transient so it does not get serialised. Also when the service receives that entity and...
Type: Posts; User: olivier; Keyword(s):
How does this rich domain model get serialised during an RPC/JMS call ? I noticed that the EntityManager is transient so it does not get serialised. Also when the service receives that entity and...
I realize that when a transaction is rolled back with hibernate and a JtaTransactionManager, there is no call to Session.clear, so it will let inconsistent persistent state. Indeed, even if the...
Nicolas,
Maybe, you could try this code, and use your CustomCollectionEditor. This assume that your PropertyEditor will handle correctly a serie of inputs in your form named identicaly. It also...
Hi,
I would like to know what is the best practice to use when you want to invoke webservice method with spring that take OUT parameters. For now, the only solution I found is to have a business...
Just one more precision, countryList, is your viewName, so it's not a variable that you will be able to use in your jsp.
To retrieve the country list, you will use the variable : ...
yes I am going to work something around that, I don't need any mock, I am just going to use the spring API. Thanks
Hi,
Is there a way to unit test an advice with JUnit ? I have a problem when I unit test my invoke(MethodInvocation invocation) method, I am not able to create a mock for the object...
Hi, I would like to cache returned value of bean's methods with an advice. I already wrote my advice and it worked, it is generic, so I can associate it with any class, method of my project to get...
Webflow is not an easy thing to handle with spring, there is an open source project which I think does the job well, it is the springwebflow but I did not try to use it.
From my own experience,...
On way to do this, is by javascript, to get from the popup windows, the value of the parent window, and to update the parent window when closing the popup, or to persist the bean when closing, by...
yes you should use classEditor, and set it up in the initBinder method of your form
You cant with spring use your command object as a map, the command object need to be a bean, with properties. To solve your problems, you may want to create a property "properties" in your command...
Maybe you want to take a look at the PropertyEditor, it will allow you to define what values will be accepted for binding and how to bind them. Validation and binding is for me two different things,...
Here is a nice way to do that, all with pure spring tags :
you need a property checked (Boolean) in your driver object.
<c:forEach items="${myDataModel.drivers}" var="driver"...
with spring message, you can use in your jsp :
<spring:message code="myStringArray.${index}"/>
where index is your number, and with messages like :
myStringArray.1 = first...
you could use spring message tag and message ressource, or pass your foo object with your model in order to access it.
We used the AbstractWizardFormController which I found quite powerfull and simple to use in term of controlling the workflow. Basically, you have an array of pages, and a method getTargetPage, which...
you could also want to put it in the same form, the cancel button will be a href link, with a javascript to submit, the cancel form. It works both way.
Sure, I understand that it 's displaying the correct value, anyway, it is better to use ${status.value}, because, you are sure that the value displayed will be the one contained in the property...
First time, you render the view with an empty object, or with an object with init values ( like default, or values read from the database). Then when you click submit, this object is binded with the...
I think you should use the ${status.expression} to name your input tag, and the ${status.value} to get the value of your properties.
like : ${newResponse.issue.priority==1} = ${status.value==1}...
yes really anoying, what we did is having two forms, one for a real submit, and the other for a cancel submit, the second one beeing empty, or having just the hidden fields necessary for navigation...
just send an empty object on your formbacking object. I don't know how you manage to not send any command object to a simpleformcontroller, since the formbacking does not allow you to return null ?
I think the problem comes from the forEach which iterate on a list rather than a collection. try to do a <c:out value = "${model.products}/> to see if the model you sent contains an item products...
Yes, the point here, is that I would like to store the data in a cookie and not in the session, in order not to be server dependent. If a server crash, you loose the session, but the cookie still...