Search:

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

Page 1 of 2 1 2

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    5,117

    Well the way I respond is writing directly to the...

    Well the way I respond is writing directly to the response stream with the help of Jackson Object Mapper.

    sample code:



    @ResourceMapping(value="stuff")
    public void method(ResourceResponse...
  2. you only get 1 render

    you only get 1 render
  3. I'm sorry I didn't really understand your...

    I'm sorry I didn't really understand your question. Could you be more specific?

    I'll add a little in here at what I think you are going for?

    so in your action you have a "ActionResponse"...
  4. Ends up I overrode one of the interceptors and...

    Ends up I overrode one of the interceptors and instead of not going onto a render I went and created some render's that went to the same page, but didn't have any functionality in it. And then when...
  5. It seems odd to me that the variables went from...

    It seems odd to me that the variables went from request params to attributes, i doubt spring would be able to do that auto-like?

    I have the auto-ish thing working for @ModelAttribute, not sure if...
  6. HandlerInterceptorAdapter

    I would say the best option would be override:


    public boolean preHandleRender(RenderRequest request, RenderResponse response, Object handler) throws Exception {

    You'd just extend:...
  7. Since I'm on the portlet spec I'm not allowed to...

    Since I'm on the portlet spec I'm not allowed to use responsebody, so i've been using @modelattribute instead, even on my ajax calls and that seems to work well with the @valid annotation.
  8. Replies
    8
    Views
    5,117

    yeah the post is a bit incomplete :\. ...

    yeah the post is a bit incomplete :\.

    Definitely need a variable in with your mapping:


    <portlet:resourceURL id="Id_Field"/>

    On my controller I do have @Controller and...
  9. Replies
    8
    Views
    5,117

    Jackson can help turn it to JSON and back for...

    Jackson can help turn it to JSON and back for objects, but we only use it for the to JSON portion. Spring is able to figure out where the JSON should be mapped to.

    For a form submission if you...
  10. you could use a ParameterMappingInterceptor. It...

    you could use a ParameterMappingInterceptor. It will take an action and forward it to the render with the same name (@ActionRequest(value="action=blah1") @RenderRequest(value="action=blah1")). But...
  11. In the modelandview object you have a: ...

    In the modelandview object you have a:
    Map<String,Object> getModel()
    or
    ModelAndView addObject(String attributeName, Object attributeValue)
    Add an attribute to the model....
  12. Replies
    8
    Views
    5,117

    I'm using portlets, spring 3 and ajax (jquery)...

    I'm using portlets, spring 3 and ajax (jquery) without dwr.

    I didn't quite understand your post, what was your goal (the cross servlet portlet communication confused me)? Using servlets to handle...
  13. Replies
    1
    Views
    634

    The event phase would work for this scenario...

    The event phase would work for this scenario (assuming you are portlet-286 compliant). Also if you wanted to go the not so solid route, javascript.
  14. Replies
    9
    Views
    6,183

    AutoPopulatingList

    I know you'll at least need an AutoPopulatingList for when the user updates the items.

    Spring doesn't know how to handle a list because its an interface, and it doesn't know how to handle an...
  15. Spring 3 Portlet ParameterMappingInterceptor

    I wanted to split the action and render phase of the application and am using ParameterMappingInterceptor which is working fine.

    When the Action runs we use hibernate's validator to confirm fields...
  16. Replies
    5
    Views
    1,141

    ah yeah, I forgot about that. I didn't mention I...

    ah yeah, I forgot about that. I didn't mention I was on Portlet MVC, but I forgot that there are parts (like the marshaller) the portlet code can't use.

    Interesting on the Spring JS, haven't...
  17. Replies
    5
    Views
    1,141

    yes, asynch. I'm unsure how to plug them into...

    yes, asynch. I'm unsure how to plug them into springs taglibs. When I receive them back from the server-side I get them in JSON format.

    Currently what I do is have a set of errors that exist...
  18. Replies
    5
    Views
    1,141

    echo echo echo echo

    echo echo echo echo
  19. Replies
    5
    Views
    1,141

    Spring MVC 3 Error suggestions

    I am currently using spring's form taglib and am displaying errors when received back from the server and it works great:


    <form:errors path="*"/>

    What does everyone do for ajax errors? Do you...
  20. yeah that is true. I can't be expecting Spring...

    yeah that is true. I can't be expecting Spring to know about the old response because the new request being sent from the client side won't contain enough information.
  21. Replies
    2
    Views
    1,603

    Portlets make me sad

    Future:

    https://jira.springframework.org/browse/SPR-6817

    Looks like it will be fixed in 3.1 M1
  22. Spring 3 Portlet MVC stay on same page on error.

    I was working with doing form validation and realized that there doesn't seem to be an easy way to return back to the original form that the client requested if an error was to occur. i.e.:


    ...
  23. Replies
    2
    Views
    1,603

    It looks like my @Valid and my Binder contain...

    It looks like my @Valid and my Binder contain different validators due to the autowiredness, but I'm unsure how to correct this.
    :confused:
  24. Replies
    2
    Views
    1,603

    Portlet MVC, Validation (JSR-303)

    Using Spring 3.0.2 and Hibernate Validator 4.0.2.GA

    It looks like I have my validator setup correctly, but when I do:



    //some of my imports
    import javax.validation.Valid;
    import...
  25. Yeah the documentation needs to be a lot clearer....

    Yeah the documentation needs to be a lot clearer. Some of the stuff in the "servlets" area is reusable (when in reality there should be a lot more). A lot of it drives me nuts because they require...
Results 1 to 25 of 45
Page 1 of 2 1 2