Saving Rendered HTML in JTextPane as TIFF

Can someone help me in getting started with some sample code that does the following?
I would like to save the WYSIWYG Image of the HTML and graphics displayed by specifying a URL in a JTextPane or JEditorPane. I would like to save the resulting image as a TIFF.
If anyone has any sample code that does this, I would appreciate it if you can share this or help me in getting started.
Thanks
Venkatt

Hi,
This problem can be reduced to the problem of saving the contents of any panel that derives from a JPanel or Canvas.
See my webpage on:
http://www.ida.liu.se/~perkr/awtcanvas.html
to see how to achieve this effect on a java.awt.Canvas. The case for a JEditorPane is the same, the basic idea is to make the panel paint in a BufferedImage that you then save to the fileformat you want.
To make it paint to an image you need to create a BufferedImage or RenderedImage instance of the same size as the panel whose content you wish to dump as an image file, see the following code snippet:
              Rectangle r = panel.getBounds();
              Image image = panel.createImage(r.width, r.height);
              Graphics g = image.getGraphics();
              panel.paint(g);
              ImageIO.write((RenderedImage)image, "png", new File(name));where "panel" referes to the JEditorpane. Note that the example uses the PNG format. I am not sure if default Java installations support TIFF yet (you can try) but I do know there exists a Java Advanced Imaging API (JAI) supplied by Sun that do support it.
Hope this helps.
/Per-Ola

