Exception in rendering html.....

hi folks,
i am trying to render html in a jeditor pane in a japplet but i get an exception as follows...
java.lang.NullPointerException
     at javax.swing.text.html.StyleSheet.getRule(StyleSheet.java:182)
     at javax.swing.text.html.StyleSheet$ViewAttributeSet.<init>(StyleSheet.java:2767)
     at javax.swing.text.html.StyleSheet.getViewAttributes(StyleSheet.java:285)
     at javax.swing.text.html.BlockView.setPropertiesFromAttributes(BlockView.java:314)
     at javax.swing.text.html.BlockView.setParent(BlockView.java:59)
     at javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1061)
     at javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:480)
     at javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:468)
     at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1518)
     at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:153)
     at javax.swing.JComponent.firePropertyChange(JComponent.java:3721)
     at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:660)
     at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:806)
     at testjb.Applet1.jButton1_actionPerformed(Applet1.java:302)
     at testjb.Applet1$3.actionPerformed(Applet1.java:142)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
     at java.awt.Component.processMouseEvent(Component.java:3717)
     at java.awt.Component.processEvent(Component.java:3546)
     at java.awt.Container.processEvent(Container.java:1164)
     at java.awt.Component.dispatchEventImpl(Component.java:2595)
     at java.awt.Container.dispatchEventImpl(Container.java:1213)
     at java.awt.Component.dispatchEvent(Component.java:2499)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
     at java.awt.Container.dispatchEventImpl(Container.java:1200)
     at java.awt.Component.dispatchEvent(Component.java:2499)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
     at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
