span in JSF

Hi All,
Plz any one let me know is there any alternate tag for
<span class=""></span>
in JSF
also how to set <td widhth=""> in JSF
Thanks,
Sella

I think a panel JSF control exists (at least in IBM provided libraries) that basically translates into an HTML SPAN. Also use columnclasses property to associate a column with a CSS control rather than hardcoding width.
Try using CSS metaphore (datatable class property, rowclasses, columnclasses,..), And those could also be bound using EL

Similar Messages

  • How to set bean property in jsf page

    Hi,
    Hopefully theres an easy solution, but I can't figure it out...
    I have a managed bean that spans several jsf pages.
    Within each page I want to set a flag that tells the bean which page it is serving (as well as some other params).
    How do I set a property of the bean in the page?
    I've tried
    <jsp:useBean id="filter3" scope="request" class="com.aol.rsistats.ui.FilterBean"/>
    <jsp:setProperty name="filter3" property="filterType" value="3"/>
    but that doesn't load the page through the normal JSF routine (and I initialise some values of the bean in the faces-config.xml file... so these are not initialiased when the setProperty is called) .
    (In general I get some strange behaviour when I mix jsf tags with jsp, or jstl, so I've avoided it as much as possilble)
    Is there another way?
    Cheers,
    Keith

    This example works for me (using jsf-1_1_01).
    Index.jsf:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <%-- jakarta-taglibs-standard-1.0 --%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%--
    Note, that with jakarta-taglibs-standard-1.1.1 taglib directive
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    the example NOT works!!!
    --%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>MyTitle</title>
    </head>
    <body>
    <f:view>
    <%--
    Do not delete the following lines! You need to address to WIManager before using c:set.
    --%>
    <!--
    <h:outputText value="#{WIManager != null}"/>
    -->
    <c:set target="${requestScope.WIManager}" property="bpId" value="bpIdValue"/>
    <h:form id="MyWebFormTask" >
    <h:commandButton id="ok" action="ok" value="Ok"/>
    <h:inputHidden id="bpId" value="#{WIManager.bpId}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    ok.jsf:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>MyTitle</title>
    </head>
    <body>
    <f:view>
    WIManager.bpId: {<h:outputText value="#{WIManager.bpId}"/>}<br>
    </f:view>
    </body>
    </html>
    In ok.jsf I can see WIManager.bpId property set in Index.jsf.
    faces-config.xml:
    <managed-bean>
    <managed-bean-name>WIManager</managed-bean-name>
    <managed-bean-class>my.package.WIManagerBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bpId</property-name>
    <property-class>java.lang.String</property-class>
    <value>#{param.wim_bpid}</value>
    </managed-property>
    </managed-bean>
    Resume:
    -- use <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    instead of <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    -- address to WIManager before using c:set.

  • How to skip span elements while tabbing thru a JSF view's form

    I have a form in a xhtml file that while I tab thru the fields, the focus goes to a <span> element which is rendered from a custom JSF tag. This is an expand/collapse section header. I don't want the focus to stop there at all.
    I have tried the following to no avail:
    1) disabled="true"
    2) tabindex="0"
    3) tabindex="-1"
    4) onfocus="this.blur();" <-- the onfocus event doesn't fire as this is rendered as a <span/> tag (not an input field)
    None of these attempted solutions worked apparently b/c the <span> element is not an inputtable field. What is the best solution for this problem?
    Must I dynamically set the tabindex attributes for all of the fields, thus bypassing the <span> elements? This is difficult to do with getter methods and counters in a backing bean as the getters are called X times throughout the JSF lifecycle.
    thx.

    asookazian wrote:
    None of these attempted solutions worked apparently b/c the <span> element is not an inputtable field.That's correct. Tabbing only works on selectable or editable HTML elements. Anything else will be ignored by all web browsers.
    >
    Must I dynamically set the tabindex attributes for all of the fields, thus bypassing the <span> elements? This is difficult to do with getter methods and counters in a backing bean as the getters are called X times throughout the JSF lifecycle.Setting tabindex will help. Or, you can use JavaScript to capture tabbing keystrokes- but JavaScript will be too much of an overkill in this case.

  • 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 call a bean method from html component in jsf

    hi all
    i need a solution for this problem of mine.. actually em working on a jsf application with contains a jsf-jsp having a span containg html button inside my javascript. i want to call a method on click of this button and fetch some data which i have already populated in my bean.how do i do this??? i hv attached a piece of code of d same...
    <script language="JavaScript" type="text/javascript">
    function test(form){
    var Title="DEBIT, gift, Request, TICK";
    var Span=document.createElement("Span");
    Span.style.position="absolute";
    Span.style.left=(parseInt(110)-5)+"px";
    Span.style.top=(+parseInt(274)-5)+"px";
    Span.style.backgroundColor='Red';
    var next=document.getElementById("forImage");
    next.innerHTML="<img src='http://127.0.0.1:9000/action=clusterserve2dmap&sourcejobname=myjob_clusters' />";
    Span.innerHTML="<[input type='button' >";
    document.getElementById("forImage").appendChild(Span);
    any help is highly appreciated

    Hi,
    this gonna be a hack, but here's how it could work
    - you create a Servlet that accesses the FacesContext to obtain a managed bean
    - you issue a XmlHttpRequest from the button to your servlet to obtain the payload
    - show the retrieved values in your HTML
    see http://www.thoughtsabout.net/blog/archives/000033.html for the middle part
    Frank

  • Read only af:inputText being rendered as "span" instead of read only input

    I am using JDeveloper 11.1.1.6.0
    I have noticed that when using components such as "af:inputText" and "af:inputDate" with the "readOnly" attribute set to true, the resulting render is a label as a "<span>" element as opposed to a read only <input> element which I would have expected. I see the expected behavior if I utilize the JSF "h:inputText" component with "readOnly" set to true, however I cannot utilize the JSF component as it does not appear as though I can get "autoSubmit" behavior to work with the JSF component so that will not work. To add on to the oddness of the behavior, if the af:inputText has its Rows attribute set to be greater than 1, it will render as a read only <input> element as opposed to a label.
    In addition, the af:inputText's default readOnly form looks glaring when using the simple skin or other skins based on simple. It adds a box that wraps around the exact length of the text in the inputText as opposed to the amount of area that the inputText would have consumed if it was not in "readOnly" mode.
    Is there any way to properly get the af:inputText to render as a read only input as opposed to the label that it is currently being displayed as?
    Thank you.

    Hi,
    its a decision made by the component renderer. If this is a problem for you and if you have a customer support contract then you could file a service request for a change.
    Frank

  • JSF-based Pages do not render in IE

    I have an application with a core sequence of pages that is deployed on two separate Tomcat 5.0.x (testing and production) and the Sun App server bundled with Creator. I am seeing the following behavior with all servers from my Windows XP Client machine:
    All pages show up fine with Firefox 1.0.
    In Internet Explorer 6.0 only two simple pages are displayed. When I navigate or type in the URL to the other pages, the browser window is blank. BUT when I view the html source, it seems to contain all the expected html. In fact if I save the page in IE, and open it Firefox, it displays correctly.
    I do not see any server error messages - it seems it is an IE problem. Does anyone know what in the html-rendered-jsf/jsp that IE does not like? Has anyone seen this before?
    Any help would be much appreciated.

    Basic pages does work - can you show what the HTML
    from "View Source" in IE is?
    Thank you for your reply. Here is the HTML:
    <html xml:lang="en-US" lang="en-US">
    <head>
    <meta http-equiv="Cache-Control" content="no-cache"/><meta http-equiv="Pragma" content="no-cache"/>
    <title>Step 1: Presenter Information</title>
    <link type="text/css" rel="stylesheet" href="resources/stylesheet.css"/>
    <link type="text/css" rel="stylesheet" href="resources/apc.css"/>
    <script type="text/javascript" src="resources/util.js"/>
    </head>
    <body style="-rave-layout: grid">
    <form id="form1" method="post" action="/symposium/faces/PresenterInfo.jsp" enctype="application/x-www-form-urlencoded">
    <label id="form1:componentLabel1" for="form1:firstNameTF" style="left: 120px; top: 240px; position: absolute">
    <span id="form1:componentLabel1Text" class="generic_lbl">First Name*</span></label>
    <label id="form1:componentLabel2" for="form1:middleTF" style="left: 432px; top: 240px; position: absolute">
    <span id="form1:componentLabel2Text" class="generic_lbl">Middle</span></label>
    <label id="form1:componentLabel3" for="form1:lastNameTF" style="left: 120px; top: 288px; position: absolute">
    <span id="form1:componentLabel3Text" class="generic_lbl">Last Name*</span></label>
    <label id="form1:componentLabel4" for="form1:degreesTF" style="left: 432px; top: 288px; position: absolute">
    <span id="form1:componentLabel4Text" class="generic_lbl">Degrees</span></label>
    <label id="form1:componentLabel5" for="form1:emailTF" style="left: 120px; top: 528px; position: absolute">
    <span id="form1:componentLabel5Text" class="generic_lbl">Email*</span></label>
    <label id="form1:componentLabel6" for="form1:departmentTF" style="left: 120px; top: 336px; position: absolute">
    <span id="form1:componentLabel6Text" class="generic_lbl">Department*</span></label>
    <label id="form1:componentLabel7" for="form1:affilliationTF" style="left: 120px; top: 384px; position: absolute">
    <span id="form1:componentLabel7Text" class="generic_lbl">Affilliation*</span></label>
    <span id="form1:outputText1" style="font-family: 'Helvetica'; font-size: 18pt; height: 24px; left: 72px; top: 144px; position: absolute; width: 382px">Step 1: Presenter Information Form</span>
    <input id="form1:firstNameTF" type="text" name="form1:firstNameTF" maxlength="25" style="left: 216px; top: 240px; position: absolute" tabindex="1" />
    <input id="form1:phoneTF" type="text" name="form1:phoneTF" maxlength="25" style="left: 216px; top: 432px; position: absolute" tabindex="8" /><input id="form1:departmentTF" type="text" name="form1:departmentTF" maxlength="20" style="left: 216px; top: 336px; position: absolute" tabindex="5" />
    <input id="form1:emailTF" type="text" name="form1:emailTF" maxlength="30" style="left: 216px; top: 528px; position: absolute" tabindex="10" />
    <input id="form1:lastNameTF" type="text" name="form1:lastNameTF" maxlength="25" style="left: 216px; top: 288px; position: absolute" tabindex="3" title="" />
    <label id="form1:componentLabel8" for="form1:phoneTF" style="left: 120px; top: 432px; position: absolute">
    <span id="form1:componentLabel8Text" class="generic_lbl">Phone</span></label>
    <label id="form1:componentLabel9" for="form1:extensionTF" style="left: 120px; top: 480px; position: absolute">
    <span id="form1:componentLabel9Text" class="generic_lbl">Extension</span></label>
    <input id="form1:extensionTF" type="text" name="form1:extensionTF" maxlength="10" style="left: 216px; top: 480px; position: absolute" tabindex="9" />
    <input id="form1:affilliationTF" type="text" name="form1:affilliationTF" maxlength="35" style="left: 216px; top: 384px; position: absolute" tabindex="7" />
    <table id="form1:statusBtnLst" style="height: 178px; position: absolute; font-family: Arial,Helvetica,sans-serif; width: 168px; left: 497px; top: 336px">
         <tr>
    <td>
    <label><input type="radio" name="form1:statusBtnLst" value="Faculty" tabindex="6"> Faculty</input></label></td>
         </tr>
         <tr>
    <td>
    <label><input type="radio" name="form1:statusBtnLst" value="Fellow" tabindex="6"> Fellow</input></label></td>
         </tr>
         <tr>
    <td>
    <label><input type="radio" name="form1:statusBtnLst" value="Grad Student" tabindex="6"> Grad Student</input></label></td>
         </tr>
         <tr>
    <td>
    <label><input type="radio" name="form1:statusBtnLst" value="Med Student" tabindex="6"> Med Student</input></label></td>
         </tr>
         <tr>
    <td>
    <label><input type="radio" name="form1:statusBtnLst" value="Resident" tabindex="6"> Resident</input></label></td>
         </tr>
         <tr>
    <td>
    <label><input type="radio" name="form1:statusBtnLst" value="Other" tabindex="6"> Other</input></label></td>
         </tr>
    </table>
    <label id="form1:componentLabel10" for="form1:componentLabel10" style="left: 432px; top: 336px; position: absolute">
    <span id="form1:componentLabel10Text" class="generic_lbl">Status*</span></label>
    <input id="form1:middleTF" type="text" name="form1:middleTF" maxlength="25" style="left: 504px; top: 240px; position: absolute" tabindex="2" />
    <input id="form1:degreesTF" type="text" name="form1:degreesTF" maxlength="15" style="left: 504px; top: 288px; position: absolute" tabindex="4" />
    <span id="form1:outputText2" style="font-style: italic; left: 96px; top: 192px; position: absolute">*Indicates Required Field</span>
    <div id="banner"><img width="205" src="resources/pavilions.jpg" height="90"/></div>
    <input id="form1:confirmHF" type="hidden" name="form1:confirmHF" value="no" />
    <table id="form1:gridPanel1" style="height: 53px; position: absolute; padding-bottom: 15px; left: 216px; top: 576px" width="288">
    <tbody>
    <tr>
    <td><input id="form1:cancelBtn" type="submit" name="form1:cancelBtn" value="Start Over" onclick="" tabindex="11" title="Clear All Data and Start Over" /></td>
    <td><input id="form1:nextBtn" type="submit" name="form1:nextBtn" value="Next Step" tabindex="12" title="Go to Next Step" /></td>
    <td><input id="form1:reviewBtn" type="submit" name="form1:reviewBtn" value="Review Data" tabindex="13" title="Return to Review Page" disabled="disabled" /></td>
    </tr>
    </tbody>
    </table>
    <input type="hidden" name="form1" value="form1" />
    </form>
    </body>
    </html>

  • "Bad" markup for non-English language in JSF

    Hi,
    the question emerged in "Problem ADF af:document i18n" thread, but, as I saw, it is more common, so I made this new thread. The question seems very simple, but by the moment I can't find an answer and it makes me doubt about the ability to use JSF...
    The sequence of my actions.
    1. My OS locale is russian (ru) (codepage windows-1251).
    2. Create a new application in JDev.
    3. Create an empty project in JDev.
    4. Create a new jsf page. JDev suggests windows-1251 encoding, creates faces-config.xml and so on.
    5. Place outputText JSF HTML component on the page. JDev creates the following markup: <h:outputText value="outputText1"/>.
    6. Change value="outputText1" to "text_in_russian".
    7. Run the page!
    The result looks OK, text is displayed correctly, but, if you look at the source code, though codepage is windows-1251, all russian symbols are encoded like & # 1058;& # 1077;& # 1082;& # 1089;& # 1090; (i put spaces, as otherwise you'd see russian letters: &#1058;&#1077;&#1082;&#1089;&#1090;). As far as I understand, this means overrun of traffic and besides I don't like the idea that my pages are so "untidy" behind.
    I specified default locale in faces-config.xml file, changed encoding and so on, but result was the same: everything looks fine, but entities instead of letters in html code.
    By the way, if I specify russian text, where it is not rendered, it is seen normally. But, if it is a rendered text, no matter, how - by outputText, inputText component or, for example, af:document or af:panelPage - entities instead of letters in the source code.
    Do you have any ideas?
    Thanks in advance, Valeriy

    Hello, <br>
    resulting page is windows-1251 encoded - that's OK.
    If I write page using, say, just HTML (in Notepad) or JSP, every symbol would take exactly 1 byte - in windows-1251 encoding, all Russian letters, are, of course, encoded with 1 byte. I would use entities or escape-sequences only for special characters, like copyright. And this is the behaviour I expect from JSF - since I use windows-1251 encoding for my pages, it must use 1 byte for russian letters. Why use entities or escape-sequences if letters are normally preseted with 1 byte?<br>
    For example, similarly, english letters are too can be written using & # xxxx, but, I think, everybody would be very surprised to look at the source code, resulting from JSF, and see that all english letters are written using & # xxxx. - again, why use entities and escape-sequences, if it is posible to make resulting HTML markup more understandable and consuming less space?<br>
    JSTL tags, for example, c:out, use "right" markup - exactly 1 byte for russian letters. Can I get such behaviour with JSF?<br>
    Imagine situation I described with english letters: you place, say, <h:outputText value="outputText1"/> in your code and expect to receive something like <span>outputText1</span>, but receive <span>& # xxxx; & # xxxx; & # xxxx;1</span>, while it is possible to use 1 byte for letter! Besides a "bad" look, this page will weight, say, 200K instead of 50K!<br>
    And the question is russian language must not be special for windows-1251 encoding!<br>
    I found such question at several forums, no decision found yet... And besides there can be JavaScript problems...<br>
    Waiting for your response
    Valeriy

  • How can i make a css tab highligted incicating that i am in current jsf pag

    Hi
    i am creating jsf pages nad linking the pages thru css tabs. i am able to creat and link the tab.
    i want to higlight the tab of the current page in which i am.
    below is my code
    css code
    .navigation a
    color: #000;
    background: #fb0 url("../images/left-tab.gif") left top no-repeat;
    text-decoration: none;
    padding-left: 10px ;
    font-weight:bold;
    .navigation a span
    background: url("../images/right-tab.gif") right top no-repeat;
    padding-right: 10px
    .navigation a:link, .navigation a:visited, .navigation a:active
    {color: #fff; background: #bbb uurl("../images/left-tab.gif") left top no-repeat; font-weight:bold; padding-left: 10px}
    .navigation a:link span, .navigation a:visited span, .navigation a:active span
    {background: #bbb ("../images/right-tab.gif") right top no-repeat; padding-right: 10px}
    .navigation a, .navigation a span
    display: block;
    float: left
    .navigation a, .navigation a span
    float: none
    .navigation a:hover
    color:#F5FFFA;
    background: #26a url("../images/left-tab-hover.gif") left top no-repeat;
    text-decoration: none;
    padding-left: 10px
    .navigation a:hover span
    background: url("../images/right-tab-hover.gif") right top no-repeat;
    padding-right: 10px
    .navigation, .navigation ul
    list-style: none;
    padding: 0;
    margin: 0
    .navigation li
    float: left;
    display: block;
    margin: 0;
    padding: 0
    and in jsp file i am using as
    <h:panelGrid columns="2" styleClass="navigation">
    <ul>
    <h:column>
    <li><h:commandLink action="edit1003">
    <span><h:outputText value="#{msgs.edit1003}" styleClass="maintabtext"/></span>
    </h:commandLink>
    </li>
    </h:column>
    <h:column>
    <li> <h:commandLink action="aboutus">
    <span> <h:outputText value="#{msgs.aboutus}" styleClass="maintabtext"/></span>
    </h:commandLink>
    </li>
    </h:column>
    </ul>
    </h:panelGrid>
    some one please let me know how to highlight the current page do i need to use any javascript if so can some send me code snippet it would be greatful
    thansk in advance.
    sreedevi

    Did you get the solution for this. I seem to have the same problem.

  • Jsf reportPageViewer shows report data in "View page source", but not on webpage

    Using JSF 2.2.5, a remote crystal report application server 2011.
    I got around a problem with the parameter prompts where the OK button wouldn't do anything by setting the parameters in the code like so:
                    parameterFields="#{reports.parameterFields}"
    This, and entering in database logon info manually or in code got me to the point where the report viewer is displayed, but the 'page' appears blank, like so:
    Yet if one views the page source, the report data is there:
      report viewer goes here:
    <form id="reportviewer" name="reportviewer" method="post" action="/Janus/reports.xhtml" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="reportviewer" value="reportviewer" />
    <link rel="stylesheet" type="text/css" href="crystalreportviewers/js/crviewer/images/style.css">
    <script type="text/javascript" language="JavaScript">
    <!--
    crv_config = {"lang":"en","needFallback":true,"useAsync":true}
    //-->
    </script>
    <script language="JavaScript" src="crystalreportviewers/js/crviewer/crv.js"></script>
    <script type="text/javascript" language="JavaScript">
    <!--
    if (typeof bobj == 'undefined') {
      document.write(
      '<STYLE type=\"text/css\">' +
      '.crExceptionBorder {background-color: #A3A3BC;}' +
      '.crExceptionHeader {background-color: #E4E4EC; color: black; font-family: Arial; font-weight: bold; font-size: 11pt;}' +
      '.crExceptionElement {background-color: #E4E4EC; border-top:1px solid #FFFFFF;}' +
      '.crExceptionText {color: black; font-family: Arial; font-size: 11pt;}' +
      '</STYLE>' +
      '<table class=\"crExceptionBorder\" width=\"100%\" cellspacing=1 cellpadding=0 border=0>' +
      ' <tr><td class=\"crExceptionHeader\">The viewer was unable to find the resources required to render the report.</td></tr>' +
      ' <tr><td>' +
      ' <table width=\"100%\" border=0 cellpadding=5 cellspacing=0>' +
      ' <tr><td class=\"crExceptionElement\">' +
      ' <table border=0 cellpadding=5 cellspacing=0>' +
      ' <tr><td><span class=\"crExceptionText\">Please check the following to resolve the issue.<br>1. Verify that crystalreportviewers/ is accessible to your WebApp and is the correct path to the viewer resources.<br>2. You may customize this location by altering the crystal_image_uri and crystal_image_use_relative properties in the web.xml.<br>3. Validate that the file crv.js exists at crystalreportviewers/js/crviewer/crv.js.</span></td></tr>' +
      ' </table>' +
      ' </td></tr>' +
      ' </table>' +
      ' </td></tr>' +
      '</table>' )
    //-->
    </script>
    <script type="text/javascript" language="JavaScript">
    <!--
    bobj.crv.writeWidget({"args":{"id":"CrystalViewer","visualStyle":{"height":"750px","width":"1000px","left":"0px","top":"0px"},"layoutType":"fixed"},"children":[{"args":{"id":"CrystalViewer_toptoolbar"},"children":[{"args":{"isDisabled":false,"id":"CrystalViewer_toptoolbar_export"},"cons":"bobj.crv.newExportButton"},{"args":{"isDisabled":false,"id":"CrystalViewer_toptoolbar_print"},"cons":"bobj.crv.newPrintButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_panel"},"cons":"bobj.crv.newPanelToggleButton"},{"args":{"id":"CrystalViewer_toptoolbar_grouptree"},"cons":"bobj.crv.newGroupTreeToggleButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_firstPg"},"cons":"bobj.crv.newFirstPageButton"},{"args":{"id":"CrystalViewer_toptoolbar_prevPg"},"cons":"bobj.crv.newPrevPageButton"},{"args":{"id":"CrystalViewer_toptoolbar_selectPg","curPage":1,"numPages":"1"},"cons":"bobj.crv.newSelectPageControl"},{"args":{"id":"CrystalViewer_toptoolbar_nextPg"},"cons":"bobj.crv.newNextPageButton"},{"args":{"id":"CrystalViewer_toptoolbar_lastPg"},"cons":"bobj.crv.newLastPageButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_refresh"},"cons":"bobj.crv.newRefreshButton"},{"args":{"id":"CrystalViewer_toptoolbar_zoom","initialZoom":85},"cons":"bobj.crv.newZoomControl"},{"args":{"id":"CrystalViewer_toptoolbar_logo","layoutAlign":"right"},"cons":"bobj.crv.newLogoButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_search","searchText":""},"cons":"bobj.crv.newSearchTextControl"}],"cons":"bobj.crv.newToolbar"},{"args":{"id":"CrystalViewer_printUI","isActxPrinting":false},"cons":"bobj.crv.newPrintUI"},{"args":{"id":"CrystalViewer_exportUI","availableFormats":[{"name":"Crystal Reports (RPT)","value":"CrystalReports"},{"name":"PDF","value":"PDF"},{"name":"Microsoft Excel (97-2003)","value":"MSExcel"},{"name":"Microsoft Excel (97-2003) Data-Only","value":"RecordToMSExcel"},{"name":"Microsoft Word (97-2003)","value":"MSWord"},{"name":"Microsoft Word (97-2003) - Editable","value":"EditableRTF"},{"name":"Rich Text Format (RTF)","value":"RTF"},{"name":"Separated Values (CSV)","value":"CharacterSeparatedValues"},{"name":"XML","value":"XML"}],"canSupportRange":true},"cons":"bobj.crv.newExportUI"},{"args":{"displayDrilldownTab":true,"initTabIdx":0},"children":[{"args":{"isMainReport":true,"label":"Main Report","viewStateId":"1"},"children":[{"args":{"content":"\r\n<style> div.crystalstyle div {position:absolute; z-index:25}\r\n div.crystalstyle a {text-decoration:none}\r\n div.crystalstyle a img {border-style:none; border-width:0}\r\n\t.fc1405538317513-0 {font-size:8pt;color:#000000;font-family:Arial;font-weight:normal;}\r\n\t.fc1405538317513-1 {font-size:15pt;color:#000000;font-family:Arial;font-weight:normal;}\r\n\t.fc1405538317513-2 {font-size:6pt;color:#000000;font-family:Arial;font-weight:normal;text-decoration:underline;}\r\n\t.fc1405538317513-3 {font-size:6pt;color:#000000;font-family:Arial;font-weight:normal;}\r\n\t.fc1405538317513-4 {font-size:8pt;color:#000000;font-family:Arial;font-weight:bold;}\r\n\t.ad1405538317513-0 {border-color:#000000;border-left-width:0;border-right-width:0;border-top-width:0;border-bottom-width:0;}\r\n<\/style><div id=\"CrystalViewercridreportpage\" name=\"CrystalViewercridreportpage\" class=\"crystalstyle\" style=\"width:652;height:856;position:absolute;visibility:hidden;\"><div style=\"z-index:15;top:251px;left:14px;border-color:#000000;border-style:solid;border-width:0px;border-top-width:1px;width:639px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,95px,0px);top:0px;left:0px;width:653px;height:95px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:0px;left:0px;width:295px;height:34px;\"><img src=\"CrystalReportViewerHandler?dynamicimage=crystal14055383175307535459024881645798.png\" border=\"0\" width=\"295px\" height=\"34px\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:34px;left:0px;width:279px;height:13px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">S0010 - Transfer Details <\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:75px;left:0px;width:279px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">Store #: <\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:61px;left:0px;width:319px;height:13px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">Report Printed: 7/16/2014 at 12:18:34PM<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:48px;left:0px;width:605px;height:13px;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">Report For Period: 07/01/2014 To 07/01/2014<\/span><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,31px,0px);top:95px;left:0px;width:653px;height:31px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:95px;left:0px;width:456px;height:31px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-1\">DEPARTMENT: <\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,20px,0px);top:125px;left:0px;width:653px;height:20px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,13px,0px);top:146px;left:0px;width:653px;height:13px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,26px,0px);top:158px;left:0px;width:653px;height:26px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:41px;width:51px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">DATE<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:163px;width:41px;height:14px;\"><div align=\"right\" style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">CONF #<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:306px;width:116px;height:14px;\"><div align=\"right\" style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">SUBTOTAL<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:102px;width:46px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">TIME<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:258px;width:130px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">TM NAME<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:211px;width:44px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">TM ID<\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,27px,0px);top:185px;left:0px;width:653px;height:27px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:198px;left:57px;width:421px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-3\">Destination: /SUPPLY<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:185px;left:57px;width:421px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-3\">Source: /SUPPLY<\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,14px,0px);top:212px;left:0px;width:653px;height:14px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:212px;left:57px;width:421px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-3\"> - <\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,12px,0px);top:226px;left:0px;width:653px;height:12px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,14px,0px);top:237px;left:0px;width:653px;height:14px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:237px;left:102px;width:319px;height:14px;\"><div align=\"right\" style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-4\">SubTotal: <\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,13px,0px);top:251px;left:0px;width:653px;height:13px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,13px,0px);top:263px;left:0px;width:653px;height:13px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,35px,0px);top:276px;left:0px;width:653px;height:35px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,38px,0px);top:819px;left:0px;width:653px;height:38px;\"><\/div>\r\n<\/div>","bottomMargin":20,"height":857,"rightMargin":20,"width":653,"leftMargin":20,"documentView":"PrintLayout","topMargin":20},"cons":"bobj.crv.newReportPage"},{"args":{"width":"200.0px","initialViewType":"GroupTree"},"children":[{"args":{"label":"Group Tree","enableDrilldown":false,"enableNavigation":true,"toolPanelType":"GroupTree"},"cons":"bobj.crv.newGroupTree"},{"args":{"label":"Interactive Parameters"},"cons":"bobj.crv.params.newParameterPanel"}],"cons":"bobj.crv.newToolPanel"}],"cons":"bobj.crv.newReportView"}],"cons":"bobj.crv.newReportAlbum"},{"cons":"bobj.crv.newReportProcessingUI"}],"cons":"bobj.crv.newViewer"});
    //-->
    </script>
    <script type="text/javascript" language="JavaScript">
    <!--
    bobj.crv.stateManager.setComponentState('CrystalViewer',{"1":{"gpTreeCurrentExpandedPaths":{},"rptViewLabel":"Main Report","gpTreeLastExpandedPath":"","lstPgNum":1,"isLstPgNumKn":true,"pageNum":1},"common":{"rptAlbumOrder":["1"],"enblDrllDwn":false,"zoom":85,"width":1000,"allowOverflow":false,"paramOpts":{"numberFormat":{"decimalSeperator":".","groupSeperator":","},"dateTimeFormat":"M/d/yyyy HH:mm:ss","timeFormat":"HH:mm:ss","dateFormat":"M/d/yyyy","booleanFormat":{"false":"False","true":"True"},"maxNumParameterDefaultValues":200},"screenResolution":96,"productLocale":"en_US","resourcePrefix":"crystalreportviewers/","toolPanelType":"GroupTree","RptSrcFacName":"com.crystaldecisions.sdk.occa.report.application.reportsourcefactory.RasReportSourceFactory","iactParams":[{"isOptionalPrompt":false,"_usage":57,"allowNullValue":false,"isDataFetching":true,"allowMultiValue":true,"allowDiscreteValue":true,"defaultValues":[],"description":"Select store","value":[103610],"valueDataType":"n","attributes":{"IsDCP":true,"PGURI":"eor://BERLIN-B.owfg.com:6400/AXDYjQVqqKxJpFxfC5SWpec"},"allowRangeValue":false,"allowCustomValue":false,"paramName":"Store","isEditable":true,"defaultDisplayType":0}],"height":750,"servletUri":"CrystalReportViewerHandler","reqCtx":{"logOnInfo":"PENyeXN0YWxSZXBvcnRzLkNvbm5lY3Rpb25JbmZvcyB4bWxucz0iaHR0cDovL3d3dy5jcnlzdGFs\r\nZGVjaXNpb25zLmNvbS9yZXBvcnQiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9Y\r\nTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxT\r\nY2hlbWEiIHhzaTp0eXBlPSJDcnlzdGFsUmVwb3J0cy5Db25uZWN0aW9uSW5mb3MiIHZlcnNpb249\r\nIjIiPjxDb25uZWN0aW9uSW5mbyB4c2k6dHlwZT0iQ3J5c3RhbFJlcG9ydHMuQ29ubmVjdGlvbklu\r\nZm8iIGlkPSIxIj48VXNlck5hbWU+c2ltX3JwdDwvVXNlck5hbWU+PFBhc3N3b3JkPnowMDA3N0Zd\r\nWlNcQjRAQDAwPC9QYXNzd29yZD48QXR0cmlidXRlcyB4c2k6dHlwZT0iQ3J5c3RhbFJlcG9ydHMu\r\nUHJvcGVydHlCYWciIGlkPSIyIj48UHJvcGVydHk+PE5hbWU+RGF0YWJhc2UgTmFtZTwvTmFtZT48\r\nVmFsdWUgVmFyaWFudFR5cGU9IlN0cmluZyI+PC9WYWx1ZT48L1Byb3BlcnR5PjxQcm9wZXJ0eT48\r\nTmFtZT5TZXJ2ZXIgTmFtZTwvTmFtZT48VmFsdWUgVmFyaWFudFR5cGU9IlN0cmluZyI+U0lNUlBU\r\nMV9OQVRJVkUuT1dGRy5DT008L1ZhbHVlPjwvUHJvcGVydHk+PC9BdHRyaWJ1dGVzPjxLaW5kPlNR\r\nTDwvS2luZD48L0Nvbm5lY3Rpb25JbmZvPjwvQ3J5c3RhbFJlcG9ydHMuQ29ubmVjdGlvbkluZm9z\r\nPg==","prptInfo":"<CrystalReports.Fields xmlns=\"http://www.crystaldecisions.com/report\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"CrystalReports.Fields\" version=\"2\"><Field xsi:type=\"CrystalReports.ParameterField\" id=\"1\"><Name>Department<\/Name><Description><\/Description><Type>xsd:decimal<\/Type><Length>0<\/Length><Attributes xsi:type=\"CrystalReports.PropertyBag\" id=\"2\"><Property><Name>IsDCP<\/Name><Value VariantType=\"Boolean\">false<\/Value><\/Property><\/Attributes><AllowMultiValue>false<\/AllowMultiValue><CurrentValues xsi:type=\"CrystalReports.Values\" id=\"3\"><Value xsi:type=\"CrystalReports.ParameterFieldDiscreteValue\" id=\"4\"><Value VariantType=\"Double\">2209.0<\/Value><\/Value><IsNoValue>false<\/IsNoValue><\/CurrentValues><ParameterType>ReportParameter<\/ParameterType><AllowCustomCurrentValues>false<\/AllowCustomCurrentValues><AllowNullValue>false<\/AllowNullValue><DefaultValueSortOrder>NoSort<\/DefaultValueSortOrder><DefaultValueSortMethod>BasedOnValue<\/DefaultValueSortMethod><ValueRangeKind>Discrete<\/ValueRangeKind><Usage>DataFetching,InUse<\/Usage><DefaultValueDisplayType>DescriptionOnly<\/DefaultValueDisplayType><IsOptionalPrompt>false<\/IsOptionalPrompt><\/Field><Field xsi:type=\"CrystalReports.ParameterField\" id=\"5\"><Name>From_Date<\/Name><Description><\/Description><Type>xsd:date<\/Type><Length>0<\/Length><Attributes xsi:type=\"CrystalReports.PropertyBag\" id=\"6\"><Property><Name>IsDCP<\/Name><Value VariantType=\"Boolean\">false<\/Value><\/Property><\/Attributes><AllowMultiValue>false<\/AllowMultiValue><CurrentValues xsi:type=\"CrystalReports.Values\" id=\"7\"><Value xsi:type=\"CrystalReports.ParameterFieldDiscreteValue\" id=\"8\"><Value xsi:type=\"dateTime\">2014-7-1T0:0:0.0<\/Value><\/Value><IsNoValue>false<\/IsNoValue><\/CurrentValues><ParameterType>ReportParameter<\/ParameterType><AllowCustomCurrentValues>true<\/AllowCustomCurrentValues><AllowNullValue>false<\/AllowNullValue><DefaultValueSortOrder>NoSort<\/DefaultValueSortOrder><DefaultValueSortMethod>BasedOnValue<\/DefaultValueSortMethod><ValueRangeKind>Discrete<\/ValueRangeKind><Usage>DataFetching,InUse<\/Usage><DefaultValueDisplayType>DescriptionAndValue<\/DefaultValueDisplayType><IsOptionalPrompt>false<\/IsOptionalPrompt><\/Field><Field xsi:type=\"CrystalReports.ParameterField\" id=\"9\"><Name>To_Date<\/Name><Description><\/Description><Type>xsd:date<\/Type><Length>0<\/Length><Attributes xsi:type=\"CrystalReports.PropertyBag\" id=\"10\"><Property><Name>IsDCP<\/Name><Value VariantType=\"Boolean\">false<\/Value><\/Property><\/Attributes><AllowMultiValue>false<\/AllowMultiValue><CurrentValues xsi:type=\"CrystalReports.Values\" id=\"11\"><Value xsi:type=\"CrystalReports.ParameterFieldDiscreteValue\" id=\"12\"><Value xsi:type=\"dateTime\">2014-7-1T0:0:0.0<\/Value><\/Value><IsNoValue>false<\/IsNoValue><\/CurrentValues><ParameterType>ReportParameter<\/ParameterType><AllowCustomCurrentValues>true<\/AllowCustomCurrentValues><AllowNullValue>false<\/AllowNullValue><DefaultValueSortOrder>NoSort<\/DefaultValueSortOrder><DefaultValueSortMethod>BasedOnValue<\/DefaultValueSortMethod><ValueRangeKind>Discrete<\/ValueRangeKind><Usage>DataFetching,InUse<\/Usage><DefaultValueDisplayType>DescriptionAndValue<\/DefaultValueDisplayType><IsOptionalPrompt>false<\/IsOptionalPrompt><\/Field><\/CrystalReports.Fields>"},"reportSourceSessionID":"com.crystaldecisions.report.web.viewer.RPT_SRC:CrystalViewer1484296940","toolPanelWidth":200,"toolPanelWidthUnit":"px"},"curViewId":"1"});
    //-->
    </script>
    <script type="text/javascript" language="JavaScript">
    <!--
    new bobj.crv.ViewerListener('CrystalViewer', new bobj.crv.FacesAdapter('reportviewer', 'CrystalReportViewerHandler'));
    //-->
    </script>
      ^
       <input type="hidden" name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:0" value="8699192975832549599:-7190272799067789315" autocomplete="off" />
    </form>

    Hi
    There are two things to check :
    1.  Check the driver which you are using in BO ( If you are try to connect using ODBC try to change the drivers and check)
    2.  Viewer--In infoview go in preferences and try to change the viewer.  If your report is using DHTL, try to change it to Java or Web viewer and check.
    Thanks,
    Sastry

  • How to Validate the Text Field in JSF

    Hi,
    I am facing a issue to validate the text field where the below code accepts (space' ',underscore'_',pipe'|') symbol as a first character and last character.Where by it can accept in the middle.
    It should not accept special characters also. Below code is working properly for special characters.
    <tr>
    <td width="30%" align="right"><b><h:outputText id="aAccrualType" value="Accrual Type" /> </b> <span style="color:red">*</span></td>
    <td width="50%">: <h:inputText id="accrualType" value="#{accrualTypeMast.accrualType}" required="true" >          
    <t:validateRegExpr pattern="^[(a-z)||(A-Z)||(0-9)||(_)||(\s)||(/)]+$" />     
    <f:validateLength minimum="1" maximum="50"/>     
    </h:inputText>
    <h:message for="accrualType" showDetail="true" style="color:red" />
    </td>
    </tr>
    The thing is i dont have much knowledge in regular expression.
    Is there any other way to do this.
    Could anyone help me in this.
    Thanks,
    Ambika&#9786;

    This has nothing to do with JSF.
    I suggest you to read the Pattern API documentation [1]. You can easily create a small Java Application and test the regexp using String#matches() as it uses the same regexp guidelines.
    public static void main(String[] args) {
        String regexp = "^[a-z]+$";
        String value = "foo";
        boolean match = value.matches(regexp);
        System.out.println(value + " matches " + regexp + ": " + match);
    }[1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • JSF 2.0 beta2 - JavaScript not execute in ajaxreponse +  Parameters: Invali

    Hi,
    I'm testing JSF2.0 beta2.
    I found the following problems:
    1) The JavaScript is not executed in the ajaxresponse.
    I solved it by adding the following JavaScript code to my xhtml file:
              function executeScripts(data) {
                  if (data.status == "success") {
                        var rXML = data.responseXML;
                        //alert(data.responseText);
                        document.getElementById("log").value = data.responseText;
                        if(i++ %2 == 0)alert(data.responseText);
                        var updates = rXML.getElementsByTagName("update");
                        for (var u = 0; u<updates.length; u++) {
                             var update = updates[u];
                             var children = update.childNodes;
                             for(var i=0; i<children.length; i++) {
                                  var child = children;
                                  if(child.nodeType == 4) { // CDATA
                                       var tmp = document.createElement("span");
                                       tmp.innerHTML = child.nodeValue;                              
                                       var scripts = tmp.getElementsByTagName("script");
                                       for(var s=0; s<scripts.length; s++) {
                                            eval(scripts[s].innerHTML);
         window.onload = function init(){
              jsf.ajax.addOnEvent(executeScripts);
    2de problem:
    When I add extra params to the jsf.ajax.request function i got a warning in my tomcat6 console:jsf.ajax.request(document.getElementById("f:surname"), null,{execute:'@this',render:'@this',frmAjaxSuggestExecuteAjax:'true'});
    Warning:
    26-jul-2009 23:08:48 org.apache.tomcat.util.http.Parameters processParameters
    WARNING: Parameters: Invalid chunk ignored.
    I only has this warning on adding extra params.
    I know this error from the past.
    Then it was caused by using wrong syntax for the request parameters. example:
    http://myhost/mypage&paramA=1&paramB=2 (note there is no ?)
    http://myhost/mypage?paramA&paramB=2 (note there is value for paramA)
    3de problem
    It's more a question than a problem.
    The following javascript is added to my xhtml code:
    <script type="text/javascript" src="/xhtml/javax.faces.resource/jsf-uncompressed.js?ln=javax.faces"></script>
    I don't have any idea how this javascript cames into my sourcecode.
    I did not add it as resouce to my component@ResourceDependencies({
         //@ResourceDependency(name="ajax.js",library="javax.faces",target="head"),
    Regards,
    Pieter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I'm testing JSF2.0 beta2.
    I found the following problems:
    1) The JavaScript is not executed in the ajaxresponse.
    I solved it by adding the following JavaScript code to my xhtml file:
              function executeScripts(data) {
                  if (data.status == "success") {
                        var rXML = data.responseXML;
                        //alert(data.responseText);
                        document.getElementById("log").value = data.responseText;
                        if(i++ %2 == 0)alert(data.responseText);
                        var updates = rXML.getElementsByTagName("update");
                        for (var u = 0; u<updates.length; u++) {
                             var update = updates[u];
                             var children = update.childNodes;
                             for(var i=0; i<children.length; i++) {
                                  var child = children;
                                  if(child.nodeType == 4) { // CDATA
                                       var tmp = document.createElement("span");
                                       tmp.innerHTML = child.nodeValue;                              
                                       var scripts = tmp.getElementsByTagName("script");
                                       for(var s=0; s<scripts.length; s++) {
                                            eval(scripts[s].innerHTML);
         window.onload = function init(){
              jsf.ajax.addOnEvent(executeScripts);
    2de problem:
    When I add extra params to the jsf.ajax.request function i got a warning in my tomcat6 console:jsf.ajax.request(document.getElementById("f:surname"), null,{execute:'@this',render:'@this',frmAjaxSuggestExecuteAjax:'true'});
    Warning:
    26-jul-2009 23:08:48 org.apache.tomcat.util.http.Parameters processParameters
    WARNING: Parameters: Invalid chunk ignored.
    I only has this warning on adding extra params.
    I know this error from the past.
    Then it was caused by using wrong syntax for the request parameters. example:
    http://myhost/mypage&paramA=1&paramB=2 (note there is no ?)
    http://myhost/mypage?paramA&paramB=2 (note there is value for paramA)
    3de problem
    It's more a question than a problem.
    The following javascript is added to my xhtml code:
    <script type="text/javascript" src="/xhtml/javax.faces.resource/jsf-uncompressed.js?ln=javax.faces"></script>
    I don't have any idea how this javascript cames into my sourcecode.
    I did not add it as resouce to my component@ResourceDependencies({
         //@ResourceDependency(name="ajax.js",library="javax.faces",target="head"),
    Regards,
    Pieter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • JSF Rendering problems

    Hello
    I have encountered tow problems using JSF 1.0
    First:
    I have a site that has a css file asociated with it.
    In this css file i have a class for the option tag "<option>".
    My problem is that JSF dose not provide a way to pass and render the class attribute on the option tag.
    Is there a way to render this attribute on the option tag without extending the component or writing a renderer for it?
    Second:
    How can I pass the attributes colspan and rowspan of a <td> element rendered for a panelGrid tag without extending the component or writing a renderer for it?
    Thx.

    Hello again
    I forgot to mention this for th above problem.
    The problem with the option tag is that this jsf code
    <h:selectOneMenu id="someId" value="" styleClass="select">
    <f:selectItems value="#{Dummy.dummySelects}" />
    </h:selectOneMenu>
    generates this HTML code
    <span class="select">
    <select id="someId" name="someName" size="1">
    <option value="dummy select">dummy select</option>
    <option value="dummy select">dummy select</option>
    <option value="dummy select">dummy select</option>
    <option value="dummy select">dummy select</option>
    </select>
    </span>
    the class="select" attribute should be on the <select> tag but is on the <span> tag.
    Why is this and how can I fix it ?

  • JSF Rendering messages component

    Hi All,
    I am having a t:messages tag on my jsf page which displayes all the error messages
    I want to make it fixed size possible by placing it in a textarea, Can i do this ?
    There is an attribute layout to t:messages tag which supports table and list but is there a way to render these ?
    when i set the style attribute or use the styleClass attribute it is applied only to the span tag ( which is generated by t:messages tag ) but not to either table or list, Can anyone suggest a way to do this
    Do get back to me if i am not clear
    Thanks in advance

    While this is in no way complete, you can check out my check list for Iin my opinion) a good overview of what it takes to write a JSF component:
    http://blogs.steeplesoft.com/2006/12/14/jsf-component-writing-check-list/
    The Burns/Schalk book, JavaServer Faces:  The Complete Reference (http://tinyurl.com/2ndoye) is also an excellent resource. If you can be patient, you might also keep on eye on java.net, as Ken Pauslen (of JSFTemplating and GlassFish fame) and I will have an article coming out on this very topic.

  • JSF problems with Javascript

    Hi everyone!!
    The situation is this: I have a datable with one of its columns make an h:commanLink, which has two f:params, its actionListener is a function of a ManagedBean. This is JSF, not MyFaces. In IE, When the link is pressed, it shows a javascript error: " 'elements.idVar' is null or it's not an object ", however in Firefox, it works perfectly. I have been looking for the problem and it have to do with this:
    </form><a href="# onclick="clearFormHiddenParams_formResultado('formResultado');document.forms['formResultado'['formResultado:_idcl'].value='formResultado:dtTablaResultados:0:_id10';document.forms['formResultado']['idVar'].value='37';document.forms['formResultado']['idMun'].value='168'; document.forms['formResultado'].submit(); return false;"><span id="formResultado:dtTablaResultados:0:itColumna3" title="AREA COSECHADA EN CULTIVOS PERMANENTES">1,230</span></a></td>
    </tr>
    <tr class="standardTable_Row2">
    <td><span id="formResultado:dtTablaResultados:1:itColumna1" style="text-align:center;" title="C&oacute;digo Municipio">718</span></td>
    <td><a href="javascript:void(0)" onclick="javascript:window.opener.opener.showLink('SASAIMA')"><span id="formResultado:dtTablaResultados:1:itColumna2_l" title="Municipio">SASAIMA</span></a></td>
    <td><form id="formResultado:dtTablaResultados:1:_id9" method="post" action="/ConsultaEstadisticasGeo/resultadoConsulta.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id39:_id41" /><input type="hidden" name="formResultado:dtTablaResultados:1:_id9" value="formResultado:dtTablaResultados:1:_id9" /><input type="hidden" name="idVar" /><input type="hidden" name="idMun" /><input type="hidden" name="formResultado:_idcl" />
    <script type="text/javascript">
    <!--
    function clearFormHiddenParams_formResultado_dtTablaResultados_1__id9(curFormName) {
    var curForm = document.forms[curFormName];
    curForm.elements['idVar'].value = null;
    curForm.elements['idMun'].value = null;
    curForm.elements['formResultado:_idcl'].value = null;
    //-->
    </script>
    the way JSF manage the params. The error, acdording to the message shonw by IE is in this line: curForm.elements['idVar'].value = null;
    The code of the JSP is this:
    <h:commandLink     actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
         <f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}" id="idVar" />
         <f:param name="idMun" value="#{registro[0]}" id="idMun" />
         <h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
    </h:commandLink>
    Waht can i do? (Not using MyFaces, because I can�t do that)
    Thanks for your answers!!

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

Maybe you are looking for

  • Yahoo Calendar sync to Palm

    I have a Windows XP Home Edition PC and a Palm (Sprint) Centro. I have installed version 4.2 Palm Desktop (per tech support) and installed Yahoo Auto Sync. I am connected to the internet through DSL and from the PC to the Centro by a USB cable. Yahoo

  • ArchiveLog deletion using RMAN

    Hi, My backup failed for some time due to disk space issue which I was able to fix using setting db_recovery_file_dest_size but after the completion of backup script it didn't delete all the archivelog files. I still have log files from 05 Jan 2011 -

  • Version Management activation for RFQ

    Dear all, We have done all the settings for version management activation in RFQ, But it is not working. Can somebody guide me the steps? Thanks, Samir Bhatt

  • An error has occurred in variant ZBPRVBIL

    Hi All, While running a billing run, I am getting the below issue. An error has occurred in variant ZBPRVBIL. Note the following information: o   Rate: B-S-GEN o   Schema: B-S-GEN o   Consecutive number of variant in schema: 0021 Can someone help me

  • SAP express office info dialog box

    Hi experts, Upon saving transactions IW31 or IW32, this dialog box appears with the message: "Error during creation of transfer orders for mater" received from author <name> We noticed that it is being picked up in table SOXP, what triggers in the tr