Bug? using f:subview leads to visible string  com.sun.faces.saveStateFieldM

Hi,
when I use f:subview instead of f:view the string ' com.sun.faces.saveStateFieldMarker' shows up on my page.
Is this caused by something I do wrong? Is it a bug?
Sincerely,
Joost de Vries

I have a similar problem. I also figured out, that all static HTML must be enclosed by verbatim tags, but when I click a link in the following form (which is a included subview, in this case the footer.jsp page), I get a nullpointer - exception):
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="de.pixxi.resources" var="messages" />
<!-- NOTICE: all static HTML has to be endclosed by verbatim tags -->
<h:form>
<h:commandLink id="de" actionListener="#{methodsBean.chooseLocale}"><h:outputText value="#{messages.german}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink id="en" actionListener="#{methodsBean.chooseLocale}"><h:outputText value="#{messages.english}"/></h:commandLink>     
<f:verbatim> | </f:verbatim>
<h:commandLink action="register"><h:outputText value="#{messages.register_for_free}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="about"><h:outputText value="#{messages.about}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="invite"><h:outputText value="#{messages.invite}"/></h:commandLink>               
</h:form>
here the exception:
java.lang.NullPointerException
     javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:997)
     javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
     javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
     javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
     com.sun.faces.application.StateManagerImpl.restoreComponentState(StateManagerImpl.java:273)
     com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:186)
     com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:239)
     com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
Why? Is it not allowed to have a form withina subview??
Any help is really greatly appreciated. I am already working few weeks around this problem.
thanx!

Similar Messages

  • Why is there a string "com.sun.faces.saveStateFieldMarker" on my screen?

    Hi All,
    I am getting the above message i dont know what is causing that error no clue
    Here is my JSP code
    <h:form>
    <%
    //String usergroup=(String)session.getAttribute("usergroup");
    String usergroup="APPLE ADMIN";
    if(SidAccessvaribales.report_acs.containsKey(usergroup))     
    {%>     
    <h:commandLink value="Search" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <h:commandLink value="New SI" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <h:commandLink value="Work List" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <h:commandLink value="Reports" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <% }else{%>
    <h:commandLink value="Search" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <h:commandLink value="New SI" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <h:commandLink value="Worklist" styleClass="bluemore_s" action="#{backing_login.plantresults}"></h:commandLink><f:verbatim>    </f:verbatim>
    <%}
    String usergroup1="User Admin";
    if(usergroup1.equals("User Admin"))
    {%>
    <h:commandLink value="User Admin" styleClass="blueleft_rt" onmouseover="MM_showMenu(window.useradmin,255,95,null,'link2')" onmouseout="MM_startTimeout();"></h:commandLink>
    <%}%>
    </h:form>
    please anybody help..me..........
    Thanks.. in Advance....
    Susy..

    http://www.jsf-faq.com/faqs/faces-misc.html

  • Use of com.sun.faces.enableHighAvailability

    com.sun.faces.enableHighAvailability did some research on this found "serialized representation of the view is stored on the server" Question is where on server, in a file, in a memory, in a database? and If i have to acces the searlized object how do i access it.

    Hello,
    like Cay, I would need others methods to be implemented, especially map.containsValue(Object value).
    Thanks in advance,
    Stephane Bastian
    http://www.otrix.com

  • BUG in com.sun.faces.config.ManagedBeanFactory

    While browsing the JSF 1.0 source code, IntelliJ found a "silly assignment" in com.sun.faces.config.ManagedBeanFactory:
        public void setManagedBeanBean(ManagedBeanBean newBean) {
            synchronized (this) {
                //ManagedBeanBean clone method implemented to return deep copy
                this.managedBean = managedBean; // (ManagedBeanBean) newBean.clone();
                //set the scope
                scope = managedBean.getManagedBeanScope();
        }The problem is that the line
    this.managedBean = managedBean;is assigning a value to itself, whereas of course it should be:
    this.managedBean = newBean;Geoff Rimmer

    This has been fixed and will be availabe in the next release.

  • How do I use f:subview with referance class attributes

    Hi all,
    Any pointer on the below problem will be greatly appretiated....
    I have a "Address" class used in "Customer" for billing and shipping address and "Customer" Class is placed in faces-config.xml as named with "CustomeBean".
    public class Address {
         private String street;
         private String city;
         private String state;
         private String zip;
    // Empty construtor + all getter and setter methods
    public class Customer{
    private String firstName;
    private String lastName;
    private Address billingAddress;
    private Address shippingAddress;
    //Empty Constructor and all getter and setter methods
    public void add(Customer customer){
    // Logic to make this as persitance
    customer.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head><title>Login</title></head>
    <body>
    <f:view>
    <h:form id="customerForm">
    First Name: <h:inputText id="firatName" value="#{CustomerBean.firstName}" >
    Last Name: <h:inputText id="lastName" value="#{CustomerBean.lastName}" >
    Billing Address
    Street: <h:inputText id="bstreet" value="#{CustomerBean.billingAddress.street}" >
    City : <h:inputText id="bcity" value="#{CustomerBean.billingAddress.city}" >
    State: <h:inputText id="bstate" value="#{CustomerBean.billingAddress.state}" >
    Zip: <h:inputText id="bzip" value="#{CustomerBean.billingAddress.zip}" >
    Shipping Address
    Street: <h:inputText id="sstreet" value="#{CustomerBean.shippingAddress.street}" >
    City: <h:inputText id="scity" value="#{CustomerBean.shippingAddress.city}" >
    State: <h:inputText id="sstate" value="#{CustomerBean.shippingAddress.state}" >
    Zip: <h:inputText id="szip" value="#{CustomerBean.shippingAddress.zip}" >
    </h:form>
    </f:view>
    </body>
    </html>
    Now, what I want to do is "address" part as re-usable with <f:subview> by makeing it in seperate page and make it include in customer.jsp.
    customer.jsp
    <f:view>
    <f:subview id = "bAddress">
    <jsp:include page="address.jsp" />.
    </f:subview>
    <f:subview id = "sAddress">
    <jsp:include page="address.jsp" />
    </f:subview>
    </f:view>
    How do I make refer the CustomerBean.billingAddress.* and CustomerBean.shippingAddress.* values when I use <f:subview> ?
    How to make to access the values of address in managedbean(Custoer.java) in add(customer) method?
    Any help ...
    Thanks
    pvkr

    Martin,
    I'm still bothered by "CustomerBean.shippingAddress".
    Please post a snip of the management of this object
    from your faces-config.xml. You actually name your
    object instance with the first letter captialized
    like your class?
    Sorry for breaking coding convestion ...:-)
    faces-config.xml
    <faces-config>
    <managed-bean>
    <description>Customer Bean Holder</description>
    <managed-bean-name>CustomerBean</managed-bean-name>
    <managed-bean-class>com.my.test2.Customer</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    I'm still not sure what you are trying to achieve.
    <f:subview> is mostly like an import of a frag of
    f jsf tags. Does not have runtime storage capability
    but is a way to repeat a frag different places. It
    does not control the workings, serial state of managed
    beans.
    Post more snips...All i am trying to achive is , address(Address.java) part is gona simillar in most of the places in application and it is gona just like an attribute to all other classes like customer, insurance, company etc ...SO when I do create data entry screens for customer, insurance, company etc .. i need to just include address part as a snippet with <f:subvirew> and wire that seamlessly to customerBean, insuranceBean, companyBean etc...
    So in my previous posting what i mention customerBean.billingAddress.*(street,city,state,zip) and customerBean.shippingAddress.* is directly inside customer.jsp
    But when you try to re-use address part as address.jsp, address.jsp knows only some object simillar to Address class. And the address attributes are unchanges extect the prefix of those attributes in valuebinding is changing based who is the parent object of that address attributes.
    So in address.jsp in the place of "???" , i need to find a way to pass the "parentObject.addressObject" (ex: customerBean.shippingAddress , customer.billing Address , insurance.mailingAddress etc ...) so that in process it should look like "parentObject.addressObject.street" , "parentObject.addressObject.city" etc ...
    Street: <h:inputText id="bstreet" value="#{???.street}" >
    City : <h:inputText id="bcity" value="#{???.city}" >
    State: <h:inputText id="bstate" value="#{???.state}" >
    Zip: <h:inputText id="bzip" value="#{???.zip}" >
    Any clue ....

  • Remove leading zeros from string

    I am working on a report and I am having a little issue with the output.
    I have several dollar amount fields that I need to format with only the decimal place. The amount fields are coming in as strings between 10-16 characters.
    I could not find a way to use the currency formatter so I used substrings to break it apart and put it back together in the format I need. However I am now running into an issue with leading zeros. I can't used ReplaceAll as there is a possibility of having a 0 in the amount field.
    Here is what I have done for the substrings:
    int intLength = strField.length();
    intDollar = intLength - 2;          
    strDollar = strField.substring(1, intDollar);
    strCent = strField.substring(intDollar, intLength);
    System.out.println(strDollar + "." + strCent);The original string: 0000000037049469
    My output now: 00000000370494.69
    Desired output: 37049469
    Any suggestions on how to remove the leading zeros?
    Edited by: xxwhocaresxx on Jun 10, 2009 12:11 PM

    804350 wrote:
    Just wanted to comment that I solved the issue differently by casting the string value to an integer and back. Don't know if it's bad solution performancewiseNever, ever, ever, ever, ever, ever, ever worry about performance. At least not until you're much further along the road; and even then not until you've proved that it's inadequate.
    but it's quite compact and readable and did the job of eliminating leading zeros.I suspect you'll also find that it has the great advantage of providing you with a dollar (or cent) value that you can use elsewhere in your program the way it was intended.
    example:
    String noZeros = String.valueOf(Integer.parseInt(stringWithZeros));Or possibly even more usefully:
    int cents = Integer.parseInt(stringWithZeros);
    String noZeros = String.valueOf(cents);I'd also suggest looking up the NumberFormat and DecimalFormat classes, and PrintStream.printf(); all very useful for what you're trying to do.
    Winston

  • How to remove leading zeroes of string

    Hello All,
    I have a scenario where Partnumber string type shows 00000000012345 format, I want to remove leading zeroe and displ only 12345 .
    How to do it,
    Suggest

    Hi Pradeep,
      Please go through this wiki. [https://www.sdn.sap.com/irj/scn/wiki?path=/display/java/remove%252bleading%252band%252btrailing%252bzeros%252bfrom%252ba%252bstring]
    It explains how to remove zeros from strings.
    extract from the wiki. This is an efficient way.
    public java.lang.String removeLeadingZeros( java.lang.String str ){
         if (str == null){
               return null;
          char[] chars = str.toCharArray();
          int index = 0;
          for (; index < str.length();index++){
               if (chars[index] != '0'){
                    break;
         return (index == 0) ? str :str.substring(index);
    If you want to show this string in a table instead of the ones with zeros you can create a calculated attribute  of type string on the same node and in the getter method read the string with zeros using getAttributeValue() api and pass the string to the above method and return that string value.
    You can also have another approach if you will only have numbers in your string. Have a calculated attribute of type int. In the getter method read the String using getAttributeValue() api and then convert it to an int using Integer.parseInt(String) and return the int value.
    Regards,
    Sanyev

  • [svn] 3246: Fix fasttrack bug SDK-16910 - Simple List populated with strings throws RTE .

    Revision: 3246
    Author: [email protected]
    Date: 2008-09-17 15:31:25 -0700 (Wed, 17 Sep 2008)
    Log Message:
    Fix fasttrack bug SDK-16910 - Simple List populated with strings throws RTE. This is fallout from the Group/DataGroup split. DefaultItemRenderer now uses a TextBox instead of a Group to show the list data.
    QE: Any List tests that depended on the default item renderer to support anything other than text must be updated.
    Bugs: SDK-16910
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16910
    http://bugs.adobe.com/jira/browse/SDK-16910
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/DefaultItemRenderer.mxml

    BTW, I do not experience the bug you had mentioned at
    http://www.cs.rit.edu/~cxb0025/flex/TreeControlBugs.html
    Can submit a video of my actions recorded

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • Leading in Pages. I've just discovered that different typefaces seem to have different auto-leading in Pages. I am used to default leading being 120% of point size, but it seems this is not so any more. The same text in 10pt Times New Roman, which I would

    I've just discovered that different typefaces seem to have different auto-leading in Pages. I am used to default leading being 120% of point size (or some consistent rule), but it seems this is not so any more. The same text in 10pt Times New Roman, which I would expect to line up with 10pt Palatino, for example, doesn't. I've tried using the inspector, at least to get both faces to behave the same for given settings, but I haven't been able to. How much control does Pages allow for this type of settings, and are there any hidden secrets as to how to do so? Many thanks
    Message was edited by: Just me then

    If you set the line spacing in the inspector to Exactly and 12 points for 10 point type, it will work the way you want.

  • Cp4 AS3 - using Javascript to generate a text string

    I'm a complete Javascript beginner, so please forgive me if this is a stupid question!
    I need to generate a pseudo random text string. I'm using the unpatched version of Cp4, AS3, Internet Explorer 7
    I've had a look at Captivate.Dev.com and the w3schools site to try to understand how to pass variables & basic javascript, and this is what I've come up with:
    var objCP = document.Captivate;
    function GenerateCode(){
    var rngen = new Array(8);
    var tgits = new Array(8);
    var cdrtn="";
    var lpdx=0;
    var mulier=1;
    for (lpdx=0;lpdx<=5;lpdx++){
    rngen[lpdx]=(Math.floor(Math.random()*9)+1);
    mlier=mulier*(rngen[lpdx]);
    tgits[lpdx]=rngen[lpdx]+"";
    cdrtn=cdrtn+tgits[lpdx];
    rngen[6]=(mlier%17)%10;
    rngen[7]=(mlier%13)%10;
    for (lpdx=6;lpdx<=7;lpdx++)
    tgits[lpdx]=rngen[lpdx]+"";
    cdrtn=cdrtn+tgits[lpdx];
    objCP.cpEISetValue('MyJavascriptVariable', cdrtn);
    GenerateCode();
    I've created a user variable called MyJavascriptVariable , put the code above in the On Slide Enter, Execute Javascript window on the first slide, and on the second a simple caption box showing the variable contents.
    However, when I press F12 I get an orange playbar at the top of the window, and in the middle the preloader and the captionbox (without the return value) flickering. i.e. classic sign of wrong AS version.
    If I change to AS2 the movie progresses ok, but the value the caption reports back for MyJavascriptVariable is blank.
    I know my core code works correctly - if I use the w3school's tryit editor with the code after the function declaration up to the closing curly before the objcCP line, with an addeded document.write to show the variable it works fine.
    It's clearly something to do with the way I'm declaring/passing the function or the way Cp runs the javascript. But what?
    Any help greatfully appreciated!
    Thanks

    Hi Jon,
    You are right... it works great on the W3Schools site.  Although in Cp, you ran into quite an issue using the modulus operater (%).  Looks like Cp needs the encoded version of this operator which is (%25).  Also, if you're using Cp4, then when you go to set the caption, you want to use objCP.cpSetValue();  Cp5 uses cpEISetValue.  I also try to use single quotes when working with strings.
    Here's the updated code:
    var objCP = document.Captivate;
    function GenerateCode() {
    var rngen = new Array(8);
    var tgits = new Array(8);
    var cdrtn='';
    var lpdx = 0;
    var mulier=1;
        for (lpdx=0; lpdx<=5; lpdx++){
            rngen[lpdx]=(Math.floor(Math.random()*9)+1);
            mlier=mulier*(rngen[lpdx]);
            tgits[lpdx]=rngen[lpdx]+'';
            cdrtn=cdrtn+tgits[lpdx];
    rngen[6]=(mlier %25 17) %25 10;
    rngen[7]=(mlier %25 13) %25 10;
       for (lpdx=6; lpdx<=7; lpdx++){
            tgits[lpdx]=rngen[lpdx]+'';
            cdrtn=cdrtn+tgits[lpdx];
    objCP.cpSetValue('MyJavascriptVariable', cdrtn);
    GenerateCode();
    This looks like some really crazy math.
    Let me know if this helps.
    Jim Leichliter

  • Use REGEXP_INSTR to find a text string with space(s) in it

    I am trying to use REGEXP_INSTR to find a text string with space(s) in it.
    (This is in a Function.)
    Let's say ParmIn_Look_For has a value of 'black dog'. I want to see if
    ParmIn_Search_This_String has 'black dog' anywhere in it. But it gives an error
    Syntax error on command line.
    If ParmIn_Look_For is just 'black' or 'dog' it works fine.
    Is there some way to put single quotes/double quotes around ParmIn_Look_For so this will
    look for 'black dog' ??
    Also: If I want to use the option of ignoring white space, is the last parm
    'ix' 'i,x' or what ?
    SELECT
    REGEXP_INSTR(ParmIn_Search_This_String,
    '('||ParmIn_Look_For||')+', 1, 1, 0, 'i')
    INTO Position_Found_In_String
    FROM DUAL;
    Thanks, Wayne

    Maybe something like this ?
    test@ORA10G>
    test@ORA10G> with t as (
      2    select 1 as num, 'this sentence has a black dog in it' as str from dual union all
      3    select 2, 'this sentence does not' from dual union all
      4    select 3, 'yet another dog that is black' from dual union all
      5    select 4, 'yet another black dog' from dual union all
      6    select 5, 'black dogs everywhere...' from dual union all
      7    select 6, 'black dog running after me...' from dual union all
      8    select 7, 'i saw a black dog' from dual)
      9  --
    10  select num, str
    11  from t
    12  where regexp_like(str,'black dog');
           NUM STR
             1 this sentence has a black dog in it
             4 yet another black dog
             5 black dogs everywhere...
             6 black dog running after me...
             7 i saw a black dog
    5 rows selected.
    test@ORA10G>
    test@ORA10G>pratz
    Also, 'x' ignores whitespace characters. Link to doc:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions007.htm#i1048942
    Message was edited by:
    pratz

  • Error using LISTAGG function to aggregate the strings.

    HI
    I am using LISTAGG function to aggregate the strings but throws a error ORA - 19011
    The output of the aggregated function exeeds the varchar limit.
    I dont know how to change it to a LOB.
    Can you please help me.
    This is the code.
    I have used both the functions.
    RTRIM(XMLAGG(XMLELEMENT(e,FDCT.USER_NAME || ' ')).extract('//text()'), ' ')
    or
    LISTAGG(FDCT.USER_NAME, ',') WITHIN GROUP (ORDER BY FDCT.USER_NAME)
    Edited by: 787819 on Jun 22, 2011 1:46 PM

    If a function returns a VARCHAR2, then it will error (or sometimes truncate depending on function) when reaching the limit of the datatype.
    Perhaps an alternative would be to write your own user-defined aggregate function that works with a CLOB.
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/aggr_functions.htm#ADDCI2120
    A comma-separated string over 32767 in length sounds of dubious value to me anyway...

  • I am tryin to access old macbookpro harddisk on macbook air,when i connect it via usb i see the folders,but i dont see any files e.g. photos,movies,docs are not there,its shows that 220gb is used,but no data is visible...can u pls adv how to access data?

    i am tryin to access old macbookpro harddisk on macbook air,when i connect it via usb i see the folders,but i dont see any files e.g. my saved photos,movies,docs are not there,its shows that 220gb is used,but no data is visible...all folder are empty.......can someone pls adv how to access data?

    i am tryin to access old macbookpro harddisk on macbook air,when i connect it via usb i see the folders,but i dont see any files e.g. my saved photos,movies,docs are not there,its shows that 220gb is used,but no data is visible...all folder are empty.......can someone pls adv how to access data?

  • (BUG): using less than operator in javascript

    I am using Jdeveloper 11.1.1.5.0, ADF BC, ADF Faces.
    I am trying to add some java script validation in my page, just want to check if the length of an input field is less than three or not.
    here is the function I used
    function filterForNumbers(evt){
    var inputField = evt.getSource();
    var oldValue  = inputField.getValue();
    var myField   = inputField.findComponent("it2");
    var len = oldValue.length;
    if (len < 3)      
       alert ("the length is <  3" );
       myField.setValue("");
    }when I use the less then operator (<) in this part
    if (len < 3)ADF frame work considers the < as an open tag and when I run the page, it shows this error message in the log
    Error(16,16):  Illegal token.
    and the page does not run.
    workaround*
    using this syntax instead
    if (3 > len)

    Thank again Sireesha,
    I tried your suggestion with and without space. What I get is that the there is no thing on the page (only blank page is shown).
    here is my page source
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" partialTriggers="it2">
          <af:resource type="javascript">
           function filterForNumbers(evt){
           var inputField = evt.getSource();
           var oldValue = inputField.getValue();
           var myField = inputField.findComponent("it2");
           var len = oldValue.length;
           if (len &lt 3)      
             alert ("the length is <  3" );
             myField.setValue("");
          </af:resource>
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputText value="#{bindings.Id.inputValue}"
                            label="#{bindings.Id.hints.label}"
                            required="#{bindings.Id.hints.mandatory}"
                            columns="#{bindings.Id.hints.displayWidth}"
                            maximumLength="#{bindings.Id.hints.precision}"
                            shortDesc="#{bindings.Id.hints.tooltip}" id="it1">
                <f:validator binding="#{bindings.Id.validator}"/>
                <af:convertNumber groupingUsed="false"
                                  pattern="#{bindings.Id.format}"/>
              </af:inputText>
              <af:inputText value="#{bindings.Description.inputValue}"
                            label="#{bindings.Description.hints.label}"
                            columns="#{bindings.Description.hints.displayWidth}"
                            maximumLength="#{bindings.Description.hints.precision}"
                            shortDesc="#{bindings.Description.hints.tooltip}"
                            id="it2" required="true">
                <f:validator binding="#{bindings.Description.validator}"/>
                <af:clientListener method="filterForNumbers" type="valueChange"/>
              </af:inputText>
              <af:inputText value="#{bindings.Flag.inputValue}"
                            label="#{bindings.Flag.hints.label}"
                            required="#{bindings.Flag.hints.mandatory}"
                            columns="#{bindings.Flag.hints.displayWidth}"
                            maximumLength="#{bindings.Flag.hints.precision}"
                            shortDesc="#{bindings.Flag.hints.tooltip}" id="it3">
                <f:validator binding="#{bindings.Flag.validator}"/>
              </af:inputText>
              <f:facet name="footer">
                <af:panelGroupLayout layout="vertical" id="pgl2">
                  <af:panelGroupLayout layout="horizontal" id="pgl1">
                    <af:commandButton actionListener="#{bindings.First.execute}"
                                      text="First"
                                      disabled="#{!bindings.First.enabled}"
                                      partialSubmit="true" id="cb3"/>
                    <af:commandButton actionListener="#{bindings.Previous.execute}"
                                      text="Previous"
                                      disabled="#{!bindings.Previous.enabled}"
                                      partialSubmit="true" id="cb4"/>
                    <af:commandButton actionListener="#{bindings.Next.execute}"
                                      text="Next"
                                      disabled="#{!bindings.Next.enabled}"
                                      partialSubmit="true" id="cb5"/>
                    <af:commandButton actionListener="#{bindings.Last.execute}"
                                      text="Last"
                                      disabled="#{!bindings.Last.enabled}"
                                      partialSubmit="true" id="cb1"/>
                  </af:panelGroupLayout>
                  <af:commandButton text="Submit" id="cb2"/>
                </af:panelGroupLayout>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

Maybe you are looking for

  • Mac OS X doesn't boot with iPod plugged in

    Hi there, i have a little problem with my ipod shuffle. When start my iMac and my iPod is plugged in, then is doesn't start or extremley slow. As soon as i plug it out, it starts immeditely or continues. Is there something i can do? or is it just aga

  • Internet Explorer in Java Application

    Hello, I would like to embed MS Internet Explorer in java application. What I am trying to do is to add voice-interface where user can access menu items, toolbar buttons etc by using speech, instead of clicking by mouse or keyboard. I need to have In

  • Location of security xml files for groups

    We are having some issues migrating security(only) from one sysmte to another in EPM 11.1.2 for a planning application. Is there any other way to migrate security? Where are the xmls for each group's security stored?

  • Color overlay on opaque pixels of transparant image

    Hi everyone! I'm having a little problem here... I have loaded a gif image (a bufferedimage) in my program and I would like to have a color overlay on it. However, the overlay should only reside on the opaque pixels and not on the transparant parts o

  • Windows 8.1 Photoshop CS5.1 D800 NEF Files won't open?

    I have recently installed windows 8.1 and as a result I had to reinstall Photoshop CS5.1. After doing so I find that Photoshop will not open my Nikon D800 NEF files. I have downloaded and installed the raw file updates from both Windows and Nikon but