h:outputText inside f:verbatim : is it legal?

Hi,
Is it valid to nest a <h:outputText> inside a <f:verbatim> tag? If so, could someone please explain this section of the JSF sepc:
Body Content
JSP. However, no UIComponent custom actions, or custom actions from the JSF Core
Tag Library, may be nested inside this custom action.
Regards,
Behi

You answered your own question. =)
You must end the verbatim tag before using any other JSF tag (or closing a JSF tag).
CowKing

Similar Messages

  • How to put outputText inside javascript?

    Hi guys,
    My javascript code is like below initially:
                       var field = document.getElementById(theText).innerHTML;
                       if(field=='Add'){
                            document.getElementById(theText).innerHTML= 'Ignore';
                       if(field=='Ignore'){
                            document.getElementById(theText).innerHTML= 'Add';
                       }     and when I changed to
                       var field = document.getElementById(theText).innerHTML;
                       if(field=='Add'){
                            document.getElementById(theText).innerHTML= '<h:outputText styleClass="boldWord" id="oTxtIgnoreAddAddress" value="#{text['text.ignore']}"/>';
                       if(field=='Ignore'){
                            document.getElementById(theText).innerHTML= '<h:outputText styleClass="boldWord" id="oTxtIgnoreAddAddress" value="#{text['text.add']}"/>';
                       }     the script do nothing ! Please help, thanks ! need help desperately here !
    regards,
    Mark

    i changed to:
                       var field = document.getElementById(theText).innerHTML;
                       if(field=='Add'){
                            document.getElementById(theText).innerHTML= '<h:outputText styleClass="boldWord" value="#{text['text.ignore']}"/>';
                       if(field=='Ignore'){
                            document.getElementById(theText).innerHTML= '<h:outputText styleClass="boldWord" value="#{text['text.add']}"/>';
                       }     still doesn't work. Initailyy when the page loaded, the word is 'ignore'. I clicked on it then become 'Add'. Click on it again still gave me 'Add' !
    pls help ! Thanks !
    regards,
    Mark

  • How to render h:outputText of fixed length inside h:panelGrid

    Hi,
    I am using h:outputText inside h:panelGrid.
    But while renderring output text, whatever is the text length , the width of the h:outPutText should be same.
    I am getting the results diplayed as below if length varies.
    xxxxx     126612 AAAAAAA
    yyyyy     214 BBBBBB
    zz 1234 CCCC
    Pls help me...

    sorry it's not working...
    Here is my code snippet...
    <h:dataTable id="list1" var="row" value="#{loanAccountDTOList}"
    columnClasses="table-column-left2" width="100%" rendered="#{!empty loanAccountDTOList}" >
         <h:column>
    <h:panelGrid columns="7" columnClasses="bs1,bs2,bs3,bs4,bs5,bs6,bs7" width="100%">
              <h:outputText value="#{row.sortCode}"/>
              <h:outputText value="#{row.accountNumber}" style="bs11" />
              <h:outputText value="CAP"/>
              <h:outputText value="13005678900111D"/>
              <h:outputText value="111111111111300"/>
              <h:outputText value="51,1111111500Normal"/>
              <h:outputText value="30062007"/>
         </h:panelGrid>
         <h:panelGrid columns="1" width="90%">
              <h:outputText value="ForeCastBalance : 10,000D"/>
         </h:panelGrid>                    
         </h:column>
    </h:dataTable>
    here bs1, bs2 are the styles applied for the output text.If i change the widths in the respective style, it's not reflecting...What might be the mistake....
    I am facing lot of problems with formatting ..Pls help me out..
    This is how i am able to display data....
    300006 12345678 CLAIRS .....
    300008 123 CAP.....
    300009 123456789999 CAP...
    I need to format it properly asbelow.
    300006 12345678 CLAIRS
    300008 123 CAP
    300009 123456789999 CAP

  • "f:verbatim"?

    Hi..
    Can I render HTML codes which is defined inside <f:verbatim> tag based on some condition, like rendered attribute for <h:outputText> tag..
    Can you people clear my doubt..
    Thanks in advance..

    hi..
    Thanks a lot for your reply..
    Regards,
    joe

  • How to add raw HTML tags inside JSF tags...

    Hi
    I would like to use <input type = text > inside my project in some area..The following code hides the input = type html tag and forwards the click event to jsf command button...After selecting the file,it should forward the value to jsf textfield....
    My code seems as below.
    <h:form id="detailForm" onsubmit="printElements(detailForm,this)">
    <f:verbatim>
    <input id="uploadFile" type="file" style ="dispaly:none"size="100" />
    </f:verbatim>
    <h:inputText id="docName" style="width:650px;" maxlength="100"/>
    <h:commandButton id="visibleBrowseButton" value="Select File..." onclick="'detailForm:uploadFile'.click();callClick();">
    </h:commandButton>
    </h:form>
    <script type="text/Javascript">
    function callClick()
    var val = document.detailForm.uploadFile.value;
    document.getElementById('detailForm:docName').value = val;
    </script>
    While running this page it works fine in IE but in Mozilla firefox it troubles me during detailForm:uploadFile'.click().
    I suspect the jsf page cannot able to detect the raw html tag inside jsf tags...Eventhough i tried using inside<f:verbatim> it wont works..
    I would like to know
    1.Whether the code is right,,if the code goes wrong why it got runned in IE not in firefox....
    2.How can raw html tags can be integrated inside JSF tags....

    First of all, why are you ignoring valuable answers about a JSF fileupload component in your previous topic?
    Second, you can just nest raw HTML anywhere in your JSF page. Your problem is rather related to JavaScript. It has completely nothing to do with Java nor JSF. Learn JavaScript -there is a nice tut at w3schools.com- and look for a JavaScript forum if you still stucks. There are ones at webdeveloper.com and dynamicdrive.com.
    The f:verbatim is only required if you was using JSF 1.1 or older, which is not the case. You would have occurred completely different problems.

  • How to display List of items in a outputtext in adf

    Hi ADF Experts,
    My question is I am able to get the selected items from a List<String> on click of a button. How can I display each item as a outputtext inside a panelbox.
    Thanks,
    Rahul

    Rahul,
    Here is a simple ex:
    JSPX :
    <af:panelBox id="pb1">
    <af:forEach var="items" items="#{viewScope.MyBean.stringList}">
    <af:outputText id="ot1" value="#{items}"/>
    </af:forEach>
    </af:panelBox>
    Bean :
    public class MyBean {
    private List<String> stringList;
        public void setStringList(List<String> stringList) {
            this.stringList = stringList;
        public List<String> getStringList() {
            return stringList;
        public MyBean() {
            super();
            stringList = new ArrayList<String>();
            stringList.add("One");
            stringList.add("Two");
            stringList.add("Three");
            stringList.add("Four");
            stringList.add("Five");
    -Arun
    B

  • Just give me a paragraph!

    The more I try to work with JSF (I'm trying to do things the JSF way, really, I am!), the more JSF doesn't want to work with me for simple things.
    Let's just say I want to show the equivalent of the following HTML, but only if the user isn't logged in:
    <p class="info"><a href="login.html">Log in</a> to see more data.</p>Simple, huh? Now, how do I do that in JSF? About the best I can do in JSF is this atrocious verbosity:
    <html:panelGroup rendered="#{!user.loggedIn}">
         <jsf:verbatim>&lt;p class="info"&gt;</jsf:verbatim>
         <html:commandLink action="login">
              <jsf:verbatim>Log in</jsf:verbatim>
         </html:commandLink>
         <html:outputText value=" to see more data."/>
         <jsf:verbatim>&lt;/p&gt;</jsf:verbatim>
    </html:panelGroup>I have to create a <html:panelGroup> because there's no JSF <p> component (to my knowledge).
    I have to use the nested verbatim because I want to conditionally show the <p> tags along with the content. But in my XML source file, <jsf:verbatim> won't allow a nested beginning tags without ending tags, so I have to XML-escape my beginning <p> tag.
    The nested <jsf:verbatim> inside <html:commandLink> certainly makes all this hard to internationalize, but I can live with that---it gets worse, though.
    Outside <html:commandLink>, I have to use <html:outputText> because <jsf:verbatim>, because the latter trims off the beginning whitespace. However, I can't put the ending </p> tag literally here because the attribute can't have the less-than character ('<'). If I XML-escape the character, it comes out in the resulting file as escaped, and my XML is well-formed. So I have to put the extra <jsf:verbatim>.
    Who knew a simple paragraph would take up so much of my time just to research how to do it in JSF? Now I'm taking more time researching whether it can be done better. Any suggestions? (I know, I can write a JSF <p> component...)

    Why on earth didn't JSF provide this [HTML] functionality
    with the reference implementation? I know Sun can't
    provide everything, HTML equivalents are really
    basic, and aren't rocket science.After more thinking and jumping into hard-core custom component development, I'm having some new thoughts---I'm understanding more the JSF architecural principles. This leads me to think that something like Sergey's very useful htmLib should not be included in the JSF API. Here's why.
    First, I'm beginning to see where Hans Bergsten is coming from, when he recommends "Improving JSF by Dumping JSP" ( http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html ). I'm not quite ready to dump JSP, but the tight integration of JSF with JSP obscures the "JSF way" and makes it difficult for newcomers to adjust to its different paradigm.
    Let me make an analogy with the Resource Description Framework (RDF) ( http://www.w3.org/RDF/ )---many newcomers have an extremely hard time understanding why RDF is useful or even different, because almost every discussion assumes that RDF is going to be serialized in XML. This in itself isn't so bad, but it leads newcomers to think of RDF as just another XML vocabulary. It's not. RDF is really an abstract framework for describing resources, resource properties, and the values of those properties (which can be other resources)---a framework for creating ontologies that, as some AI pundits would assert, can describe the world itself. XML provides a convenient syntax for serializing a directed graph of an RDF data model, but it produces no different semantics than limitless other syntaxes that could be invented and used to serialize RDF. (A Java properties file is one possible example that could produce a semantically identical RDF data model as could an XML serialization.)
    Similarly, JSF is not just a way to write out HTML tags. It's actually a hierarchy of components that replicate the semantics of various data models and their interaction with a user. JSP is just one vehicle to do that; maybe it's not even the best. Maybe JSF is too closely tied to JSP, obscuring this revelation from users.
    In this light, Sergey's HTML components have no place in the standard JSF API, because they function merely as a way for new users to quickly get a JSP page to write out a <p>, or a <ul>, or even a <table>. Sergey acknowledges as much: "The library allows you to use old-fashioned HTML layout tags ...., easing the transition to JSF for newbies." ( http://jsftutorials.net/htmLib/ )But the "JSF way" is to think in terms of JSF components implementing data models---whether they spit out XHTML or WAP or SGML is the responsibility of a plugable renderer, and should be distinct from the way the data is stored. htmLib is handy for newcomers and helpful when stuck in a bind and need to get a JSP generated, but designers creating large-scale, elegant JSF application architectures should be weaned away from thinking in terms of brute-force HTML tag writing.
    My modification of viewpoint doesn't let JSF off the hook---indeed JSF should provide functionality out-of-the-box that, some way or another, can generate all desirable HTML tags. Instead of shallow wrapping classes, however, they should be robust, capable data model components with comprehensive default HTML renderers. Currently the dataTable component is about the only JSF component that provides a shadow of this concept, and in my opinion dataTable only allows about 70%-85% of needed functionality.
    Take HTML <dl> (definition list) for an example. htmLib provides a great way for newcomers to write out an HTML definition list, and provides a teaching tool for learning component creation. The JSF standard component library, however, should provide a definitionList component that descends from UIData, allowing the component to be data-aware. A user should think in terms of an actual list model containing definitions. The definitionList should provide UIColumn descendants for "term" and "definition", and maybe even other columns. The default renderer for HTML would render a <dl> element, with <dt> for each term column child and a <dd> for each definition column child. (After a day of exploring custom component creation, I've just implemented such an animal as I've described.)
    In the end, the functionality of such a definitionList with its default renderer is equivalent to htmLib:dl, but the semantics are different: an actual data model is described, and different renderers can be plugged in for other markup types.
    Similarly, there should be some sort of text block data model with nestable children. There should either be a different UIComponent class for <p>, <blockquote>, and the like, or the component should indicate its semantics with, say, a semantics="paragraph" or semantics="blockquote" attribute.
    In summary, Sergey's components are wonderful and very useful. I'm slowly coming around to the "JSF way," however, which leads me to conclude that, although JSF may need a paragraph data model component with a default HTML renderer, it doesn't need and shouldn't have a pass-through HTML <p> tag-writer such as htmLib provides. The difference is subtle, but paradigmatic.
    Cheers,
    Garret

  • ADF FACES: HTML template text Layout is broken when uses ADF Faces tags

    This works fine:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    </head>
    <body>
    <h:form>
    <table border="1">
    <tr>
    <td width="45%">
    <h:dataTable rows="5" bgcolor="Red" value="#{class1.names}" var="name">
    <h:column>
    <h:outputText value="#{name}"/>
    </h:column>
    <h:column>
    <h:outputText value="#{name}"/>
    </h:column>
    </h:dataTable>
    </td>
    <td width="55%">
    <h:inputText/>
    </td>
    </tr>
    </table>
    </h:form>
    </body>
    </html>
    </f:view>
    => a table is rendered with one row and two columns; in the first column the data table is rendered in the second the inputText
    Changing to ADF Faces tags breaks the layout:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11/html" prefix="afh"%>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    </afh:head>
    <afh:body>
    <af:form>
    <table border="1">
    <tr>
    <td>
    <af:table rows="5" value="#{class1.names}" var="name">
    <af:column>
    <h:outputText value="#{name}"/>
    </af:column>
    <af:column>
    <h:outputText value="#{name}"/>
    </af:column>
    </af:table>
    </td>
    <td>
    <h:inputText/>
    </td>
    </tr>
    </table>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    => at the begin of the page an empty table is rendered; below the data table is rendered and below the inputText
    It think it should be possible to layout the page with HTML template text and use ADF Faces tags.

    As of EA12 (and EA13) <afh:body> is what is known as a "rendersChildren" tag. It needs to do so in order to support partial-page rendering This means that template text inside it needs to be wrapped inside <f:verbatim>.
    For later releases of ADF Faces, I've filed an enhancement request to loosen up this restriction for <afh:body>.

  • Need to Add and Remove Columns of ADF Read Only table from Backing bean

    I have a scenario where I am trying to Populate TransientVO which is shown has a ADF Read Only Table in page.
    I have couple of Check Boxes Based on their selection I am trying to render and hide certain Columns.
    But the Issue which I am facing is only the Column Header seems to change where as the Rows and Values doesnt..
    even If I apply the expression language rendering condition on the outputText inside those columns.. ..
    So I am thinking to add and remove VO Attribute columns to the table from backing bean.
    Need some sample code snippet or a better design to achieve this. Its kind of urgent too...having an aggressive deadline :(
    Please chip in People..
    Thanks in Advance .
    TK

    Table Code..
    <af:table value="#{bindings.InventoryGridTrans.collectionModel}"
                                    var="row"
                                    rows="#{bindings.InventoryGridTrans.rangeSize}"
                                    emptyText="#{bindings.InventoryGridTrans.viewable ? 'No data to display.' : 'Access Denied.'}"
                                    fetchSize="#{bindings.InventoryGridTrans.rangeSize}"
                                    rowBandingInterval="0" id="t4"
                                    partialTriggers="::sbcSales ::sbcUsage ::cb1">
                            <af:column sortProperty="Period" sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Period.label}"
                                       id="c38">
                              <af:outputText value="#{row.Period}" id="ot33"/>
                            </af:column>
                            <af:column sortProperty="Past12SalesCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12SalesCount.label}"
                                       id="c29"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                              <af:outputText value="#{row.Past12SalesCount}"
                                             id="ot40"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage != true and backingBeanScope.IndexPageBackingBean.onSales == true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12SalesCount.format}"/>
                              </af:outputText>
                            </af:column>
                            <af:column sortProperty="Past12UsageCount"
                                       sortable="false"
                                       headerText="#{bindings.InventoryGridTrans.hints.Past12UsageCount.label}"
                                       id="c40"
                                       rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                       visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                              <af:outputText value="#{row.Past12UsageCount}"
                                             id="ot47"
                                             rendered="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}"
                                             visible="#{backingBeanScope.IndexPageBackingBean.onUsage == true and backingBeanScope.IndexPageBackingBean.onSales != true}">
                                <af:convertNumber groupingUsed="false"
                                                  pattern="#{bindings.InventoryGridTrans.hints.Past12UsageCount.format}"/>
                              </af:outputText>
                            </af:column>
                            </af:column>
                    </af:table>

  • JSF Application on WAS 6.1 when migrated from tomcat5.5 not loading

    I'm migration a list of applications from Tomcat to WAS 6.1
    I have a JSF application running on Tomcat 5.5.
    The same application when hosting on websphere application server 6.1(latest service pack applied in 6.1.0.17 ) is not loading properly.
    The application has a login screen that comes when loads. This comes fine in the tomcat server. But in the WAS this not loading. It's not giving any error messages also. What happens in WAS is in the login screen The header section will comes but the login fields ie the user Id and password section won't come.
    I tried deploying the same war file from the Tomcat to the WAS server. Still there is no change.
    Initially my WAS server version was 6.1.0.2, and then I had an issue with JSF servlet and context mappings.
    After applying the fix pack 6.1.0.17 it was fine.
    The application uses the a security filter- form based login in the web.xml
    Is there any difference between the form base authentication between tomcat and websphere ?
    Here is the section of web.xml for form based authentication
    <!--Security filter - form based login -->
    <filter>
    <filter-name>Security Filter</filter-name>
    <filter-class>org.securityfilter.filter.SecurityFilter</filter-class>
    <init-param>
    <description>Configuration file location (this is the default value)</description>
    <param-name>config</param-name>
    <param-value>/WEB-INF/securityfilter-config.xml</param-value>
    </init-param>
    <init-param>
    <description>Validate config file if set to true</description>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <description>change security binding</description>
    <param-name>loginSubmitPattern</param-name>
    <param-value>login.html</param-value>
    </init-param>
    </filter>
    this is urgent, please help.
    Edited by: JSF_exception on Nov 10, 2008 8:31 PM

    yes i checked the server logs. it didn't give any messages.
    there is no information in the file 'native_stderr.log','SystemOut.log','SystemErr.log','native_stdout.log' files.
    In the production server, i noticed an error message in the SystemOut.log file, it gives the following message.
    +1/11/08 13:39:33:851 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:33:870 EST] 00000026 WebApp E [Servlet Error]-[Filter [Security Filter]: filter is unavailable.]: java.lang.NullPointerException+
    +     at java.lang.Throwable.<init>(Throwable.java:181)+
    +     at java.lang.Exception.<init>(Exception.java:29)+
    +     at java.lang.RuntimeException.<init>(RuntimeException.java:32)+
    +     at java.lang.NullPointerException.<init>(NullPointerException.java:36)+
    +     at org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:151)+
    +     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:173)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:106)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:75)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:720)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)+
    +     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:686)+
    +     at com.ibm.ws.wswebcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:70)+
    +     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.invokeFilters(DefaultExtensionProcessor.java:788)+
    +     at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:241)+
    +     at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:105)+
    +     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3287)+
    +     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:246)+
    +     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:615)+
    +     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1418)+
    +     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:110)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:398)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:298)+
    +     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:254)+
    +     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:179)+
    +     at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:532)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:583)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:973)+
    +     at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1063)+
    +     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)+
    +[11/11/08 13:39:34:037 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:34:103 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    +[11/11/08 13:39:34:183 EST] 00000026 SecurityFilte I org.apache.commons.logging.impl.Jdk14Logger info SecurityFilter.doFilter+
    The same application is working on tomcat. So when we move it from tomcat to WAS should we change any settings.
    if we are deploying the war file it should work in all the servers right?
    Following is my login page..
    <%@ page language="java" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <t:htmlTag value="P" >
    <h:outputText value="<FORM action='login.html' id='base_form' method='POST'>" escape="false" />
    <t:panelGrid columns="2" align="center" footerClass="loginFooter" headerClass="loginHeader" columnClasses="loginColumn1, loginColumn2" styleClass="loginFormPanel">
    <f:facet name="header">
    <t:outputText value="Please login with your I5DEV system name and password " styleClass="loginDescriptionA" />
    </f:facet>
    <t:outputText value="Username:" />
    <t:inputText value="" id="j_username" forceId="true" />
    <t:outputText value="Password:" />
    <t:inputSecret value="" id="j_password" forceId="true" />
    <f:facet name="footer">
    <t:panelGroup>
    <t:panelGrid style="width: 100%" rowClasses=",,loginSubmitRow">
    <t:outputText value="" />
    <t:outputText value="" />
    <f:verbatim>
    <INPUT value="Login" class="loginSubmit" type="submit" />
    </f:verbatim>
    </t:panelGrid>
    </t:panelGroup>
    </f:facet>
    </t:panelGrid>
    <t:panelGrid align="center">
    <t:outputText value="#{requestScope.error}" styleClass="errorMessage" style="display: inline;" rendered="#{!empty requestScope.error}"/>
    <h:message for="general_login" id="general_login" errorClass="errorMessage" style="display: inline;"/>
    </t:panelGrid>
    <h:outputText value="</FORM>" escape="false" />
    </t:htmlTag>
    <t:panelGrid align="center" columnClasses="warnMessage">
    <t:outputText value="NOTE: Providing an incorrect password increments the number of failed sign-on attempts for the user profile, and can result in the profile being disabled." styleClass="warningMessage" />
    </t:panelGrid>
    <f:verbatim>
    <SCRIPT language="javascript" type="text/javascript">
    window.onload = function() {
    document.getElementById("j_username").focus();
    </SCRIPT>
    </f:verbatim>
    Edited by: JSF_exception on Nov 11, 2008 11:17 AM
    Edited by: JSF_exception on Nov 11, 2008 11:22 AM

  • Datatable header display issue

    Hi,
    I need to display more then one component in the header of a datatable. Currently, we are able to display the table along with the header values using datatable. Next to the header we want to display 2 icons, one to denote sorted by descending and another to denote that
    table values are sorted by ascending. We tried some thing like as show below
    <h:dataTable styleClass="dataTable" value="#{list}" var="plist">
    <h:column>
    <f:facet name="header">
    <h:commandLink action="#{form.sortDescending}">
         <h:graphicImage value="/descending.jpg"/>
    </h:commandLink>
    <h:outputText value="HeaderDisplayName" ></h:outputText>
    <h:commandLink action="#{form.sortAscending}">
         <h:graphicImage value="/ascending.jpg"/>
    </h:commandLink>
    </f:facet>
    <h:outputText id="value" value="#{list.value}" />
    </h:column>
    when I execute the above code, I get to see only the descending image.
    The header name and ascending image are not visible. Could you please help me resolve this issue?
    Thank you,
    DargonHorse

    you should use one component inside a facet.. So, you can solve your problem by encapsulating all that command links and outputtext inside a jsppanel component.. like;
    <f:facet name="header">
    <jsppanel>
    <h:commandLink descending...>
    <h:outputText header >
    <h:commandLink ascending... >
    <jsppanel />
    </f:facet>

  • How Do I Store HTML in a String Variable and then display in JSF

    Hi,
    I generate some HTML code and store in a String varible (ie. String str = "<b>Hello World</b>";)
    I want to display the HTML in a JSF page. I tried using <h:outputText value="binding to the variable"/> and it prints out the entire string and not the rendered HTML i desire.
    I also enclosed the <h:outputText> within <h:verbatim> tags and that does not work either.
    I want to display some generated HTML without having to make a custom component.
    any help would be appreciated.
    Thanks,
    -d

    Simply use the escape attribute of h:outputText.
    Here is the code :
    <h:outputText value="binding to the variable"
                  escape="false"/>

  • URGENT: Requery data from database is not working...

    Using ADF 11.1.2.1.0
    when i commit page
    In the database I have a trigger that modify the column values.
    These new values aren't returned.
    In backing bean action method, after execute commit method:
    I try executeQuery = data isn´t update
    I try also executeQuery then clear cache from entity = data isn´t update
    I try also InvalidateCache from DCIteratorBinding then executeQuery = data isn´t update
    I try Rollback = data isn´t update
    After page is rendered with wrong data.. if
    execute rollback = data is update
    clearCache from entity = data is update
    executeQuery = data insn´t update
    invalidateCache from DCIteratorBinding = data isn´t update
    how can i get the modified values, this ADF work crazy ?
    regards.

    Here we go Timo
    I override isUseReturningClause and test application again:
    after commit page:
    All InputText, OutputText inside table = show updated data
    All inputListOfValues = dont update date.
    I convert inputListOfValues into outputText (same value attribute) = show updated  data.
    now problem seem to be in LOV?

  • Error when running applet in a adf page (but succeed in html)

    Hi all
    I have a movie player applet and want to put it in my web page.
    I tried with html and the applet work just fine. Here is my code:
    <applet code=SimplePlayerApplet width=320 height=300>
    <param name=file value="Unknown2.mov">
    </applet>
    However, when I put it in adf page, nothing is displayed:
    <jsp:plugin code="SimplePlayerApplet.class" codebase="." type="applet" align="middle" width="320" height="300" jreversion="1.6" >
    <jsp:params>
    <jsp:param name="file" value="Unknown2.mov" />
    </jsp:params>
    <jsp:fallback>
    <p>This plugin can't be loaded</p>
    </jsp:fallback>
    </jsp:plugin>
    The html page and the jspx page I put in the same directory structure.
    And link to html: http://127.0.0.1:7101/JMFStudio-Project1-context-root/htmlTest.html
    Link to the jspx: http://127.0.0.1:7101/JMFStudio-Project1-context-root/faces/untitled1.jspx
    So I tried changing codebase to "/faces" but nothing happens.
    Any suggestion? should I put codebase as "." ??
    Thanks a lot.

    I use the verbatim tag, or use the <jsp:plugin> as above with the code attribute specified without ".class" the applet is loaded ( I can tell as there is loading media panel of the applet displayed ). However the movie is never played.
    <f:verbatim>
    <applet code="SimplePlayerApplet" width="320" height="300">
    <param name="file" value="Unknown2.mov" />
    </applet>
    </f:verbatim>
    It seems that the movie file is not found??
    If I view source code of the page, I see the code generated as follow
    - <f:verbaim><applet>..... : <applet code="SimplePlayerApplet" width="320" height="300"><param name="file" value="2.mov"/></applet>
    -<jsp:plugin> : <EMBED type="application/x-java-applet;version=1.6" pluginspage="" code="SimplePlayerApplet" codebase="." align="middle" archive="" hspace="" name="" vspace="" title="" height="300" width="320" file="Unknown2.mov" >
    <NOEMBED><p>This plugin can't be loaded.</p></NOEMBED></EMBED>
    Is there any issue of loading file source with adf page? Previously I encountered the similar issue when trying to embed a plain movie file into a adf page. I used <embed> or <object> tag inside the verbatim tag. But there is nothing displayed in the browser. (I suspect the problem with the loading of file source as when I replace the movie source (which is stored locally) by a url to a video on the internet, it worked fine)
    Any suggestion? how do I debug this?
    Thanks a lot.
    Khue.

  • How to import javascript files in page template?

    Hi,
    How can I import .js files into page template, so I can access its methods in each page that is built using that template? I have tried with <script> inside <f:verbatim> but didn't have much success. When I run a page that has a template with .js file imported in that way, I always get "report not found" error, or something similar (report is the name of the javascript method in imported file).
    Pedja

    Pedja,
    The following works as well (assuming "/faces/" is part to the url):
    <script src="../scripts/utilScripts.js"
                     type="text/javascript"> </script>Although, I prefer the use of your solution.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Is there a way to control which processes should run or not ?

    I have a mac with Snow Leopard and was wondering if there was an app or some other way to control which processes run at startup and which dont etc ? I made a new user account and logged in and noticed that it ran like brand new. It loaded up faster

  • ITunes Sync and iCloud crap sync to iPhone 5s problems, sorry for the profanity

    This is an iTunes PC (slash) iPhone 5s sync question, or is my iPhone playing music from iCloud when i don't want it to? I don't use iCloud, i Sync my iPhone 5s to my PC. I backup to my PC, save my camera roll images to my PC, and i put music onto my

  • Master Data Upload

    Dear All, which date can i take to enter the opening balances into sap from  legacy system.my company wants to go for go live on 01.05.2008.can i take the date as on 01.04.2008 or 31.03.2008 into sap for entering the opening balances. Regards Sreenu.

  • Download of latest J2EE and J2SE

    I am new to the technology, tried downloading the software from the site, but due to slow connection I am not able to download the package, I also tried using download accelerator and sun download manager but all in vain. If someone can help me to fi

  • Using Pages templates

    When I open a template from one of "My Templates" (to prepare a new edition of a newsletter), how do I save it under a new title to the desktop?  The options 'Save a version', Duplicate or 'Export' do not give me the opportunity to write a new title