Similar Messages

  • 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

  • How can I display Excel document saved as html in ebDynpro Office Contol?

    Hello,
    I have a problem with displaying of Excel document saved as html inside WebDynpro Office Control.
    Could you explain why OfficeControl cannot display Excel document with content type =text/htm?
    How you know, control must be bound to binary data. And then mime type is set as
    bin.setMimeType(new WebResourceType("html", "text/html", false));
    The empty document is displayed always.
    Nevertheless, excel file is displayed perfect, when
    bin.setMimeType(new WebResourceType("xls ", "application/msexcel", false));

    The OfficeControl UI element is made available as an ActiveX control, so that the UI element can be displayed in browsers that support ActiveX controls.
    The ActiveX control enables display of the following documents:
    1.Microsoft Word documents with the doc file extension
    2.Microsoft Excel documents with the xls file extension
    This is the reason why document with other content types are not displayed.
    Data source must be bound to binary data because files are read as bytes in this scenario.
    Hope this helps you.
    Do let me know if your problem is solved.
    Regards,
    Vijith

  • Problems with saving a html webpage under windows 7

    Hello people,
    Ik have the next problem. When I an webpage witch I have made for instanse webpage.html open and I change something in it en I wanna save this changes in my webpage I get the next message (maybe the translation is not the right one) An error occurred while accessing E:\users\name\websites\MFC936D.tmp.
    This tmp file has every time a different name. The site is not saved (webpage.html) but the html page disapeares when I click the eroor message away. And the tmp file displays in the map where the files are being saved.
    My dreamweaver cs4 runs under windows 7
    I hope someone can help me.
    Thanks a lot.
    Bart

    E: is another partition were I save my data too.
    The file is maybe read only you say. But 2 things sometimes it saves right after I have tried it a few times. And second I have started dreamweaver with administration rights, so you think he has all the rights. But the sme thng happened.

  • File-Save window(saving the html page by clicking a button)

    Hi,
    when I click a button, a window should open which is same as the one which appears when we click File-save.
    This should happen to save the data that is displayed on the internetExplorer, when the user clicks the submit button on his page.(ie,Saving  the html page in his desired location).
    Thanks in advance.

    Refer FileDownload and FileUpload tutorial.
    If the idea is just to save the html page, I am not sure if it is possible.
    If the idea is to save the data in the html page then you can save it as xml format or csv format. Refer to the following tutorials:
    a) FileUpload and FileDownload
    b) Web Dynpro Binary cache
    Regards,
    Subramanian V.

  • 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

  • Inserting HTML into JTextPane

    Hi,
    I am trying to insert HTML into JTextPane.
    I am using the following code for the same.
    JTextPane jedit = new JTextPane();       
    jedit.setContentType("text/html");
            HTMLDocument doc = (HTMLDocument)jedit.getDocument();
            String text = "<a href=\"???\">hyperlink</a>asd<a href=\"???\">hyperlink123</a>";
            HTMLEditorKit editorKit = (HTMLEditorKit)jedit.getEditorKit();
            editorKit.insertHTML(doc, doc.getLength(), text, 0, 0, null);
            doc.insertString(doc.getLength(),"Hi testing",null);
            text = "<a href=\"???\">hyperlink123</a>";The problem is that the HTML gets inserted into new line. I do not want the new line.
    I know there is an API like insertBeforeEnd(...) but do not know how to use that.
    Any help for the above problem will be of great use.
    Thanks.

    look I have got the answer ... I guess this would be the root cause of the problem of new line.
    when ever you want the text to be inserted
    -at new line provide the last argument  of HTMLDocument.insertHTML as null
    - at same line provide the last argument as the HTML tag you are inserting into the JtextPane's document.thats it !!!
    ENJOY :-)

  • 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

  • Actions saving as .html instead of .jpg

    I have cs6 photoshop and when i use actions the file is being saved as .html instead of .jpg....  please help

    I don't know which actions you are using, but if you Save for Web normally, PS gives you options to Save as Image only, HTML only or HTML and Images (typically used for slices).
    Nancy O.

  • Outlook template (.oft) cannot saved as HTML-based message

    Hi,
    When saving an HTML e-mail message as an .oft template. Outlook save this message as an RTF and not as HTML. How can change this? When open Outlook in safe mode, Outlook also saves this message as an RTF. 
    I am using Office 2010.

    Hi,
    If you are using Exchange 2013 with Outlook, you may face this issue as described in this following kb:
    http://support.microsoft.com/kb/2862739/en-us
    I suggest you create a new profile to check if this issue persists:
    http://support.microsoft.com/kb/829918/en-us
    Regards,
    Melon Chen
    TechNet Community Support

  • How to upload a flat file which is saved as .html format.

    hi techies,
    I have to upload a flat file which is saved in .HTML format. Is there any function moudles seperately to
    upload html flat file or using GUI_UPLOAD.. can we upload it ???
    Please need a suggestion...
    Rgds.,
    subash

    hi gautam,
    this FM is taking html string as input and giving the output, not the file...
    any more suggesstions dude..
    Rgds.,
    subash

  • 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

  • OnLoad error while saving an html doc

    I was saving an html doc, that I have used many times before as a 'start' doc for a website, I goet a  very strange error.
    What could be causing this and/or, how can I 'fix' this?

    The answer is in the Dreamweaver FAQ. You have a corrupt cache file. See Deleting a corrupt cache file.

  • Rendering data from jTextPane

    I have two jTextPanes in the same frame. I am rendering data from both of them using .getDocument() property, now I want to flush this data into same document. How can I do it?
    Please help me out.
    Thanks in advance.

    I am rendering data from both of them using .getDocument() propertyNo idea what this means.
    now I want to flush this data into same documentDon't understand this either.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the [Code Formatting Tags|http://forum.java.sun.com/help.jspa?sec=formatting], so the posted code retains its original formatting.

Maybe you are looking for

  • Upload Manual bank statement with business area

    Hi Gurus, Business area is required field. While uploading manual bank statement through ff67, how can system identify the correct business area? Is there any option in which we dont have to enter business area manually while uploading? Please revert

  • Advance with Special GL Indiactor

    Hi All, My Client wants to post travel advance with special GL Indicator (Advance). I have assigned GL Account (100000) with special GL indicator to advance symbolic account. When i try to post the document in T code PRRW it is giving error message 

  • How to Group Data from column?

    Hi All, Can any one solve my problem please? I have Two Column "Age" and "Employee ID". I want to Group "Number of Employees" for specific AGE range Like: Age | Number of Employees 20 to 30 | 06 31 to 40 | 13 41 to 50 | 16 51 to 60 | 03 And data in C

  • Tell me the COMMAND to see the Explain Plain in Oracle SQL * Plus

    HI all, Tell me the COMMAND to see the Explain Plain in Oracle SQL * Plus? Regards, Balaji.C

  • Add BP in a target group at account creation

    Hello experts ! I'd like to know how in java or ABAP I could automatically add a BP in a target group when the account is created. The BP should after that use a campaign code associated with the target group, immediately after account creation. Than