Mixing simple HTML with JSF

Is there any way to mix some simple HTML in the middle of my JSF code? For example, in creating a data table, I want one of the columns to contain two values with a <br> between them. I tried this:
<h:data_table value="#{BeanColl}" var="_loopvar_TestBean" >
<h:column>
  <f:subview id="abc">
      <h:output_text  value="#{_loopvar_TestBean.name}" /> <BR />
      <h:output_text  value="#{_loopvar_TestBean.city}" />
  </f:subview>
</h:column>
</h:data_table>I also tried f:verbatim, which also was no good. I tried replacing the <br> with some text, just to see what was happening with it, and it was putting the text up above the table.
(My real problem is more complicated than just a <br>, so I am really looking for a more general answer. Eventually I will want to nest data_table tags.)
I'd be perfectly happy with a repeat tag of some sort, that just repeats the section of the page that it surrounds (which might contain text, HTML tags, and JSF tags) and doesn't try to help in building a table of any sort. In fact, this would make me a lot happier. But I don't find such a beast anywhere in the copious documentation.
Thanks in advance for any and all help.
Zag

Thanks all for advice so far. I have tried all the suggestions in here, and I still can't seem to get what I want. What I am really looking for is a simple repeat tag, without it giving me all the "help."
I tried Sergey's example, and it does, in fact, work fine in the header. However, to get the same behavior in the column itself does not seem to work. This code:
<h:data_table value="#{BeanColl}" var="_loopvar_TestBean" >
<h:column>
   <!-- Header works great. -->
   <f:facet name="header">
      <f:subview id="abc">
          <h:output_text  value="HeaderText1" />
          <f:verbatim escape="false"><BR /></f:verbatim>
          <h:output_text  value="HeaderText2" />
     </f:subview>
   </f:facet>
   <!-- Same code in the column does not work -->
      <h:subview id="abd">
          <h:output_text  value="text1" />    <!-- question="This tag does NOTHING!!  Why?"  -->
          <f:verbatim escape="false"><BR /></f:verbatim>
          <h:output_text value="#{_loopvar_TestBean.id}" />
     </h:subview>
</h:column>Here is the amazing thing: In my column data, the only tag which produces anything is the last output_text. I had thought that the problem had to do with the verbatim, but, in fact, JSF doesn't seem to want to produce any output that doesn't come directly from the loop variable! The first output_text in the column data, which should produce "text1" in each cell in the column, does not seem to do anything at all.
I have also tried using panel_group rather than subview, with the same results.
Is there some tag other than data_table which will repeat over data? I've looked, but maybe I'm just blind. I want something that does a lot less for me, and gives me the power to get what I actually want.
Any and all help and advice, even if it doesn't pan out, is greatly appreciated. (Do I sound desparate enough, yet?) :-)

