h:form problem with myfaces 1.1.4

Hi,
I have a jsf page whose body is wrapped by tag <h:form>. This seems to be necessary with myfaces 1.1.4.
My page contains:
1 - A "sign out" commandLink which simply logs out current logged user
2 - an inputText tag, bound to a validation method of a backinbg bean, that verifies if inserted text is a valid email or not.
When I insert an invalid email address in the input text and press "sign out", the "email address not valid" message it's showed, and signout performs only when I insert a valid address!
This is not good, as signiing out must not have any relation with form validation.
Can anyone help me ?
Pietro

A form is required around any input and command components (ones that need a HTML form rendered to the client). You can have multiple forms per page.
When the user does something that submits the page, only the surounding form is actually submitted. So in your example you want to use seperate forms for the logout link and the email input.
So for example:
<h:form id="logoutForm">
   ... logout link here ...
</h:form>
<h:form id="emailForm">
... email input stuff here ...
</h:form>

Similar Messages

  • Adobe forms - problem with the character "9"

    I have the problem with printing Adobe forms that were introduced with Russian country version.
    Funny enough I have no problems with russian characters. They all print all right.
    We have however the problem with character "9". On the preview of the pdf it looks ok. When I print it from PDF preview it prints ok. But when I process it for sap to the HP output device (device type HPLJ4) "9" gets replaced with "<".
    Has anyone experienced this problem?

    ok, you're right. But, my problem is a little bit different :
    I would like to replace the "\n" character (new line) by the 2 characters "\n".
    I test this source code :
    String tmp = "First line\nSecond line";
    tmp.replaceAll("\n", "\u005C\u005Cn");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\n");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\\\n");
    System.out.println(tmp);
    The 3 results are the same :
    First line
    Second line
    I never have "First line\nSecond line".
    Best regards.
    K96
    PS : The objective is to write the string in a SQL request.

  • Smart Form problem with address layout

    Hello everyone,
    I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
    We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
    We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
    In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
    For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
    For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
    Thanks a lot for your answers.
    Torsten

    Hi,
    Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
    Control Parameters
    See also the parameter documentation.
    ADDRESS_TYPE - Address type (from 3.0C)
    There are three types of address:
    Address type '1': addresses of firms or organizations; the address
    structure which is used in most SAP applications as 'Address'.
    Address type '2': address of a person
    Address type '3': work address, usually the address of a contact person
    in a company
    The default value SPACE for the address type is handled like type '1',
    and is needed for the upwards-compatibility of the function module.
    Which parameters are used for which address type is explained in the
    ADDRESS_TYPE parameter documentation.
    The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
    Keys for customer routines in the SAP enhancement SZAD0001 can be
    maintained via the transaction SM30 (extended table maintenance),table
    name T005A, in the customer name range, and be assigned in country customizing.
    The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
    NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
    The number of lines available for the address layout. If the number of
    lines is not sufficient for the complete layout of an address, then
    lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
    LINE_PRIORITY (ADRSWA_IN-PRIOR)
    If not equal to SPACE, this field overwrites the standard sequence in
    which the lines are suppressed if the available number of lines ANZZL is
    insufficient.
    The standard sequence is defined as follows:
    Type 1:   'AP43HRT7I86LC2BS5O'       (GB:  'APRT4327I86CBS5LO')
    Type 2:   'APHRT7I86LCBS5O'          (GB:  'PRT7I86CBS5LO')
    Type 3:   'APF43HR7I86TLC2BSND5O'    (GB:  'APRT4327I86CBS5LNDIO')
    where (if they occupy a line of their own):
    A = Title
    P = Mandatory empty line 1
    F = Function of the contact person in the company
    4 = Name 4
    3 = Name 3
    H = Different city
    R = Region
    T = District
    L = Name of country
    C = Postal code
    T = District
    7 = Street 3 (field STR_SUPPL2)
    I = Street 5 (field LOCATION)
    8 = Street 4 (field STR_SUPPL3)
    6 = Street 2 (field STR_SUPPL1)
    L = Country
    C = Postal code
    2 = Name 2
    B = PO Box
    S = Street or PO Box
    5 = c/o name
    N = Name (and title) of a person
    D = Department
    O = City
    Which of these attributes are available for maintenance can vary. All
    fields exist in Business Address Services.
    STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
    'X': Street has priority over PO Box (delivery address for example)
    ' ': PO Box has priority over street. This is the default value.
    regards,

  • Adobe Form - Problem with Cyrillic texts on zebra printers (ZPL)

    Hello,
    we have problems with an adobe form. We try to print this adobe form on a zebra printer with the device type "AZPL203". In this adobe form we have to print the material description in german and russian language.
    When we print out the adobe form on a normal printer (e.g. HP) everything is fine. But when we print the form on a zebra printer, the russian textwill not be printed on the label. In the print preview of the form, we will see the correct russian text.
    So can anybody help me?
    Did anybody print cyrillic text on a zebra printer?
    Thanks in advance.
    Marc.

    Good afternoon,
    First.. I apologize because I know this is the wrong thread.  But the folks in this thread apparently have the missing piece of info that I/we desperately need..  Could you please help me to understand what I'm missing, or at least point me to a forum with the answer? 
    We have a few tags that print to a Zebra Z105SL printer via Smartforms.  But due to recent design changes in the tags, and a desire to stay up with current technology, we/I would like to design the new tags in Adobe PDF-forms.  The design is not a problem, but we cannot get SAP and the Zebra printer to make nice and print anything.  For now, I've created a simple tag with a text field and a couple of bar codes on it, just to test and prove that the Zebra will print a PDF.  We are using PDF-forms for several of our business forms, so everything works, but the Zebra just won't print a PDF.  I don't know what I'm missing..  I know it's possible, but I can't figure out the "how" part.  Could you please let me know how you did it?
    Many thanks!
    Bill

  • Interactive form: problem with ValueHelp in table

    I have InteractiveForm element  in my WDA.
    The form has Table. One of the columns of the table is ValueHelp button from WebdynproNative library.
    The form executes ContainerFoundation_JS code on the ValueHelp click event just fine.
    The Search help gets called just fine.
    My problem is that the Table cell on the form doesn't get populated with the value selected on the search help.
    The Table is bound ro WDA context.
    I am afraid that Adobe gets confused with the row number to return the Help value.
    I have no problem with ValueHelp button on a single TextField (not in a table).
    But within the Table....
    Is ValueHelp working in a Table?
    Any help is greatly appreciated,
    Tatyana.

    Ralph,
    I followed you advice and created identical WDA's and forms in "ECC box" and "RPM box".
    To clarify, "ECC box" is:
    - component version = SAP ECC 6.0
    - SAP_BASIS package level 20
    "RPM box" is:
    - component version = SAP Netweaver 2004's
    - SAP_BASIS package level 17
    I didn't have problems in "ECC box".. Value help in table was working.
    There was some disconnection between WDA table and PDF table in  "RPM box".
    I noticed differences in schemas generated from WDA: "RPM box" schema was not same as "ECC box" schema.
    I believe that it is WDA issue giving me a problem, since I generated XML schemas using right  click on IneratctiveForm object in WDA.
    We defenetly need to update RPM system to a nigher package or try to find OSS note  to fix the issue.
    Points are awarded.
    Ralph, thank you very much for helping me to identify the problem!
    Tatyana.
    Otto,
    I thought you are SAP mentor...
    Somebody with exactly same name as yours sounds like a grampy person in many of  his replies...

  • Problem with MyFaces

    Hi guys! I`m working with myfaces libraries but i have the following problem:
    when i define a validator or phaseListener in faces-config.xml ... their not being invoked... Any suggesstions?

    Did you solve this issue? I'm struggling with the same issue for the past few days.

  • Smart form problem with multiple pages & table problem

    Hi experts,
    I have a problem with my smart form with multiple pages
    Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
    The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
    The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
    Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
    Regards,
    PJ

    I would suggest another approach to this problem.
    Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
    For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
    The table should flow as you would be using the Main window for this one.
    As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
    Hope this resolves your problem.
    Regards,
    Ancy
    Edited by: abapfreak on Oct 4, 2010 11:52 AM

  • PDF Forms: problem with keypad "decimal dot" when filling "number" fields

    Ok, here's my problem :
    I've created a form with fields. My client want to input in those fields amount of money. So I've created fields formatted with the "Number" category. 2 decimals, "1234,56" separator style, not currency symbol. So far, so good!
    When testing out the form, here's what happening :
    On the computer that I've created the form (iMac, Acrobat Pro and Reader, french canadian keyboard layout and system)
    Using the keypad, I can input numbers, with the "decimal point" from the keypad no problem.
    But when the client is trying to to the same on his PC (and the same is happening with my PC at home, Acrobat Pro 9.2, french canadian keyboard layout and system), I CAN'T use the "decimal point" keypad key to input numbers (like 43,25). It's just not working (error sound). I can however use the "dot" on the keyboard near the "M" key, but the client don't want to do that.
    Why is it working on the Mac, but not on the PC's!?
    So far, the only workaround that I've found is to set the "money" fields categories to "none" instead of "number.

    It is a little bit tricky, but you might have to add your own formatting handler. You would proceed as follows:
    1. Set the Format to "none".
    2. Add the following script to a Custom Keystroke event:
    if (event.change.length > 0 && event.willCommit == false) {event.change = event.change.replace(/\,/gim, ".") ;
    3. Add the following script to a Custom Format event:
    event.value = event.value.toString().replace(/\./gim, ",") ;
    And that should take care of the situation.
    Note that i have not tested the scripts, and there may be a chance for bugs.
    The advantage of this solution is that internally, you will have the correct format for a number, so that calculations will be correct.
    Hope this can help.
    Max Wyss.

  • Seriuos problem with myfaces

    I have a menu with item and subitem.
    If a click more that once in the same request on the links of menu, application starts to have an incorrect behaviour and everything can happen!
    Some menu items are lost, and if I go on application stop to answer to my requests and crash.
    I am using the last release of myfaces, so It shouldn't be so buggy!
    I am also using the option
    <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
    </context-param>and links have immediate = "true".
    I read that if I pass to client saving method maybe things goes well, but I don't want to have large client page in the browsers.
    I think they should advise me about these big JSF problems.
    Now I develped an application with JSF and maybe I will passo to Struts now, it is not so pretty but it works.
    Some other people found this problems?

    I also had the exact same problem. It happens as soon as you start using the "immediate" property. I tried using the latest JSF RI (1.1) and it also made problems. As soon as I switched to: CLIENT all the problems gone . . .
    I advise you to use CLIENT in the mean time. Then, in the future switch to SERVER.

  • Performance problems with MyFaces 1.1.3 in Weblogic 8.1SP3

    Hi,
              we developed a JSF based application using Apache <b>myFaces 1.1.3</b> and <b>Tomcat 5.0.27</b> as development container. The application works very well with excellent performance in tomcat. But when deployed to weblogic <b>8.1SP3</b> the performance gets really really poor. Just to give you an example: A pure navigation task between two JSP pages (<u>without any additional functionality</u>) takes <b>more than 6 seconds</b> - in tomcat this took a <b>split second</b>.
              Does anyone can figure out where this discrepancy may come from?
              Thanks for a hint ...
              Cheers,
              Chris

    Hi,
              see text below for some fragments of the BEA support answer to this problem:
              "Weblogic version 6.x and 7.x are not supporting JSF's. [...] The present Weblogic version 8.1 supports, but not all service pack. Only SP4 supports that too in the Weblogic WORKSHOP only, since this is Struts oriented Framework. [...] Weblogic 9.0 supports JSF(Java Server Faces)".
              So this problem has nothing to do with the implementation of myFaces ...
              Cheers,
              Chris

  • Problems with MyFaces on WebSphere 5.1.1

    Hello!
    I want to run MyFaces 1.1.1 on WebSphere 5.1.1 but have problems.
    The Application is not even starting.
    The MyFaces website sais that it runs with Websphere 5.1.2...
    Is it right that MyFaces does not run with WebSphere 5.1.1 or is there any
    trick?
    Thanks!

    Miikee_,
    When them put version 5.1.2 is because of WSAD not for WebSphere AppServer.
    Just for a test try to do what is in the link: http://wiki.apache.org/myfaces/Websphere_Installation.
    I really won�t apply this in my production environment, because of a possibility of contract in changing WebSphere default libraries.
    Rgds,
    HJR

  • PDF fillable form problem with sending email

    I created a fillable form on a PDF.  I used the "emailto:" setting correctly.  I have tested it out on numerous computers throughout my company and it has appeared in the email inbox of my supplied email with no problem.  However, when my manager went to test the "Submit by Email" button I created on the PDF fillable form, it does not sync up with the "Select Email Client" box.  It starts to do a 'send/receive" on her Microsoft Outlook.  When I go and check to see if it sent anything at all to the designated email inbox it sends like 15 forms (some of them open and some of them do not).  I assume that is just from her clicking a zillion times.  But, I am curious to figure out why the "sent/receive" button appears on the bottom right-hand corner of her screen?!
    Is there a security setting that she might not have clicked that everyone else does?  Also, the "Print Form" button I created right next to the "Submit by Email" box works perfectly.
    Any help is appreciated!

    In article <[email protected]>, Scarab wrote:
    > For example I`ve got [email protected], [email protected],
    > [email protected] accounts in my GW system. I`ve got [email protected]
    > account on non-GroupWise system. I`d like to have group alias to send
    > emails simulateusly to [email protected], [email protected],
    > [email protected] and [email protected] and group alias must be in
    > example.com domain. That`s why I configured [email protected] alias in
    > non-GroupWise system but it doesn`t work with GroupWise IMAP.
    >
    Now we are even more confused
    - system GW knows itself and answers for example.com
    - system other knows itself and answers for __________?
    You used example2.com in your above which is different from what you
    started out with. And now you are mentioning IMAP that you haven't
    mentioned at all before. Perhaps you are writing faster than you are
    thinking and missing getting the key data into here, and that makes it
    difficult for us to constructively help you.
    Andy Konecny
    Knowledge Partner (voluntary SysOp)
    KonecnyConsulting.ca in Toronto
    Andy's Profile: http://forums.novell.com/member.php?userid=75037

  • Adobe forms : problem with ZCI layout

    Hi,
    I am trying to run webdynpro application 'WDR_TEST_ADOBE'
    Navigation path in it,
    TestCases -> ZCI ->XML Shnittstelle -> Version 1 -> Editieren Form
    Its opens up view with 'X' icon in interactive form area. Also it opens  Adobe applciation. But the form is not visible.
    Any idea on why the form is not visible ?
    -Trupti

    Hi,
    just go through this thread...
    Re: Adobe interactive form
    and also go through this link
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/c480dff23c0f2ce10000000a1553f7/frameset.htm
    Regards,
    anand

  • Smart Forms : problem with Float Variable

    Hi  Expert,
       I have a probelm with Float variable. In my smart forms one fields of table QAMV contain value like 8.0000000000000000E+01.
    I have to remove the exponent and display value like 80.
    I have tried wa_qamv-sollwert(E10.4).. but it not working.
    Can U suggest me some solution.
    Regards
    Swati.
    Edited by: Swati Namdev on Apr 27, 2010 12:19 PM

    Hi,
    Please follow the steps.
    1. In your smart form create a variable w_val ,, type,, associate type -->  CHAR10
    2. Now write a code, jsut above your node where u wud like to get this value... For this Create -> Flow Logic -> Program Lines.. Now you have editor..
    3. In input parameters , put i_tab-QAMV.. and in output parameter put w_val... and Code like below
    CALL FUNCTION 'MD_CONV_QUANTITY_FLOAT_TO_PACK'
      EXPORTING
        iv_menge       = i_tab-qamv
      IMPORTING
        EV_MENGE       = w_val.
    4. Now grag and drop this w_val from global data field list...your this w_val will have the rounded value.. Pls try this and check..   It will work.
    Regards,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 27, 2010 9:28 AM

  • Form problem with less than (le)

    I have a form, when users push the next button there will be
    some input field checking before the user is realy going to the
    next page.
    Now I want to check if the zip code (Netherlands) is not less
    than 6 postions.
    In the begining I used this code:
    if (zipcode_txt.text eq "") {
    result_txt.text = "Your zipcode is empty";
    But now I want to check if there are really 6 positions in
    the input field. I have already been trying this code, but that's
    not working:
    if (zipcode_txt.text le 6) {
    result_txt.text = "Your zipcode is empty";
    Can someone help me out here

    I don't know why you want to use "eq" and "le" instead of
    "==" and "<" but you should at use:
    if (zipcode_txt.text.ength < 6) {
    result_txt.text = "Your zipcode is empty";
    }

Maybe you are looking for