chkal/pf-issue-test — Issue #66: Provide a way to send custom HTTP status codes from page actions  
Author: chkal
Created: 2012-03-06 07:27:34+00:00
State: open
Labels: Priority-Medium, Type-Enhancement

Originally filed by **chkalt** on 2010-10-13T06:19:57

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=66

As discussed here:

http://groups.google.com/group/prettyfaces-dev/browse_thread/thread/e78245d27030713a

Example:

@URLAction
public void pageAction() {
if(....) {
PrettyContext.getCurrentInstance().sendError(404, "Object not found");
return;
}
}