Lost emtpy table cells and list items on reset using HTMLEditorKit

I am using the HTMLEditorKit and creating tables and lists with empty cells, i.e., <TABLE><TR><TD></TD></TR></TABLE> or <UL><LI></LI><UL>. When I toggle from the text pane to the source pane and back the last empty table or list item cell is deleted. This happens again and again until the whole element is deleted. If I place some text in the last cell or list item they are not deleted. When switching to the source pane I use JSourcePane.setText(JTextpane.getText) which works OK. The problem is switching from the source back to the text via JTextPane.setText(JSourcePane.getText). Using the read method results in the same problem. Any suggestions?
Thanks,
Steve

A link to the your live test page would be much more productive here. 
It's much easier for us to diagnose problems when we can see your page & images in our browsers.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists 
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Slide show in table cell and text in layer above images

    I need to create a slide show within
    a table cell (one cell of several).  The
    display should commence after the launch page has been completely loaded and only appear once.  Also, there needs to be text in a layer above the slide images which changes coordinated with each slide but is generated independent of each slide and therefore may be positioned within the cell independently.
    Anyone?

    Hi again Nancy,
    You've provided very helpful information in the past.  The code for the "show" in the upper right position would be perfect if the text-bar background could be made transparent and positioned higher against the image. Your suggestion has forced me to clarify my concept in my own mind.  The need for transparency hadn't occurred to me yet. 
    An alternative would be the upper left "show" in a bottom layer with text with a transparent background in a top layer.  The text in the top layer would remain constant from the time of the page's loading; i.e., would be independent of changes in the bottom layer.  Perhaps I could figure out the code necessary to coordinate that text's change of shade from one slide to the next appropriate to the slide's shade.
    I'm assuming that a table cell can be partitioned into layers using HTML and each layer programmed independently using JavaScript.
    Thanks again for your prompt attention.

  • HT4623 I have just finished the upgradation to an iOS 6.1.3 and have lost sound in Music and Videos. I am using an iPhone 4S. My iPhone doesn't produce sound when playing Youtube or local camera videos. However ringtones and notifications sound works fine

    I have just finished the upgradation to an iOS 6.1.3 and have lost sound in Music and Videos. I am using an iPhone 4S. My iPhone doesn't produce sound when playing Youtube or local camera videos. However ringtones and notifications sound works fine.It is quite strange as well. Have you encountered this issue before?If yes then what's the solution?

    I had major issues with the iPhone 4s battery, however it’s resolved.
    The tech who set the phone up at the Apple store did so with little training.
    if you have a mobile me account. First go and move all your data to the cloud by going on your computer and logging in at me.com/move. The cloud has replaced mobile me, so there is no need for those two accounts
    Also make sure that for any of your email accounts you set them up to fetch, not push. My tech person set them all to have the email servers push data to the phone. The new iphone4s antenna is extremely strong so it will continually try to access stuff that is pushed–***** a lot of battery life doing this. It makes it worse if you have exchange 2010 accounts. Something about changes made to exchange really suck battery life from devices that access such accounts.
    turning of locator and the push notifications from facebook--they have a lot!

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • Adding button to a custom table cell (and handling them)

    Hi
    I'm wondering if it's possible to add a button on each row of a table view using a custom table cell view. If it's possible, I'm really wondering how I can handle the click events on these buttons.
    Thanks

    No.
    Try creating a view and adding it to a cell. Let us know what problems you have, and we can try to help.

  • PowerShell script to find a string of characters in office documents in Doc Libraries and List Item attachments?

    Hi there,
    For SharePoint 2010 site - Does someone have the PowerShell script to find a string of characters in Office/Word/Excel/PDF documents in document libraries or the ones attached to List Items?
    Thanks so much in advance.

    Hi,
    According to your description, my understanding is that you want to find some specific string character in list items using PowerShell Command.
    $w = Get-SPWeb "http://devmy131"
    $l = $w.GetList("http://devmy131/lists/fieldslist");
    $i = $l.Items[0]["Title"].ToString();
    if ($i -like '*document*')
    Write-Host "Title contains document character" $i;
    More information:
    PowerShell -contains -like
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Dreamweaver CS4 - Can't see table cells and borders

    Hello you all.  I just started using CS4 and whenever there is a white background I can't see any of the table cell or main borders.
    I went to View>Visual Aids>Table Borders and it is on, but I can't seem to find the area I need to change the color to view it on white.

    I just remember the previous versions would allow you to change the dotted line color that indicated the table and cell borders.
    Must say I can't ever remember that being a preference in any previous version of DW.
    Sadly, it looks like I will be using tables to set up my site.  Haven't adopted CSS as much as I'd like at this point.
    Now's as good a time as any to start with CSS from the ground up.
    Try one of the pre-made templates in DW under File > New

  • [Oracle Forms 6i] : conflict properties between datablock and list item

    hi
    i have a datablock which contains a list item. my list item is filled programmatically.
    the user needs to be able to change the values in that list item.
    well the problem is that the user can't change the value in my list item when the property INSERT_ALLOWED of the data block is set to false.
    i need this property to be set to false, cause it disable the green button up on my form
    aparently when this property is set to false, i can't change the value of my list item
    help please !
    thx
    Dan

    I couldn't understand this portion
    'i need this property to be set to false, cause it disable the green button up on my form'
    Can you explain what exactly you mean by disabling the green button?

  • How to Get the required List Item values by using Where Clause

    I have two tables named "TAX_RULES","BILL"
    1. " Tax_Rules" (Sub_Head_Code,Tax_ID,Tax_Percentage)
    { While "Sub_Head_Code" field is unique,
    Tax_ID describes that there are two kinds of Tax_IDs based on Tax_percentage which is 6% for some Sub_Head_Codes and 3.5% for the remainng Sub_Head_Codes. I have given Tax_ID 1 for 6% and Tax_ID 2 for Sub_Head_codes having 3.5%. }
    2. "BILL" (Bill_ID,Sub_Head_Code,Tax_ID,Bill_Amount)
    {While "Bill_ID" describes unique Bill Identification Number,
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table}
    I have design form for both tables.
    In BILL form i am trying to get values of Tax_ID from Tax_Rules table at run-time by using WHEN-NEW-FORM-INSTANCE.
    For this whenever i select a Sub_Head_Code in Bill Form, all the Tax_IDs that i have recorded against each Sub_Head_Code which is either 1 or 2 against 6% and 3.5% respectively.
    But I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code ahould come in the LIST ITEM.
    I have used WHERE clause but that is useless.
    Following is the Code that i have applied in the WHE-NEW-ITEM-INSTANCE Trigger at FORM LEVEL
    <CODE>
    DECLARE
         rg_n1 VARCHAR2(40) :='TAX_ID';
         rg_idn1 RecordGroup;
         gc_idn1 GroupColumn;
         errcode NUMBER;
    BEGIN
         CLEAR_LIST('BILL.TAX_ID');
         rg_idn1 := Find_Group(rg_n1);
    IF      Id_Null(rg_idn1) then
              rg_idn1 := Create_Group(rg_n1);
         gc_idn1 := Add_Group_Column(rg_idn1,'EXPLAIN',CHAR_COLUMN,60);     
              gc_idn1 := Add_Group_Column(rg_idn1,'TAX_ID',CHAR_COLUMN,3);
         END IF;
         errcode := Populate_Group_With_Query(rg_idn1,'select TAX_ID,TAX_ID from TAX_RULES');
         POPULATE_LIST('BILL.TAX_ID',RG_IDn1);
    END;
    </CODE>

    In the Tax Rules table, you state:
    "Sub_Head_Code" field is unique
    In the Bill table, you state:
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table
    If the Sub_Head_Code is unique, then it's acting as a primary key, so Sub_Head_Code and Tax_ID in the Bill table are not behaving like a composite foreign key. The Sub_Head_Code is a foreign key, and the Tax_ID is irrelevant as far as keys are concerned.
    It is not clear what it is you want to do.
    If you want to display the Tax_IDs from the Bill table when you select a Sub_Head_Code from the Tax_Rules table, then change your query to:
    select TAX_ID, TAX_ID from BILL where Sub_Head_Code = :Tax_Rules.Sub_Head_Code
    If you want to display the Tax_IDs from the Tax_Rules table when you select a Sub_Head_Code from the Bill table, then change your query to:
    select TAX_ID, TAX_ID from TAX_RULES where Sub_Head_Code = :Bill.Sub_Head_Code
    If this is not what you want, then clarify what it is you want to do. Don't say:
    "I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code"
    because it is not clear what tables you are referring to.

  • How to create a table cell occupy more than one row using PDF.

    Hi,
    I want create a pdf report,which contains a table cell occupied more than one line.
    just like html language: <rowspan = 2>
    merge cells in one row is allowed,we can use merge cells command(like colspan in html).
    but how to mege cells in one column?

    Hi,
    I want create a pdf report,which contains a table cell occupied more than one line.
    just like html language: <rowspan = 2>
    merge cells in one row is allowed,we can use merge cells command(like colspan in html).
    but how to mege cells in one column?

  • Need Help with giving Colors to Table Cells and Table Borders in Dreamweaver CC - Please!

    Hi,
    I am a teacher and use Dreamweaver CC to make my class web page.
    How do I give colors to the cell borders of a table I inserted?  How do I give colors and line thickness
    to table borders, too?
    I bought the David Powers DVD and it doesn't show that.
    Please help.
    Thank you,
    John

    Assuming that you have placed a table in your document and your CSS Designer panel is open
    1. Click the '+' sign
    2. Choose your option. I will choose 'Define in Page'
    3. Follow the above sequence, 1.click on table, 2.ensure table is selected, 3.click on style, 4.click the '+' sign, 5. see the selector appear.
    4. Click on the selector and choose the required Properties.
    You can do the same for the row (<tr>) or a cell (<td>). In fact, this is how you would go about styling anything in your document.

  • How to create a Web Part in SharePoint To Show All List and List Items

    I did try this by reading the following article:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    but when I am building that web part I am getting some errors
    public partial class ShowListUserControl
    : UserControl
    by default there is webpart written in place of UserControl and when I am changing this and build this program the error related to global WebPartTemplate comes in the function
    How can I solve this?
    Some one said to me that in Sandbox Webpart you can not create UserControl but the above article also is based on that.

    The article might have missed the step where the blogger might have missed the step. Read the following article and which confirms that you cannot use user controls in SB solutions.
    http://msdn.microsoft.com/en-us/library/gg615454.aspx
    If you are trying to build this in SharePoint 2013 then you must know that custom code is deprecated from SB solutions.
    Deprecation
    of Custom Code in Sandboxed Solutions
    For SP 2013 your best bet is to create an APP or create a farm solution (God please forgive me). :)
    Amit

  • Taxcode and List of customer/ supplier using B1WS

    Hi Team
    I am using B1WS and trying to fetch taxcode but did not find any service having list of taxcode?
    And How to fetch list of Customer/ Supplier from BusinessPartnerService?

    Hi Team,
    My reason is basically memory issues and the API not releasing it (all) in particular when the query crashes: I can handle it with SQL direct connections, much more difficult with DIS; this is why.
    To send direct SQL queries from B1WS, the object is, as I said, CompanyService, method Query.
    Regards,
    Eric

  • HT1152 All this help info tells me to use idvd, but I can't get it to open.  I asked the applecare guy and he says the new macs don't include idvd any more, so why do all the menu and help items say to use it?  I know there's other dvd burner software, wh

    I want to burn my imovie to a dvd.  All the help info says to use idvd but I can't get it to open.  The applecare guy said idvd is no longer included in new macs, so why are all the instructions still saying to use it?  Is one of the other software offerings, like dvd Cfreator for Mac, ok to use for this?  What's the best one?

    Please clarify what you mean by "you can't get it to open". Is iDVD on your system or not? If this is a new iMac, iDVD is no longer bundled with new Macs, so the application just isn't there and hence of course can't be opened. You can still purchase it as part of the retail iLife '11 box, though, if you want it, and it would be less expensive than DVD Creator (which I have no experience with), even though you'll get some redundant applications.
    Regards.

  • I upgraded to Firefox 7 and lost all my Bookmarks and the Toolbar which I use every day for all the important things I do on my Mac.. PLEASE HELP ME... Is there some way to restore my previous settings, go back to the older version or something?

    PLEASE HELP!... I am seriously freaking out... I use my Toolbar all the time!... and ALL OF MY BOOKMARKS ARE GONE ALSO!

    I am not an expert or even close, and I offer this only because this is how I figured out how to do it. I used a similar approach to importing all email accounts, email content and the address book into a new version of Thunder bird, but I assume this is common knowledge.
    My system:
    Windows 7 64 bit, recently upgraded from XP64. Installed Mozilla Aurora but seems the same as recent Firefox versions with respect to these features.
    Limitation:
    This solution depends on whether or not automatic backups were done of the bookmarks when you used your old installation. They were on my system and I don't remember doing it, but maybe I did. Others might know if this is periodically done by default. Assuming you have some backup (*.json) files,
    Locate your the bookmark backup files from the old version of your browser. On XP it was located in
    E:\Documents and Settings\Administrator.<your computer name>\Application Data\Mozilla\Firefox\Profiles\bookmarkbackups
    Each of the bookmark backup files look like this example:
    bookmarks-1010-09-22.json
    They might also be located one folder deeper, in my case:
    E:\Documents and Settings\Administrator.<your computer name>\Application Data\Mozilla\Firefox\Profiles\x72qybcl.default\bookmarkbackups
    Again, they will look like this:
    bookmarks-1010-09-22.json
    Copy all of these .json files to the backup folder on your new installation. On my new Windows 7 file system system I found their new home at:
    C:\Users\Art\AppData\Roaming\Mozilla\Firefox\Profiles\0ptl24i3.default\bookmarkbackups
    On an XP system I'm sure they would be found along a path, possibly on a differed drive, similar to where your got them from as above.
    I fired up Aurora. Drop down "Bookmarks" tab, Select "Show All Bookmarks" (found near the bottom). This brings up the "Library" window. At the top of the window is a tab "Import and Backup". Click this and select "Restore". All of the prior backup files will be available indexed by the date of backup. Select one and all of your prior bookmarks will be repopulated, including the bookmarks Toolbar.
    Hope this helps.

