|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
com.xpn.xwiki.web.XWikiAction
com.xpn.xwiki.web.EditAction
com.xpn.xwiki.web.PreviewAction
public class PreviewAction
Action for previewing document changes. It prepares a temporarily changed document which is placed in the context,
without actually saving anything. The response is normally rendered by the preview.vm
template.
This action also works like a request dispatcher, an early work-around for the fact that in HTML a form can only have
one destination URL. Thus, the form had to be submitted to one action which would further dispatch the request to
other actions, based on the clicked form button. Since preview is the safest method of the possible form actions, it
was chosen as the dispatcher. Currently this functionality is deprecated and maintained only for backwards
compatibility with older skins, since a cleaner dispatcher was implemented in ActionFilter
.
Field Summary |
---|
Fields inherited from class org.apache.struts.action.Action |
---|
servlet |
Constructor Summary | |
---|---|
PreviewAction()
|
Method Summary | |
---|---|
boolean |
action(XWikiContext context)
|
String |
render(XWikiContext context)
|
Methods inherited from class com.xpn.xwiki.web.EditAction |
---|
prepareEditedDocument |
Methods inherited from class com.xpn.xwiki.web.XWikiAction |
---|
cleanupComponents, csrfTokenCheck, execute, execute, getRealPath, getTranslatedDocument, handleRevision, initializeContainerComponent, initializeXWikiContext, sendGlobalRedirect, sendRedirect |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreviewAction()
Method Detail |
---|
public boolean action(XWikiContext context) throws XWikiException
action
in class XWikiAction
XWikiException
public String render(XWikiContext context) throws XWikiException
render
in class EditAction
XWikiException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |