Table component uses outdated attributes

The text editor's table plugin [The table component] uses outdated markup for centering items vertically in a table cell:
It renders: <td valign="middle">
instead of using the modern:
<td style="vertical-align:middle">
This breaks the layout. I need to find out how to update the table plugin for the text editor.
Anyone knows how to fix this?
Thanks in advance,
David

I got a patch from Adobe support:
You can do this change in [1] around line 672. You can change it to [3].
Note that isIE is declared in [2] around line 67. You can remove the setAttribute all together if you want to use style attribute for all browsers.
[1] /libs/cq/ui/widgets/source/widgets/form/rte/commands/Table.js
[2] /libs/cq/ui/widgets/source/ext/source/ext-core/src/core/Ext.js
[3]
if (config.valign) {
            if (config.valign != noneConfig) {
com.setAttribute(dom, "valign", config.valign);
                if (!CQ.Ext.isIE){
dom.style.verticalAlign = config.valign;
            } else {
com.removeAttribute(dom, "valign");
                if (!CQ.Ext.isIE){
dom.style.verticalAlign = "";
Regards,
  Pierre Chamoun

Similar Messages

  • Java script error when using a "Table" component (jsc2)

    using a table component, I get a js errors, when lodiing the HTML page, sorting rows etc.
    can some one helpe me or can some one have the same problem ?

    Hi,
    Please post JSC2 related queries at:
    https://feedbackprograms.sun.com/login.html
    Cheers
    Giri

  • Using table component,not binding

    Hi all,
    I've been searching info about using the table component
    , adding,deleting,etc programatically, not binding to a Database how the JSC tutorial works.
    The idea is simply:
    - add and remove rows when the user fills a textbox and push a button to add the item.....
    Anyone have an example or a link with examples??
    thanks in advance!

    What I do is create a list with, say, two Person objects then use ObjectListDataProvider's setList(List) method to associate the list with the data provider's list property.
    I create the data provider in a session bean. In the bean's init method I call remove the dummy list items.
    Before you can bind this data provider's list to any components you have to build the project, then close and reopen the project. Otherwise, JSC won't detect the presence of the data provider.
    Here's an example from my program. Note that any package or import beginning with com.cfi.office refers to custom code.
    This first class is the data provider. I added a convenience method clear the list but you don't have to do that.package com.cfi.office.dataproviders;
    import com.cfi.office.schema.tables.Phone;
    import com.sun.data.provider.impl.ObjectListDataProvider;
    import java.util.ArrayList;
    import java.util.List;
    public class PhoneListDataProvider extends ObjectListDataProvider {
        public PhoneListDataProvider() {
            List phoneList = new ArrayList();
            phoneList.add(new Phone("1112223333", "444");
            phoneList.add(new Phone("5556667777", "888");
            this.setList(phoneList);
        public void clearList() {
            this.getList().clear();
            return;
    }This next code fragment is from a session bean.    public void init() {
            super.init();
            try {
                _init();
            } catch (Exception e) {
                log("BidSessionBean Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            abContactPhoneListDP.clearList();
        private PhoneListDataProvider abContactPhoneListDP = new PhoneListDataProvider();
        public PhoneListDataProvider getAbContactPhoneListDP() {
            return this.abContactPhoneListDP;
        public void setAbContactPhoneListDP(PhoneListDataProvider abContactPhoneListDP) {
            this.abContactPhoneListDP = abContactPhoneListDP;
        }After you build the project, close it and reopen it, you should see the data provider in the binding dialog box.

  • How to validate an attribute in a table/EO using a DB Table

    I have an attribute LocationId in DuplicateLocationEO(LocationId,LocationName)
    And I need a validation on this so that user can enter a LocationId that exists in LOCATION_ID of HR.LOCATIONS table
    How to validate an attribute in a table/EO using a DB Table?

    Issue: Insert a value into an attribute if it is valid, Like it is available in another table.
    Scenario: Insert a Location into a DuplicateLocationEO based on LocationEO.
    Solution: Create a Entity Validator on LocationId of DuplicateLocationEO that is list based on query of LocationEO’s LocationId.
    Note: if the validation is created at attribute level, then it leads to NPE or Undesirable results.
    Procedure Steps:
    Step#01: Open desired Entity Object “DuplicateLocationEO”, Go to “Overview” tab & “Business Rules” finger tab.
    Step#02: Select “Entity Validators” & Click “+”
    Step#03: Set the following Rule Definition Tab:
    •     Select Rule Type as “List”
    •     Attribute “LocationId”
    •     Operator “In”
    •     List Type “Query Result”
    •     Enter SQL Statement “Select LOCATION_ID FROM LOCATIONS”
    Step#04: Now go to “Failure Handling” tab & Select radio button for “Error”.
    Step#05: Click the Magnifier link to create a message.
    Step#06: In the “Select Text Resource” popup. Provide the following
    •     Display Value: “Invalid LocationId: {LocationId}. Please enter a valid Location”
    •     Key: INVALID_LOC
    •     Description: message when user enters an invalid location.
    Step#07: Click “Save and Select” Button
    Step#08: Click “OK” Button
    Reference:
    DuplicateLocationEO DDL Script:
    CREATE TABLE "HR"."TEST_LOC"
    (     "LOCATION_ID" NUMBER NOT NULL ENABLE,
         "LOCATION_NAME" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         CONSTRAINT "TEST_LOC_PK" PRIMARY KEY ("LOCATION_ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    To Populate Rows:
    Insert into TEST_LOC select Location_id, city from LOCATIONS

  • How feed many record in table component and not use append command again

    hi master
    How I feed Multiple records in table component and not use append and save command again and again
    Same as oracle grid
    I give many record and save one time
    Please give me idea how I add Multiple record and save one time not use append and save command again and again
    Thank�s
    aamir

    Hi!
    appendRow() method just add temporal row. For add them to DB commitChanges() method should be used. So you can use appendRow() method several times, fill every new row and only then use commitChanges() method. In this case all new rows will be added to DB per one time.
    Thanks,
    Roman.

  • Model component using table of impedance versus frequency

    I would like to model a device which I may describe as something that has a measured impedance versus frequency in a tabular format. Is there a way to do this in Multisim. I have tried researching the Analog Behavior Model (ABM) using possibly a B Source but can't come up with the syntax that works.
    The following example was slightly modified for my purposes from another competing Spice Simulator user forum and it works there. This model shows a table using frequency, a real and an imaginary resistance. The resulting AC Analysis interpolates values of resistance and reactance based on this table. If I could get this to work in Multisim, or if there is another solution, it would be nice to receive help.
    .subckt DeviceRI 1 2
    R1 1 10  0.001
    V1 10 11 0
    B1 11 2 V=I(V1)  R_I FREQ=
    + 1000, 8, 0.5
    + 1100, 8.1, 0.7
    + 1200, 8.2, 0.5
    + 1300, 8.33, 0.6
    .ends
    Thank you.
    Daniel

    Daniel,
    The best potential workaround is to use the TRANSFER_FUNCTION_BLOCK component under Sources/CONTROL_FUNCTION_BLOCKS
    The model that this component uses supports a frequency domain transfer function that is described using rational polynomials. If you can curve fit your complex data into an equation of this format, that should do the job.
    It is theoretically possible to reproduce the response of your transfer function by created a lumped model using discrete components (by connecting together integrators, derivatives, delays, etc) but this far more challenging than to use the Transfer Function component mentioned above. 
    Let me know if that helps.
    Oleg
    Max
    National Instruments

  • Use table component without data provider

    Since it is very difficult to solve the browser "BACK" button problem caused by my data provider, I decide not to use data provider to populate the table.
    Does anyone know some sample code about playing around with the table component without using data provider?
    Thanks in advance,

    Unfortunately, Table Component from basic category does not work with out Data Provider. But Data Table component from standard section works with out data provider. But it does not have the frills and whistles of basic table component.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Problem with text direction in table component for text with two language!

    Hi,
    I want to display text in table component by binding to the one property,and also the language of this text is farsi that must be in the RTL direction.
    so i defined a direction in style of staticText component in the table.
    when the text is only in farsi language ,it works correct but when the text has one or more words in english language ,format of the text changed and the words moved in text.
    thanks

    I can not understand relation between COM and HTML elements .
    can you elaborate more ?
    All HTML elements are accesable via DOM in browsers.
    Indeed to change an element attribute in html files (in browser without server interaction) we use scripts to access DOM tree and then we change the element attribute.
    for example when you write
    document.forms[1].submit()
    you accessing the element using DOM tree.
    About Farsi problem , I think there is no solution for this problem , as you may know , when we mix RTL and LTR languages in one element text attribute , we have no control over its appearance.
    If i understand your post , you want to show both rtl and ltr in one static Text , which is not doable in simple manner.
    At least i can not offer you a simple way to solve this.

  • ADF:LOV declarative component not working inside table component.

    Hi,
    I have created a custome LOV control,I am using this custom LOV control inside the table component,I am passing the below values as the parameter
    KeyValue="#{row.bindings.Value.inputValue}"
    LovModel="#{row.bindings.Value.listOfValuesModel}"
    Value- is the list of value attribute.
    When i click on the LOV search icon, the popup displays the Query model(it displays the list name at the top in the search page.so it is able to recognise the LOVmodel) but it is not able to retrive the list values.I am getting Query page with no values
    in the jspx page it is giving warning as "reference not found for row.bindings.Value.listOfValuesModel"
    Please can anyone help me on this?
    Thanks,
    Harish

    Hi Frank,
    below is my actual requirement and the solution i tried till now.
    I have a table and it has two columns let’s say “Columns” and “Values”. The first column i.e. “Columns” will be a dropdown and it will have predefined values, the other column “Values” will be a “List of value” control or similar kind of control in which the user can search and select multiple values from the popup list, and that list should dynamically bounded to the first column selected value.
    For Ex: if I select a value “Product” from the dropdown of the first column “Columns” , the control in the other column “Values” should bound to “product” list and I should be able to search and select multiple values from the pop up. And the popup should return the multiple selected values as a comma separated string to the textbox.
    In my requirement I have to use only VO’s to create the list and the control in the “Values” column should switch between these VO’s depending on the value selected in the first column.
    The solution we tried till now.
    I used a LOV switcher to achieve the above requirement. But we have a limitation in this approach as we could not do the multi select. Then we created a declarative LOV component in which we can select multiple values as a comma separated string from the popup.
    I retained the LOV switch model , instead of binding LOV switch model to the basic “Input List of Value” control in the JSPX page ,I used the LOV declarative component. Below is the code snippet which calls the declarative LOV component from JSPX page.
    <af:panelFormLayout id="pfl2">
    <af:selectOneChoice value="#{bindings.Columns.inputValue}"
    label="#{bindings.Columns.label}"
    required="#{bindings.Columns.hints.mandatory}"
    shortDesc="#{bindings.Columns.hints.tooltip}"
    id="soc3" autoSubmit="true">
    <f:selectItems value="#{bindings.Columns.items}" id="si5"/>
    </af:selectOneChoice>
    <mc:OraMultiSelect
    KeyValue="#{bindings.Value.inputValue}"
    LovModel="#{bindings.Value.listOfValuesModel}"
    id="oms2"/>
    </af:panelFormLayout>
    Where Value attribute is having LOVModel.
    The above code perfectly fine as I used it inside the “Form layout” and with the parameters passed as KeyValue="#{bindings.Value.inputValue}"
    LovModel="#{bindings.Value.listOfValuesModel}"
    The problem I am facing:
    The actual problem comes when I use this control inside the table which I required in my implementation.
    I called the declarative LOV control as shown below inside the table as I used to call the basic “Input List of value” control which works fine inside the table.
    . <af:column sortProperty="Value" sortable="false"
    headerText="#{bindings.OpPlanning1.hints.Value.label}"
    id="c1" width="133">
    <mc:OraMultiSelect KeyValue="#{row.bindings.Value.inputValue}"
    LovModel="#{row.bindings.Value.listOfValuesModel}"
    id="oms1"/>
    </af:column>
    Above code doesn’t works fine when I select value from the “Column” dropdown it displays the corresponding list model in the pop up but not able to retrieve the value of the list in the popup .
    If I pass the parameters as
    . <af:column sortProperty="Value" sortable="false"
    headerText="#{bindings.OpPlanning1.hints.Value.label}"
    id="c1" width="133">
    <mc:OraMultiSelect KeyValue="#{bindings.Value.inputValue}" --instead of ="#{row.bindings.Value.inputValue}"
    LovModel="#{bindings.Value.listOfValuesModel}"--}" --instead of ="#{row.bindings.Value.inputValue}"
    id="oms1"/>
    </af:column>
    It works fine for the first row.The subsequent rows refers the value selected in the first row dropdown.
    Thanks For the help,
    Harish
    Edited by: 886523 on Nov 3, 2011 8:04 AM

  • JSF Table component Hide/Show Details question

    When you include a detailsStamp facet in your table, the "Details" column always appears as the first column allowing to disclose the details. Is there anyway to prevent the "Details" column from appearing and triggering this disclosure via another link within the row in the table? I would like to have a row in the table where one of the columns is something like:
    Joe User [show details]
    Where [show details] is a link that would trigger the discloser of the details for that row. Is this currently possible? If not, are there any plans to add this as functionality of the table component? I think users of the component are going to require more flexibility when using the Show/Hide details feature of the table component.

    True and thanks for the response. My first "work around" attempt was to use a showDetail component to accomplish what I am looking for. That had two drawbacks. 1.)When I used that in the table, it didn't disclose when I clicked it. However, if I re-navigated to the page it was disclosed (probably a partial page rendering thing). 2.) When it WAS disclosed, the detail information was restricted to that single cell in the column.
    I could use a commandLink/renderend attribute approach as suggested but that has 2 drawbacks as well. It also would be restricted to showing the details in a single cell since I can't see anyway to do a colspan with a column component. I would also lose the ability to "show all/hide all" unless I implement this logic myself.
    I really need more flexibility in the table component.
    Any other suggestions?

  • RE: The selectBooleanRadio component's group attribute is null

    Hi all,
    i am using Jdeveloper 11.1.2.3.0
    I have one Read only table in my fragment which contains one Checkbox and one Radio button.
    Here i have one requirement that whenever i check the checkbox the radio button will get enabled.
    I have done all the things regarding my requirements that is whenever i check the checkbox the radio button is enabled with an error message  in log.
    The log message is as follows:
    The selectBooleanRadio component's group attribute is null. It must be set to a non-null value for the selectBooleanRadio component to function properly. The selectBooleanRadio component is meant to be used with other selectBooleanRadio components with the same group value.
    So, Can any one help me to resolve the above issue.
    Regards,
    Syam

    Hi,
    I think an error message cannot be more clear than this;
    The selectBooleanRadio component's group attribute is null. It must be set to a non-null value for the selectBooleanRadio component to function properly.
    selectBooleanRadio component's group attribute  ==> the selectBooleanRadio has a "group" property that you need to define a value for
    Frank

  • Clicking a tree node does not refresh the fields in the table component

    hi all,
    I am using a tree component along with a table component in my page.so whenever i am clicking on a node it should display the relevant information of that node in the table from the database.But whenever i am doing the page is not refreshing and the old values of the textfields in the table still exist.i have written the code to populate the table in a button click event.It is working fine but the same is not working when i am clicking any node in the tree component.Can anyone provide a solution to this problem.
    Thanks and regards,
    Prasant Kumar

    Never mind... I actually found something that works...
    treeModel.nodeStructureChanged(leadSelection);

  • Table component disturbing the order of rows while displaying

    HI,
    In jspx when ever data is displayed in table,when we select last page the table component
    is displaying data which is not sorted.(values given to table are changed in output).
    This is occuring only in last page.
    EX:If i have 87 records with pagination,where 15 are displayed.
    when i select to last page the output from my query is not matching the data viewed.
    Using apache trinidad1.0.5
    Regards,
    Vin
    Edited by: vinTK on Apr 26, 2012 6:16 AM

    I think that it's a very common situation.
    No ideas?
    I think that it's interesting to create appz with great performance.

  • Tiling or slicing large images in tables? Completely outdated?

    I'm working through the XHTML tutorials on Lynda.com
    The instructor does a demo of slicing a large image with sections that have animated .gifs. He slices the static portions and slices the animated portions and then combines them in a 3 slice x 3 slice table.
    He says "I still prefer to do this with tables, since it's what it was designed for."
    I know tables are outdated, but I'm not sure if it's in all respects. Like if I was going to do a data table, I certainly would use tables...
    Im not sure when this video was made, but is it still in practice and a good practice?
    He then shows a similar demo of how to combine slices using CSS. Is this outdated too? Are people still slicing large images?

    Unlike print design where everything is static and unchanging, web pages need to be flexible and web accessible to accommodate all users, displays and devices.
    Image slices have their plusses and minuses.  Occasionally, you may need them to create a flexible container that resizes to content.
         3 image slices in a CSS layout ~
         http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml
    That said, you can add visual interest to web pages without a lot of images using CSS.
         2-image web page design ~
         http://alt-web.com/TEMPLATES/2-image-web-design.shtml
    Finally, have a look at CSS Zen Garden where the power of CSS is demonstrated.
    Each page contains identical HTML markup but with wildly different styles.
    Hopefully this will inspire you to move away from tables and use CSS for primary layouts.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to Create a Table Component Dynamically based on the Need

    Hello all,
    I have a problem i need to create dynamically tables based on the no of records in the database. How can i create the table object using java code.
    Please help.

    Winston's blog will probably be helpful:
    How to create a table component dynamically:
    http://blogs.sun.com/roller/page/winston?entry=creating_dynamic_table
    Adding components to a dynamically created table
    http://blogs.sun.com/roller/page/winston?entry=dynamic_button_table
    Lark
    Creator Team

Maybe you are looking for

  • Adobe Creative Suite 2 Will not work after deactivation

    First off, I don't get this company. I had to let that out. I had an issue I started out with by not knowing which computer had my Adobe Photoshop on so I ended up Googling an answer over how to deactivate my product. It led me to a chat with a repre

  • Can U transfer purchasers from one account to another?

    I have an old account at the Apple Store that I had not used in a few years and had forgot about. I now have a new account and would like to transfer the purchasers from my old account to the new one. Is there a way to do that?

  • Problem with image MBP "15

    Hi guys, Lately, after being connected with my MBP 15" many hours and with the following open programs, such as Illustrator, Photoshop, Safari, iTunes .. Sometimes it goes without so much.. I get the image of the screen as follows: http://i4.minus.co

  • Buy a photo book made with iPhoto 08?

    I've made a photo book on an iMac running 10.8.5 with iPhoto 08 (7.1.5). When I pressed "buy", it said it was not possible with this version. I can't upgrade the machine or software (it's not my machine). Is there a work-around? Is there a way of exp

  • Cannot create chm layout, "Next" dialog button disabled

    I have used and created chm formats in the past on my project.  Now all of a sudden when I try to create one the dialog opens and allows me to designate the location, toc, index  etc. but the only button available to me is Save and Cancel.  I can't u