Hi Michael,
thanks, but the content might also be only a single line - which looks very strange on a full-screen-dialog... ;)
But I implemented a simple algorithm to guess if the content is large, and set the preferred hight to null or 10000 depending on that. This works fine!
Regards,
Patrik
Search found 267 matches
- Fri Feb 05, 2021 10:17 am
- Forum: Common Problems
- Topic: Dialog initially without scrollbar
- Replies: 5
- Views: 369
- Thu Feb 04, 2021 8:35 pm
- Forum: Common Problems
- Topic: Dialog initially without scrollbar
- Replies: 5
- Views: 369
Re: Dialog initially without scrollbar
Hi Michael,
thanks for the workaround - although it is not realy working for me since the content is generated dynamically and I can hardly guess any reasonable preferred size. But makingit resizable to the user can "activate" the scrollbar manually will work for now.
Regards,
Patrik
thanks for the workaround - although it is not realy working for me since the content is generated dynamically and I can hardly guess any reasonable preferred size. But makingit resizable to the user can "activate" the scrollbar manually will work for now.
Regards,
Patrik
- Wed Feb 03, 2021 7:18 pm
- Forum: Common Problems
- Topic: Dialog initially without scrollbar
- Replies: 5
- Views: 369
Dialog initially without scrollbar
Hi, I have a dialog that contains a lot of content so it should have a scrollbar. But initially there is no scrollbar. When I resize the dialog (explicitly or by resizing the browser window) the scrollbar appears. Also when I perform the action again (the dialog is a member). Hier is the code of my ...
- Wed Jan 13, 2021 6:21 pm
- Forum: Common Problems
- Topic: RefreshReference without making doc dirty
- Replies: 6
- Views: 471
Re: RefreshReference without making doc dirty
Great, that works for me as well! :)
Thanks!
Patrik
Thanks!
Patrik
- Wed Jan 13, 2021 3:35 pm
- Forum: Common Problems
- Topic: RefreshReference without making doc dirty
- Replies: 6
- Views: 471
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...
- Wed Jan 13, 2021 12:32 pm
- Forum: Common Problems
- Topic: RefreshReference without making doc dirty
- Replies: 6
- Views: 471
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...
- Tue Jan 12, 2021 6:58 pm
- Forum: Common Problems
- Topic: RefreshReference without making doc dirty
- Replies: 6
- Views: 471
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
But now I realized I just had to add this interface and it works fine.
Thanks a lot - once again! :)
Patrik
- Tue Jan 12, 2021 11:52 am
- Forum: Common Problems
- Topic: RefreshReference without making doc dirty
- Replies: 6
- Views: 471
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...
- Fri Jan 08, 2021 2:23 pm
- Forum: Common Problems
- Topic: Get git-username from custom operation
- Replies: 2
- Views: 117
Re: Get git-username from custom operation
Wow, that was easy - almost boring... ;)
Thanks a lot,
Patrik
Thanks a lot,
Patrik
- Thu Jan 07, 2021 7:15 pm
- Forum: Common Problems
- Topic: Get git-username from custom operation
- Replies: 2
- Views: 117
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
is there a way to get the current git user name from within my implementation of AuthorOperationWithResult?
Thanks and regards,
Patrik
- Wed Dec 16, 2020 2:47 pm
- Forum: Common Problems
- Topic: Problem with SecurityManager
- Replies: 5
- Views: 297
Re: Problem with SecurityManager
Great, thanks for the offer. I created a minimal test framework and sent it to support@oxygenxml.com.
Regards,
Patrik
Regards,
Patrik
- Tue Dec 15, 2020 2:40 pm
- Forum: Common Problems
- Topic: Problem with SecurityManager
- Replies: 5
- Views: 297
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...
- Mon Dec 14, 2020 1:21 pm
- Forum: Common Problems
- Topic: Problem with SecurityManager
- Replies: 5
- Views: 297
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...
- Thu Dec 03, 2020 6:50 pm
- Forum: Common Problems
- Topic: Custom-Mapping of IDs to names
- Replies: 9
- Views: 489
Re: Custom-Mapping of IDs to names
Thanks again. I could make it work now! :)
Regards,
Patrik
Regards,
Patrik
- Thu Dec 03, 2020 12:04 pm
- Forum: Common Problems
- Topic: Custom-Mapping of IDs to names
- Replies: 9
- Views: 489
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...
- Fri Nov 27, 2020 2:29 pm
- Forum: Common Problems
- Topic: Concept for custom java interaction
- Replies: 2
- Views: 169
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...
- Thu Nov 26, 2020 4:57 pm
- Forum: Common Problems
- Topic: Concept for custom java interaction
- Replies: 2
- Views: 169
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...
- Thu Nov 26, 2020 4:51 pm
- Forum: Common Problems
- Topic: Custom code after Git/commit
- Replies: 2
- Views: 185
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
Regards,
Patrik
- Wed Nov 25, 2020 7:02 pm
- Forum: Common Problems
- Topic: Custom code after Git/commit
- Replies: 2
- Views: 185
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 ...
- Tue Nov 24, 2020 4:22 pm
- Forum: Common Problems
- Topic: Custom-Mapping of IDs to names
- Replies: 9
- Views: 489
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...
- Mon Nov 23, 2020 7:51 pm
- Forum: Common Problems
- Topic: Custom-Mapping of IDs to names
- Replies: 9
- Views: 489
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...
- Mon Nov 16, 2020 6:59 pm
- Forum: Common Problems
- Topic: Custom-Mapping of IDs to names
- Replies: 9
- Views: 489
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...
- Wed Nov 11, 2020 7:03 pm
- Forum: Common Problems
- Topic: Custom-Mapping of IDs to names
- Replies: 9
- Views: 489
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 ...
- Tue Sep 29, 2020 12:39 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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...
- Fri Sep 25, 2020 4:02 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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 ...
- Fri Sep 25, 2020 2:07 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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...
- Thu Sep 24, 2020 7:03 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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...
- Thu Aug 27, 2020 6:25 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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...
- Mon Aug 24, 2020 12:46 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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
Regards,
Patrik
- Fri Aug 21, 2020 5:48 pm
- Forum: Common Problems
- Topic: Adding xsl-transformation to custom framework
- Replies: 12
- Views: 1825
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...