Results 1 to 3 of 3

Thread: Spring Portlet MVC, Ajax - using the ResourceAwareController Interface.

  1. #1
    Join Date
    Sep 2011
    Posts
    4

    Default Spring Portlet MVC, Ajax - using the ResourceAwareController Interface.

    Hello,

    I am attempting to use Spring MVC Portal and Ajax (using liferay 6, tomcat). Am new to Liferay and Spring Portlet MVC.

    From documentation I have seen, I need to create a class that implements the ResourceAwareController interface, create
    a resource URL which maps to the class/method.....
    So far, having create an XMLHttpRequest object and invoked send()..., I've not been able to invoke the
    handleResourceRequest method of the ResourceAwareController interface.

    Is there some full sample code that I can view that shows the correct process? including controller(s), jsps, xml
    mapping files etc.

    Thank you,
    Simon

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hello

    So far, having create an XMLHttpRequest object and invoked send()..., I've not been able to invoke the
    handleResourceRequest
    method of the ResourceAwareController interface.
    Could you post the source code? perhaps you have a missing detail

    About the bold part, how did you get such conclusion?, Some error?

    Is there some full sample code that I can view that shows the correct process? including controller(s), jsps, xml
    mapping files etc.
    with the best intentions, did you do a research on Google?
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Sep 2011
    Posts
    4

    Default

    Hello,
    Thank you for your response.
    I have managed to get most of this process working now.
    The one part I've not currently managed to resolve is how to return the XMLHttpRequest
    responseXML attribute from the jsp file. Only the responseText attribute seems to get set.
    Even though I set the content type to text/xml and create an xml formatted string, the
    responseXml attribute is undefined.

    kind regards...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •