JSF 1.0 HTML problem

I updated my JSF version to the beta version 1, and I get a problem that was not present in the previous version:
I generate HTML processing xml data, and put the data in a bean, when I output the variable I only get text and the browser does not format it into html !
Did I miss something, is there anything I need to change from the previous version.
The line is just :
<h:output_text id="html" value="#{userInfo.userKeywords}"/>
Thanks if someone has any idea.
Franck

I updated my JSF version to the beta version 1, and I
get a problem that was not present in the previous
version:
I generate HTML processing xml data, and put the data
in a bean, when I output the variable I only get text
and the browser does not format it into html !
Did I miss something, is there anything I need to
change from the previous version.
The line is just :
<h:output_text id="html"
value="#{userInfo.userKeywords}"/>
Thanks if someone has any idea.
FranckTo protect against the potential for cross site scripting attacks, by default the <h:output_text> tag will filter the output for characters that are sensitive in HTML and XML, including the "<" character, which is output as "@lt;" instead. If you want to turn off this filtering (and you are sure that you've protected yourself), add escape="false" to the tag invocation.
Craig McClanahan

Similar Messages

  • Send html problems

    Hello,
    I need help with my problem, this is part of my procedure that will send mail
    c := utl_smtp.open_connection(server);
    utl_smtp.helo(c, domena);
    utl_smtp.mail(c, posilja);
    utl_smtp.rcpt(c, prejemnik);
    utl_smtp.open_data(c);
    send_header('From', '<' || posilja || '>');
    send_header('To', '<' || prejemnik || '>');
    IF posljicc is not null THEN
         send_header('Cc', '<' || posljicc || '>');
         poslji_mail(posljicc, null, zadeva, posta);
    END IF;
    send_header('Subject', zadeva);
    send_header('MIME-Version', '1.0' || utl_tcp.CRLF);
    send_header('Content-Type', 'text/html' || utl_tcp.CRLF); <----- PROBLEM
    utl_smtp.write_data(c, utl_tcp.CRLF || posta);
    utl_smtp.close_data(c);
    utl_smtp.quit(c);...
    and it works fine but when I want to send HTML mail I see mail in code not as html like this:
    Content-Type: text/html <------- this should be in header
    <HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=windows-1250"></HEAD><BODY><table><tr><td>1</td><td>2</td></tr><tr><td>1</td></tr><tr><td>1</td><td>2</td><td>3</td></tr></table></body></html>
    Problem is that I see mail as text and I also see this in text body "Content-Type: text/html", but this should be in header.
    Can anyone help me with my problem, what must I do to get the html mail (not as text)?
    Thanks for your help

    Thanks I have solved the problem

  • JSF component inside HTML table -- not rendering properly

    I have a HTML table like the one below. In one of those columns (td) I have a JSF component. When I run the app, the JSF component (even if its a simple inputText or panelGrid or panelGroup) is not getting inside the td. Instead, it forms a seperate table after this td.
    Code I have:
    <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
    <td>... ..MULTIPLE Td's here - Deleted for simplicity </td>
    <td class="topNav">
    Blog Directory
    </td>
    <td>
    <img src="./images/top_button_right.gif"/>
    </td>
    <td class="topNav">
    <f:panelGroup>
    <h:inputText value="Username"/>
    <h:inputSecret value="Password"/>
    </f:panelGroup>
    </td>
    </tr>
    </tbody>
    </table>
    What I expected:
    username, passwd field inside the top level HTML table.
    What comes: (as a result of running thsi JSF page )
    <table> -- Original table
    <td> </td> -- -TD that had the inputText - comes empty here
    </table>
    <table>
    <tbody>
    <tr>
    <td><input type="text" name="_id1:header:EasyHeader:_id4" value="Username" /><input type="password" name="_id1:header:EasyHeader:_id5" value="" /></td>
    </tr>
    <tr>
    <td><table>
    I am a newbie to JSF & due to the complexity of the layout & page, I m unable to get rid of the HTML tags totally.
    Thanks in advance.
    Ganesh

    Found the solution to the problem.
    wrapped the entire HTML page till the JSF component ( panelGrid) under <f:verbatim>.
    something like this
    <f:verbatim>
    <table>
    <tr> <td>...</td>
    <td>
    </f:verbatim>
    <h:panelGrid> ... </h:panelGrid>
    <f:verbatim>
    </td>
    </table>
    </f:verbatim>

  • JSF Hello World trivial problem

    Hi,
    I followed http://otn.oracle.com/oramag/oracle/04-jul/o44dev_ojdev.html "Developing faces" article and can't quite get the simpliest JSF app to work.
    I keep getting a 404 error when requesting index.jsp, which simply redirects to /faces/HelloFaces.jsp
    My web.xml looks OK (see below). In fact, I double-checked all the instuctions in the article.
    Another problem I saw is that, when I tried "Importing sample JSF apps" the article mentions jsf-cardemo.war which is cannot find in my jdev1013 directory.
    Thanks, regards,
    Pawel
    <?xml version = '1.0' encoding = 'windows-1250'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>

    Ok I answered my own question. New Dreamweaver extensions are
    available for download. That fixed it up.

  • JSF & Tomcat 5 session problems

    I am implemeting a web application using JSF and tomcat authentication. The problem is that tomcat is losing the session when I hit refresh on any of the pages which are marked as havign a security constraint.
    e.g. you go to index.html -> takes you to login.jsp (as you need to log in first), you log in successfuly and go to index.html, you hit refresh and get taken back to login.jsp.
    Any help would be much appreciated.
    If anyone has implementign an app using tomcat authentication and jsf, I would be grateful if they could tell me how they are managing to overcome this issue.

    I have a similar question, but not about session timeout, but managing the data within your session. In our previous homegrown JSP Model 2 Framework, we had various methods in place to cleanup the session for a page (essentially allowing you to cleanup the managed beans after you were done with a page). Due to constant activity, the sessions never timeout, but there is "dead" data in the session. How would you do this in JSF? For example, lets say you go through a wizard set of screens, where once complete, you don't want the managed beans to exist in the session anymore. Where would you tap into the JSF lifecycle to do this?
    Thanks in advance,
    Dave

  • JSF page 'Initial load' problem

    I've found several threads touching on this already, but none seem to have a solution.
    When JSF loads a JSP page for the first time, it goes through the restore view phase which creates an initial view (as there isn't a current one to restore). It then goes directly to the render response phase.
    My problem is, I have a JSP/JSF page that I pass paramaters to via html GET. For example:
    http://localhost:8080/jsf/region.jsp?locationForm:directorate=1&locationForm=locationForm
    Because the first load goes directly to the render response phase, the parsing of these paramaters is never done & the page does not update as expected.
    The second time you perform the same request, JSF goes through the standard request processing lifecycle and works as you would expect, setting directorate to 1 in the backing bean and displaying an updated page.
    Is there any way to change JSF's default behaviour on a JSP initial load to do the whole lifecycle? Is there another way to get around this, short of loading the page twice to ensure it has the right information in it (which would be quite a hack)?
    I need to use html GET (as opposed to html POST) because:
    I'm using a technique of a hidden iframe that loads dynamically created javascript to update a dropdown list (DDL) on the main page without reloading the page in its entirity. This is to minimise network chatter as the system will be run on a 56k network. I have an onchange event on my JSF DDL that calls javascript to reload the hidden iframe.

    Thanks for the replies.
    I tried both of the suggested options
    1. If your bean is managed (declared as managed bean in faces_config), you can set the initial value of the property as, for example, #{param.locationFor }.
    Unfortunately I can't use this option as the backing bean i'm using has to be session scope. This is because the DDL options are set by the iframe page, not the main page. There could be many request/responses between client/server before the user finally presses the submit button. If I change the backing bean to request scope, I end up getting "Validation Error: Value is not valid" for the DDL because the selected ID is not in the backing bean's list of possible values for the DDL.. #{param} can't be used for session level BBs.
    2. If you don't want to use the managed bean properties, you can go get your parameters in your bean's constructor.
    I'm unable to use this option either. The backing bean is shared between the main page and the hidden iframe page. When the main page loads, the backing bean's constructor is called but that isn't the time when parameters need to be parsed. When the iframe page is loaded for the first time (via javascript onchange on a DDL on the main page) using http://localhost/iframe.jsf?iframeForm:ddlId=1&iframeForm=iframeForm is when I need to parse the parameters, by which time the backing bean is already instanciated and the constructor has already been called.
    I'm looking at where else I could get the parameters other than the constructor. I might be able to do it elsewhere.
    My guess as to why the following code works is it's not using a backing bean & isn't updating backing bean values on the first run:
    <f:view>
    <h:outputText value="param= #{param}"/>
    </f:view>To replicate the problem, create a simple backing bean, for example:
    public class sample {
        private Integer selectedId
        public String getSelectedId() {
            return selectedId
        public void setSelectedId(Integer selectedId) {
            this.selectedId = selectedId;
    }Then create the following sample.jsp:
    <!doctype html public "-//w3c//dtd html 4.01 transitional//en">
    <!--
      Copyright 2004 ArcMind, Inc. All Rights Reserved.
    -->
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <html>
    <head>
    <f:view>
      <h:form id="iframeForm">
        <h:panelGroup>
          <h:inputText id="selectedId" value="#{sample.selectedId}" />
        </h:panelGroup>
      </h:form>
    </f:view>
    </head>
    </html>Then try going to sample.jsp?iframeForm:selectedId=10&iframeForm=iframeForm (Similar to the request my main page is doing via javascript to populate the hidden iframe)
    The first time you do this, the text box will be populated with 0 (ie, it skipped the JSF lifecycle and ignored your 10 input). The second time and subsequent times it works as expected, with the text box containing the number 10.

  • Report Generation Toolkit Print HTML Problem

    Hi,
    i have a problem printing a html Page at a Costumers PC with the Report Generation Toolkit.
    I use LV 2012 and the Report Generation Toolkit in 32Bit Mode.
    The Target is a Win7 64Bit Machine with IE10 of our Customer with very strong security rules.
    Our Programm generates a HTML Repor which is saved without any problem.
    When i then try to print it with Print Report.vi it doesent work and i get error1 out of the SubVi NI_ReportGenerationCore.lvlibrint HTML Report using IE.vi.
    This Sub.vi simply cant open the HTML Page with the IE.
    I think its the costumers Security Rules that cause the Problem.
    I saw a very strange behavior of the IE.
    When i double click the .html file the IE gets opened and displays the file properly.
    When i then hit the reload button it also gets reloaded.
    When i click in the browsers adress bar and hit enter (Which normaly does a reload) i get an error "Adress Bar, Adresse, access denied".
    And i think that happens in the Sub.vi.
    I talked to some friends an they sad it could be that double clicking and reloding is done with the local user an the clicking and hitting enter reload is maybe the systemuser.
    So i asume that the Sub.vi is also using the systemuser.
    How can i determin which user is used to execute a vi?
    Can i influence the user?
    Has anybody a solution and seen this problem?
    Regards,
    westgate

    If I understand your situation correctly, you are able to use the LabVIEW Report Generation Toolkit to create an HTML report, which you save as an HTML file.  Can you open it in a browser and print it using the browser's Print button?  I've use LabVIEW to generate HTML reports, but have never tried to print the Reports in LabVIEW -- I've always used the "browser route", myself.

  • Print html problem

    I have a problem in VI documentation. I print the VI (the block diagram is much bigger than one screen) into html, and choose vi documentation. I got an error of 'Failure saving file xxx.html'. I am using LabVIEW 8.6 and winxp.
    Ryan
    Solved!
    Go to Solution.

    See this for the solution

  • Visual Web JSF Portlet Upload file Problem in Websynergy

    Hello,
    I am using Websynergy milestone 3 release. I have tried to build AS A PORTLET the sample code, "Uploading Files in NetBeans Visual Web JSF Applications" (http://www.netbeans.org/kb/60/web/intro.html) using netbeans 6.5. The solution deploys successfully but unfortunately, the file Upload control does not work in the websynergy portlet environment. No file seems to be uploaded. The same code works very well in non-portlet environment. Is there a work-around for the Portlet environment?
    Looking forward to some help!
    Pius

    Hello,
    I am using Websynergy milestone 3 release. I have tried to build AS A PORTLET the sample code, "Uploading Files in NetBeans Visual Web JSF Applications" (http://www.netbeans.org/kb/60/web/intro.html) using netbeans 6.5. The solution deploys successfully but unfortunately, the file Upload control does not work in the websynergy portlet environment. No file seems to be uploaded. The same code works very well in non-portlet environment. Is there a work-around for the Portlet environment?
    Looking forward to some help!
    Pius

  • Transaction iView - SAP GUI for HTML - Problem while hiding menu bar

    Hello all,
    I am trying to hide the OKcode field and the Menu button in a Transaction iView of type SAP GUI for HTML. I am following the SAP note 1010519. However, nothing seems to change, even after adding the parameter ~webgui_simple_toolbar = 0 or any other value.
    I added the parameter to the service: default_host ->sap -> bc -> gui ->sap -> its -><b>webgui</b>
    After going through few posts relating to this issue, I figured out that passing application parameters would not work. Also, using IAC is not an option for me.
    Can someone help? How can I hide the OKCode field and Menu bar?
    Thanks and Regards,
    Reena

    Hello Reena,
    Maintaining the parameter
    ~WEBTRANSACTIONTYPE   EWT
    will solve your problem. You can also create an IAC iview. Here is a document for the same.
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/_d-f/Displaying%20SAP%20Transaction%20as%20Internet%20Application%20in%20Portal.pdf">How to diplay a transaction as IAC iview</a>
    Also remove the parameter ~noheaderOkCode.
    Hope that helps.
    Regards
    Deb

  • Dreamweaver CS3 Paste HTML Problem

    Hi, I'm a fairly basic user of Dreamweaver CS3. I used to be
    able to paste HTML into webpages with no problem. I have recently
    upgraded to CS3 and that menu command (Paste HTML) seems to have
    gone. Can anybody help?
    Thanks, your help would be appreciated!

    dsbrett wrote:
    > Hi, I'm a fairly basic user of Dreamweaver CS3. I used
    to be able to paste HTML
    > into webpages with no problem. I have recently upgraded
    to CS3 and that menu
    > command (Paste HTML) seems to have gone.
    If you want to paste the actual HTML code into a page, just
    switch to
    Code view, and paste.
    Copy, cut, and paste in Dreamweaver are context-specific. If
    you copy a
    section of a page in Design view, and paste it in Design
    view,
    Dreamweaver automatically copies and pastes the underlying
    HTML. If you
    copy in Code view, and paste into Design view, Dreamweaver
    assumes that
    you want to display the code (as you might want to do in an
    online
    tutorial), so it converts all the angle tags into HTML
    entities and
    displays the tags and attributes in the page.
    The simple rule is copy and paste from Code view to Code
    view, or from
    Design view to Design view.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Can i use JSF tags and HTML tages Together

    i am trying to use html and JSf tages together. i hope it should owrk. but for me html tags are not working.
    can any one help me

    thanks
    its working but i have one more clarification
    can we wuse jsf tags in javascript
    for examp
    this my javascript using html
    newQuotCell1[0].innerHTML='<input type=text class=TextField name="nameofEmployer'+count1+'">';
    if i want to write a jsf tage there . does it allow
    i want to bind the textfield with bean value . Is it possibel.
    please let me know.
    thansk in advance

  • Send Smart Forms within emails (html) Problems with format

    Dear all,
    the ABAP report SF_XSF_DEMO1 is a demo report which converts a certain smart form into HTML and then sends it as an email in html format.
    Sending the email is possible without any problems but I am wondering about the email format.
    <a href="http://www.imgbox.de/show/img/e4QvgzsS4L.jpg" title="Bilder hochladen">This screenshot shows how the email looks like.</a>
    I am not happy with the email layout as the Smart Form "SF_XSF_DEMO1" is designed in a different way.
    What do I have to adapt within the report in order to send an email that really looks like the Smart Form? Or is it a customizing issue?
    (I would like to avoid having to send the Smart Form as PDF attachment...)
    Thanks for you help!
    Kristian Kindler

    Hi Kristian,
    When ever you send a smartform output as an HTML email, the system generates automatic style sheets which are not supported in many email clients such as Outlook 2007, hence you will face a formatting issue. We faced the same issue and had do it it like this:
    Build a BSP page similar to the output which you want to send as an email. Now you can use the BSP URL to send the html email using cl_bcs class.
    I have documented this in my article below-
    http://divulgesap.com/blog.php?p=NDA=
    Hope it helps.
    Regards,
    Ravikiran

  • JSF equivalent of HTML select Tag

    Can any one please tell me how to achieve this in JSF.
    <select>
      <option selected="selected" value="volvo">Volvo</option>
      <option value="saab">Saab</option>
      <option value="mercedes">Mercedes</option>
      <option value="audi">Audi</option>
    </select>I have tried this but its not working:
    I want the "Volvo" option to be the default selected one.
    <tr:selectOneChoice label="Car" required="true"
                              value="#{myBean.car}">
            <f:selectItem value="A" itemValue="A" itemLabel="Volvo"/>
            <f:selectItem value="B" itemValue="B" itemLabel="Saab"/>
            <f:selectItem value="C" itemValue="C" itemLabel="Mercedes"/>
            <f:selectItem value="D" itemValue="D" itemLabel="Audi"/>
      </tr:selectOneChoice>With the HTML code the VOLVO value comes as default selected, but with the JSF Code the default value is blank in the drop down. I want the first value to be selected in the drop down.
    Some one please help.

    You need to set the 'value' attribute of the selectOneChoice to the desired value as it is in f:selectItem's 'itemValue' attribute.
    That said, the 'value' attribute of the f:selectItem should point to a javax.faces.model.SelectItem property, not a plain vanilla String. Also, you should either use that only, OR the itemValue and the itemLabel.

  • OC4J 9.04 and JSF 1.1.0 problem

    Our problem scenario is related to JSF and OC4J.
    When an exception is generated that is not handled by our application and thrown to the web container, the user is redirected to an error page. If the user refreshes the error page then the whole application gets into an illegal state i.e. blank pages are shown for all the pages. It seems like the problem is related to JSF 1.1.0 and OC4J 9.0.4 (uses J2EE 1.3).
    The application works fine on OC4J 10 R3 (uses J2EE 1.4), Tomcat 4 (uses J2EE 1.3) and Tomcat 5 (uses J2EE 1.4).
    Anyone experiencing the same kind of problem? Any ideas?

    Our problem scenario is related to JSF and OC4J.
    When an exception is generated that is not handled by our application and thrown to the web container, the user is redirected to an error page. If the user refreshes the error page then the whole application gets into an illegal state i.e. blank pages are shown for all the pages. It seems like the problem is related to JSF 1.1.0 and OC4J 9.0.4 (uses J2EE 1.3).
    The application works fine on OC4J 10 R3 (uses J2EE 1.4), Tomcat 4 (uses J2EE 1.3) and Tomcat 5 (uses J2EE 1.4).
    Anyone experiencing the same kind of problem? Any ideas?

Maybe you are looking for

  • Fire Wire Bus load

    I know this is a general "mac" question, but I trust my Logic and music cohorts to help out. I have a number of external drives hooked up. Is it better to spread them to different fire wire ports then to daisy chain them? One is my "time machine" and

  • How to use CreateInsert in inseting new row at the beginning of each page

    I would like to insert new row in an editable table bu using CreateInsert. How to insert that at the beginning of every pagination. Let us say, if my pagination is 10, when I insert the record in pagination 21-30, the new record will be inserted and

  • How to keep XML file in memory for specified period ?

    How to keep XML file in memory for specified period or forever, I have 5 applications running on WebSphere I wants to use XML file for all the applications. I mean when one apllication is not using XML file still I wants to keep it in memory ... Than

  • My itunes music has gone ='(

    my itunes music has gone! it is still in my documents and stuff but not on my actual itunes =(...it has also erased all my purchased music aswell does anyone know the resolution to this dilemma somebody help me i will die without my ipod music ='(

  • Join two table using two link field

    hi all i need to left join two table, and to link two table need to match two field ex: the link field is store_name and id i use below sql statement SELECT A1.store_name, A1.id, A1.card, A2.sale, A2.history FROM Georgraphy A1, Store_Information A2 W