[xwiki-users] Is there a function like getRenderedContent(String fullName, String action)
Is there a function similar to this ("would it make sense to generate a function similar to this") com.xpn.xwiki.api.XWiki.getURL(java.lang.String fullname, java.lang.String action) that instead of generating a link gets the rendered content for the specified content for the given action: getRenderedContent(String fullName, String action) I'm trying to render a class instance in the "inline" action context, in order to display its edit form. I do understand that there is a function com.xpn.xwiki.XWikiContext.setAction(String action), but I'm unclear of how I can request a particular Page in the context that I can set this way. The provided com.xpn.xwiki.api.Document.getRenderedContent() function does not allow to specify an action parameter. I've been trying to find a solution for 10 hours now... maybe I'm just blind :-) Thanks in advance, Andreas
Andreas schrieb:
Is there a function similar to this [...] com.xpn.xwiki.api.XWiki.getURL(java.lang.String fullname, java.lang.String action) that instead of generating a link gets the rendered content for the specified content for the given action: getRenderedContent(String fullName, String action)
What about java.lang.String com.xpn.xwiki.api.Document.display( java.lang.String fieldname, java.lang.String mode ) where mode is something like "view", "edit", "inline", ... Guido
participants (2)
-
Andreas -
G.Schoepp