title: How do actions work in Liferay?
body: <p>I've looked for this question, but couldn't find it.</p>
  
  <p>I don't know for you, but I don't understand a single bit of the Liferay Tutorial. It's too big and non-explanatory. This led me into a big misunderstanding on how Actions work in Liferay and a pair of troublesome tests.</p>
  
  <hr>
  
  <p>Given this introduction, let's be quick: <strong>how do Liferay actions work?</strong></p>
  
  <ul>
  <li><p>I know we have ActionRequests and ActionResponses at methods, but how do I trigger an ActionRequest on these? Do I need renderURL tags for it? Can you give an example?</p></li>
  <li><p>Now that after the previous question I should be able to call a method in my Portlet class controller... how do I send the info to the client? I guess it's using the ActionResponse, but how do I handle this?</p></li>
  </ul>
  
  <p>Thank you!</p>
  
  <p>edit:</p>
  
  <p>I gave a try to the first answer, yet I tried something very similar before. It's not working, but I'm getting this error on the console; I don't really know if this might be a problem:</p>
  
  <blockquote>
    <p>Load denied by X-Frame-Options:
    <a href="https://www.google.es/?gfe_rd=ssl&amp;ei=8Sc8V5OkBYGFaLiHksgO" rel="nofollow">https://www.google.es/?gfe_rd=ssl&amp;ei=8Sc8V5OkBYGFaLiHksgO</a> does not
    permit cross-origin framing.</p>
  </blockquote>