Programatically trying to alter component "decoration tags" in CQ5.6

Hi,
I've been evaluating CQ5 for the last week, and one of my key desires (at this stage) is to be able to modify the values added to the class attribute of the "decoration tags" that are wrapped around the components when they are rendered - this will be important in being able to offer a responsive design experience in edit mode...
The options I have explored are:
Adding cq:noDecorate to the components - this removes the decoration tag and the associated JavaScript, which, while I can then add my own wrapping decoration, I need the associated JS in order to actually perform the edit functions.
Adding cq:htmlTag + cg:tagName + class nodes/attributes to the components - this provides what I need, in that I can define the wrapping tag name and add a class to the tag and the JS is still generated. However, this is applied at a configuration level - I need this to be possible on the fly (as the actual class name to be added will be user configurable).
So, as I understand it, you can turn off decoration programatically using componentContext.setDecorate(false); which is supposed to the equivalent to cq:noDecoration. And it is - with the buggy exception that it doesn't remove the opening decoration tag... This then causes all sorts of nested mess. As mentioned above this wouldn't work for me anyway as the JS is removed too and I need this.
The next step was to try componentContext.setDecorationTagName("mytag"); to see whether there is a way to hook into the decoration tags this way.
Using componentContext.setDecorationTagName(""); is supposed to remove the decoration tags. What is appears to do is again only remove the closing tag! It does however leave the JavaScript, and whilst I can manually close the decoration block, I still can't modify the opening tag - which is the actual aim.
Incidentally, using componentContext.setDecorationTagName("mytag"); simply changes the closing tag to "</mytag>" and again it leaves the JS and the opening tag detail untouched.
This area feels very buggy to me and as a new CQ user it raises concerns that this is indicative of CQ5 as a whole - Would this be fair or am I missing something?
Regards
James

Incidentally, using IncludeOptions.getOptions(request, true).setDecorationTagName(""); in the parsys component, just before rendering each child component (<sling:include resource="<%= par %>"/>) does wipe both opening and closing decoration tags for the component and (strangely) it leaves the decoration JavaScript...
Which means I can add a closing tag after each rendered component in the parsys component; create an opening tag in the component itself, with the custom class name coming from the configuration of the actual component instance...
Whilst this achieves what I want, it feels very hacky and each non-parsys component needs the IncludeOptions.getOptions(request, true).setDecorationTagName(""); explicitly called before it is included + an extra closing tag needs to exist in the parent code after the component include tag.

