Search found 264 matches

by Patrik
Wed Jan 13, 2021 6:21 pm
Forum: Common Problems
Topic: RefreshReference without making doc dirty
Replies: 6
Views: 203

Re: RefreshReference without making doc dirty

Great, that works for me as well! :)

Thanks!
Patrik
by Patrik
Wed Jan 13, 2021 3:35 pm
Forum: Common Problems
Topic: RefreshReference without making doc dirty
Replies: 6
Views: 203

Re: RefreshReference without making doc dirty

I still have a problem with the refreshreference: I added the call of an AuthorOperation after the git-commit to rfresh the reference. But the setModified(false) doesn't work there - and I get no warning in the log. Here is my minimized code for this issue: @WebappCompatible @WebappRestSafe public c...
by Patrik
Wed Jan 13, 2021 12:32 pm
Forum: Common Problems
Topic: RefreshReference without making doc dirty
Replies: 6
Views: 203

Re: RefreshReference without making doc dirty

Hi again. I just noticed that the log entry 1212098 WARN [ http-nio-8080-exec-8 ] ro.sync.ecss.webapp.access.j - Calling setModified() is not supported while a "compound edit" is in progress. Note that a "compound edit" is created automatically when invoking an AuthorOperation that does not extend A...
by Patrik
Tue Jan 12, 2021 6:58 pm
Forum: Common Problems
Topic: RefreshReference without making doc dirty
Replies: 6
Views: 203

Re: RefreshReference without making doc dirty

I already tried that and failed bacause I thought i would nee to implement AuthorOperationWithCustomUndoBehavior instead of AuthorOperationWithResult.
But now I realized I just had to add this interface and it works fine.

Thanks a lot - once again! :)
Patrik
by Patrik
Tue Jan 12, 2021 11:52 am
Forum: Common Problems
Topic: RefreshReference without making doc dirty
Replies: 6
Views: 203

RefreshReference without making doc dirty

Hi, I'm using an AuthorReferenceResolver to display some status information to the author. And I have an AuthorOperationWithResult that changes this information so I'm calling AuthorDocumentController.refreshNodeReferences(). This works fine, except that this will cause to document to be marked as m...
by Patrik
Fri Jan 08, 2021 2:23 pm
Forum: Common Problems
Topic: Get git-username from custom operation
Replies: 2
Views: 52

Re: Get git-username from custom operation

Wow, that was easy - almost boring... ;)

Thanks a lot,
Patrik
by Patrik
Thu Jan 07, 2021 7:15 pm
Forum: Common Problems
Topic: Get git-username from custom operation
Replies: 2
Views: 52

Get git-username from custom operation

Hi,

is there a way to get the current git user name from within my implementation of AuthorOperationWithResult?

Thanks and regards,
Patrik
by Patrik
Wed Dec 16, 2020 2:47 pm
Forum: Common Problems
Topic: Problem with SecurityManager
Replies: 5
Views: 160

Re: Problem with SecurityManager

Great, thanks for the offer. I created a minimal test framework and sent it to support@oxygenxml.com.

Regards,
Patrik
by Patrik
Tue Dec 15, 2020 2:40 pm
Forum: Common Problems
Topic: Problem with SecurityManager
Replies: 5
Views: 160

Re: Problem with SecurityManager

Hi again, I don't know why the option wasn't initially present fo rme - but it actually doesn't matter. For testing I activated the security manager so my java options look like this: -Dcatalina.home=C:\Program Files\oXygen XML Web Author\tomcat -Dcatalina.base=C:\Program Files\oXygen XML Web Author...
by Patrik
Mon Dec 14, 2020 1:21 pm
Forum: Common Problems
Topic: Problem with SecurityManager
Replies: 5
Views: 160

Problem with SecurityManager

Hi, I need to call another webservice from my custom framework which is currently not working. After changing the log level I found this error: 60477 DEBUG [ http-nio-8080-exec-1 ] ro.sync.security.manager.SandboxSecurityManager - Security permission exception: access denied ("java.security.AllPermi...
by Patrik
Thu Dec 03, 2020 6:50 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 325

Re: Custom-Mapping of IDs to names

Thanks again. I could make it work now! :)

Regards,
Patrik
by Patrik
Thu Dec 03, 2020 12:04 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 325

Re: Custom-Mapping of IDs to names

Hi again, with my dialog to modify the text content I first need to get the current content and later set it. I know I can do both steps with editor.getActionsManager().invokeOperation(). Is this the best way or are there alternatives? And I know there are existing operations to set the content. But...
by Patrik
Fri Nov 27, 2020 2:29 pm
Forum: Common Problems
Topic: Concept for custom java interaction
Replies: 2
Views: 93

Re: Concept for custom java interaction

Hi, thanks. I've created my own class AuthorOperationOnPurposeException with setOperationRejectedOnPurpose(true) in the constructor and it behaves as expected. In case anybody else has a similiar problem: I also found a comfortable way to pass my key-value-map to my JS code: Java: import org.codehau...
by Patrik
Thu Nov 26, 2020 4:57 pm
Forum: Common Problems
Topic: Concept for custom java interaction
Replies: 2
Views: 93

Concept for custom java interaction

Hi, I'm using quite some custom implementations of AuthorOperationWithResult to be called by the ActionsManager form the js code. The documentation of ActionsManager.invokeOperation() claims that on an exception the user will see an error message. Actually this doesn't happen for me. I find the exce...
by Patrik
Thu Nov 26, 2020 4:51 pm
Forum: Common Problems
Topic: Custom code after Git/commit
Replies: 2
Views: 90

Re: Custom code after Git/commit