Similar Messages

  • Cleaner HTML with JSF-Facelets

    I seem to recall hearing of some type of extension or Servlet Filter or something which cleans up the HTML that Facelets or JSF renders. Does anyone know of anything like this?

    Google is your friend:
    http://www.google.com/search?hl=en&q=HTML+servlet+filter+tidy

  • Mixing HTML and JSF or better pure JSF Tags?

    I'm relatively new to JSF, but i can say, i work with all the Web Standards in HTML and CSS.
    So the HTML Render Results of JSF may not fit into a Web Developers Dreams of perfect HTML/CSS.
    An Option i see is to use HTML and put only the dynamic parts in there as JSF Components.
    What are the Pro's and Con's using HTML?
    some stuff i can image:
    Using pure JSF:
    - May many components have impact to the performance?
    - Mixed with HTML: What if the application should be rendered to another client pc (e.g. Mobile)?
    What are your experiences?

    The one downfall of mixing html with jsf, unless you use the f:verbatim tag, that the page is not properly represented in the component tree. Also depending on certain technologies you use (when I used ajax4jsf it worked this way) that the jsf component tree was rendered and then all the html was rendered at the end. This caused html tags and text that I had inside a jsf tag to be improperly displayed.
    This though was the case when I was originally using jsf 1.1, so it may have been improved in later editions, but since I have become accustomed to writing the entire page in jsf tags I have not really tested that limit in the current version.

  • Mixing Html and JSF

    Hi,
    I have a very simple question concerning a good jsf programming style:
    Often I get Html pages from designers in order to put the necessary
    jsf-code in it in order to get the application work.
    So do I have to replace all html-code with jsf-tags or is it ok when
    I only put jsf-tags where it is necessary (eg. where I have to output
    some data from a bean etc. ).?
    Thanks for your comments,
    Andy

    In general, if there are ways to accomplish the markup you want with JSF component tags (either standard ones, ones you write yourself, or ones written by third party component library providers), I believe that pages composed purely with JSF components will be more maintainable in the long run. In addition, you have the potential ability to use a different renderkit to output a different sort of markup, wihtout doing anything more to your pages than changing the URI of the tag libraries in use (and even that can turn out to be a one-place change if you're using something like a JSP 2.0 prelude file that is automatically included on every page).
    That being said, there will be times when you absolutely, positively, have to include some raw HTML markup along with JSF component tags. Although this works pretty well in simple cases, there are lots of scenarios where it is problematic. However, there is a standard means to deal with this problem -- just enclose your raw HTML markup in an <f:verbatim> tag, and it becomes a JSF component that plays nicely with other JSF component tags, in every scenario.
    I recommend that anyone planning on intermixing raw markup with their JSF component tags should plan on enclosing it in <f:verbatim> tags, to avoid interoperability problems.
    Craig

  • Iweb page modified with a simple html editor , now not display navigation menu

    Hello i've designed a site http://www.ballettgastini.ch with Iweb and was working till i've the needs to update a simple text in one page and get it via ftp from the server, modified with a simple html editor !!!!, and update via ftp on the server. now the page do not diplay the navigation menu bar !!!! the page is here  : http://www.ballettgastini.ch/stundenplan.html ... any suggesion ? i'm working now with a new imac with no possibility to modify the entire web site on the server...but the need it's really to change few text lines so i think to use a simple html editor... any ideas ? thanks luca giay turin italy

    Why not continue in the topic you started earlier?
    https://discussions.apple.com/message/21158910#21158910
    Anyway, the scripts folder with essential files is missing :
    http://www.lakesweddingmusic.com/Scripts/iWebImage.js
    + more
    And this is missing too :
    http://www.lakesweddingmusic.com/feed.xml
    No feed, no menu.
    And we keep finding more webpage. This one is made with iWeb 1
    http://www.lakesweddingmusic.com/The_Barn.html

  • So, in the end, is mixing JSTL with JSF ok or not?

    At first, when I began learning JSF, I was taught not to mix JSTL into JSF because it's very hard to know how will be behave.
    Then, I learned that in order to avoid the confusion completely, it was best not to use any JSTL or even better use Facelets.
    Now, I keep running into (relatively recent) articles and books claiming both that JSTL now works with JSF and that it doesn't.
    I gave it a shot by trying the famous c:forEach with h:outputText
    <c:forEach var="item" items="#{someBean.items}">
        <h:outputText value="#{item.name}" /></td>
    </c:forEach>According to my current knowledge, this is not supposed to work, and it doesn't, but since I've seen a Sun article saying that it should (if the latest components are installed, and they are), I can't be sure if I misconfigured something or...
    I've also read the following sentence (regarding the above example):
    >
    This is supposedly fixed in JSTL 1.2, but there is no stand-alone implementation of JSTL 1.2.
    >
    So, could someone with an understanding of the issue clear this up for me? I'd be very grateful.
    I'm not asking anyone to find out why my code didn't work, just if it was supposed to work at all.
    Also, I found this on onjava.com
    For instance, <c:if> and <c:choose> may contain JSF component custom actions, but only if the id attributes are set for the nested JSF component actions.It this true? Is it obsolete?
    Thanks to anyone who takes the time to share any insight.

    Thanks for the response BalusC, I'm now closer to understanding the issue. The only thing still bothering me is this code (taken from Sun's webtiersample.jsp)
    <c:forEach items="#{BooksBean.books}" var="book" varStatus="stat">
         <tr>
              <td>
               <h:outputText id="title" value="#{book.title}"/>
           </td>
             <td>
               <h:outputText id="author" value="#{book.author}"/>
             </td>                          
         </tr>
    </c:forEach>Won't this cause an id clash? I mean, doesn't this mean I'll have multiple "title" and "author" ids?
    This seems to confirm the statement I quoted earlier (from onjava.com):
    For instance, <c:if> and <c:choose> may contain JSF component custom actions, but only if the id attributes are set for the nested JSF component actions.Mind you, I don't really plan to use JSTL in JSF, but I really wish to understand this...
    Thank you very much for taking the time.

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

  • Mix HTML and JSF

    How do I go about interspersing HTMl with the JSF components? The outputText works Ok for small bits of code but cannot be nested.
    Basically, I need to go to Flow-Based layout using tables and cannot seem to get started so any ideas would help.

    <%-- jsf:codeBehind language="java" location="/JavaSource/pagecode/jsp/banking/BankAccountsAndCreditCards.java" --%><%--
    /jsf:codeBehind --%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    session="false"
    %>
    <portletAPI:init />
    <f:view>
    <LINK rel="stylesheet" type="text/css"
              href='<%=response.encodeURL("/theme/stylesheetx.css")%>' title="Stylex">
              <LINK rel="stylesheet" type="text/css"
              href='<%=response.encodeURL("/theme/stylesheet.css")%>' title="Style">
              <f:loadBundle basename="gov.ohio.jfs.eric.bundle.labels" var="labels" />
              <h:form id="bankAccountsAndCreditCards"\>
         <div id="contentzone">
         <div id="taskarea">
              <div id="taskareaheader" style="width:100%">
                   <span class="style4" style="width:75%"><h:outputText
    value="#{labels['bankAccountsAndCreditCards.title']}"/></span>
              </div>
    <div id="instructions"><span class="style4"><h:outputText
    value="#{labels['bankAccountsAndCreditCards.instructions.title']}"/></span><span class="style9"><h:outputText
    value="#{labels['bankAccountsAndCreditCards.instructions']}"/></span> </div>
              <h:outputText value="#{labels['bankAccountsAndCreditCards.warning']}"
    rendered="#{pc_BankAccountsAndCreditCards.bankAccountsAndCreditCardsFB.labelPresent}"></h:outputText>
    <div id="datatable" style="padding-top:5px;MARGIN-top:15px" class="style16"><span
    style="padding-left:15px"><h:outputText value="#{labels['bankAccountsAndCreditCards.bankAccounts.title']}"/></span>
                   <div id="title">          
                        <table border="0" cellpadding="0" cellspacing="0">
                             <tr>
                             <td align="left" class="style16" style="width:80%"> </td>
                             <td align="right" style="width:10%" id="buttonpad"><hx:commandExButton
    type="submit"
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.buttonName.addBankAccount']}" styleClass="commandExButton"
    id="addBankAccount"
    action="#{pc_BankAccountsAndCreditCards.addBankAccounts}" >
    </hx:commandExButton></td>
                             <td align="right" style="width:10%" id="buttonpad"><hx:commandExButton
    type="submit"
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.buttonName.delete']}" styleClass="commandExButton"
    id="deleteBankAccount"
    action="#{pc_BankAccountsAndCreditCards.deletBankAccounts}" >
    </hx:commandExButton></td>
                             </tr>
                        </table>
              </div>
              <div id="datatable">          
                   <h:dataTable var="varsecurityInfo" width="100%"
                   rowClasses="rowon,rowoff" headerClass="tableheader"
                   id="bankAccountid"
                   value="#{pc_BankAccountsAndCreditCards.bankAccountsAndCreditCardsFB.bankAccountCreditCardCDB}">
                   <h:column>
                        <f:facet name="header">
                             <h:selectBooleanCheckbox id="selectallaccounts1"></h:selectBooleanCheckbox>
                        </f:facet>
                        <h:selectBooleanCheckbox id="selectaccounts1"
                             value="#{varbankAccountCreditCardCDB.deleteRow}">
                        </h:selectBooleanCheckbox>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.accountType']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.accountType}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.routingNumber']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.transitNumber}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.accountNumber']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.accountNumber}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.nameOnAccount']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.bankName}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.status']}"></h:outputText>
                        </f:facet>
                        <h:outputText value=""></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.createdBy']}"></h:outputText>
                        </f:facet>
                        <h:commandLink id="actionlink" action="">
                             <h:outputText value="getLastUPDTS(use summaryofdebits like)"></h:outputText>
                        </h:commandLink>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.action']}"></h:outputText>
                        </f:facet>
                        <h:commandLink>
                             <h:outputText value="#{varbankAccountCreditCardCDB.action}"></h:outputText>
                        </h:commandLink>
                   </h:column>
              </h:dataTable>          
              </div>                         
              </div>
              <div id="datatable" style="padding-top:5px;MARGIN-top:15px" class="style16"><span
    style="padding-left:15px"><h:outputText
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.title']}"></h:outputText></span>
                   <div id="title">          
                        <table border="0" cellpadding="0" cellspacing="0">
                             <tr>
                             <td align="left" class="style16" style="width:80%"> </td>
                             <td ><hx:commandExButton type="submit"
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.buttonName.addCreditCard']}" styleClass="commandExButton"
    id="addcreditAccount"
    action="#{pc_BankAccountsAndCreditCards.addCreditCardAccounts}" >
    </hx:commandExButton></td>
                             <!-- <td align="right" style="width:10%" id="buttonpad"><input name="button"
    type="button" value="Add Bank Account" class="style16"></td> -->
                             <td><hx:commandExButton type="submit"
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.buttonName.delete']}" styleClass="commandExButton"
    id="deletecreditAccount"
    action="#{pc_BankAccountsAndCreditCards.deleteCreditCardAccounts}"
    >
    </hx:commandExButton></td>
                             <!-- <td align="right" style="width:10%" id="buttonpad"><input name="button"
    type="button" value="Delete" class="style16"></td> -->
                             </tr>
                        </table>
              </div>
              <div id="datatable">          
    <h:dataTable var="varbankAccountCreditCardCDB" width="100%"
                   rowClasses="rowon,rowoff" headerClass="tableheader"
                   value="#{pc_BankAccountsAndCreditCards.bankAccountsAndCreditCardsFB.bankAccountCreditCardCDB}">
                   <h:column>
                        <f:facet name="header">
                             <h:selectBooleanCheckbox></h:selectBooleanCheckbox>
                        </f:facet>
                        <h:selectBooleanCheckbox
                             value="#{varbankAccountCreditCardCDB.deleteRow}">
                        </h:selectBooleanCheckbox>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.cardType']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.accountType}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.creditCardAccountNumber']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.transitNumber}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.nameOnCreditCard']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.accountNumber}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.creditCardAccounts.status']}"></h:outputText>
                        </f:facet>
                        <h:outputText
    value="#{varbankAccountCreditCardCDB.paymentProfileDataBean.thePaymentInfoDataBean.accountNumber}"></h:outputText>
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText
    value="#{labels['bankAccountsAndCreditCards.bankAccounts.action']}"></h:outputText>
                        </f:facet>
                        <h:commandLink>
                             <h:outputText value="#{varbankAccountCreditCardCDB.action}"></h:outputText>
                        </h:commandLink>
                   </h:column>
              </h:dataTable>               
              </div>                         
              </div>
              <div id="taskareanav" style="width:100%">          
              <table border="0" cellpadding="0" cellspacing="0">
                   <tr>
                   <td align="left" class="style16" style="width:100%"><
                        Previous</td>
                   </tr>
              </table>
              </div>
    </div>          
    </div>
         <h:outputText value="#{pc_BankAccountsAndCreditCards.bankAccountsAndCreditCardsFB.name}"
    rendered="#{pc_BankAccountsAndCreditCards.bankAccountsAndCreditCardsFB.labelPresent}"></h:outputText>
         </h:form>
    </f:view>

  • Deploying simple HTML page to WLS 10.3.6 fails with HTTP response code: 502

    - I created a simple HTML page and want to test deployment to WLS 10.3.6 on Linux. I created WAR file and when using JDev 11.1.1.4.0 to deploy to WebLogic Server, it fails to deploy. Full errors/messages are:
    [04:40:56 PM] ---- Deployment started. ----
    [04:40:56 PM] Target platform is (Weblogic 10.3).
    [04:40:59 PM] Retrieving existing application information
    [04:40:59 PM] Running dependency analysis...
    [04:40:59 PM] Building...
    [04:40:59 PM] Deploying profile...
    [04:40:59 PM] Wrote Web Application Module to C:\JDeveloper\mywork\Simpe_HTML\Project1\deploy\SimpleHTML.war
    [04:41:01 PM] Deploying Application...
    [04:41:01 PM] Weblogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: The source 'C:\DOCUME~1\NGOLDR~1.LAT\LOCALS~1\Temp\SimpleHTML.war' for the application 'SimpleHTML' could not be loaded to the server 'http://dupe:7031/bea_wls_deployment_internal/DeploymentService'.
    Server returned HTTP response code: 502 for URL: http://dupe:7031/bea_wls_deployment_internal/DeploymentService
    [04:41:01 PM] See server logs or server console for more details.
    [04:41:01 PM] weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'C:\JDeveloper\mywork\Simpe_HTML\Project1\deploy\SimpleHTML.war' to 't3://dupe:7031'
    [04:41:01 PM] #### Deployment incomplete. ####
    [04:41:01 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    - The Application Server connection is accessible within JDev. 'dupe' is my server name and it's running RH 5.4
    - Any help or suggestions appreciated, although I've already asked Mr. Google without success.
    Thanks in advance,
    Neville

    HTTP response code 502 means temporarily overloaded.
    I would say that we have to check the deployment error on the weblogic server logs located at <Domain_Home>\servers\dupe\logs\dupe.log
    Check for any errors like OutOfMemory etc OR any deployment failures.
    If possible, try accessing the console at http://dupe:7031/console
    Check if you are able to successfully deploy your application using the console.
    From the error it looks like the "dupe" server might not be healthy. So, the log file would really help here to get clues into the root cause.
    Arun

  • Linking secure html link with JSF?

    Hey all,
    I do have a previous post regarding j_security_check and using container based security, but since this problem could be answered without it, checking to see how (j_security_check: http://swforum.sun.com/jive/thread.jspa?threadID=54464&tstart=0).
    I want to be able to e-mail links with pre-populated attributes (identifiers, dates, what have you) but still have the link secure and require auth. But, I do want to automatically go to that linked page after auth. How does one do this with JSF?
    thanks,
    -D

    Hi,
    Please go through the below thread:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50520
    Hope this helps.
    Thanks,
    RK.

  • Application not working with JSF 1.2

    I am new to JSF. I am trying to create a sample application with JSF 1.2. I am using weblogic 10.0. I have followed the instructions give in the whitepaper to configure JSF 1.2.
    http://download.oracle.com/technology/products/weblogic/portal/weblogic-portal-jsf-whitepaper.pdf
    Deployment descriptor contains following content.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 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">
    <display-name>AlfaInsPortalWebApp</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    <!--<description>
                   State saving method: "client" or "server" (= default)
                   See JSF Specification 2.5.2
              </description>-->
    </context-param>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsf</welcome-file>
    <welcome-file>index.faces</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
         <session-config>
         <session-timeout>30</session-timeout>
         </session-config>
    </web-app>
    Weblogic.xml contains reference to following libraries
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd">
         <wls:container-descriptor>
              <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
         </wls:container-descriptor>
    <wls:context-root>AlfaInsPortalWebApp</wls:context-root>
    <wls:library-ref>
    <wls:library-name>jstl</wls:library-name>
    <wls:specification-version>1.2</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-tools-visitor-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-tools-framework-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-commonui-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-full-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-clipper-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-lookandfeel-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-rest-full-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-rest-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-rest-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-light-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-wsrp-producer-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-common-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-framework-struts-1.2-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>struts-1.2</wls:library-name>
    <wls:specification-version>1.2</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>wlp-services-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>content-management-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>beehive-netui-1.0.1-10.0</wls:library-name>
    <wls:specification-version>1.0</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>beehive-netui-resources-1.0.1-10.0</wls:library-name>
    <wls:specification-version>1.0</wls:specification-version>
    <wls:exact-match>true</wls:exact-match>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>p13n-web-lib</wls:library-name>
    <wls:specification-version>10.2.0</wls:specification-version>
    <wls:implementation-version>10.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
    <wls:library-name>jsf</wls:library-name>
    <wls:specification-version>1.2</wls:specification-version>
    <wls:implementation-version>1.2.3.1</wls:implementation-version>
    </wls:library-ref>
    </wls:weblogic-web-app>
    When i start the application server following logs were obtained
    Apr 9, 2010 7:09:32 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    Apr 9, 2010 7:09:33 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    Apr 9, 2010 7:09:33 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    Apr 9, 2010 7:09:33 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/SampleJSF'
    When i invoke the application I get the following error.
    java.lang.NoSuchMethodError: initView
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:92)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Please help me in configuring JSF 1.2.

    If you are new to JSF, then I'd try and simplify the environment in which you are working as the first step to achieving a successful outcome.
    JSF 1.2 is a certified and well tested component of WLS, so we know it works. I'm not sure of the effect of all those additional modules you are adding in there -- it appears as if you have gotten a Faces implementation instantiated, but there could be some form of version difference/conflict since it can't find a method its looking for.
    Using Oracle Enterprise Pack for Eclipse (http://www.oracle.com/technology/software/products/oepe/oepe_11115.html) you can build yourself out a pretty simple JSF application to get started from and deploy it to a WLS server. This would remove all the additional libraries you currently have, provide you with a bundled applicaton to deploy and give you a pretty good environment from which you can learn and experiment with JSF.
    -steve-

  • Problems with JSF and included subviews

    Hi everybody,
    I' ve got a problem with JSF and included subviews which makes me going
    crazy. I've got no clue why my web-pages are represent wrongly. The only
    tip I've got is that it must be connected with the kind I do include my JSF-pages.
    When I use <%@file="sub.jsp"%> my pages are are represent right. When I use <jsp:include page="Sub.jsp" /> or <c:import url="Sub.jsp" /> ( mark: the usage of flush="true" or flush="false" doesn't matter )
    my pages are represent wrongly.
    The usage of tags like f:facet or f:verbatim were also included but didn't point to an solution.
    I searched the whole Sun Developer Forum and some other web-sites for any solution for my problem but the given hints and clues didn't help. Now I'm trying to post my problem directly in Sun's Forum in hope to get help.
    My environment is the following:
    JAVA JDK 1.5 Update 4
    Tomcat 5.5.9
    JSLT 1.1
    Sun JSF 1.1
    Win 2K
    Here's my code:
    Main.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%
              String path = request.getContextPath();
              String basePath = request.getScheme() + "://" + request.getServerName()
                        + ":" + request.getServerPort() + path + "/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="<%=basePath%>">
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <link rel="stylesheet" href="stil.jsp" type="text/css" />
    </head>
    <body>
         <f:view>
              <h:form>
                   <div class="table">
                        <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 1"/>
                             <h:outputText styleClass="tdinfo" value="value 2"/>
                        </div>
                        <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 3"/>
                             <h:outputText styleClass="tdinfo" value="value 4"/>
                        </div>
                   </div>
              </h:form>     
              <jsp:include page="Sub.jsp" />
         </f:view>
    </body>
    </html>Sub.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <f:subview id="subview">
         <h:form>
              <div class="table">
                   <div class="tr">
                             <h:outputText styleClass="tdleft" value="value 11"/>
                             <h:outputText styleClass="tdinfo" value="value 22"/>
                   </div>
                   <div class="tr">
                        <h:outputText styleClass="tdleft" value="value 33"/>
                        <h:outputText styleClass="tdinfo" value="value 44"/>
                   </div>
              </div>
         </h:form>
    </f:subview>stil.jsp
    <%@page contentType="text/css"%>
    <%
        String  schwarz     = "#000000",
                grau1       = "#707070",
                grau2       = "#c0c0c0",
                grau3       = "#e0e0e0",
                grau4       = "#e8e8e8",
                grau5       = "#fdfdfd",
                blau        = "#0000dd",
                tuerkis     = "#00cfff";
        String  liniendicke = "1px",
                linienart   = "solid";
        String allgemeineTextFarbe           = schwarz;
        String allgemeineHintergrundFarbe    = grau3;
        String infoTextFarbe                 = blau;
        String fieldsetRandFarbe             = blau;
        String fieldsetRandDicke             = liniendicke;
        String fieldsetRandArt               = linienart;
        String hrLinienFarbe                 = blau;
        String hrLinienDicke                 = liniendicke;
        String hrLinienArt                   = linienart;
        String inputAktivHintergrundFarbe    = grau5;
        String inputReadonlyHintergrundFarbe = grau4;
        String inputPassivHintergrundFarbe   = grau4;
        String inputPassivFarbe              = schwarz;
        String inputRandFarbe1               = grau1;
        String inputRandFarbe2               = grau5;
        String inputRandDicke                = liniendicke;
        String inputRandArt                  = linienart;
        String inputButtonHintergrundFarbe   = grau3;
        String legendenFarbe                 = blau;
        String linkFarbe                     = blau;
        String linkAktivFarbe                = tuerkis;
        String linkBesuchtFarbe              = blau;
        String linkFocusFarbe                = tuerkis;
        String objectGitterFarbe             = grau5;
        String objectGitterDicke             = liniendicke;
        String objectGitterArt               = linienart;
        String tabellenGitterFarbe           = grau5;
        String tabellenGitterDicke           = liniendicke;
        String tabellenGitterArt             = linienart;
    %>
    <%-- ----------------------------------------------- --%>
    <%-- Textdarstellung mittels der Display-Eigenschaft --%>
    <%-- in den Tags div und span                        --%>
    <%-- ----------------------------------------------- --%>
    *.table {
        display:table;
        border-collapse:collapse;
    *.tbody {
        display:table-row-group;
    *.tr {
        display:table-row;
    *.td,*.tdright,*.tdleft,*.tdinfo,*.th {
        display:table-cell;
        padding:3px;
        vertical-align:middle;
    *.td,*.th {
        text-align:center;
    *.tdright {
        text-align:right;
    *.tdleft {
        text-align:left;
    *.tdinfo {
        color:<%=infoTextFarbe%>;
        text-align:right;
    *.th {
        color:<%=infoTextFarbe%>;
        font-weight:bold;
    }thanks in advance
    benjamin

    Hello Zhong Li,
    many thanks for your post, but it didn't work.
    My problem is that the JSF-Components im my included or imported
    JSP-Pages does not accept any kind of style or styleClass for
    designing. The components take over the informations for colors
    but not for alignment.
    When I take a look at the generated JAVA-Source in $TOMCAT/WORK/WEBAPP for my sub.jsp ( sub.java )
    it seems that the resulting HTML-page would be presented correctly.
    But later when I start the application via Firefox or Mozilla the html-sourcecode is totally wrong.
    In my example I create a simple grid with 2 rows and 2 columns.
    Both columns contains JSF-Outtext-Components and are included with div-tags.
    The generated Sub.java shows that the text would be setted in the div-tags. Unfortunately the html-sourcecode represented by my browser shows that jsf-text is not setted in the tags but in the <h:form> tags. The div-tags are neither rounded by <h:form> nor containing the JSF-OutText-Components.
    Any clue?
    Many thanks Benjamin
    Here is the html-code from Firefox:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
         <base href="http://polaris21:8080/webtest/">
         <meta http-equiv="pragma" content="no-cache">
         <meta http-equiv="cache-control" content="no-cache">
         <meta http-equiv="expires" content="0">   
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="This is my page">
         <link rel="stylesheet" href="stil.jsp" type="text/css" />
    </head>
    <body>
         <form id="_id0" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
              <div class="table">
                   <div class="tr">
                        <span class="tdleft">value 1</span>
                        <span class="tdinfo">value 2</span>
                   </div>
                   <div class="tr">
                        <span class="tdleft">value 3</span>
                        <span class="tdinfo">value 4</span>
                   </div>
              </div>
              <input type="hidden" name="_id0" value="_id0" />
         </form>     
          <form id="SUB:_id5" method="post" action="/webtest/Main.faces" enctype="application/x-www-form-urlencoded">
               <span class="tdleft">value 11</span>
              <span class="tdinfo">value 22</span>
              <span class="tdleft">value 33</span>
              <span class="tdinfo">value 44</span>
              <input type="hidden" name="SUB:_id5" value="SUB:_id5" />
         </form>
         <div class="table">
              <div class="tr">
              </div>
              <div class="tr">
              </div>
         </div>
    </body>
    </html>

  • My doubts with JSF

    From what I've learned about JSF so far, it is based on really good ideas but it is extremely frustrating to use if you wanna do more than just a "hello world" application.
    Unfortunately, the reasons for my doubt seem to have made their way into JSF 2.
    It all boils down to this: Component creation is a mess.
    [1] casts and use of reflection everywhere
    JSF combines disadvantages of Servlet based applications (need to recompile and restart context after changes) with some of scripted applications (no build time checks).
    A lot of internal wiring is String based and cannot be validated at build time. Casts are needed everywhere, which has the same effect.
    Besides, this makes custom component code really ugly.
    [2] no good solution for component rendering
    - Servlet-style inline HTML rendering sends us way back to the 90s. Hard to write, hard to read, hard to maintain.
    - no support for HTML/CSS developers: they would have to work inside the renderer (Java code) but it's THEIR domain
    - no simple strategy for creating first-class composite components
    (by "first-class" i mean components with a Java-side behaviour (methods); Facelets compositions are cool but you cannot add logic)
    Please don't get me wrong - I'd love to use JSF but I'm not eager to recommend it if every developer in my department will hate me for it.
    So if anyone can show me that I'm wrong, it would make me happy!

    I don't know what your requirements are, but I have written a couple dozen JSF applications over the last several years.
    At least half of these have been commercial applications for the company I work for.
    Some have been very simple - maybe half a dozen pages or so, and some have been VERY complex - upwards of 30 or more pages with very complex logic behind the scenes.
    My background is from the application world, and I have been frustrated to some extent with JSF.
    However, being able to create a page with a minimum amount of pain and being able to tie them into the backing beans for complex logic has been quite useful.
    In several applications, I generate components dynamically in the backing bean code - that works fine.
    I do not create custom components, since I have not found the need to do so.
    All the basic functionality is in the standard JSF component libraries - although there are some things I would like to see.
    I have found some things lacking, when compared to a strict Java (Swing) application environment, but have usually found adequate workarounds.
    I have found that third party libraries - particularly ICEfaces makes the pages quite useful without having to do a bunch of JavaScript code.
    There are third party libraries with some pretty robust components.
    You may find that some of these have the functionality you need rather than developing your own custom components.
    I don't know your requirements for custom components, but if you can get by with the standard libraries, or third party components, I do not think you will find an easier environment.
    I am not sure why you are concerned so much about Casts.
    This is basic to Java and most other programming languages, including C, C++, C## and to some extent Fortran and VB.
    I guess some scripting languages are exceptions.
    At any rate, for Java based web applications, I don't think there is an easier environment.
    If you are going to be doing web applications, I think the only serious options are JSF or .NET.
    I've used .NET a bit (not as much as JSF) and, IMHO, .NET probably has more flexibility and more robust components, but it was harder for me to use.
    That may have just been the learning curve.

  • Need Suggestion on including JSTL Tags with JSF

    Hi..All....
    I need some suggestions.. i Started doing a project in JSF.. i am new to JSF...
    I Developed some part of the project in Struts.. but now.. our clinet says... The Application Has to go
    with JSF.so.. started redesigning again....
    Can i use JSTL...where ever i want....when i am developing a JSF Application...
    Please suggest..me...
    Thanks.. for the Help..
    Arthi

    I am freely mixing jstl and jsf in my project using:
    JSTL RI 1.2
    JSF RI 1.2
    Tomcat 6
    i am mixing c:forEach and h: tags successfully, which i needed for some javascript functionality that i could not do with data table. but stick to JSF wherever possible!

  • Flex with jsf Application

    Hi
      I am new to flex and i have a knowledge on jsf .We got a requriment to integrate the flex with jsf .
      I googled and i developed the sample application using the fiji (Exadel ) .
      When i an running the application in the jboss I GOT EMPTY page then after deselecting the check box of 'blockjavascript' in the browser
      am able to see the swf file in the page
    can any one help me..
    My Project
    The   mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1024" height="715" xmlns:ns1="*">
    <mx:Form x="22" y="47" width="1200" height="680">
    </mx:Form>
       <mx:Button x="22" y="5" label="This is Prapansolution" width="280"/>
    </mx:Application>
    The .jsp
           <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:fiji="http://exadel.com/fiji"
              xmlns:a4j="http://richfaces.org/a4j"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:ui="http://java.sun.com/jsf/facelets"
               version="2.0">
             <f:view><h:form id="myForm">
              <fiji:swf src="/faces/FirstFlexApp.swf" id="demonew"  bgcolor="#FFFFFF" width="820" height="480">
              <f:param name="text1" value="Hello" />
             </fiji:swf> </h:form></f:view>

    "vikbar" <[email protected]> wrote in
    message
    news:gb0tug$7je$[email protected]..
    > Hi Amy,
    >
    > Isnt the HistoryManager approach more specific to Flex
    application i.e if
    > user
    > is just navigating with in the flex application? In my
    case the user will
    > navigate between a JSF page which does not have any SWF
    file and the
    > another
    > one which has swf file embedded. Now everytime when the
    suer moves to the
    > flex
    > embedded JSF page from the Non Flex JSF page these are
    the steps which are
    > always going to happen :
    >
    > 1.) System Manager will get initialized and will create
    PreLoader
    > instance.
    > 2.) The preLoader will then try to download the swf
    file. Now since this
    > is
    > the second time the user is coming back to the flex page
    so the broswer
    > would
    > have already cached this swf, so Preloader will skip the
    downloading
    > swf/RSl
    > step and hence you wont see any initialization progress
    bar.
    >
    > 3.) New Application object will get instantiated and
    will go through its
    > whole
    > lifecycle.
    >
    > So, I guess historyManager approach will work only if
    the user stays on
    > the
    > flex application only and navigates with in flex
    application itself(so in
    > that
    > case if the user clicks back then it knows which flex
    component or view to
    > display), but in my case user will completely move away
    from flex page to
    > a
    > JSF page and then will try to come back.
    >
    You'd need to put the right stuff in the url to make it work,
    just like if
    you were calling a page that's expecting GET params. I don't
    really use the
    HistoryManager, so you'll need to either look into this
    yourself or ask
    someone who knows more about it.
    HTH;
    Amy

Maybe you are looking for

  • Cannot create a new monitor profile

    Just got new 27" imac. Everytime I try to calibrate monitor I get, error, could not create new profile. Is this some issue? thanks.

  • I can't "burn" photos or iTunes music.

    I get a message that "the disk burner can't be found".  I could burn before so why is the disk burner missing now???

  • Postclone error

    Hi All, I have restored and opened my database from hot backup and now i want to config my target database and am running    cd <RDBMS ORACLE_HOME>/appsutil/clone/bin                                   perl adcfgclone.pl dbconfig <target context file>

  • Migrating to new windows domain

    hi, pro! Could you help me. we have working fine oim on oim.olddomain server. now we have to migrate our servers to new windows domain(server will be oim.newdomain), and I afraid I'll get some problems with it.

  • Prints too dark after moving to vista 64 bit home premium

    Hi, I have a photosmart d7360 printer that used to produce brilliant prints when i had windows XP. I have since purchased a new PC with vista 64 bit home premium and my prints are now very dark. Can anyone please suggest a solution?? thanks.