Similar Messages

  • I am having serious issues trying to alter my old iCloud account with an old non-functioning email to my new apple id with a new email address. The message keeps coming up on all my apple products with my old email (which is not available anymore).

    I am having serious issues trying to alter my old iCloud account with an old non-functioning email to my new apple id with a new email address. The message keeps coming up on all my apple products with my old email (which is not available anymore).

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • Error While trying to Get XML element(tag) Values

    We are trying to get XML element (TAG) value from the XML pay load.
    Example.
    Getting XML String from a web service and then converting into XML payload.
    ora:parseEscapedXML(bpws:getVariableData('signOn_Out','signOnReturn'))
    From this XML payload we are trying to get an element (Tag) value.
    We are getting following error
    Error in evaluate <from> expression at line "130". The result is empty for the XPath expression : "/client:TririgaProcessResponse/client:User/client:LastName".
    oracle.xml.parser.v2.XMLElement@118dc2a
    {http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/client:TririgaProcessResponse/client:User/client:LastName" is empty at line 130, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:TririgaProcessResponse/client:User/client:LastName" is not empty.
    </summary>
    </part>
    </selectionFailure>
    Here are signOnReturn and XML Payload XSD's
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/Web1"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="Web1ProcessRequest">
              <complexType>
                   <sequence>
                        <element name="userName" type="string"/>
    <element name="password" type="string"/>
                   </sequence>
              </complexType>
         </element>
         <element name="Web1ProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    </schema>
    <?xml version="1.0" encoding="windows-1252" ?>
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/Web"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="TProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
    <element name="User">
    <complexType>
                   <sequence>
                        <element name="Id" type="string"/>
    <element name="CompanyId" type="string"/>
    <element name="SecurityToken" type="string"/>
    <element name="FirstName" type="string"/>
    <element name="LastName" type="string"/>
    </sequence>
    </complexType>
    </element>
                   </sequence>
              </complexType>
         </element>
    </schema>

    I am sure and can see the data in audit trail.
    [2006/12/12 09:17:36]
    Updated variable "signOn_Output"
    - <signOn_Output>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    - <WebMethodsProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
    <Result xmlns="">
    Success
    </Result>
    - <User xmlns="">
    <Id>
    2694069
    </Id>
    <CompanyId>
    208133
    </CompanyId>
    <SecurityToken>
    1165936654605
    </SecurityToken>
    <FirstName>
    Jagan
    </FirstName>
    <LastName>
    Rao
    </LastName>
    </User>
    </WebMethodsProcessResponse>
    </part>
    </signOn_Output>
    Copy details to clipboard
    [2006/12/12 09:17:36]
    Updated variable "tririga"
    - <tririga>
    - <TririgaProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
    <Result xmlns="">
    Success
    </Result>
    - <User xmlns="">
    <Id>
    2694069
    </Id>
    <CompanyId>
    208133
    </CompanyId>
    <SecurityToken>
    1165936654605
    </SecurityToken>
    <FirstName>
    Jagan
    </FirstName>
    <LastName>
    Rao
    </LastName>
    </User>
    </TririgaProcessResponse>
    </tririga>
    Copy details to clipboard
    [2006/12/12 09:17:36]
    Updated variable "Variable_2"
    - <Variable_2>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    - <TririgaProcessResponse xmlns="http://xmlns.oracle.com/WebMethods">
    <Result xmlns="">
    Success
    </Result>
    - <User xmlns="">
    <Id>
    2694069
    </Id>
    <CompanyId>
    208133
    </CompanyId>
    <SecurityToken>
    1165936654605
    </SecurityToken>
    <FirstName>
    Jagan
    </FirstName>
    <LastName>
    Rao
    </LastName>
    </User>
    </TririgaProcessResponse>
    </part>
    </Variable_2>
    Copy details to clipboard
    [2006/12/12 09:17:36]
    Error in evaluate <from> expression at line "130". The result is empty for the XPath expression : "/client:TririgaProcessResponse/client:User/client:LastName".
    oracle.xml.parser.v2.XMLElement@1c8768e
    Copy details to clipboard
    [2006/12/12 09:17:36]
    "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    - <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    - <part name="summary">
    <summary>
    empty variable/expression result.
    xpath variable/expression expression "/client:TririgaProcessResponse/client:User/client:LastName" is empty at line 130, when attempting reading/copying it.
    Please make sure the variable/expression result "/client:TririgaProcessResponse/client:User/client:LastName" is not empty.
    </summary>
    </part>
    </selectionFailure>
    Copy details to clipboard

  • My App Store is connected to another account. I've tried to alter all my settings through iTunes, The App Store on both the phone and my Mac but it is still connected to the original owner's apple ID. Is there something I can do?

    My App Store is connected to another account. I've tried to alter all my settings through iTunes, The App Store on both the phone and my Mac but it is still connected to the original owner's apple ID. Is there something I can do?

    Turn off Find My iPhone in iCloud on the iDevice.
    Log out of iMessage, Facetime, remove Apple ID from iTunes & App Store.
    Use Settings > Reset > Erase All Content and Settings.
    Then set it up as a new iPhone with your own Apple ID.

  • I am trying to alter files in the cloud.

    I am trying to alter files in a joint work cloud, and every time the computer asks for my password then tells me I don't have permission even though I have been given full administration from our server.  I literally can not do my work.  Help please.

    This involves an entire server not an application.  The apps I am trying to use include word, moving documents and deleting documents.  This is not an icloud problem but a problem with out network cloud relating to my mini mac, everyone else has PC's and no problems.

  • SSDT tries to alter timestamp column in TFS build

    We're trying to perform an upgrade test against a copy (backup/restore) of our customer database as target. There are some tables with  timestamp column in the database. The way we do this is by having a database project with a publish profile targeting
    that copy of customer database and then with TFS build server is used to build the database but only to generate a publish script (/p:UpdateDatabase=False) set in the build definition - msbuild argument.
    Example of table definition:
    CREATE TABLE dbo.CodeTable1
    (ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY
    ,Code CHAR(6)
    ,[Timestamp] TIMESTAMP NULL);
    We would like to have the "Code" column to have CHAR(7), so in the project we modify the table definition:
    CREATE TABLE dbo.CodeTable1
    (ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY
    ,Code CHAR(7)
    ,[Timestamp] TIMESTAMP NULL);
    Expecting SSDT build will generate alter script:
    ALTER TABLE dbo.CodeTable1 ALTER COLUMN Code CHAR(7);
    To our surprise the generated script was:
    ALTER TABLE dbo.CodeTable1 ALTER COLUMN Code CHAR(7);
    ALTER TABLE dbo.CodeTable1 ALTER COLUMN [Timestamp] TIMESTAMP NULL;
    Which will cause error when the script is executed: "Cannot alter column 'TIMESTAMP' to be data type timestamp."
    Why is SSDT generating the change script for that timestamp column??
    We then try a local build in VS, the issue is not happening, SSDT correctly generates alter script only for the "Code" column to CHAR(7);
    Both local machine and TFS Build server are having VS 2013 Update 4- SSDT 12.0.50318.0 installed.
    As we tried to troubleshoot further, we found out that it seems it only happens on a restored database from a backup copy of our customer database. It doesn't happen for databases created by SSDT build from scratch or that we manually created. We've tried make
    sure all database properties are the same as the database that correctly built. But still if the target database is the one we restored from a customer's copy, SSDT always tries to alter timestamp column (on server build).
    Anyone have same experience?
    I have posted a bug in ms connect: https://connect.microsoft.com/SQLServer/feedback/details/1266051
    Thanks!

    Thanks Paul!
    However, it doesn't happen when I build the database project locally or if the target database was created by SSDT (or manually for that matter). The issue happens when I change the target database to the one we restored from a backup copy of our customer's
    database and run the build through our TFS build server.
    So I thought there must be something different with the restored database (which causes SSDT to alter timestamp column) as opposed to the one SSDT/manually created (which doesn't alter the timestamp column). Maybe there is difference on database property/settings?
    Whatever it is, I just couldn't find it.
    The only thing we will do now as workaround is to get db schema creation script from that of customer's database and run that script to re-create the database from scratch and use that as target database instead, as luck would have it, the issue would be
    gone.
    Still, why the heck SSDT tries to alter timestamp column in that specific case and not in other case as described above??
    Elvin

  • Error : ORA-32001 & ORA-02095 occurs when trying to alter audit_trial

    Hi All,
    I am trying to alter the audit_trial parameter to 'db,extended' as need to log SQLTEXT and SQLBIND into the SYS.AUD$.
    But when I tried to alter the system parameter it gives me the below error.
    Connected to Oracle Database 11g Release 11.2.0.2.0
    Connected as SYS
    SQL> ALTER SYSTEM SET audit_trail=db,extended SCOPE=SPFILE;
    ALTER SYSTEM SET audit_trail=db,extended SCOPE=SPFILE
    ORA-32001: write to SPFILE requested but no SPFILE is in use
    SQL> ALTER SYSTEM SET audit_trail=db,extended;
    ALTER SYSTEM SET audit_trail=db,extended
    ORA-02095: specified initialization parameter cannot be modified
    SQL>
    Currently there is no server parameter file (SPFILE) in use for this database.
    Is it not possible to alter the audit_trail parameter without using SPFILE scope?
    I highly appreciate all your help to overcome this issue.
    Best Regards,
    Nipuna86

    Is it not possible to alter the audit_trail parameter without using SPFILE scope?yes,change the value in pfile (locate under $ORACLE_HOME/dbs/init<DB_NAME>.ora) and shutdown and bringup the database with this pfile.

  • I receive "Database access denied" when trying to add component 4543BD

    I receive "Database access denied" when trying to add component 4543BD to my schematic. This component was added from a previous version. I'm using Multisim version 12.0.0  Student edition.
    Solved!
    Go to Solution.

    Hi Diarra,
    I checked my database and  the  4543 is not in the Student Edition. If you opened a schematic that was created in a higher version such as the Educaiton Edition and copied the part to your database, when you place this part you will get the access denied message. 
    Attached is a schematic with the part, you can open it and build you circuit around it.
    Tien P.
    National Instruments
    Attachments:
    4543.ms12 ‏62 KB

  • Error message when trying to delete a conditional tag.

    When attempting to delete a conditional tag, the following error occurred and then the program closed down:
    0x00ca1940/ 0x00000000
    Anyone come across this error. In addition, I have had similar errors occurred when resizing graphic frames. Once the error occurs, the program shuts down.

    Paul,
    It might help if you let us know which version and build of FM that
    this happened in.
    Was the tag still in use throughout the document when you tried to
    delete the condition? Did you get any prompts about deleting the
    condition?

  • Still trying to make my own Tags

    Here's what I've done:
    1. Taken one of my own pictures and resized it in editor down to 20x20 (same size as tags)
    2. Saved it in C:\Pragram files\photoshop elements 3\shared_assets\caticons with the name C_GreetingCards_N.png.
    The saved name matches the way Adobe names their caticons.
    3. I can see it in the directory tree under caticons but it doesn't show up in the palette in Organizer.
    I'm so close. Anyone got the answer to what I'm not doing?
    Thanks in advance.

    Jack....
    I just tried it again on my PC and it works fine....
    1. Start the Editor and open one of the Cat Icon Images.
    2. Delete all the contents and add your own or just modify whats there already. (or just create a new 20x20 pixel image)
    3. Save As with a new name and keeping the PNG file format.
    4. Close the image in the Editor and Open the Organiser.
    5. Go to the Tags Palette and click on the drop down arrow on the New Tag tab.
    6. Select the New Category option
    7. In the pop up window move the slider along underneath Category Icon until you see your own. Click to select it.
    Colin

  • Error 00904 trying to alter table ... ?!

    I'm running a script to create a table, the primary key of that table will then be used in an Alter Table command to make it a foreign key in an already exisiting table. Code:
    CREATE TABLE Category
    CATCODE VARCHAR2(3),
    CatDesc VARCHAR2(11) NOT NULL,
    CONSTRAINT Category_CATCODE_pk PRIMARY KEY(CATCODE)
    INSERT INTO Category(CATCODE, CatDesc) VALUES('BUS','Business');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('CHN','Children');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('COK','Cooking');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('COM','Computer');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('FAL','Family Life');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('FIT','Fitness');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('SEH','Self Help');
    INSERT INTO Category(CATCODE, CatDesc) VALUES('LIT','Literature');
    ALTER TABLE books ADD CONSTRAINT books_Category_fk FOREIGN KEY (CATCODE) REFERENCES Category(CATCODE);
    And the error:
    Error starting at line 20 in command:
    ALTER TABLE books ADD CONSTRAINT books_Category_fk FOREIGN KEY (CATCODE) REFERENCES Category(CATCODE)
    Error report:
    SQL Error: ORA-00904: "CATCODE": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:
    *Action:
    I have no idea what is wrong with my code. I successfully make my table and insert the data, why is it telling me CatCode is an invalid identifier?...
    ( I originally posted it in the wrong section whoops )

    Zombnom wrote:
    There isn't, I'm trying to ADD a column with CatCode being a foreign key in the books table.Well there's your problem. Column and foreign key are two seperate things. You can combine the two operations though:
    ALTER TABLE books ADD catcode CONSTRAINT books_category_fk REFERENCES category(catcode);

  • NullPointerException when trying to display component palette 903

    I just downloaded the production release, and took the jClient partition tutorial after completing
    JClient Form wizard I got nullpointerexception.
    This exception is from the IDE and not while running the program.
    And also when I try to display the Component palette I get the same exception.
    After creating the jClient Frame jdeveloper opens the UIEditor for editing, and also displays component palette
    if not visible, So whenever I create a new frame I am getting the exception.
    I restarted the IDE but nothing is working, I just tried View Component palette, again NullPointerException.

    this is the stack trace,
    What a cool IDE it is displaying the exception in a big alert box.
    java.lang.NullPointerException
         void oracle.ideimpl.palette.PaletteImpl.populate()
              PaletteImpl.java:240
         void oracle.ideimpl.palette.PaletteWindowImpl.checkIfPopulated()
              PaletteWindowImpl.java:323
         void oracle.ideimpl.palette.PaletteWindowImpl.show()
              PaletteWindowImpl.java:364
         boolean oracle.ideimpl.palette.PaletteManagerImpl.handleEvent(oracle.ide.IdeAction, oracle.ide.addin.Context)
              PaletteManagerImpl.java:174
         void oracle.ide.IdeAction$1.run()
              IdeAction.java:579
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:154
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85

  • HsqlDB throws exception-- trying to alter the columns from unique- primary

    Hi,
    I am trying to migrate my old DB Schema to a new DB schema and the underlying database is HsqlDB. One of the tables has two of its columns described as UNIQUE in the older schema, whereas they were made PRIMARY in the new schema. I went through the documentation provided by HSQL (http://www.hsqldb.org/doc/guide/ch09.html) and tried to execute the following query to alter the columns:
    stmt.execute("Alter Table user_type_table add primary key (user_type_name,attribute_name)");
    Somehow I get the following exception when I tried to do this:
    java.sql.SQLException: Wrong data type: KEY in statement [Alter Table user_type_table add primary key]
    at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
    at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
    at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
    Am i doing something wrong?

    Rich,
    Whichever column(s) you changed to generate the conflicts will be present in the logs anyway. Since, your prebuilt conflict handler is not set up for those columns, you end up with apply errors. You can remove those columns from being part of conflict detection by calling the DBMS_APPLY_ADM.COMPARE_OLD_VALUES procedure. Hope this helps.

  • Error when trying to create component configuration

    Hi!
    When I try to create a component configuration, the following error occurs after pressing the <create>-button:
    Dynproausgabe ohne Verbindung zum Benutzer (<b>Dynpro output without user-connection </b>)
    Applikationsserver PSD1P02_TS3_01 und im Workprozess 0
    RABAX_STATE
    SYSTEM-EXIT of program SAPLSKEY
    Function: TADIR_OBJECT_CHECK of program SAPLSKEY
    Function: CHECK_ACCESS_KEYS of program SAPLSKEY
    Method: CHECK_TROBJ_BEFORE_EDIT of program CL_WD_CONFIGURATION_MODEL=====CP
    Method: FILL_PERS_DATA of program CL_WD_CONFIGURATION_MODEL=====CP
    Method: EDIT_COMPONENT of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: IF_COMPONENTCONTROLLER~EDIT_COMPONENT of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: ONACTIONACTION of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: ONACTIONACTION of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/5EW9TCGM8MA6AXLHVUNF==
    Has anybody come across that problem and a solution on hand?
    Regards,
    Thomas

    Hi, Koen!
    Thanks for your answer. Unfortunatly I' ve only one session open - and that should' nt be too much, should it?
    Any other ideas?
    Regards,
    Thomas

  • I am trying to use the embed tag - to embed an html page with in a page embed src="page.html" /

    <pre><nowiki><!DOCTYPE HTML>
    <html>
    <body>
    <embed src="page.html" />
    </body>
    </html></nowiki></pre>

    The <embed> tag works in Windows IE 9, and Opera, Now! But not in Firefox yet. Whats up with that? I guess we will see who is going to be left behind.

Maybe you are looking for