Thanks for the idea. I also added some check to only enable a commit of dirty documents. This way I know for sure that a non-dirty document after commit has been commited.

Regards,
Patrik
by Patrik
Wed Nov 25, 2020 7:02 pm
Forum: Common Problems
Topic: Custom code after Git/commit
Replies: 2
Views: 90

Custom code after Git/commit

Hi, I want to add some custom javascript code after a git-commit-actions has completed successfully. I already managed to execute some code (console.log() for testing) after the action. But how do I check if the commit was successful? Currently it is also executed when the user aborts in the commit ...
by Patrik
Tue Nov 24, 2020 4:22 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 325

Re: Custom-Mapping of IDs to names

Hi again, thanks. I could make it work now. And it turned out that I don't need a plugin at all: I can do it all - including the custom actions (e.g. XSLT-transformation) on the server - just with the framework after adding the jar file to the classpath. For completion: instead of getting the xslt s...
by Patrik
Mon Nov 23, 2020 7:51 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 325

Re: Custom-Mapping of IDs to names

Hi, about the LinkTextResolver I have done so far: Added an implementation for ExensionBundle and LinkTextResolver into my plugin added the plugin-jar to the classpath for my custom documenttype selected the extensionbundle for my custom documenttype added oxy_link-text() in the css In the Oxygen XM...
by Patrik
Mon Nov 16, 2020 6:59 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 325

Re: Custom-Mapping of IDs to names

Hi Christian, thanks for the hints. Adding an edit-botton by css that calls a js-action already works. But some issues are remaining: I don't know how to implement or register the LinkTextResolver for the web author. In desktop version I implemented an extension bundle but I'm not aware that this ex...
by Patrik
Wed Nov 11, 2020 7:03 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 325

Custom-Mapping of IDs to names

Hi, I have a usecase where the XML file needs to cntains IDs but the user should be able to see and search for a name. The mapping I will need to get at runtime (or when starting to edit the xml file) from another webservice. So I have actuelly two oxygen related issues: Display the name for the ID ...
by Patrik
Tue Sep 29, 2020 12:39 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

Hi again, thanks, now I could make it work. Java class in my plugin: @WebappCompatible @WebappRestSafe public class IsDocumentValid extends AuthorOperationWithResult { private final static Logger logger = Logger.getLogger(IsDocumentValid.class.getName()); @Override public String doOperation(AuthorDo...
by Patrik
Fri Sep 25, 2020 4:02 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

Hi again, I found and fixed a typo in your code: commitAction.actionPef ro rmed = function(callback) Now I get the colsole output - by placing the code in a plugin and also by placing the code in a framework. However, I still don't now, how to get access to the DocumentValidator. Your sample plugin ...
by Patrik
Fri Sep 25, 2020 2:07 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

Hi Christian, thanks, but it still doesn't work. I added this code to my framework.js: goog.events.listenOnce(workspace, sync.api.Workspace.EventType.EDITOR_LOADED, function(e) { console.log("sync.api.Workspace.EventType.EDITOR_LOADED"); var editor = e.editor; goog.events.listenOnce(e.editor, sync.a...
by Patrik
Thu Sep 24, 2020 7:03 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

Hi Christian, thanks for the hints. Adding a check for isDirty() was indeed very simple. But I still struggle with the validation status: Using the plugin you suggested seemed to have no effect when commiting the file to an on-premise git repository. I'd assume that the commit would trigger the same...
by Patrik
Thu Aug 27, 2020 6:25 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

Hi again, I managed to transform the document and display it in a dialog to the user. Now I'd like to add two checks before the transformation: Ensure the current document is not modified (i.e. the changes were commited) I tried to call editorAccess.isModified() in the java code but this does not wo...
by Patrik
Mon Aug 24, 2020 12:46 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

I realized that the javascript code is executed in the browser - not the server. And after opening the browser console I also found my logging output. So for now I have no further questions...

Regards,
Patrik
by Patrik
Fri Aug 21, 2020 5:48 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Re: Adding xsl-transformation to custom framework

Hi Christian, thanks for the hint. So what I achievd so far is: setting up my local webauthor creating a custom framework with xsd and css compiling my own plugin as java code based on you sample web-author-xslt-report add it as plugin to my web author So the next step would be to extens my custom f...
by Patrik
Wed Aug 12, 2020 3:55 pm
Forum: Common Problems
Topic: Adding xsl-transformation to custom framework
Replies: 12
Views: 1597

Adding xsl-transformation to custom framework

Hi, I've created a custom framewirk with xsd and css to edit some configuration files in Web Author (currently 21.1). Since the format is not exactly what we need, I'd like to create an xslt transformation. For now the result will just need to be displayed or (even better) copied to the clipboard, s...
by Patrik
Fri Nov 01, 2019 2:12 pm
Forum: Common Problems
Topic: Hiding folded placeholder
Replies: 6
Views: 1192

Re: Hiding folded placeholder

Hi Michael, thanks a lot. I followed your steps and now it works. Just for completion: the version shown on the license page: oXygen XML Web Author: 21.1, build 2019052218/2019052201 On the plugin page it did not give any additional information beside the exception. (That's only version I could find...
by Patrik
Fri Nov 01, 2019 11:50 am
Forum: Common Problems
Topic: Hiding folded placeholder
Replies: 6
Views: 1192

Re: Hiding folded placeholder

Hi Christian, thanks for the explanation. However, I still fail getting it to work. my files: plugin.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plugin SYSTEM "../plugin.dtd"> <plugin id="hide-folded-placeholder" name="Hide Folded Placeholder" description="Hides the placeholder for folded e...