I've got a page that displays an entity, but before rendering the page I need to perform a lookup of the entity based on a parameter that is passed in. To do this, I'm trying to use a Seam Page Action declared in my pages.xml file to call the lookup action before rendering the page. My setup looks like this:
pages.xml:
<page view-id="/mypage.xhtml" action="#{mylookup.lookupEntity}"></page>
My action class:
@Name("myLookup")
@AutoCreate
public class MyLookup {
@RequestParameter
private String myParam;
...
public void lookupEntity() { ...}
...
}
Everything looks fine to me, but when I click on a link to take me to that page, my lookupEntity() action never gets called. I've added breakpoints and logging statements, and it's clear that it never gets called.
What is a typical cause for this? Is there someplace I should be looking for more info on why this failed?