Tobias Krais schrieb:
Hi together,
one more question: I already succeeded adding a new URL Protocol with
wildcards (CommandURL was ".Judas:"). Now I would like to add a URL
Protocol without a wildcard. The CommandURLs should be ".Judas:Saveto"
and ".Judas:PrintTrays".
Here is the relevant part of my ProtocolHandler.xcu:
-----%<----
<!-- Defines these URL protocols.
1. .Judas:Saveto
2. .Judas:PrintTrays
-->
<node oor:name="HandlerSet">
<node oor:name="de.twc.oocom.components.JudasProtocolHandler"
oor:op="replace">
<prop oor:name="Protocols" oor:type="oor:string-list">
<!-- adds two new URL protocols
1. .Judas:Saveto
2. .Judas:PrintTrays
-->
<value>.Judas:Saveto .Judas:PrintTrays</value>
</prop>
</node>
</node>
-----%<----
I now added two items to the menu with the two CommandURLs above. Both
items are enables, but the CommandURL that is received by the Component
is only ".Judas:" Where is the rest gone? How can I define a CommandURL
without wildcard?
This should work (even it was not thought to work this way).
And your protocol handler will be called (if I understand you right).
So this indicates that matching of the real URL to the protocol
supported by your handler still works fine.
I have no idea, why the URL is not complete at the time you will be
called. Did you checked the right property of the css.util.URL struct ?
It seams that ".Judas:" is the protocol part of the URL. Did you
looked on the "Complete" part of the URL ? Please check it.
Greetings, Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Regards
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]