Maybe you are looking for

  • Can you use two iPod's on the same computer?

    I currently have an iPod Video, and my mother wants to get a shuffle or nano. The problem is, we only have one computer that will let iTunes run. Is it possible to use two iPods on the same computer, or even with the same iTunes?

  • HT4363 I can no longer stream my iTunes into my Apple TV. Help!

    I can no longer stream my iTunes into my Apple TV.  It has worked before, but Apple TV is not recognizing my iTunes library any longer.  It keeps telling me to make sure it's turned on on my computer.  It is.  And yes, the accounts match, etc.  But i

  • Update to 1.2.3.1 failure

    My Nokia xl shows a new update to 1.2.3.1. I downloaded that update over a wifi. But after I clicked for install , firstly it shows a image of installing and suddenly a symbol '!' Appeared above that and restarted with failure msg. Plz help

  • Combining two or more interactive forms

    How do you combine two or more interactive PDF's in Livecycle? I want to combine at least two forms I created separately in Livecycle so I can print them double sided. I am new to this program. If it is a matter of coding, could someone please explai

  • Opening Powerpoint 08 in Keynote

    I am currently working with the 06 version of Keynote and the 08 version of Powerpoint. New Powerpoint files cannot be opened in the the 06 version of Keynote. Does anyone know if the 08 version of Keynote will open these new powerpoint files?