Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4007876
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:41:05+00:00 2026-05-20T08:41:05+00:00

I want to generate some html code for the jsf page I have (I

  • 0

I want to generate some html code for the jsf page I have (I am not on jsp so I cannot use out.print), so I use icefaces component ice:outputText:

<ice:outputText id="txtCaptcha" escape="false"></ice:outputText>

I successfully find the outputText by id from Java code

UIViewRoot root = FacesContext.getCurrentInstance().getViewRoot();
HtmlOutputText icefacesOutputText = (HtmlOutputText) root
.findComponent("mainContentForm:txtCaptcha");

and put some html code in it so with Firebug I can view:

<span class="iceOutTxt" id="mainContentForm:txtCaptcha" style="height:300px; width:100%;"><script type="text/javascript" src="http://api.recaptcha.net/challenge?k=<key>"></script>
<noscript>
    <iframe src="http://api.recaptcha.net/noscript?k=<key>" height="300" width="500" frameborder="0"></iframe><br>
    <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
    <input type="hidden" name="recaptcha_response_field" value="">
</noscript></span>

Well… I do not understand why it does NOT appear in the html page? Why I can only see the content with Firebug?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:41:06+00:00Added an answer on May 20, 2026 at 8:41 am

    Here is another suggestion:

    <ice:outputText id="txtCaptcha" value="#{myBean.someHTML}" escape="false"/>
    

    then in the getter of the bean myBean, you return your HTML code:

    public String getSomeHTML() {
        return "<span>...</span>";
    }
    

    As you set the escape="false" attribute, it will not escape the HTML characters, and thus it will be generated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a task and I want to generate some code using the CodeDom.
I have custom JSP tags that generate some HTML content, along with some javascript
I want to auto-generate a HTML table from some custom data. One of the
Using T4 I want to generate some code based on examining what files are
I want to generate some XML in a stored procedure based on data in
I want to generate some formatted output of data retrieved from an MS-Access database
I need to generate some passwords, I want to avoid characters that can be
I want to make some variables I generate in b available in c: a
I'm looking for a free templating engine to generate simple reports. I want some
I have an <input> field in my web page, and I want to add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.