How to set cq:noDecoration true via code in CQ5.3?

Hi All,
Can anyone please help with sharing the idea/code how to set cq:noDecoration to true so that extra div tags can be removed which gets generated by CQ dynamically?
Also, is there a way to still allow editing along with setting cq:noDecoration to true?
Any help would be much appreciated.
Thanks.

You can set this at component level (Only 5.4 and above). Please see [1]
[1] http://dev.day.com/docs/en/cq/current/developing/components.html
For CQ5.3
componentContext.setDefaultDecorationTagName(“”);
If you still see some component specific tag try to use
slingRequest.setAttribute(ComponentContext.BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE, false);
Yogesh

Similar Messages

  • How to set isIdentityAssertion to true in the SampleLoginModuleImpl code

    I was looking into this sample code.
    http://edocs.beasys.com/wles/docs42/dvspisec/examples.html#1054478
    In the code, how can I make isIdentityAssertion to true.
    How or from where in Client / Webapp can I set the isIdentityAssertion to Options hashmap.
    I want to set isIdentityAssertion to true in certain conditions and sometimes not via the client/app
    Thanks

    In that example the isIdentityAssertion value is determined by code in the SimpleSampleAuthenticationProviderImpl class - which is the actual authentication provider.
    The key methods are getLoginModuleConfiguration and getAssertionModuleConfiguration.
       * Create a JAAS AppConfigurationEntry (which tells JAAS
       * how to create the login module and how to use it) when
       * the simple sample authenticator is used to authenticate (vs. to
       * complete identity assertion).
       * @return An AppConfigurationEntry that tells JAAS how to use the simple sample
       * authenticator's login module for authentication.
      public AppConfigurationEntry getLoginModuleConfiguration()
        // Don't pass in any special options.
        // By default, the simple sample authenticator's login module
        // will authenticate (by checking that the passwords match).
        HashMap options = new HashMap();
        return getConfiguration(options);
       * Create a JAAS AppConfigurationEntry (which tells JAAS
       * how to create the login module and how to use it) when
       * the simple sample authenticator is used to complete identity
       * assertion (vs. to authenticate).
       * @return An AppConfigurationEntry that tells JAAS how to use the simple sample
       * authenticator's login module for identity assertion.
      public AppConfigurationEntry getAssertionModuleConfiguration()
        // Pass an option indicating that we're doing identity
        // assertion (vs. authentication) therefore the login module
        // should only check that the user exists (instead of checking
        // the password)
        HashMap options = new HashMap();
        options.put("IdentityAssertion","true");
        return getConfiguration(options);
      }Also, if your client app is a web app, make sure to add this to your web.xml
       <login-config>
          <auth-method>CLIENT-CERT</auth-method>
          <realm-name>Legacy_ThisElementIsIgnored</realm-name>
        </login-config>

  • How to set value in combox by code

    how to set value in combox by code

    Dear
    You can use the following code to set the values in combobox by a query
       strQuery = "select ItemCode,ItemName  from OITM"
            oRecSet = Me.SBO_Company.GetBusinessObject(BoObjectTypes.BoRecordset)
            oRecSet.DoQuery(strQuery)
                 oCombo = Me.oForm.Items.Item(encontrolName.colEmpType).Specific
            If oRecset.Fields.Count > 0 Then
                While oRecset.EoF = False
                    oCombo.ValidValues.Add(oRecset.Fields.Item(0).Value, oRecset.Fields.Item(1).Value)
                    oRecset.MoveNext()
                End While
            End If
    Regards
    Rupinder

  • How to set a system property via the config tool?

    Hello,
    how can I set a system property via the config tool? Before I chose WAS from SAP I used java with option -D<name>=<value> to set the system properties.
    Very much thanks in advance.
    Regards
    Carsten

    Hi Carsten,
    WAS config tool is located under
    e.g. usr\sap\J2E\JC00\j2ee\configtool
    start configtool.bat
    there will be opened a configuration tool GUI
    Click on the instance_ID.... leaf of the tree in the left pane and then on the server_ID.... leaf.
    Java settings will appear in the right pane after this steps.
    Best Regards,
    Violeta

  • How to set pre-defined constants via FXML

    Does anymode know how to set a pre-defined constant like javafx.scene.control.Control.USE_PREF_SIZE via FXML when you create a node?
    Instead of using a fixed value like this
       <Label text="Last Name:" minWidth="100" />I would like to use one of the predefined sentinel values like this.
       <Label text="Last Name:" minWidth="USE_PREF_SIZE" />The above example does not seem to work and I have the feeling that this is currently not possible at all.

    How did you get that working? When I use the following file I only get a warning that "javafx" is not defined.
    Defining var A seems to work but it fails on var B. It seems to be impossible to access anything outside the
    java... hierarchy. Is there anything else you have to define?
    <?xml version="1.0" encoding="UTF-8" ?>
    <?language javascript?>
    <?import javafx.scene.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.control.*?>
    <StackPane xmlns:fx="http://javafx.com/fxml" >
         <fx:script>
              var A = java.awt.Component.BOTTOM_ALIGNMENT;
              var B = javafx.scene.control.Control.USE_PREF_SIZE;
         </fx:script>
    </StackPane >   

  • How to set up Canon printer via Netgear print server ps121 on new macbook

    I have bought a new Macbook (OS10.4.8). The Apple store gives a good deal if you buy a Canon ip4300 with it but I am having problems figuring out how to set up the printer to work thru my Netgear print server on my Netgear network. Can anybody advise:
    1. I know my print server is on port 192.168.1.5, but what kind of settings do I use, IPP or LPT or something else?
    2. Why can I not find the driver for the ip4300, even though I have used the CD that came with the printer and run the install program and the printer DOES work when I plug it directly into the USB port. Why does the Macbook come with drivers already installed for only a few ancient BJ Canons and why won't it show me where the driver for the ip4300 is since it is obviously already on the machine?
    I know Netgear treats its customers with contempt (Linksys even worse). But I would expect a little more simplicity from Canon and Apple. I know I am an orangutan but it still seems incredibly difficult, as if they have hidden the printer driver on the computer and as if Apple does not want you to install networked printers. Please don't tell me to RTFM, I have read the Canon manual, it tells you how to network with Windows, does not even mention Mac. Any advice appreciated.
    Macbook   Mac OS X (10.4.8)   Netgear PS121, Netgear WGT624v3 router, Canon ip4300 printer

    Hi zoevancouver,
    If you are not able to set up your Canon MP460 printer, take a look at the article below.  There is a link to the Canon website and compatible printers.  Since this particular model is not on the list, you may need to contact Canon for additional support.
    OS X: Printer and scanner software available for download - Apple Support
    https://support.apple.com/en-us/HT201465
    Regards,
    - Judy

  • How to set applet  parameter in java code?

    Hi All,
    Instead of setting applet parameters in JSP page, Now I have a need to set
    applet parameters in java code. But I can't find a method that allow me to do this. There
    is only getParameter but seems no setParameter method.
    Any help is appreaciated.
    Thanks,
    Chris

    Take a look at set_custom_property:
    public static final ID SETTEXT = ID.registerProperty("SETTEXT");
    public boolean setProperty(ID pid, Object value)
        if (pid == SETTEXT)
    String text = value.toString();
    and in forms
    set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
    cheers

  • How to set layer color property via script?

    I'm looking for a way to set a layer's UI color property via script (see attached). Any help would be greatly appreciated!

    jrapczak2 wrote:
    Uhm.. wow. That's crazy complicated
    It is even more complicated to work with multi-selected layers.
    if( app.documents.length > 0 && versionCheck()  ){
         app.activeDocument.suspendHistory("Set Layer's Color", 'changeLayersColor()');
    function versionCheck()  { return app.version.match(/1[1|2]./) >= 11; };
    function changeLayersColor(){
         function setActiveLayerColor( color ) {
              var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              desc.putReference( charIDToTypeID('null'), ref );
                   var colorEnumDesc = new ActionDescriptor();
                   colorEnumDesc.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), color );
              desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), colorEnumDesc );
              executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
         function getSelectedLayersIdx(){
                   var selectedLayers = new Array;
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                   var desc = executeActionGet(ref);
                   if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
                        desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
                         var c = desc.count
                         var selectedLayers = new Array();
                         for(var i=0;i<c;i++){
                             try{
                                  activeDocument.backgroundLayer;
                                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                             }catch(e){
                                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
                    }else{
                        var ref = new ActionReference();
                        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
                        ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                        try{
                             activeDocument.backgroundLayer;
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
                        }catch(e){
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
                   return selectedLayers;
         function makeActiveByIndex( idx, visible ){
              if( idx.constructor != Array ) idx = [ idx ];
              for( var i = 0; i < idx.length; i++ ){
                   var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putIndex(charIDToTypeID( "Lyr " ), idx[i] );
                   desc.putReference( charIDToTypeID( "null" ), ref );
                   if( i > 0 ) {
                        var idselectionModifier = stringIDToTypeID( "selectionModifier" );
                        var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
                        var idaddToSelection = stringIDToTypeID( "addToSelection" );
                        desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
                   desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
                   executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
         var colors = ['None','Red','Orange','Yellow','Green','Blue','Violet','Grey'];
         var colorIDs = [charIDToTypeID('None'),
                                  charIDToTypeID( "Rd  " ),
                                  charIDToTypeID( "Orng" ),
                                  charIDToTypeID( "Ylw " ),
                                  charIDToTypeID( "Grn " ),
                                  charIDToTypeID( "Bl  " ),
                                  charIDToTypeID( "Vlt " ),
                                  charIDToTypeID( "Gry " )];
         var dlg = new Window( 'dialog', 'Change Layer Color' );
         dlg.ddColors= dlg.add("dropdownlist", undefined,  colors);
         dlg.ddColors.preferredSize.width = 100;
         dlg.ddColors.items[0].selected = true;
         dlg.ok = dlg.add('button',undefined,'Ok');
         dlg.cancel = dlg.add('button',undefined,'Cancel');
         var results = dlg.show();
         if( results == 1 ){
              var selectedLayers =  getSelectedLayersIdx();
              for( var l=0;l<selectedLayers.length;l++ ){
                   makeActiveByIndex( selectedLayers[l], false );
                   setActiveLayerColor( colorIDs[dlg.ddColors.selection.index] );
              makeActiveByIndex( selectedLayers,false );

  • How to set cursor after submit via selection-screen

    hi guys,
    i would like to set cursor to certain field, after submit via selection-screen.
    eg.
    SUBMIT   z_mm_kbr_gr_label_01
                VIA SELECTION-SCREEN
                WITH p_mblnr = p_mblnr
                WITH p_zeile = p_zeile
                WITH p_gjahr = p_gjahr
                WITH p_ccode = p_ccode
                WITH p_dcode = p_dcode
                WITH p_crt = p_crt
                WITH p_print = p_print.
    i want to set cursor field 'p_ccode' after going back to
    z_mm_kbr_gr_label_01. the program always go to the first field on the screen whatever i do.
    may i know how to do this?
    thanks.

    Hi,
    Please try like below .
    at selection-screen output.
    SET CURSOR FIELD  'P_CCODE' .

  • How to set java.library.path form code

    I'm new to JNI. I see there are several ways to set JVM to look for libraries dll, so, etc.
         System.setProperty("java.library.path", ".");
         System.loadLibrary("hello");That's when UnsatisfiedLinkError
    java.lang.UnsatisfiedLinkError: no hello in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
         at java.lang.System.loadLibrary(System.java:992)
         at HelloWorld.main(HelloWorld.java:17)But if I comment the line that sets the java.library.path and call the program with the command java -Djava.library.path=. HelloWorld works.
    The question is: Why is not working? How should it be the property setup? I rather don't set Variables, or use -D option.
    Thanks in advance.
    PD: If it helps I'm using JDK 1.5.0_01 on Linux kernel 2.6.8

    well i wrote the script and everything is fine! i can run the blackbox example on the commapi.
    But i am writing another program using netbeans to send some data to a PIC microcontroller using the serial port (that is why i installed the commapi), and when i'm trying to build it or run it on netbeans throws this error:
    Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
    Exception in thread "main" java.lang.UnsatisfiedLinkError: isDevLink
    at com.sun.comm.Unix.isDevLink(Native Method)
    at com.sun.comm.PathBundle.add(PathBundle.java:108)
    at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
    at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
    as far as i know it seems to be missing a library (LinuxSerialParallel), if this is right, adding the library would solve the error?how can i add the library? is there another way to solve this?
    thanks in advance!!

  • How to set source in VideoPlayer via actionscript?

    Hi,
    I'm trying to play video in spark.components.VideoPlayer by setting its source property. However, on playing the video doesn't play and comes out as garbled. Am I missing something here?
    Here is the source code-
    <?xml version="1.0" encoding="utf-8"?>
    <!-- controls\videoplayer\VideoPlayerEvent.mxml-->
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:layout>
            <s:VerticalLayout/>
        </s:layout>
        <fx:Script>
            <![CDATA[
                import org.osmf.events.MediaPlayerStateChangeEvent;
                import org.osmf.events.TimeEvent;
                import spark.components.VideoPlayer;
                protected function vpCompleteHandler(event:TimeEvent):void {
                    myTA.text = "Video complete - restarting."
                protected function
                    vpMediaPlayerStateChangeHandler(event:MediaPlayerStateChangeEvent):void {
                    if (event.state == "loading")
                        myTA.text = "loading ...";
                    if (event.state == "playing")
                        myTA.text = "playing ...";
                private function onPlayVideo(): void {
                    videoPlayer = new VideoPlayer();
                    videoPlayer.source = "file:///D:/shared/work/data/test/original/bkb2.flv";
                    playerContainer.addElement(videoPlayer);
                    //player.
                private function onStopVideo(): void {
                    videoPlayer.stop();
                private var videoPlayer:VideoPlayer;
            ]]>
        </fx:Script>
        <s:VGroup id="playerContainer" verticalAlign="middle">
        </s:VGroup>
        <s:HGroup>
            <s:TextArea id="myTA" width="350" height="25"/>
            <s:Button label="Play Video" click="onPlayVideo();"/>       
            <s:Button label="Stop Video" click="onStopVideo();"/>       
        </s:HGroup>
    </s:WindowedApplication>
    Thanks in advance,
    Ramashish

    You can access the columns through the dataGrid.columns array
    property.
    Get a reference to that array from the DG into a variable,
    modify the column elements as desired through that var, then
    re-assign the var to the dg.columns property. So you are close:
    var aColumns:Array = dataGridID.columns;
    var dgc:DataGridColumn = aColumns[1];
    dgc.headerText = "this is column 1";
    dataGridID.columns = aColumns; //this step is required!
    Tracy
    Tracy

  • How to set breakpointer at any source code?

    i want to set break point any one line of source code.
    i saw the object file of this source code is loaded already
    even i use command to load it again by
    loadobjects xxx.so
    but when i set breakpoint at line of source code
    it said. couldnot find object files.
    but it is under LD_LIBRARY_PATH . and i load share libaray which contains
    this object file already.
    what should i do?

    Well, these 2 are different. If you want dbx to find shared libraries, executables ended with .so, you use LD_LIBRARY_PATH which is by the way the run-time linker would use. But for dbx to find object files in an executable, which are located in other directories, you need to use the dbx command "pathmap". Please type "help pathmap" in dbx for more details.
    - Rose

  • HT3500 MacBook Air 2011/ OSX Lion 10.7.2; Epson stylus SX430W Wi-Fi Printer; USB working OK. How to set up wireless connection via USB modem??

    Cannot get wireless functions to work, neither via MBA nor Epson setup screen; not IT literate No wifi network available, have I been suckered??

    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    Apple recommends that you deauthorize a device in the iTunes Store before having it serviced.

  • How do i start the tnameserv via code

    Hi,
    I am trying to start the tnameserv which is the server which holds references to objects.it starts fine when u give start tnameserv in command line. But when I try to give it in Runtime.exec() . It throw io exception.Do help me
    TIA,
    Anand Bose

    Try to use class TransientNameServer:
    args=new String[1];
    args[0]="org.omg.CORBA.ORBInitialPort=900";
    // Code for Sun JDK:
    com.sun.corba.se.internal.CosNaming.TransientNameServer.main(args);
    /* Code for IBM JDK:
    com.ibm.corba.CosNaming.TransientNameServer.main(args);
    */

  • How to set up airport M8440 via a pc (windows 7)?

    After my powerbook got broken, the company i work for gave me a HP laptop (OS is windows 7). I was using an airport m8440 with my powerbook to connect to the internet. Now I want to use the same modem with new laptop but i forgot the password for the base station. Would anyone tell me step by step what I should do to use this base station?
    Thanks a lot in advance.

    Unfortunately, to perform a "factory default" reset on the Dual Ethernet/Snow AirPort Base Station you will need both a Mac and the old AirPort Utility for Graphite and Snow 4.2.5 software utility.

Maybe you are looking for

  • I can only delete one old bookmark at a time. How can I delete mutiple old bookmarks at once?

    ''dupe of https://support.mozilla.org/en-US/questions/911712'' I can only delete one bookmark at a time? How Can I delete mutiple old bookmarks?

  • How to Restrict Material Type in MM01 ?

    *Hi experts,* *How to restrict material type ? i wanted to restrict the end-user not to access any other material types than Raw material,Semi-finished goods. it means when end user trying to create material then if he enters other than these two mat

  • Payment lot (FP05) input text to FICA document

    Dear all, Is there any ways to input information in payment lot items and it pass to text field in each FICA document (table DFKKKO, DFKKOP, DFKKOPK)? Currently I can only input such information in usage text and it keep in table DFKKZP. Scenario: I

  • Editing in browser only works on the first page on my site-

    Hello, my site is made with Muse, and hosted on BC. My client and me have the same problem (with different browser), wenn edit for change contents in a browser, it works only on THE FIRST PAGE, than not anymore, if i navigate to a next oage and want

  • Slideshow Background

    Hello all,    I'm wondering if anyone would know how to change the background colour of a flash slide-show.  I am trying to post a slide-show on a website, but some of the pictures do not fit the box well and, as a result, there are black bars surrou