How to display html in TreeNode

Dear,
I'm making a Tree in jsf,
In the tree, there are many nodes,
The Text attribute of node (TreeNode.Text) that I want to set string value as unicode (exp:1: FA08-D1-0004 1: FA08-D1-0004 <b>Tr & # 7 8 4 7;n Th & # 7 8 8 3; Thùy Trang<b>). But I don't want the html code appear, that code must be understand as html code by browser.
If I user StaticText in the TreeNode, I can setEscape(false), but we can't use StaticText in TreeNode. So that, could someone solve me that problem
Thanks a lot
I'm using jsf

Thanks for your replay
You can see my code:
protected void addContestantNote(List outerChildren,Candidatetimes candidatetimes){
List<Contestant1> contestantList = getContestantList(candidatetimes);
if (contestantList != null) {
int i=0;
for (Contestant1 contestant : contestantList) {
// Create a new semester node
TreeNode contestantNode = new TreeNode();
contestantNode.setId("contestant" + contestant.getIdSeq());
contestantNode.setText(""+(++i)+": "+contestant.getIdCandidate()+" "
+"<b>"+contestant.getLastname()+" "+contestant.getFirstname()+"<b>");
contestantNode.setUrl("/faces/contestantdetail.jsp?tripId=" + contestant.getIdSeq());
outerChildren.add(contestantNode);
When I relace:
TreeNode contestantNode = new TreeNode();
contestantNode.setId("contestant" + contestant.getIdSeq());
contestantNode.setText(""+(++i)+": "+contestant.getIdCandidate()+" "
+"<b>"+contestant.getLastname()+" "+contestant.getFirstname()+"<b>");
contestantNode.setUrl("/faces/contestantdetail.jsp?tripId=" + contestant.getIdSeq());
outerChildren.add(contestantNode);
to
<b>
StaticText contestantNode = new StaticText();
contestantNode.setId("contestant" + contestant.getIdSeq());
contestantNode.setText(""+(++i)+": "+contestant.getIdCandidate()+" "
+"<b>"+contestant.getLastname()+" "+contestant.getFirstname()+"<b>");
outerChildren.add(contestantNode);
</b>
that code run well, but nothing displace, I think the StaticText can't display in a TreeNode as children node, the StaticText look like a hidden fields
I that right

Similar Messages

  • How to display HTML response file in user's browser following submission of Livecycle form

    I have a PDF form created via Livecycle that does a HTTP submit to the webserver. The server returns a HTML 'submission receipt' page which is either opened in Acrobat or the user's web browser.
    Previously this process worked fine when submitting from adobe reader - the html receipt file would always automatically open OK in the user's browser. However, with newer versions of Reader (11.0.0+) I now get this error and no attempt to open the user's web browser:
    An error occurred during the submit process. Cannot process content of type text/html
    I realise why I get the error - Adobe reader can't display HTML files.
    What I don't understand is why it doesn't open the html file in the user's browser like it has been doing for years.
    Does anyone have any idea how I can fix this (without changing the response content type to PDF/FDF)?

    I had the same issue as you and we used FDF status, then eventually went with returning an XDP  that filled out a receipt section of the form.

  • How to display HTML file from Unix server on UI at runtime

    Hi Experts,
    My requirement is to display  HTML files,  related to some particular person, on UI. The file is existing on a separate UNIX server and a file related to one person may have a lot of attached files as well , as is the case generally with HTML files, including pictures etc. So it is no use transferring file on my CRM system, as the files are kept separately on this UNIX server which is particularly for this kind of storage.
    I am able to show files residing on MIME repository ( I created some new HTML files )  of my CRM system on UI. but I don't know how to go ahead with this particular requirement.
    One idea is that I can map one folder of my application server to that unix server so that I can see the HTML files in this particular folder. but I don't know how to map MIME repository folder to application server directory or directly to the UNIX server .
    Please advise. Is my approach correct or is there any other way ?
    thanks in advance.
    Regards,
    Vikas

    Maybe this is too simple, but have you got an HTTP server on the UNIX machine? You could simply link the URL into you CRM application and display the contents directly from UNIX.
    cheers Carsten

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to display html in SBO forms

    Dear Developers,
    I would like to know how can I display html content in a SBO form. Has anyone any experience in this theme?
    Html viewer in active x or else?
    I have a UDF with <html> code. Is it possible to showing content in B1 forms?
    Thank you in advance.
    Regards,
    Nghia

    simply add activeX WebBrowser control to yout form
    Dim oWebX As SHDocVw.WebBrowser
                oItem = balanceform.Items.Add("browser", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
                oItem.Left = 5
                oItem.Top = 55
                oItem.Width = 980
                oItem.Height = 495
                ' Create the new activeX control
                AcXTree = oItem.Specific
                AcXTree.ClassID = "Shell.Explorer.2"
                oWebX = AcXTree.Object
                oWebX.Navigate("about:blank")
                oWebX = Nothing
                GC.Collect()
    You may chnage the url (file) displayed there trhough oWebX.Navigate("url/file")
    Edited by: Petr Verner on May 7, 2010 7:04 AM

  • How to display html document returned by utl_http package (POST method)

    I am using oracle forms 10g, data base version is 10g.
    I have written a database procedure that calls utl_http package POST method and request returns an html document. How do display this html document from oracle form?
    Thank you
    Hema

    Here you have...
    A Full Web Browser Java Bean - Oracle Forms PJCs/Java Beans
    http://forms.pjc.bean.over-blog.com/article-26251949.html

  • How to Display Html Text with Image

    HI Frens,
    I am getting some html text from a source, Later i want to
    display that data, but it may happened that it has some images in
    it. Currently I am using text area to display it.
    Now My question is if there is any image will it show, as we
    can see it in our mails? if Not, Which component I should use for
    this?
    I also want that I need to select some file from, How can i
    get open dialog box here?
    Thks in Advance for replies frens:
    Ashish Mishra

    Hi Ashish,
    If I have understood your requirement properly, u want to
    display html text on a flex application.
    I think there its better if you use the html component to
    display the text. I have a sample code which will give you a
    direction to think on.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="initApp( )">
    <mx:Script>
    <![CDATA[
    public function initApp( ):void
    var initHtml:String = "<html><head> \
    <title='Page Example'/> \
    <body bgcolor='#ccddee'><h1>Page
    Example</h1> \
    <p>This is a complete <b>HTML</b> \
    page as a
    <em>string</em>.</p></html></body>";
    this.html.htmlText = initHtml;
    ]]>
    </mx:Script>
    <mx:HTML id="html" width="100%" height="100%" />
    </mx:Application>
    Also do you want a file open dialog box??

  • How to display html document in browser?

    Hi, I want to display an html document in my directory using nescape. How can I do that?
    I know that AppletContext can display html, but it has to be in URL.
    How about a document in my directory?
    Help please.

    just specify the path, i.e. c:\my files\myDocument.html
    or
    file:///myfiles/myDocument.html
    Of course, I use IE, so Netscape might not like it. but this works for IE.

  • How to display HTML pages always in first rank in search result?

    I have a sharepoint 2010 site where search is configured, but when it is displaying the search result some time it is  showing the pdf files  in the first order and the html pages in the second order, I need to display html pages always
    in the first order.How can I accomplish it?

    Alex's link is by far the best one but this is an alternative if you wanted to read a bit more widely
    http://sharepointkaos.wordpress.com/2011/01/13/custom-ranking-model/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to display html from the jar

    Hiiiiiiiii
    How I can to display html from jar file

    Check out datagriditemrenderer for the datagrid column. Sample datagriditemrenderer code below:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Text xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      dataChange="updateHTML()">
      <fx:Script>
        <![CDATA[
          private function updateHTML():void
            htmlText = data.streetaddress + "\n" +
              data.city + ", " + data.state + "\n" +
              "<b>Phone:</b> " + data.phone + "\n" +
              "<b>Email:</b> " + data.email + "\n";
        ]]>
      </fx:Script>
    </mx:Text>

  • How to display HTML file  (on server path) to ADF jspx page ?

    Hi Team,
    We have a requirement to display HTML content which is in tabular format on a page. This page is jspx page based on page template and this html has to be shown on a radio button select. I am trying to do this with Jquery but since the id of all components in jspx comes as pt1:id (pt1 being the id of page template) and : being a special character in Jquery, I am not able to proceed further.
    the syntax of Jquery to load html file a POC has been done outside Jdeveloper is working fine with a general syntax of
    $("#selector".load("html path"));
    Please let me know is they any other solution to load the file?
    Thanks
    Pavan

    For example
    - (void)viewDidLoad {
        [super viewDidLoad];
        NSURL *fileURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"readMe" ofType:@"html"]];
        [infoWebView loadRequest:[NSURLRequest requestWithURL:fileURL]];
    and from the .h
    @property (nonatomic, retain) IBOutlet UIWebView *infoWebView;

  • Help -- How to display Html text in a JEditorPane

    I'm trying to display html in a JEditorPane (html is obtained by transforming Xml and Xsl). So after i do the transformation i have a string which is the html source to be displayed. But when i use editorpane.setText(htmlString) method it is displaying the html source in the editorpane. I also tried using the HTMLEditorKit's read method. Even then its displaying the html source. But when i store the html source as a html file and give the editorpane, the url of the html file, it displays properly.
         I would be so grateful if u can help in displaying the html (which i have as a string) instead of the source...
    Thank you so much...

    Hi, after struggling with problem, the solution seems to be to ditch the content type meta tag, JEditorPane seems to barf (silently!) on this...
    So, to turn this off...
    transformer.setOutputProperty(OutputKeys.ENCODING,"");
    Cheers
    Greg

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute javascript and all....Is there any component for it???? Please help....

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to Display HTML content in Discoverer Viewer?

    Hi,
    Is there any way to display html in the Discoverer Viewer 4i or 9i ?
    The HTML code could be stored in a CLOB, varchar2 field or also in a referenced HTML side. What I want is that the HTML code is already displayed in the Discoverer Viewer. I know that you can display it by clicking on the filed but that is not what the customer wants.
    Thanks
    Mike

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

Maybe you are looking for

  • The activex control for flash player could not be registered.  Please help!

    Can't install flash player.  Keep getting activex control for flash player could not be registered.  I have tried all of the solutions provided on this forum.  Running windows 7 32-bit running IE8. Please help.

  • MacBook Pro iChat no-go

    After 5 months of iChat failure through Powerbook I just purchased top MacBook Pro, and iChat still does not function. I am in Italy, on Fastweb 10mbs fiber. I get a "can't get video from camera" error and my son in USA gets "expecting remote machine

  • Automate Firewire Target disc mode?

    I'm thinking of getting a Mac Mini as a backup machine (both as a data back up and also in the sense that if the G5 blows up I'll have a machine to work on whilst it's repaired). In order for this to be effective, I want to automate backing up to the

  • Need Help Making This Text Effect

    Can someone please assist on how I can create this text effect with the thick line surrounding the text phrase at this link? http://www.flickr.com/photos/lalogotheque/2801883641/in/set-72157608260902848/ I have the font already and I'm using Illustra

  • How does iPhoto relate to iP Library Manager?

    Once upon a time, I had  my libraries & albums set up just fine. (In iP4). Then, I upgraded from like Panther to Leopard, etc. I don't know what iP version I upgraded to doing that. Anyway, everything got fouled up & the only way I could access my li