Custom Component using Rights Management

Hello!
I'm trying to build a custom component that interact with LiveCycle Rights Management.
In my implementation I need to use the:
import com.adobe.livecycle.rightsmanagement.client.RightsManagementClient;
in order to call a policyManager object.
But when I try to invoke the process in the workbench I get the following error:
05/10 18:33:13:732 BRT] 00000065 WorkflowDSCIn E com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker logFailedFaultRouting An exception was thrown with name java.lang.NoClassDefFoundError message:com.adobe.livecycle.rightsmanagement.client.RightsManagementClient while invoking service CustomUpdatePolicyService and operation atualiza and no fault routes were found to be configured.
Am I doing right?
The main objective is to receive a policy ID (String) and Users ID (LIST) and change the policy adding the users into it.
I appreciate any help.
Diego

The thing is: when developing a custom component that connects to a LC service, must be defined a different connection property, described here:
http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&file=invokingJava.22.3.html
Diego

Similar Messages

  • Custom Component: using HtmlSelectOneMenu

    I'm currently developing a custom comboBox. I'm using HtmlSelectOneMenu class as a base for my component. I've notice that in the class, there's a bunch of getters and setters defined for "onEvent" and other html attribute.
    My question is the following:
    What the purpose of this?
    What tasks are they meant to?
    Is it for backing Bean binding?
    (I should have written queston"s" after all!!)
    What I know for a fact so far, and correct me if I'm wrong, it's not meant to render attributes. The attribute of the components tag must first be defined in the .tld . Then, attributes needs to have their getters and setters defined in the class that extends UIComponentTag (or UIComponentBodyTag). Since the HtmlSelectOneMenu class is use to set converter, validator and render (if you don't use an external one), why these getters and setters are there?
    Any explanations on that will be very appreciate.
    Thanks in advance!

    Are you talking about setOnblur(), setOnfocus(), setOnmouseover(), etc? If it is, than those functions can be use to include javascript. One thing I use it in HtmlInputText is
    inputText.setOnfocus("select()"); which will select everything in the textbox when the use click on it.

  • Create complex custom component

    Hi everyone!
    I'm trying to create my own custom component in JSF. However I have several questions :
    - It is not mandatory to create a renderer class, right ? the component can draw itself ?
    - How can I create a custom component which would have several "values" inside ? for example let us supppose I want to create a custom JSF component to enter a IBAN. The IBAN is divided into several parts : BBAN, country code, key, Bank adresse,... but any tutorial I've found explain how to create a input component with only one simple value (for example the classical "CreditCardInputComponent").
    Josselin

    Hi,
    did you find a solution for your "composite" component problem?
    I am also trying to create a custom component that contains several standard jsf components such as HtmlCommandLink and HtmlInputText.
    I build all the standard components within my component programmatically using things like:
    HtmlCommandLink link = (HtmlCommandLink) application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
    Also at the beginning of the encodeBegin I clear all children from my custom component using getChildren().clear()
    and rerender the component based on my new internal model which I updated during the previous decoding of my component.
    As a simple jsf custom tag it works ok, however, I am facing deep problems with action events as soon as I use the component within a jsf HtmlDataTable tag.
    Am I missing something here?
    Any ideas? Help is really really appreciated. This different behavior in different contexts is slowly but constantly driving me nuts.
    cheers
    hans

  • Complex custom component

    I'm tring to create a custom component that implements browse control.
    the component is composed of a input box that holds the browse result a dialog with data table and a button that cause the dialog to open.
    I have some implementation issuses :
    1. the datatable needs to get it's input from the database, normally I would create a value binding to a managed bean but I don't know where to put it in this case. (there can be more then component in a page so managed bean won't work)
    2. when the browse button is pressed I need to change the dialog display property so it would appear. how can I get hold of it's backing bean in the decode() method ? getting it through the context.getViewRoot().getChildren();isn't good enough since the component hierarchy changes from one page to another.

    Hi,
    did you find a solution for your "composite" component problem?
    I am also trying to create a custom component that contains several standard jsf components such as HtmlCommandLink and HtmlInputText.
    I build all the standard components within my component programmatically using things like:
    HtmlCommandLink link = (HtmlCommandLink) application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
    Also at the beginning of the encodeBegin I clear all children from my custom component using getChildren().clear()
    and rerender the component based on my new internal model which I updated during the previous decoding of my component.
    As a simple jsf custom tag it works ok, however, I am facing deep problems with action events as soon as I use the component within a jsf HtmlDataTable tag.
    Am I missing something here?
    Any ideas? Help is really really appreciated. This different behavior in different contexts is slowly but constantly driving me nuts.
    cheers
    hans

  • Unable to Edit the View in Custom Component

    Hi Experts,
    Please help me to resolve this issue !
    I am unable to lock the BOL Entity in my custom component using BTAdminH. I have written the below code in the Edit event Handler for Edit Button. The lr_entity->lock( ) condition statement is getting false and it is skipping the "set_view_editable( me )." code statement. Why??
    This is code excerpt that I have taken from edit button of the BP_HEAD/AccountViewSet and altered to my component/View
    DATA: lr_entity     TYPE REF TO cl_crm_bol_entity,
            lr_controller TYPE REF TO cl_ZVKH8_bspwdcomponent_impl.
      TRY.
          lr_controller ?= me->comp_controller.
          lr_entity ?= lr_controller->typed_context->btadminh->collection_wrapper->get_current( ).
    IF lr_entity IS BOUND.
      IF lr_entity->IS_LOCKED EQ abap_false.
        IF le_entity->IS_CHANGEABLE EQ abap_true.
           IF lr_entity->lock( ) EQ abap_true.
            me->view_group_context->set_view_editable( me ).
           ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    and when I directly executed the below code in the Edit event Handler for Edit Button I am receiving the dereferencing NULL value exception. Why in my custom component in many places this happening??
      me->view_group_context->set_view_editable( me ).
    Exception Details
    CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
    Method: ZL_ZVKH8_DETAILSEF_IMPL=>EH_ONBACK
    Thanks,
    Bujji

    Hi Summit & NishaNC,
    Thanks for your responses !
    As suggested, I have debugged the code for ->lock( ) method and there are exceptions raised from some methods.
    Method GET_LOCK () -> Method GET_ROOT () ->Method GET_PARENT ()
    At GET_ROOT( ) method i have received an exception
    "Root entity BTAdminH could not be determined" and one more "Entity BTAdminH could not be locked"
    Later when I have checked in MODEL Browser, I found that the BOL object "BTAdminH" for my view is an Access object and not the Root Object.
    Hence, I have a question? Does the locking can be done only for ROOT Objects?
    If this is TRUE then I think this is the major problem with my custom component where even the cross component navigation is also not happening and in many places I am receiving "Dereferencing NULL Value" information.
    Also I have gone through some of the Threads and one information that I found from Sumit Mittal
    1. An access object is an independent entity, has primary keys of its own.
    2. A root object is a special access object that is at the top of the hierarchy based on business rules.
    3. A dependent object's primary keys are supplied by access objects and it's lifetime is bound to them. If the parent object is destroyed, the dependent object is also destroyed.
    4. Search objects are query objects useful for querying root objects
    5. Search result objects - Search objects return the results in the form of a result object together with a relation pointing to the root object.
    6. View objects - ?
    7. Dynamic search objects - Used in advanced search, supports ranges and operators
    Could you please specify in which scenarios we have to go for Access Objects and Root Objects
    Thanks,
    Bujji

  • FocusOut in a custom component

    Hi.
    I made a custom component using a Canvas with a TextInput and a Button inside.
    I need to make a focusOut event to be called when the focus go out of my custom component, but not be called when the focus change beetween the inputtext and the button inside the canvas.
    How can I do that?
    Tanks.

    Hi this is simple.Please try this sample.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:Cn="*" creationComplete="Init()">
        <fx:Script>
            <![CDATA[
            import flash.events.Event;
            import mx.controls.Alert;
            private function Init():void
                objTemp.addEventListener("FocusOut", FocusOutHandler);
            private function FocusOutHandler(event:Event):void
                trace("CanCom's focus out");
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    <s:HGroup>
        <s:TextInput></s:TextInput>
        <Cn:CanCom id="objTemp"></Cn:CanCom>
        <s:TextInput></s:TextInput>
    </s:HGroup>
    </s:Application>
    _____________________________________ CanCom.mxml ______________________________________
    <?xml version="1.0" encoding="utf-8"?>
    <s:HGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo">
        <fx:Script>
            <![CDATA[
            import flash.events.Event;   
            private function FocusOutHandler(event:Event):void
                try{
                if (this.getFocus() == btnTemp || this.getFocus().parent.parent == txtTemp)
                    return;
                }catch (err:Error) { }
                dispatchEvent(new Event("FocusOut"));
            ]]>
        </fx:Script>
        <s:TextInput id="txtTemp" focusOut="FocusOutHandler(event)"></s:TextInput>
        <s:Button id="btnTemp" focusOut="FocusOutHandler(event)"></s:Button>   
    </s:HGroup>

  • Component property declaration in a Custom Component

    Hello everyone,
    I have a question related to a custom component. I will define a use case and how I want to define a property.
    e.g.: I develop a custom component using Flex Library Project, with all manifest.xml, design.xml, locale etc. My component name is CustomList, now in this component, I define a property with following getter/setter.
    //  defaultState
    private var _defaultState:CustomState;
    [Bindable( "defaultStateChange" )]
    //I have tried defining type property as CustomState, doesn't works
    [Inspectable( category="General",  name="Default State" )]
    public function get defaultState():CustomState
         return _defaultState
    public function set defaultState( v:CustomState ):void
         if ( _defaultState!= v)
              _defaultState = v
              dispatchEvent(new Event("defaultStateChange"))
    Here, CustomState extends MXMLObjectAdapter and defines a id property and few other property. and In mxml I can define it like this,
    <CustomList ....>
         <defaultState>
              <CustomState label="" icon="" />
         </defaultState>
    </CustomList>
    Now, what I want to achieve is, I want to define property something like this:
    <CustomList ....>
         <defaultState label="" icon=""/>
    </CustomList>
    Can someone tell me how to achieve this and point me to some description about it.
    Thanks in advance.
    Chetan Sachdev

    @Ryan:
    Thanks for your reply. For type property in Inspectable metadata tag: http://livedocs.adobe.com/flex/gumbo/html/WS2db454920e96a9e51e63e3d11c0bf680e1-7ffe.html#W S2db454920e96a9e51e63e3d11c0bf69084-7a21
    It can have values like Boolean, Array, String etc. I am trying to have a custom one. But I notice that I have to close the property tag, even if it is a string or html for e.g. text property in TextInput, I have to write something like this:
    <mx:TextInput>
            <mx:htmlText>
                <![CDATA[
                ]]>
            </mx:htmlText>
        </mx:TextInput>
    and
    <mx:TextInput>
            <mx:text>something</mx:text>
        </mx:TextInput>
    But I still think, it should be there. Not sure
    Chetan

  • Can I import a custom component from Flash 8 into Flex?

    'm creating a custom Flash Video Playback component in Flash
    8 using AS2. I understand that I cannot import this to Flex as
    stated in Livedocs: "You can use SWC files created in Flash 8 only
    for skinning, not as components. Until the next version of Flash is
    released, you can only use SWC files created in Flex 2 as
    components."
    But now that Flash 8 supports AS3 with the new Adobe Labs
    add-on, if I create the custom component using AS3 in Flash 8, can
    I then import it and use it in Flex 2.0.1?
    Any help is appreciated,
    Thanks!

    I was going through my libraries trying to find the quick test I did when I was dabbling with the kit and I can't find it anywhere at all.
    If I recall this was the pdf that I read to get it to work properly with CS3 and Flex 3 I don't know if you have read it already or if it will help, but it is the only thing I know for sure helped with the process.
    http://download.macromedia.com/pub/labs/flex/3/flexbuilder3_componentkit_docs_121207.pdf

  • Custom Component in CREF

    Hi everybody!
    I am trying to deploy an applet which contains a Custom Component using CREF as simulator. That means I run CREF to be waiting for incoming APDUs. By means of apdutool I run the script which contains the APDUs for the deployment of the applet. The whole CAP file is deployed properly until the custom component is tried to be deployed. Then I receive the status word 0x6424.
    That means, according to the specification:
    Exception occurred.
    * Cause: General purpose error in the installer or applet code.
    * Solution: Check your applet code for errors.
    The applet works properly without the custom component, so the problem is not in the applet code.
    The line of the script which fails is the following (where 10 is the tag chosen for the custom component): 0x80 0xB2 0x10 0x00 0x00 0x7F;
    It is the one used to prepare the Installer to receive the component whose tag is 0x10, that is what 0xB2 means.
    The response is: CLA: 80, INS: b2, P1: 10, P2: 00, Lc: 00, Le: 00, SW1: 64, SW2: 24
    The following APDUs, after that one, return 0x6421 that means the Installer is in an error state.
    So, I was wondering if someone had the same problem. Or if someone knows if CREF does not accept custom components.
    Thanks in advance, I don't reach to find where the error is. May be I am missing something...
    Best regards,
    E_L

    I would be surprised if CREF supports custom components. It would know how to use them so it would not make any sense. What is it that your custom component does?
    Cheers,
    Shane

  • Custom Component vs. States

    Dear Catalyst team,
    After trying to work around the 15 states limitation by converting them into custom components. I ran into the problem that the pages of those custom components have the tendency to change their apearance relatively to the first page of the custom component. As a result, moving a button element up a bit from the first page to the next will, when running, move the same element up EACH time I click it, moving it out of the screen eventually. Is there a way to anchor the elements in a custom component? Otherwise, by the complex nature of my project, I might run into a dead end. Please let me know if you know of any solution.
    All the best,
    Wulffrunner

    ok, got it:)
    so how about this:
    Can I trigger action sequences outside of the custom component
    using buttons that are in the custom component, and vice-versa?
    Haven't found a way to do this yet...

  • Get Acrobat to Login to Adminui vs. Rights Management App

    I am using Rights Management on LiveCycle 8.2 and managing my users in ES. A problem I am encountering is that certain operations, like revoking documents launch the URL to have the user login to the Rights Management app. But since my users aren't configured there, the logins do not work.
    Is there a way to reconfigure either Acrobat or the Rights Management App to redirect appropriately?

    Apparently not with respect to Rights Management. I have been told that this was deliberately designed this way and has to do with Policy Server being a stand alone product at some point.
    The User store for LiveCycle isn't shared with the legacy Policy Server application and that is the URL that the native applications (such as Acrobat or the Office RM Extensions) direct to from certain menu options. The URL format is as follows : http://localhost:8443/edc? Etc.  That application seems to use a separate store altogether as I can not even log in using my administrator credentials.
    Ryan M. Jacobs
    614.266.3663
    [email protected]

  • Using nullLayout for custom component

    I am writing an AccordianPanel as a custom component that can be dropped into a JPanel and behave as expected. I am using a null layout in the outer container (JPanel) as the accordian dividers need to move as told and not be managed by a layout manager. When I resize a window or another container that the custom component sits in, it doesn't resize anything - I understand this is the behavior I would expect as that is how I coded it.
    Now, I want to have the custom component resize its internal stuff when the container it resides in (i.e. JFrame or most likely another JPanel) gets moved, but I don't know how to do this. The outer most component in my custom components hierarchy is a JPanel whose layout is set to null and I stuff everything else inside there.
    I believe I need to add a componentListener to my JPanel whose layout is set to null, but I am not sure. Could someone send me in the right direction.
    thanks

    the best approach might be to implement your own LayoutManager (which is simple enough) and use it rather than absolute positioning....
    If you read postings in the forum you will find most people recommend using LayoutManagers and not a null layout so you don't have problems like this.Hello sarcommand , camickr, and anyone interested,
    I've tried to bring this discussion up again just a few days ago, and was disappointed I got no feedback - must be a dull read :o(
    Here is the [link to the thread|http://forums.sun.com/thread.jspa?messageID=10723670&#10723670], would you mind having an eye on it?
    I'm sorry to hijack this thread (seems slightly less rude than bumping my own former thread up), but I've read several discussions on this subject too, and still I can't decide whether I should follow the CustomLayoutmanager track.
    Although most of the writing there is specific to my current problem, it highlights 3 points I think are general enough:
    - A custom layout (whatever the way it is implemented, I discuss 4 approaches in the thread) is generally used to display custom components, or at least, components that represent custom application-specific entities or input points. -> Is is worth the trouble to abstract the positioning logic when this "custom layout" has only one, at best two, use cases (a couple of specific screens in your specific app that represents your specific entities)?
    - A custom (app-specific) layout manager is likely to require more knowledge about the things being layed out than the default min/max/pref sizes. In particular it may require to know data of the underlying model objects represented by the children components. How is that best designed? I tentatively think it's by way of custom Constraint classes which have to be abstract enough yet should be easily mapped from the app-specific data.
    - The CustomLayoutManager integrates natively with regular graphical events (hiding, resizing,...), but how to integrate app-specific events (such as, when the underlying data change in such a way that should be reflected by a change in the layout, how/when to force the re-layout)?
    Thank you for your help.

  • Keeping session using custom save button in managed bean

    Greetings,
    I'm building a application based on BC + ADF(JSF).
    All around the app. I need two buttons, one for committing and actualizing the UI data, and other to return to the previous page.
    Instead of customizing those buttons every time they occurs, I've haded a managed bean to do the work. This managed bean as "request" scope.
    The process of editing a form, requires me to have one form to only view the data and other to edit the data.
    The issue is: when saving a form, it should return ("back" action) to his precedence, keeping the session state.
    That is: If I'm editing "process 2" when i commit it should go to "process 2" in read only mode.
    This works fine if i use "hardcoded buttons", but when i use the managed bean to handle those buttons action, when committing, it goes to the first on the list. It doesen't keep the session state.
    How can i keep the state ?
    Thanks
    here it is the managed bean:
    package fc.view.backing;
    import fc.model.FirstCareAppModuleImpl;
    import javax.faces.context.FacesContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    import oracle.jbo.ViewObject;
    public class fcLib {
    private BindingContainer bindings;
    private CoreCommandButton commandButton_save;
    private CoreCommandButton commandButton_backOnePage;
    private CoreCommandButton commandButton_backHome;
    * Get and set bindings
    public BindingContainer getBindings() {
    return this.bindings;
    public void setBindings(BindingContainer bindings) {
    this.bindings = bindings;
    * Getters ans setters for "save" and "back" buttons
    public void setCommandButton_save(CoreCommandButton commandButton_save) {
    this.commandButton_save = commandButton_save;
    public CoreCommandButton getCommandButton_save() {
    return commandButton_save;
    public void setCommandButton_backOnePage(CoreCommandButton btn) {
    this.commandButton_backOnePage = btn;
    public CoreCommandButton getCommandButton_backOnePage() {
    return commandButton_backOnePage;
    public void setCommandButton_backHome(CoreCommandButton btn) {
    this.commandButton_backHome = btn;
    public CoreCommandButton getCommandButton_backHome() {
    return commandButton_backHome;
    * Back actions for back buttons
    public String commandButton_backOnePage_action() {
    return "back";
    public String commandButton_backHome_action() {
    return "home";
    * Save button action - Used in al pages that do save (commit) data
    public String commandButton_save_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    OperationBinding operationBinding2 = bindings.getOperationBinding("Execute");
    operationBinding.execute();
    operationBinding2.execute();
    // It should be a error page
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    // Refresh main view object
    DCBindingContainer bc = (DCBindingContainer)FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("bindings");
    FirstCareAppModuleImpl fc = (FirstCareAppModuleImpl)bc.findDataControl("FirstCareAppModuleDataControl").getDataProvider();
    ViewObject vo_SitSocProf = fc.findViewObject("EpisodiosMain");
    vo_SitSocProf.executeQuery();
    System.out.println(" All done. Ciao ");
    return "back";
    }

    Hi
    I re-execute the query only to refresh the AM VO data.
    I'm using AM EO to access DB Views, that use IOF triggers to update/insert/delete into the DB.
    Using the application, when updating data, changes wont reflect in the UI if I don't refresh the "master" VO, that is "EpisodiosMain". I'm doing a commit and a execute to a "detail" VO.
    "If you need to execute the query and set it back to the last row you worked with, get the row key before executing the query so you can set the current row back to this rowkey"
    Could you please throw a example on how to do this ?
    "Reaching through to the AM to execute the VO isn't best practices. You should grap the associated iterator in teh binding instead and perform the execute operation. Note that usig ADF binding there are only rare situations in which you need to access teh business service directly as you do. "
    Again, could you please post an example of how to do this, or introduce me to some documentation.
    Thanks
    Message was edited by:
    Buondi

  • Using Task Manager for custom approvals

    If some one knows a better way to do customer approvals using a web service please let me know.
    Issue: I am trying to use the Task Manager provided in the BPEL Control. I am trying to invoke the web service and I am getting the error. I am not sure if I am using it right or what might be happening. Please let me know how I should be using this service or if there is an easier way.
    Cheers Mike.
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: set.by.caller: set.by.caller</summary>
    </part></remoteFault>

    It looks like to me that in your invoke activity instead of invoking "initiate" operation you are trying to invoke "onResult" operation. Go to you partner link and check what did you set as partner role in "Partner role" drop down list. Partner role should be set as provider and not as requester.
    Cheers!
    Zoran

  • Can I use axis.jar in my custom component

    Can I use axis.jar in my custom component.
    Is there any license need to user this jar ??
    Thanks

    In our UCM setup axis has been implemented in a custom component to consume webservices. As Axis falls under the Apache license you can freely import it in your custom java classes.

Maybe you are looking for

  • Need help with vomit spill (yes, really!!)

    Sad, but true. My son had his iBook on his bed with him when he vomitted. He said he didn't think he had gotten any inside, but it wouldn't turn on. I brought it to the Apple Store and they sent it out for repair. The tech person called me and said t

  • Oracle 9.2.0.6 Jdbc Package Call

    We have the following problem: calling from Java application (with driver classes12.jar or ojdbc14.jar) a package procedure (that contains another package procedure call), an error ORA-6502 occured. ORA-06502: PL/SQL: numeric or value error: characte

  • My iPad 2 display is malfunctioning.

    I am not sure how it happened, at 13:30 on Saturday March 14, 2014 my iPad was working just fine but ten minutes later my iPad began to display black coloring as a bright green, the whites as a bright pink with static, and silvers as white with stati

  • PO for CIN issue - urgent

    Dear Guru, Kindly guide for how to create local PO for cost centre (K) without material number (free text)? Beside create a tax code for it (FTXP), should i maintain the chapter id in J1ID with blank material? Should i maintain the excise rate in J1I

  • Bus.transaction field in BKPF Table

    Hello SAP Gurus! I would like to get some info on Bus.transaction field in BKPF Table. How does this field gets populated? What does it signify and its functionality? Is there any config in SAP to control this field? Thanks for your reply in advance,