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.

Similar Messages

  • 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

  • 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>

  • How to mix HTML and XML??

    Hi guys,
    I want to stream some xml content to the browser from a servlet by setting the content-type as 'text/xml' and let IE browser take care of the parsing & formatting. It is important for me to show the formatted (tree structure) xml content in the browser. But I also need to show a text heading in the browser...Something like this ::
    Application XML Message ---> header text
    <xml>
    <id>.....
    <InvoiceDate>.....
    </xml>
    I know that the content has to be 'text/html' for the header text , and text/xml to let IE do automatic formatting of the xml data...How can I mix the contents? I don't want to format the xml file programattically or by using XSLT..Is it possible?
    Thanks guys

    I think it's possible; just create a page containing the header you want to display and an iFrame with the URL set to the address of the service that builds the XML. In fact you'll make two requests to server: one for the page containing the fancy header + the iFrame and one for the XML itself. Main page has text/html content and the contained iFrame will have text/xml content:
    More artistically:
    The header of the message
    The iFrame pointing to the URL that
    generates the XML.
    Be sure to use appropriate HTML styles so the iFrame border will not get displayed.

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • Catch the Excep while clicking on a button and display the msg in JSF UI

    Hi,
    I am facing a issue like i have a add button in my JSF page which will add Partner code, Partner name,etc..,
    If i give the same partner code and partner name second time it is throwing the duplicate key exception
    org.apache.myfaces.component.html.ext.HtmlSelectOneMenu@319e5b
    Calling Save Method.............
    Record Saved..............
    (util.JDBCExceptionReporter 71 ) SQL Error: 1062, SQLState: 23000
    (util.JDBCExceptionReporter 72 ) Duplicate entry 'T1-test1' for key 1
    (def.AbstractFlushingEventListener 299 ) Could not synchronize database state with session
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69)
         at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
         at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
         at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1007)
         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:354)
         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
         at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584)
         at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:496)
         at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
         at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
         at $Proxy31.save(Unknown Source)
         at com.finnair.pba.handler.PartnerMastCtrl.addAction(PartnerMastCtrl.java:110)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
         at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
         at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
         at javax.faces.component.UICommand.broadcast(UICommand.java:106)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
         at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.sql.BatchUpdateException: Duplicate entry 'T1-test1' for key 1
         at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:647)
         at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
         at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
         ... 51 more
    I am using JSF,Spring and Hibernate.
    I would like to catch this exception and throw it in the JSF UI near partner code field as a message.
    Is this possible to do.
    My JSF:
    <tr>
    <td width="30%" align="right" ><b><h:outputText id="pPartnerCode" value="Partner Code" /></b><span style="color:red">*</span></td>
    <td width="60%">:
    <h:inputText id="partnerCode" value="#{partnerMast.partnerCode}" required="true">     
    <t:validateRegExpr pattern="^[a-z||A-Z||0-9||_||\s||/]+$" />
    <f:validateLength minimum="1" maximum="3" />     
    </h:inputText>          
    <h:message for="partnerCode" showDetail="true" style="color:red" /></td>
    </tr>
    <tr>
    <td width="40%" align="right"><b><h:outputText id="pPartnerName" value="Partner Name" /><span style="color:red">*</span></b></td>
    <td width="60%" align="left">:               
    <h:inputText id="partnerName" value="#{partnerMast.partnerName}" required="true" >     
    <t:validateRegExpr pattern="^[a-z||A-Z||0-9||_||\s||/]+$" />
    <f:validateLength minimum="1" maximum="50"/>     
    </h:inputText>
    <h:message for="partnerName" showDetail="true" style="color:red" />
    </td>
    </tr>
    <h:commandButton id="addUser" value="Save" action="#{partnerMastCtrl.addAction}" styleClass="style10"/>
    My controller:
    public String addAction()
    try
    partnerMast = (PartnerMast)context.getExternalContext().getSessionMap().get("partnerMast");
    partnerHostingMast = (PartnerHostingMast) context.getExternalContext().getSessionMap().get("partnerHostingMast");
    this.getService();
    if(partnerHostingMast != null && partnerHostingMast.getHostingPartner() != null && partnerMast.getPartnerType().equalsIgnoreCase("Airline"))
    partnerHostingMast.setPartnerCode(partnerMast.getPartnerCode());
    partnerMastService.save(partnerMast);     /* To be noted */
    partnerHostingMastService.saveOrUpdate(partnerHostingMast);
    ret_stat = "Success";
    context.getExternalContext().getSessionMap().put("partnerMast", null);
    } else {
    partnerMastService.save(partnerMast);
    ret_stat = "Success";
    }catch(Exception e){
    ret_stat = "Error";
    FacesMessage message = new FacesMessage("Application facing some problem - Please contact administrator");
    context.addMessage("error", message);
    return ret_stat;
    My Dao :
    public PartnerMast save(PartnerMast entity){
    try{
         System.out.println("Calling Save Method.............");
         entity.setIsActive("Y");
         getHibernateTemplate().save(entity);
         System.out.println("Record Saved..............");
    catch(ConstraintViolationException e){
         System.out.println("Exception ..................."+e);
    return entity;
    I hope u got my question. Is there is any solution for this.
    Pls Anyone help me out.
    Thanks,
    Ambika&#9786;

    Hi,
    I am able to catch the exception, how would i able to display the message in the JSF UI.
    My Controller:
    public String addAction() throws Exception
    try{               
    partnerMast = (PartnerMast)context.getExternalContext().getSessionMap().get("partnerMast");
    partnerHostingMast = (PartnerHostingMast) context.getExternalContext().getSessionMap().get("partnerHostingMast");
    this.getService();
    if(partnerHostingMast != null && partnerHostingMast.getHostingPartner() != null && partnerMast.getPartnerType().equalsIgnoreCase("Airline"))
    partnerHostingMast.setPartnerCode(partnerMast.getPartnerCode());
    partnerMastService.save(partnerMast);     
    partnerHostingMastService.saveOrUpdate(partnerHostingMast);
    ret_stat = "Success";
    context.getExternalContext().getSessionMap().put("partnerMast", null);
    else {
    partnerMastService.save(partnerMast);
    ret_stat = "Success";
    catch(Exception e) {
         ret_stat = "Error";
         FacesMessage message = new FacesMessage("Application facing some problem - Please contact administrator");
         context.addMessage("error", message);
           if(causedByBatchUpdateException(e)) {
                  System.out.println("Yes Exception.........");
                  FacesMessage message1 = new FacesMessage("Duplicate Entry...........");
              context.addMessage("error", message1);
                            //ret_sta="NO";
                     } else {
                             throw e;
              System.out.println("Before returning.............");
              return ret_stat;
              //return ret_sta;
    }It is displaying the message saying "Yes Exception" in the console but not displaying the "Duplicate Entry" in the JSF UI.
    Pls Anyone help me out.
    Thanks,
    Ambika&#9786;

  • How to  include external javascript and css resources to a jsf?

    I need to include external css and javascript files to my jsf page. Using the code below does not work because all the styles on the css page are ignored and the functions within the js files are not executed.
    <link rel="stylesheet" type="text/css" href="/resources/styles/style.css" />
    <script language="JavaScript" src="/resources/javascript/util.js"></script>When I try to execute any js function within a script tag on a jsf page I get an object expected error.
    I googled about my problem and found this piece of code for importing styles for an external css.
    <style type="text/css">
    @import url("/resources/styles/style.css");
    </style>How could I add an external javascript file to my jsf?

    Used the relative urls in my first post as well as these, and both were not working.
    <link rel="stylesheet" type="text/css" href="./resources/styles/style.css" />
    <script language="JavaScript" src="./resources/javascript/util.js"></script>The ./ tells that the external file can be found by starting at the current directory and working down the path to the specified file. This is my directory structure. Index.jsf is the file that references the external js and css files.
    -Webcontent
    |_index.jsf
    |_resources
    |__styles
    | |__style.css
    |__javascript
    |__util.js
    Either way I still can't reference the files that I need. Calling a javascript function results in an object expected error, and the styles are ignored.
    If I include the js file directly in the jsf then I can get it to work. I don't want to do this because I have created a handful of seperate js files, and do not want to include all of them in one page. I am using myfaces and tomahawk if that helps.

  • How do I mix text and Html format in a java mail?

    How do I mix text and Html format in a java mail? some part I want to keep the text format, the other part I want to use Html functions(like fond, color, etc)

    You don't mix them. Pick one or the other.
    However if you want to have a text version and an HTML version, so that mail readers that don't handle HTML can see regular text instead, then you could produce a "multipart/alternative" message. There's an explanation of how to do that in this article:
    http://www-128.ibm.com/developerworks/java/library/x-xmlist2/

  • Upgrade from JSF 1.1 to JSF 1.2 (Mojarra and MyFaces) failed.

    Dear all,
    I tried to upgrade from JSF 1.1 to JSF 1.2 but failed. The application starts OK in jsf 1.1 both myfaces and RI, but failed to start using JSF 1.2.
    My environment is as follows.
    - JDK 1.5
    - Tomcat 6.0
    - Facelet
    - JSF Mojarra 1.2
    The error is as follows, occurs when starting tomcat (my application is in context /web)
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
    Feb 12, 2009 10:39:40 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_01-b04-FCS) for context '/web'
    Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 12, 2009 10:39:40 AM org.apache.catalina.core.StandardContext start
    SEVERE: Context [web] startup failed due to previous errors
    What I have included in WEB-INF/lib are:
    - JSTL 1.2 (standard.jar and jstl.jar)
    - JSF mojarra 1.2 (jsf-api.jar and jsf-impl.jar)
    - Facelets( el-api.jar, el-impl.jar, and jsf-facelet.jar)
    - commons-digester.jar
    - commons-beanutils.jar
    - commons-logging.jar
    - commons-collection.jar
    Documentation that I read from mojarra FAQ states that i need EL, but EL has been included in Facelets.
    Am i missing something? The following is the part of web.xml that i used, maybe useful to locate what i am missing.
    <web-app 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]"
    version="2.4">
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    <!-- Special Debug Output for Development -->
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <!-- Optional JSF-RI Parameters to Help Debug -->
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>true</param-value>
    </context-param>
    <!--use this if start using JSF 1.2 -->
    <context-param>
    <param-name>com.sun.faces.injectionProvider</param-name>
    <param-value>com.sun.faces.vendor.GlassFishInjectionProvider</param-value>
    </context-param>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet

    Hi BalusC,
    Thank you for your time answering my question.
    For the first point, you were right. Now I have downloaded the latest Mojarra release.
    As for the case of web.xml, i should mentioned that I have tried declaring it as Servlet API 2.4 and Servlet API 2.5, and still got the error. My web.xml that declares as 2.5 looks as follows:
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaeeweb-app_2_5.xsd"
    version="2.5">
    On the third point, maybe i stated my problem in a wrong way. What I meant was, I tried each implementation separately, and both implementation did not work.
    About Glassfish injection, i followed the step in Mojarra FAQ regarding the following error.
    JSF1033: Resource injection is DISABLED
    This error showed when i started tomcat. However, since I use the latest Mojarra release, the message error disappear. I have deleted the "glasshfish injection provider" from web.xml, and the error has disappeared.
    Here's the latest of my tomcat startup messages (after i replaced the Mojarra libraries, declared as servlet 2.5 in web xml, and removed glassfish injection provider from web.xml).
    Feb 18, 2009 9:41:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
    Feb 18, 2009 9:41:58 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
    Feb 18, 2009 9:41:59 AM org.apache.coyote.http11.Http11AprProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    Feb 18, 2009 9:41:59 AM org.apache.coyote.ajp.AjpAprProtocol init
    INFO: Initializing Coyote AJP/1.3 on ajp-8009
    Feb 18, 2009 9:41:59 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 772 ms
    Feb 18, 2009 9:41:59 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Feb 18, 2009 9:41:59 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    Feb 18, 2009 9:42:01 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra (1.2_12-b01-FCS) for context '/web'
    Feb 18, 2009 9:42:01 AM com.sun.faces.config.ConfigureListener contextInitialized
    WARNING: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
    Feb 18, 2009 9:42:06 AM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 18, 2009 9:42:06 AM org.apache.catalina.core.StandardContext start
    *SEVERE: Context [web] startup failed due to previous errors*
    Feb 18, 2009 9:42:07 AM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-80
    Feb 18, 2009 9:42:07 AM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    Feb 18, 2009 9:42:07 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 8116 ms
    The application still failed to start.There wasnt enough information for me to digest what is actually went wrong, other than SEVERE: Listener start. And let me say this again, the application starts OK when I used JSF 1.1 (Reference Implementation or MyFaces).
    Anyone has the same experience.?
    Thanks in advance.
    Edited by: niner on Feb 17, 2009 7:11 PM

  • Mixing Flash and html

    I am somewhat new, or I perpetually feel new to both html and flash. At any rate I am building a site for a friend where I have made a lovely simple flash movie and have dropped it into a div in dreamweaver. The movie takes up the entire page size and I have added other divs on top if it with html text.
    My question: Am I asking for trouble?
    So far all looks fine. I have had people tell me that stacking(nesting?) divs is a bad idea. I would like feedback from you pros. Thanks much
    PITN

    Use this on-line validation tool to spot unclosed <div> tags & other code errors.
    HTML Validator - http://validator.w3.org
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Mixing static and dynamic content in a single outputText value causes NPEs

    Hi,
    I am having a problem and I'm wondering if it is a result of my error or if this is a bug.
    I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same view is reloaded (e.g., after a failed validation) I get an NPE from JSF:
    [#|2006-10-24T08:49:03.756-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
            at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
            at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
            at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:60)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:201)
            at com.sun.faces.renderkit.html_basic.LabelRenderer.encodeBegin(LabelRenderer.java:128)
            at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:609)
            at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
            at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
            at org.apache.jsp.registration_jsp._jspx_meth_h_panelGrid_0(registration_jsp.java:324)
            at org.apache.jsp.registration_jsp._jspx_meth_h_form_0(registration_jsp.java:223)
            at org.apache.jsp.registration_jsp._jspx_meth_f_view_0(registration_jsp.java:157)
            at org.apache.jsp.registration_jsp._jspService(registration_jsp.java:118)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
            at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)My code looks like this:
    <h:outputText escape="false"
              value='<link href="#{myBean.styleSheet}" rel="stylesheet" type="text/css"  />' />If I replace this with a much more convoluted set of tags, it works:
    <h:outputText escape="false"
              value='<link href="' /><h:outputText escape="false" value="#{myBean.styleSheet}"
              /><h:outputText escape="false" value='" rel="stylesheet" type="text/css" />' />So is the problem that I am mixing dynamic and static content with a single value? If so, why does it work on the first view, and not after?
    If it matters, I'm using the reference implementation version 1.1 (as included with NetBeans 5.5RC2) on SuSE 10.0 w/ JDK 1.5_09.
    Thanks,
    Bill

    Yes, that's how I originally had it, but then changed it to the outputText approach since a single tag could do what I wanted, as long as I was allowed to mix static and dynamic content within a single value.
    I think this is a bug in JSF 1.1, since if what I am doing is illegal, it should throw an exception on the first page view, not work on first view and throw an exception on subsequent views. I'm guessing that this has something to do with the fact that on first page view it only runs the restore view and render response JSF phases, while on subsequent requests all of the phases will be run, and it's in one of those other phases that the exception is thrown.
    For now, multiple tags is the work-around, I guess.
    Thanks,
    Bill

  • Adding a jar to the classpath of an executable jar (mixing -jar and -cp)

    Hello,
    frankly I hesitated over posting this to "New to Java"; my apologies (but also, eternal gratefulness) if there is an ultra-simple answer I have overlooked...
    I integrate a black-box app (I'm not supposed to have the source) that comes packaged as an executable jar (with a Manifest.MF that specifies the main class and a bunch of dependent jars), along with a few dependent jars and a startup script. Long story short, the application code supports adding jars in the classpath, but I can't find a painless way to add a jar in its "classpath".
    The app's "vendor" (another department of my customer company) has a slow turnaround on support requests, so while waiting for their suggestion as to how exactly to integrate custom jars, I'm trying to find a solution at the pure Java level.
    The startup script features a "just run the jar" launch line:
    java -jar startup.jarI tried tweaking this line to add a custom jar in the classpath
    java -cp mycustomclasses.jar -jar startup.jarBut that didn't seem to work ( NoClassDefFound at the point where the extension class is supposed to be loaded).
    I tried various combination of order, -cp/-classpath, using the CLASSPATH environment variable,... and eventually gave up and devised a manual launch line, which obviously worked:
    java -cp startup.jar;dependency1.jar;dependency2.jar;mycustomclasses.jar fully.qualified.name.of.StartupClassI resent this approach though, which not only makes me have to know the main class of the app, but also forces me to specify all the dependencies explicitly (the whole content of the Manifest's class-path entry).
    I'm surprised there isn't another approach: really, can't I mix -jar and -cp options?
    - [url http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html]This document (apparently a bible on the CLASSPATH), pointed out by a repited forum member recently, does not document the -jar option.
    - the [url http://download.oracle.com/javase/tutorial/deployment/jar/run.html]Java tutorial describes how to use the -jar option, but does not mention how it could play along with -cp
    Thanks in advance, and best regards,
    J.
    Edited by: jduprez on Dec 7, 2010 11:35 PM
    Ahem, the "Java application launcher" page bundled with the JDK doc (http://download.oracle.com/javase/6/docs/technotes/tools/windows/java.html) specifies that +When you use [the -jar] option, the JAR file is the source of all user classes, and other user class path settings are ignored+
    So this behavior is deliberate indeed... my chances diminish to find a way around other than specifying the full classpath and main class...

    I would have thought that the main-class attribute of the JAR you name in the -jar option is the one that is executed.Then I still have the burden of copying that from the initial startup.jar's manifest. Slightly less annoying than copying the whole Class-path entry, but it's an impediment to integrating it as a "black-box".
    The 'cascading' behavior is implicit in the specification
    I know at least one regular in addition to me that would issue some irony about putting those terms together :o)
    Anyway, thank you for confirming the original issue, and merci beaucoup for your handy "wrapper" trick.
    I'll revisit the post markers once I've actually tried it.
    Best regards,
    Jérôme

  • JSF 2.0: Facelets: No tag libraries (TLDs)?

    Hi, I'm currently concerned with JSF 2.0 and Facelets. I found:
    - Tags are no longer defined in taglibs (TLDs) (instead they appear to be hard-coded in Java code)
    - On the other hand, jsf-impl.jar does ship two taglibs (for HTML and JSF Core), however, these solely include tags that have been existing since JSF 1.2 (the new tags are not defined there)
    OK, that may be fine. Nonetheless, now there's a problem with code completion and validation in IDEs (Eclipse in my case).
    Any ideas on how to get over that?
    Thanks

    [1] https://mojarra.dev.java.net/source/browse/mojarra/trunk/jsf-api/doc/web-facelettaglibrary_2_0.xsd?rev=6738&view=log
    Excuse me, that's the XSD schema for facelet-taglib. I'd be requesting TLDs or XSDs that contain definitions for commandButton, button, etc.
    [2] https://javaserverfaces.dev.java.net/nonav/docs/2.0/pdldocs/facelets/index.html
    That's not a XSD or TLD definition file but just documentation. Moreover, it only covers JSF 1.2 tags, not JSF 2.0 tags. (I do know that it does ship with the JSF 2.0 specification.)
    - Please remember that my final goal would be to have code completion and validation for JSF 2.0 in common IDEs, including Eclipse.
    Thanks

  • Upgrading from JSF 1.1 to JSF 1.2 (Mojarra)

    I am planning to upgrade my project from JSF 1.1 to JSF 1.2.
    My current configuration is:
    Sun JSF RI 1.1 configured with Ajax4JSF 1.1.0, tomahawk 1.1.6, WebLogic 10.3 and of course lot of dependent jar files eg: apache common libs, standard, etc.
    I am looking at two approaches to do this:
    1. Create a new project with JSF 1.2 and WebLogic 10.3 and start replicating the content from my old to the new project.
    2. Just upgrade the jsf related jar files in my existing project lib folder and try to get that to work.
    Not sure which one would be better. If someone can throw some light on this, would highly appreciate.
    Thanks
    SirG

    After all, the by you proposed first approach is somewhat odd. I would just backup it in flavor of a WAR file (if you did it all right, you should already have one).
    Upgrading is just matter of replacing the classes (JARs) and changing the configuration files. Upgrade at least web.xml to Servlet 2.5/JSP 2.1 and faces-config.xml to JSF 1.2. You may get deprecation warnings during compile, but that shouldn´t harm the functionality.

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.0">
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

Maybe you are looking for

  • SQLPLUS commands in SQL Developer

    We are using 11g with Sql Developer. We have some script such as healthcheck etc provided by oracle support, which has SQLPLUS commands in it. We are not able to run those in SQL Developer. We are getting errors. Are there any way, we could invoke SQ

  • Moving iPhoto library to external hard disk

    I am attempting to move my iPhoto library to my new external hard disk. Moving the pictures is not the problem, it is telling iPhoto where the new library is located. I dont have leopard yet so I dont have iPhoto '08. I looked up how to move my libra

  • Document Upload in ADF protocol using Open script

    Hi , My transaction is to upload a document into a portal. I have recorded this transaction in OPEN SCRIPT using ADF protcol. When i playback the script, it uploads a document with no contents in it. if i open the uploaded file it has only "Null". Th

  • PDF form in Transaction SFP

    Hi, I have a requirement using ADOBE interactive forms: I have project to do where, I need to create an Adobe interactive form. User should be able to enter data to the form and with a click of a button on Adobe or on save data should available back

  • Monitoring using oracle10g enterprise manager

    hi i am working as dba. i want to moniotor the data entry operators that they are entering their data regularly. and also, i want to check regularly that how many records are entered by each user daily. i want to use oracle10g enterprise manager for