my code is as follows...
jEditorPane1.setEditable(false);
jEditorPane1.setEditorKit(new HTMLEditorKit());
jEditorPane1.setContentType("text/html");
try {
     jEditorPane1.setPage("http://java.sun.com/");
} catch(Exception exp) {
     exp.printStackTrace(System.out);
can somebody suggest me that how can i render html in a jeditorpane in an japplet.also i am getting the html file as a string from a url, so how to render it on a
jeditorpane
any help would be highly appreciated
anurag.

The reason could be because you are viewing an HTML page that may not bee supported by your viewer.
As far as I know, StyleSheets support HTML 3.2 and parts of HTML 4.0.
Maybe the url http://www.sun.com contains styles that are not supported, therfore it could throw an exception.
-- Robert Della Malva
=====
[email protected]
XL-Reader Project - Secured online documentation solutions
www.xlreader.com
=====

Similar Messages

  • Set DOCTYPE for a self rendered HTML page using cl_gui_html_viewer

    G'Day!
    I'm dealing with HTML in ABAP and i' stuck with a nasty little problem. Perhaps somebody know's the answer and can help me out. Thanks in advance. (I'm sorry for my poor english)
    My problem is:
    I am rendering a html page in abap and display ist using a cl_gui_html_viewer.
    Works fine.
    But now in need to set the right DOCTYPE for the rendered html page.
    If i add the DOCTYPE definition, my html page is not displayed, instead i get a display of the html-code??
    To break it down to the root:
    How can i add the DOCTYPE definition to a self-rendered html page?
    If i add the DOCTYPE definition as first element of my html table, the html code won't be interpreted.
    If i do not add the DOCTYPE defintion everything works fine.
    I need the DOCTYPE definition so that the browser won't get into quirks mode and interpretes the html tag's right.
    What i've done so far:
    (Dynpro, container, html_viewer)
    Load my JScripts (with load_mime_object)
    Load my CSS (with load_mime_object)
    Load my HTML:
    -- lt_html       TYPE w3htmltab
    ((--  APPEND  '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">'  TO ct_html.)) this line cause my trouble
    -- filled the itab with my html tags <html>....</html> (set right url for Jscript and CSS)
    -- Load my html table and get an URL CALL METHOD gr_labform_html->load_data
    -- Load the url CALL METHOD gr_labform_html->show_url

    I've "solved" my issue with a little workaround.
    I created an empty html page with an existing DOCTYPE def and an tag like <!MYDATA!>
    After that i filled 'l_merge_table TYPE swww_t_merge_table' with my tag and my html_data.
    Loaded the whole thing with CALL METHOD gr_labform_html->load_html_document and now the DOCTYPE is set fully correct!
    But i'm still interessted why i can't set the DOCTYPE directly? Anybody knows?
    Got the idea from: Re: How can I read color from frond-end PC

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • Bug in rendering  HTML content Apex 2.2 (in Apex 2.0 was OK)

    We have many PLSQL processes which are called through boolean function which return some message as well as the result.
    <br>
    function some_func (pid IN NUMBER,err_msg OUT NOCOPY VARCHAR2) RETURN BOOLEAN;<br>
    and at the end function looks like:
    <br>
      :err_msg := 'Pitanje <*b>'||TO_CHAR(p_id)||'<*/b> je OK!';
      RETURN TRUE;<br>
    Later, in "On load before header", we call this function and assign "err_msg" value to hidden item "P2_MESSAGE", placed on the same page. Assigment is done in an way like:
    <br>
      some_bool:=some_func (:P2_ID,:P2_MESSAGE);<br>
    In one HTML reagion, we put in "Source", code like:
    <br>
    <*class="t16dataalt">&P2_MESSAGE.</class><br>
    and until now, bold tags are applied as well as class-we get only text!
    <br>
    But now, in Apex 2.2, (original theme 16 used) in result we get all content as it is not recognized as HTML code.
    <br>
    In browser the result(in a case of OK result) is:
    <br>
    Pitanje <*b>1<*/b> je OK!<br>
    and the generated source is:
    <br>
    <*class="*t16dataalt">Pitanje &*lt;*b&*gt;1&*lt;/b&*gt; je OK!</*class="*t16dataalt"><br>
    Is that a bug or what?
    <br>
    Once more, before the same code was working nice, theme 2 used...
    <br>
    THX!
    <br>
    P.S
    <br>
    "*" is added to be read clearly!
    <br>
    P.S II
    <br>
    We have imported app that was exported on Apex 2.0 and the same problem occure!
    <br>
    So we think this is a bug in rendering HTML region!
    <br>
    Is there any hint to overcome that until patch come ?
    Message was edited by:
    Funky

    The issue is easy to reproduce. Create HTML region:
    User Interface Template-Reports Region
    Display point-Page template body
    Assign one hiden item in on load process with value:
    P2_MESSAGE := "< b>OK</ b<>";
    Put P2_MESSAGE in HTML Source with content like this:
    < class="t16dataalt">&P2_MESSAGE.</ class>
    and you have it!

  • Sharepoint online multiline list colomn not rendering HTML out put

    Hi 
    I have list with multi line column with having multimedia options. my problem is i have created view and edited XSL  to format it. also i have added "escape out put =yes" for the column but no luck still column is rendering as HTML Tags witch
    is not rendering HTML formats in UI
    Following is my code for List view any help greatly appreciate.. 
    regards
    Radika
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"
    meta:webpartpageexpansion="full"  %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities"
    Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI,
    Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - 
    <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server"/>
    </asp:content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
    <SharePoint:ModifySettingsLink runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=37" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="False"
    InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" ViewGuid="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" EnableOriginalValue="False"
    DisplayName="NewsDisplay" ViewContentTypeId="0x" ListName="{17179938-EFC8-4DFE-92E9-CDE296D46919}" ListId="17179938-efc8-4dfe-92e9-cde296d46919" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID=""
    ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="CT_RSSFeeds" FrameType="Default" SuppressWebPartChrome="False"
    Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True"
    AllowHide="True" IsVisible="True" TitleUrl="/sites/EFLDEV/Lists/CT_RSSFeeds" DetailLink="/sites/EFLDEV/Lists/CT_RSSFeeds" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall=""
    MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_d63d68ed_17d1_4cc9_bcf6_20dfed0fb269"
    ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl"
    WebPart="true" Height="" Width=""><ParameterBindings>
    <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
    <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
    <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
    <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    </ParameterBindings>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">     <xsl:output method="html" indent="no"/>     <xsl:decimal-format NaN=""/>  
      <xsl:param name="dvt_apos">&apos;</xsl:param>     <xsl:variable name="dvt_1_automode">0</xsl:variable>     <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
            <xsl:call-template name="dvt_1"/>     </xsl:template>     
    <xsl:template name="dvt_1" ddwrt:ghost="" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">      
      <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>      
         <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/page.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/slider.css" type="text/css"
    media="screen" /> <script type="text/javascript" src="/sites/EFLDEV/Utillity/ES/jquery.easing.1.2.js"></script> <script src="/sites/EFLDEV/Utillity/ES/jquery.anythingslider.js" type="text/javascript"
    charset="utf-8"></script> <script type="text/javascript">         function formatText(index, panel) {           return index + &quot;&quot;;        
    }         $(function () {             $(&apos;.anythingSlider&apos;).anythingSlider({                 easing: &quot;easeInOutExpo&quot;,    
                autoPlay: true,                 delay: 3000,                 startStopped: false,                
    animationTime: 600,                 hashTags: true,                 buildNavigation: true,             pauseOnHover: true,        
    startText: &quot;Go&quot;,         stopText: &quot;Stop&quot;,     navigationFormatter: formatText             });             $(&quot;#slide-jump&quot;).click(function(){
                    $(&apos;.anythingSlider&apos;).anythingSlider(6);             });         });     </script> <div class="anythingSlider">
        <div class="wrapper">         <ul>         <xsl:call-template name="dvt_1.body">             <xsl:with-param name="Rows"
    select="$Rows" />             </xsl:call-template>         </ul>             </div>         </div>     </xsl:template>
        <xsl:template name="dvt_1.body">         <xsl:param name="Rows" />         <xsl:for-each select="$Rows">    
            <xsl:call-template name="dvt_1.rowview" />         </xsl:for-each>     </xsl:template>     
    <xsl:template name="dvt_1.rowview" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">         <li>         <div class="textSlide">
    <!-- display the item title and a link to the item --><h3><a href="/{@FileDirRef}/DispForm.aspx?ID={@ID}" title="{@ItemTitle}"><xsl:value-of select="@ItemTitle" /></a></h3> <!-- display the
    body of the item  -->    <div><xsl:value-of select="@ItemDescription" disable-output-escaping="yes" /></div>     </div>     </li></xsl:template> 
    </xsl:stylesheet></Xsl>
    <DataFields>
    </DataFields>
    <XmlDefinition>
    <View Name="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" Type="HTML" DisplayName="NewsDisplay" Url="/sites/EFLDEV/Lists/CT_RSSFeeds/NewsDisplay.aspx" Level="1" BaseViewID="1"
    ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=37" >
    <Query/>
    <ViewFields>
    <FieldRef Name="LinkTitle"/>
    <FieldRef Name="ChannelID"/>
    <FieldRef Name="Tag"/>
    <FieldRef Name="Created1"/>
    <FieldRef Name="ItemTitle"/>
    <FieldRef Name="ID"/>
    <FieldRef Name="ItemDescription"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    </XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
      <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
    </asp:Content>

    Hi,
    In SharePoint Online 2013, we can use jQuery to convert “&lt”  to “<” and  convert “&gt” to “>”.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $(".ms-rtestate-field").each(function(){
    var $this = $(this).find("p");
    if ($this.length>0) {
    $this.each(function(){
    $(this).html($(this).html().replace('&lt;', '<').replace('&gt;', '>'));
    </script>
    We can also use JSLink to customize the display view.
    http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • How to modify rendered HTML dynamically

    Hi, I'm looking for a method to modify rendered HTML appearance at runtime. I.e. enabling/disabling a button according to some other condition. I can do it within the same page, by means of a valueChangeListener, then searching for the componennt id to enable/disable. But I cannot when coming from another page, since the involved lifecycle refers to this one. The target page is rendered at the end, and I would like to modify its button then. I guess I should influence the render response phase to enable/disable that button, but how ?

    You can use EL in the rendered or disabled attributes:
    <h:commandButton value="..." action="..." rendered="#{MyBean.shouldButtonBeRendered}" />
    <h:commandButton value="..." action="..." disabled="#{MyBean.shouldButtonBeDisabled}" />etc

  • JavaHelp not rendering HTML when run from Fatjar

    I'm experiencing a strange problem with JavaHelp: when I run my app from Eclipse and open JavaHelp, the html help pages render just fine. If I Fatjar the app and run it from the fatjar, however, then when I open the JavaHelp, my html help pages are displayed as raw text, HTML tags and all. For some reason it's not rendering the HTML. I'm guessing that maybe the fatjar is messing up the JEditorPane's ability to detect the content-type of the help pages, but I have no idea how to fix it if that's the case.
    I'm using a plain vanilla HelpSet file, pretty much straight out of the JavaHelp User's Guide.
    Anyone have any idea what might be causing this or how I might fix it/work around it? Has anyone else seen this problem before?

    For whatever it's worth, I am seeing this problem as well. It doesn't seem to have to do with FatJar, as I'm seeing it when I simply do the following:
        HelpSet helpSet = null;
        final ClassLoader cl = this.getClass().getClassLoader();
        try {
          helpSet = new HelpSet(null, HelpSet.findHelpSet(this.getClass().getClassLoader(), "IdeHelp.hs")); // XXX bogus for now
        } catch (final Exception kaboom) {
          helpSet = null;
        if (helpSet != null) {
          final HelpBroker helpBroker = helpSet.createHelpBroker();
          final ActionListener helpItemActionListener = new CSH.DisplayHelpFromSource(helpBroker);
          final JMenuItem primaryHelpItem = new JMenuItem("Help\u2026");
          primaryHelpItem.addActionListener(helpItemActionListener);
          helpMenu.add(primaryHelpItem);
        }I suspect it's a problem with the classloader, but I haven't dug to find out what exactly.
    Best,
    Laird

  • Problem rendering html in Apex 3.1

    I recently upgraded an older 2.0 app to Apex 3.1. In the app, I have a few textarea with html editor fields so the user can customize page instructions. In 2.0, I was able to query the database and store the text in a hidden item, then reference the value of that item in an html region for the text to render correctly. (EX: Region Header has a source of &P100_HEADER_TEXT.)
    Now, in Apex 3.1, this no longer works. Instead, it is showing all of the html tags. If I copy and paste the contents of the hidden value directly, the html is rendered. If I change the hidden item to display as text, it is formatted correctly, but the alignment I had set up previously is off.
    I have numerous regions like this and would like to avoid having to go through and reformat all my pages. Does anyone have any suggestions?
    Thanks!

    Hi Scott,
    Yes, I was able to get it to work by adjusting my item to display as text (does not save state). However, previously I was able to compute a hidden item and use the value of the item as the source of an html region, or header for any other region, and it would render correctly. So, if the value of item p100_directions was "Please enter all valid information" in bold, previously it would display in bold. After the upgrade, it would display with the html tags around it.
    I will workaround with the display as text functionality.
    Thanks!

  • Displaying rendered HTML text in spry detail region

    Hi,
    I have just started to play around with DW CS3 & spry and
    love them!
    I have a Master/Detail spry going from my database, but am
    having a problem displaying the detail the way I need it. The mySQL
    field is a BLOB for some HTML formatted text (I get the text
    elsewhere using a Xinha textarea edit widget and load the the
    formatted HTML text into my db). For example, my string is
    "<h2>this test</h2><strong>xyz</strong>"
    which is loaded into my db. I am using the dreamweaver ADDT export
    XML functionality to generate my spry master/detail region.
    My detail region is displaying the correct html associated
    with the selected master table entry, but it's with the HTML tags,
    not rendered as HTML (I don't want to see
    <h2>title</h2>; I'd like to see title with <H2>
    formatting).
    It's much like what I think a RSS feed would be, but can't
    find a way just to get the html to render because I don't have the
    files externally to source an iframe or anything. (I tried a XLS
    fragment transformation, just putting the detail record field that
    I want in an XLS file, but that didn't do anything).
    Any kind of guidance, hint, point and laugh but then tell me,
    would be greatly appreciated. I also posted at first at ADDT and
    then General Dreamweaver because I didn't locate this forum in the
    Forum topic list, so when I did find this I thought this is
    obviously where I should have first posted - sorry if anyone has
    also been surfing around. Thanks so much so any info.

    Hi Don,
    Thanks so much for responding. I actually did do that, but it
    seems like I might be doing it in the wrong place. I tried it in
    the .js that I have in my header:
    var dsList = new Spry.Data.XMLDataSet("./export.php",
    "theSpecials/special",{sortOnLoad:"rating",sortOrderOnLoad:"ascending",distinctOnLoad:tru e});
    dsList.setColumnType("detail", "html");
    which didn't do it. I also tried it right in my detail
    display area:
    <div style="overflow:hidden; width: 400px;"
    spry:detailregion="dsList">
    <div> <!-- nested div for spry effect -->
    <div id="detailDisplay" style="width:380px; "> <!--
    spry:content="{detail}"> -->
    <script
    type="text/javascript">dsList.setColumnType("detail","html");</script>{dsList::detail}
    <!-- echo '{dsList::detail}' ; ?> -->
    </div> <!-- detailDisplay -->
    </div> <!-- outter div for spry effect -->
    <!-- spry detail region -->
    </div>
    Excuse the inline ugliness, will clean it up when it's
    functional. But that doesn't seem to do it either. I am storing
    that particular field as a blob in the mysql database, but I
    already tried making that a VARCHAR which had no effect either.
    Thanks so much for for the suggestion! Any other gems that I
    can try?
    Liz

  • Safari 2.0 not rendering HTML properly

    I have been having trouble with safari rendering pages since upgrading to 10.4 (still happening on 10.4.2)
    on most pages (not apple.com conveniently) the vertical spacing is not renederd properly, and there are huge gaps between items on the page.
    here is a jpeg that will show the problem in safari compared to firefox
    http://www.danyul.com/pics/safariRender.jpg
    Any help appreciated.
    thanks
    daniel

    I think i has something to do with an html table not having a fixed height determined by content.
    It even happens when i create a page in dreamweaver and test it in safari.
    here is a simple page created using this code:
    http://www.danyul.com/pics/safariRender2.jpg
    <html>
    <body>
    <table width="100%" border="1" cellspacing="0" cellpadding="0">
    <tr>
    <td>First <td>
    </td>
    </tr>
    <tr>
    <td>Second <td> </td>
    </tr>
    <tr>
    <td>Third <td> </td>
    </tr>
    </table>
    </body>
    </html>
    I have a powerbook too that was upgraded to 10.4 at the same time, and there are no problems rendering the html in safari on there...just here on the G5
    thanks
    daniel

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • Forbiding rendering html and body elements within jsf page

    Hi, I have noticed rendered JSF page always starts and ends with elements
    <html> <body>
    my content
    </body> </html>
    but I need page that contains only "my content" for inserting into live html document
    It can be this automatic elements rendering disabled??

    f:subview instead of f:view did no changes. output is also closed with standards elements:
    <html><head><title></title></head><body>CONTENT</body></html>
    but I need in output only "CONTENT" without "body" and so

  • Rendering html in JEditorPane

    hi
    i have a problem in JEditorPane.
    when i rendering a html with frameset then i cannt resize the frames (like JSplitPane) but it working in browser.
    so how i do it in JEditorpane??
    thanks

    I think it just ignores it, but I could be wrong. If you want to do what you are saying, I think you need some custom document or something. The standard classes aren't going to help much, as far as I can tell.

  • Css styles in rendered html

    I'm trying to find where i can access the settings that determine the embedded style sheet that gets rendered with the html.I'd like to add a print style to the embedded style.
    Thank you
    Karl

    Hello,
    Your first way is the correct way to do it,
    style="background-color: #C6D4DD;font-style:italic;font-weight:bold;font:10pt arial;"[edit]
    While that is correct try this
    style="background-color:#C6D4DD;font-style:italic;font-weight:bold;font-size:10pt;font-family:arial;"[edit]
    It is standard and correct CSS every element should only have one style attribute. Can you put an example on apex.oracle.com of this not working?
    Regards,
    Carl

  • Rendering HTML report from SSRS 2012 with full details

    I want to get the parent level grouping and child data in a single HTML file from SSRS 2012 so that it doesn't try to refresh when
    clicked on expand/contract the tree. The reason is i'm getting SSRS report from java application and when i try to expand or contract the tree view it tries to connect to SSRS. Is there a possibility to do it?

    Hi shady2111,
    According to your description, you have a drill down report rendered in a HTML file. Now you find when expand/contract the toggle item, the application starts to access SSRS. Right?
    In Reporting Service, when we render a report, all the data supposed to be retrieved. Even in application, like some applications using Report View Control, it still working same as in BIDS. Based on your information, we don't how this java application designed.
    And it's hardly to figure out the reason that caused your problem. So please post some detail information about the report and application if possible. Also for your troubleshooting, we suggest you cancel the "Display can be toggled by this report item" in
    row visibility to see if the data is fully rendered.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for