Search:

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

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Thread: Ajax problem

    by mah01
    Replies
    11
    Views
    1,844

    Hi I'm getting really frustrated over this....

    Hi

    I'm getting really frustrated over this. I've spent two days trying to get this to work.

    Is there really no working sample in the Spring community that makes use of the <render...
  2. Where is the modelAttribute set in hotelSearchForm.jsp in the swf-booking-mvc sample?

    Hi

    I'm looking at the samle application swf-booking-mvc.

    I'm wondering where the modelAttribute of the search form in hotelSearchForm.jsp is set? I can't find anywhere in the code where it is...
  3. How do I set the time between redelivery attempts?

    Hi

    I set sessionTransacted to true in my DefaultMessageListenerContainer because I want messages redelivered if the listener fails (i.e. throws RuntimeException). By the way, is there another way...
  4. Replies
    3
    Views
    2,202

    Hi I don't understand what the problem was but...

    Hi

    I don't understand what the problem was but I managed to solve it.

    I didn't show you guys the part of my config where I got the url, username etc.

    This is from DataAccessContext.java:
  5. Replies
    3
    Views
    2,202

    I noticed a copule of interesting things in the...

    I noticed a copule of interesting things in the log. Maybe you guys understand what it means?

    Look at the bold parts, it seems like the url bean is created twice (failing on the second attempt)
    ...
  6. Replies
    3
    Views
    2,202

    I guess that maybe it´s not that easy to figure...

    I guess that maybe it´s not that easy to figure out from just the exception stacktrace since there are no answers :)

    Lets see if I can add some more information that might make it easier to...
  7. Replies
    3
    Views
    2,202

    Could not register object

    Hi

    Could someone please explain to me what could cause this exception?



    Caused by: java.lang.IllegalStateException: Could not register object...
  8. Replies
    1
    Views
    2,068

    Is this really the correct part of the forum for...

    Is this really the correct part of the forum for this question?

    Anyway, your question is just to big to answer. Could you be a little bit more specific in what you're having problems with?

    Are...
  9. Hi again I have a follow up question :) ...

    Hi again

    I have a follow up question :)

    This is not really a big problem, just a little anoying.

    In the example below, one can see that just because the configuration method throws...
  10. Thanks Chris! This is exactly why I asked....

    Thanks Chris!

    This is exactly why I asked. Thank you for the explanation. I will declare the method to throw the exception and let Spring deal with it :)

    Because it is just as you say, I want...
  11. Propagate or catch checked Exceptions in @Bean methods?

    Hi

    Let´s say that I'm creating a jms queue like this:


    import com.sun.messaging.Queue;

    @Bean
    public Queue batchOrderQueue() {
    return new Queue("queueName");
  12. Thans for your reply. It was as I suspected then....

    Thans for your reply. It was as I suspected then.

    Anyway, this is how I solved the problem. I don't like the way I had to do it because BatchOrderService is no longer immutable.



    @Override...
  13. Does @Transactional work when I instantiate the bean myself?

    Hi

    I basically want to junit test the transactional behaviour of a service class that is marked @Transactional.

    Everything works just fine when I retrieve the bean from the context and use it....
  14. Replies
    2
    Views
    1,285

    I found the problem. It seems like you have to...

    I found the problem. It seems like you have to use the JdbcTemplate to get the transactions to work. Is this documented anywhere? I sure couldn't find it and spent over two days on this issue :( It...
  15. Replies
    2
    Views
    1,285

    Rollback on Exception using @Transactional

    Hi

    I've read a lot of threads on the forum on this topic but I can't figure it out. I hope you guys can help me.

    I think that I'm following the advice given in these threads:...
  16. Replies
    5
    Views
    3,352

    I'm sorry to say that I didn't find any solution...

    I'm sorry to say that I didn't find any solution to this problem other than to merge my two controllers.
  17. Also, make sure that both the content type and...

    Also, make sure that both the content type and the character encoding is set in your filter. This is the filter we use (which works for us)



    public class CharacterEncodingFilter implements...
  18. Hi We had some trouble with uri encoding in...

    Hi

    We had some trouble with uri encoding in our project. We also use Tomcat 5.5.

    In addition to the CharacterEncodingFilter (which I assume you're using to set the encoding to utf-8) you have...
  19. Replies
    3
    Views
    1,210

    Thanks man, you were right. I'm running Eclipse...

    Thanks man, you were right. I'm running Eclipse with the Tomcat plugin. I was using the reload feature of the Tomcat plugin alot when I was doing modifications to the spring config.

    I restarted...
  20. Replies
    3
    Views
    1,210

    Can't set String property on controller

    Hi

    I have a strange problem. I try to set a String property on a controller but it throws an exception. There is no problem setting a boolean property on the same controller though. I also don't...
  21. Thank you very much Jörg! You were right, I...

    Thank you very much Jörg!

    You were right, I think I found the answer to the array thing here: injecting arrays into beans

    // Mattias
  22. I couldn't get the registrars to work so this is...

    I couldn't get the registrars to work so this is what I did. I hope there are no thread issues there because it works now :)

    The controller:


    ...
    public final class EditReminderController...
  23. I thought I should follow your suggestion using...

    I thought I should follow your suggestion using the registrars.

    I created two registrars, one for Date and the other for Frequency.


    <bean id="customFrequencyPropertyEditorRegistrar"...
  24. Replies
    5
    Views
    3,352

    Thanks, I will definitely have a look at that. ...

    Thanks, I will definitely have a look at that.

    Maby having only one controller is the way to go. I thought that separating them, having one controller for the form and one for the list would be...
  25. Now that I've had a look at...

    Now that I've had a look at PropertyEditorRegistrar, I think I'll use that approach instead :)

    It looks very nice to just create a class where I register and configure all my PropertyEditors,...
Results 1 to 25 of 38
Page 1 of 2 1 2