Search:

Type: Posts; User: olivier; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    30
    Views
    19,202

    How does this rich domain model get serialised...

    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...
  2. I realize that when a transaction is rolled back...

    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...
  3. Nicolas, Maybe, you could try this code, and...

    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...
  4. Webservice client with Axis using IN/OUT parameters

    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...
  5. Thread: FormController

    by olivier
    Replies
    5
    Views
    1,093

    Just one more precision, countryList, is your...

    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 : ...
  6. Replies
    2
    Views
    1,715

    yes I am going to work something around that, I...

    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
  7. Replies
    2
    Views
    1,715

    AOP and unit testing

    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...
  8. Thread: Cache with AOP

    by olivier
    Replies
    6
    Views
    4,642

    Cache with AOP

    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...
  9. Thread: Nested Forms

    by olivier
    Replies
    3
    Views
    1,435

    Webflow is not an easy thing to handle with...

    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,...
  10. Replies
    1
    Views
    882

    On way to do this, is by javascript, to get from...

    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...
  11. Replies
    1
    Views
    749

    yes you should use classEditor, and set it up in...

    yes you should use classEditor, and set it up in the initBinder method of your form
  12. You cant with spring use your command object as a...

    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...
  13. Replies
    3
    Views
    3,409

    Maybe you want to take a look at the...

    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,...
  14. Replies
    20
    Views
    26,052

    Here is a nice way to do that, all with pure...

    Here is a nice way to do that, all with pure spring tags :



    you need a property checked (Boolean) in your driver object.



    <c&#58;forEach items="$&#123;myDataModel.drivers&#125;" var="driver"...
  15. Replies
    5
    Views
    1,421

    with spring message, you can use in your jsp : ...

    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...
  16. Replies
    5
    Views
    1,421

    you could use spring message tag and message...

    you could use spring message tag and message ressource, or pass your foo object with your model in order to access it.
  17. We used the AbstractWizardFormController which I...

    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...
  18. Replies
    5
    Views
    1,571

    you could also want to put it in the same form,...

    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.
  19. Replies
    5
    Views
    997

    Sure, I understand that it 's displaying the...

    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...
  20. First time, you render the view with an empty...

    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...
  21. Replies
    5
    Views
    997

    I think you should use the ${status.expression}...

    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}...
  22. Replies
    5
    Views
    1,571

    yes really anoying, what we did is having two...

    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...
  23. just send an empty object on your formbacking...

    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 ?
  24. I think the problem comes from the forEach which...

    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...
  25. Yes, the point here, is that I would like to...

    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...
Results 1 to 25 of 43
Page 1 of 2 1 2