Problem with validating text field

Hi All
i want to validate the text fields present in jsp page for a sturts application..
i have a jsp page for input then struts form for validation as struts machinism provides and if error occurs it add error to error object.
i want to display error message in text field when it occurs..
plz help me to do it
thanx in advacne

I'm not getting your requirement clearly, by my understanding ... you need to retrieve database whenever a <select> field trigger "onchange" - am I right?
If that is your requirement, it depends on what kind of solution you are looking into?
1. AJAX+Servlet (dojo/jMaki/write your own)
2. Java Server Faces (MyFaces/JSF)
3. write yourself a custom TAG (JSTL) to do the purpose (AJAX+Servlet/purely Servlet)
4. purely JSTL
5 purely Servlet
(please "Google" them by appending "<select> <option>"/ "populate combobox")
Personally I would recommend 1st or 3rd approach, even 2nd approach (MyFaces/JSF) is cool, but if your whole application is not written in JSF, no point to mixed the solutions.
If you want to try Ajax+TAG approach, refer following:
http://ajaxtags.sourceforge.net/
If you wish to use MyFaces approach, please refer following:
http://avatar21.superihost.com/index.php?entry=entry051020-163838
A forth/fifth approach will be much browser-portable, but the amount of coding will be more.
Regards,
Avatar Ng
Message was edited by:
Avatar_Ng
Message was edited by:
Avatar_Ng

Similar Messages

  • Problem with a text field check

    When there is nothing placed inside the text field it will return a message dialog box saying that there is nothing located inside the text field. However if there is something inside the text field it will perform a
    doSpellingSuggestion and write the results to a .txt file.
    This works as the search term can be found within the .txt file.
    However when I try to display a message dialog box to display the contents of the .txt file that contains the spelling suggestion it will come out with an error from the catch statement
    catch(Exception spelling_error)
    JOptionPane.showMessageDialog(null , "Spelling error = " +
    spelling_error.getMessage());
    It keeps showing an error message box saying "Spelling error = null"
    It wont go past this line and thats the problem that i have. I tryed putting
    I tried substituting this in place of the error message above but it wouldnt go down to it
    //Display a message with a spelling suggestion
    JOptionPane.showMessageDialog(null , "Did you mean to spell " +
    search_term + " like this " + buffer.toString());
    but this didnt work
    class spellcheck_button_listener implements ActionListener
    public void actionPerformed(ActionEvent spelling_check)
    try
    String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
    String wsdl = "http://api.google.com/GoogleSearch.wsdl";
    String url = "http://api.google.com/search/beta2";
    String ns1 = "urn:GoogleSearch";
    String ns2 = "urn:GoogleSearch";
    if((search_field.getText() == null) || (search_field.getText().equals("")))
    JOptionPane.showMessageDialog(null , "No search term entered in text field"
    + " please enter another search term");
    else
    search_term = search_field.getText();
    //Create the connection
    SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapConnFactory.createConnection();
    //Create the actual message
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage message = messageFactory.createMessage();
    //Create objects for the message parts
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody bodyName = envelope.getBody();
    SOAPElement bodyElement;
    //Populate the message by adding SOAP body elements to form a semantically meaning
    //SOAP request
    bodyElement = bodyName.addBodyElement(envelope.createName("doSpellingSuggestion" , "ns1" , ns1));
    //Adding content to the message
    //addTextNode used when entering strings , addAttribute used for integers
    bodyElement.addChildElement(envelope.createName("key")).addTextNode(myKey);
    bodyElement.addChildElement(envelope.createName("q")).addTextNode(search_term);
    //Send the message and get a reply
    URLEndpoint endpoint = new URLEndpoint(url);
    //Send the message
    SOAPMessage reply = connection.call(message , endpoint);
    //Getting the content of a Message
    SOAPPart sp = reply.getSOAPPart();
    SOAPEnvelope env = sp.getEnvelope();
    SOAPBody replyBody = reply.getSOAPPart().getEnvelope().getBody();
    TransformerFactory transformerFactory = TransformerFactory.newInstance();
    Source styleSheet = new StreamSource(translate_file);
    Transformer transformer = transformerFactory.newTransformer(styleSheet);
    Source sourceContent = reply.getSOAPPart().getContent();
    StreamResult result = new StreamResult(spell_check_file);
    transformer.transform(sourceContent, result);
    java.util.Iterator iterator = replyBody.getChildElements();
    while (iterator.hasNext())
    bodyElement = (SOAPBodyElement)iterator.next();
    String url_results = bodyElement.getValue();
    //Close the connection
    connection.close();
    FileReader inputFile = new FileReader(spell_check_file);
    buffer = new StringBuffer();
    // write new list to standard out
    BufferedReader in = new BufferedReader(inputFile);
    String input;
    while ((input = in.readLine()) != null)
    if(!input.startsWith("<?xml version"))
    // Skip XML header
    buffer.append(input + "\n");
    in.close();
    //Display a message with a spelling suggestion
    JOptionPane.showMessageDialog(null , "Did you mean to spell " + search_term +
    " like this " + buffer.toString());
    } //End of else statement
    } //End of try method for search action performed
    catch(Exception spelling_error)
    JOptionPane.showMessageDialog(null , "Spelling error = " +
    spelling_error.getMessage());
    } //End of method actionPerformed for search button
    } //End of class spellcheck_button_listener implements ActionListener

    I don't use SOAP, so I can't test your code.
    If you really want people to read your code then it should be [url http://forum.java.sun.com/features.jsp#Formatting]formatted so it is readable with correct indentation of lines and highlighting of the source code.

  • Problem with Update Text fields in Infoset

    Hi experts,
    Here i would like to rephrase the question. Normaly while working with Infosets, when press "update text fields" button, those fields having text is updated. But one of my field is not updated. I need some help from you for that.
    One more question i've that my field is having check table so i would like to know how exactly the text field is updated.
    scenario.
    Customized IT9320 has field prt_pos added. This field is having check table T528B. But i want text field to be attached is IT1000-STEXT.
    How this can be done, because i suspect that just using check table field IT1000-STEXT is not attached to IT9320-prt_pos.
    Please help. I'm really got stuck here.
    Thanks a lot,
    Toral.
    Hi,
    I'm working on customised Infotype. I need to add one new customised field ie Present Position. This field has number as well as text associated with it. There is a check table attached with this field so that text can be displayed alongwith number.
    I need this field in SAP/Adhoc query. But when i go to SQ02 this fields shows only value. Text is disabled for this field. I'm not sure why is it so.
    I looked into other infotype which as one field using same data element, and that field shows both value as well as text. Please help me to rectify this issue for present position field.
    Thanks,
    Toral.
    Edited by: Toral Sheth on Jul 4, 2008 2:01 PM

    You would be much better off with one multi-line form field.
    There are many problems with trying to determine when one is at the end of the display field with text entry.

  • Problem with long text field.

    Hi all,
    I have a problem when I try to concatenate two fields.
    It seems the new field only is 254 characters long?
    Here is my syntax:
    data: w_long_text(1000).
    clear w_long_text.
        loop at iline.
          concatenate w_long_text iline-tdline into w_long_text separated by space.
        endloop.
    I'm sure the text is longer then 254 becuase I can see the text in an Activity in the Sap Crm system.
    Best Regards
    Frode

    Hi thomas
    wat i would suggest you is better take an internal table with long_text(255) field .
    data : begin of it_text occurs 0,
                long_text(255),
              end of it_text.
    clear : w_long_text,it_text.
    loop at iline.
    concatenate w_long_text iline-tdline into w_long_text separated by space.
    <b>it_text-long_text = iline-tdline.</b>
    append it_text.
    clear it_text.
    endloop.
    and when displaying the text keep that in a loop and print it.
    This way u can display the whole text irrespective of the char length.
    Reward points if helpful
    Regards
    Zarina

  • Unique problem with validation/ making field required

    I have searched the forums trying to find a way to make a field required based on the users selection of a check box, or something else. So far, everything says use nullTest = "error".
    I have tried to do this and get the following results: The red highlighting, which shows up around my other required fields, will not show up unless you click in the text box and then out of it. Weird! Then, when pressing the submit button, it will not actually give you an error message if there is nothing in that text box, as it will if there is nothing in the fields that I originally make required.
    Any thoughts, or fixes would be greatly appreciated.
    Thanks in advance for any help.

    We do the same thing here. We haven't had any issues with the submit not validating the field correctly though. Our only issue was the red highlighting. To get around this, we would call resetdata on the field. resetData clears out the value of the field so you need to store it off and then reset it.
    if (form1.BP1.ChangeActivities.Pos1.Department==1) then $.validate.nullTest = "error" else $.validate.nullTest = "disabled"
    endif
    $=$
    var x = $
    xfa.host.resetData("form1.BP1.ChangeParticulars.Pos1To.DeptNo")
    $ = x

  • Problem with a text field

    Hi,
    I want to load a string of characters to a text field of a table. I'm using SQL Loader.
    I've tried to declare the field in several types: varchar2(4000), clob, raw, etc, but when I run sql loader to load the text I get the same error: The data file exceeds maximum lenght. I've tried with a shorter text and it works.
    My question is, why I can't load long characters in that field?
    Thanks in advance.
    Regards.

    Although you have made your table column up to size 4000, SQLLoader have not got a clue about that. You still need to tell SQLLoader that the text coming in is more than the default 255 in your control file. Strange isn't it?
    Here is my table named testlog. Note that I changed the column names LOG, DAY, TIME and TYPE because they are reserved Words
    SQL> CREATE TABLE TESTLOG
      2  (LOG_1 CHAR(3) NOT NULL,
      3  DAY_1 DATE,
      4  TIME_1 CHAR(8),
      5  SOURCE VARCHAR2(100),
      6  EVENTID NUMBER(22),
      7  TYPE_1 VARCHAR2(64),
      8  CATEGORY VARCHAR2(64),
      9  USER0 VARCHAR2(64),
    10  COMPUTER VARCHAR2(64),
    11  MESSAGE VARCHAR2(4000) NOT NULL)
    12  /
    Table created.
    SQL> desc testlog
    Name                                                                                                      Null?    Type
    LOG_1                                                                                                     NOT NULL CHAR(3)
    DAY_1                                                                                                              DATE
    TIME_1                                                                                                             CHAR(8)
    SOURCE                                                                                                             VARCHAR2(100)
    EVENTID                                                                                                            NUMBER(22)
    TYPE_1                                                                                                             VARCHAR2(64)
    CATEGORY                                                                                                           VARCHAR2(64)
    USER0                                                                                                              VARCHAR2(64)
    COMPUTER                                                                                                           VARCHAR2(64)
    MESSAGE                                                                                                   NOT NULL VARCHAR2(4000)
    SQL> select * from testlog;
    no rows selected
    SQL>
    I saved the same data you have abvoe in a file named testlog.txt Here is my test controlfile named testlog.ctl
    LOAD DATA
    INFILE 'testlog.txt'
    INTO TABLE testlog
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
       LOG_1     CHAR NULLIF (LOG_1=BLANKS)
    , DAY_1     DATE "DD/MM/YYYY" NULLIF (DAY_1=BLANKS)
    , TIME_1    CHAR NULLIF (TIME_1=BLANKS)
    , SOURCE    CHAR NULLIF (SOURCE=BLANKS)
    , EVENTID   INTEGER EXTERNAL NULLIF (EVENTID=BLANKS)
    , TYPE_1    CHAR NULLIF (TYPE_1=BLANKS)
    , CATEGORY  CHAR NULLIF (CATEGORY=BLANKS)
    , USER0     CHAR NULLIF (USER0=BLANKS)
    , COMPUTER  CHAR NULLIF (COMPUTER=BLANKS)
    , MESSAGE   CHAR(4000) NULLIF (MESSAGE=BLANKS)
    Here is the Result of my test run
    D:\DBMSDIRECT\DBA\Test>sqlldr userid=test control=testlog.ctl
    Password:
    SQL*Loader: Release 11.1.0.6.0 - Production on Fri Nov 5 15:36:05 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Commit point reached - logical record count 1
    D:\DBMSDIRECT\DBA\Test>
    Here is the Result in the table
    SQL> col message format a50
    SQL> col source  format a50
    SQL> col category  format a10
    SQL> col source  format a10
    SQL> col user0  format a10
    SQL> col type_1 format a10
    SQL> col computer format a10
    SQL> set pasge 20
    SQL> select * from testlog;
    LOG DAY_1     TIME_1   SOURCE        EVENTID TYPE_1     CATEGORY   USER0      COMPUTER   MESSAGE
    SEC 04-NOV-10 12:26:02 Microsoft-       4656 Success    12800                 server1.it A handle to an object was requested.^`^`Subject:^`
                           Windows-Se                                             acasa-sa.c  Security ID: S-1-5-21-3830471607-3036766313-42914
                           curity-Aud                                             om         15205-2156^` Account Name: mbelles^` Account Domai
                           iting                                                             n: ITACASA-SA^` Logon ID: 0x38988bbc^`^`Object:^`
                                                                                             Object Server: Security^` Object Type: File^` Obje
                                                                                             ct Name: K:\AMBIENTE^` Handle ID: 0x1e18^`^`Proces
                                                                                             s Information:^` Process ID: 0x4^` Process Name: ^
                                                                                             `^`Access Request Information:^` Transaction ID: {
                                                                                             00000000-0000-0000-0000-000000000000}^` Accesses:
                                                                                             %%4416^` ^` Access Mask: 0x1^` Privileges Used for
                                                                                              Access Check: -^` Restricted SID Count: 0
    1 row selected.
    SQL>

  • Problem  with Input Text Field

    I am trying to use the binding tag for a inputText field... The value of the text Field is a hashmap, in which the key is equal to the binding variable i have used
    <h:inputText id="ug" binding="#{userBean.ugclassCode}" rendered="true" value="#{userBean.finalUghm}" styleClass="numericalignRight" />
    This is the first time i m trying binding to an inputText so please let me know if this method is correct... and please let me know if there is any other method to accomplish the same.
    Thanks in advance

    Maybe you misunderstand the binding attribute ..
    Two ways to get it work:
    Way 1:
    JSF 1<h:form id="form">
         <h:inputText binding="#{MyBean.inputText}" />
    </h:form>MyBean 1    private HtmlInputText inputText = new HtmlInputText();
        private Map inputValues = new HashMap();
        public HtmlInputText getInputText() {
            inputValues.put("key1", "testvalue1"); // test
            inputText.setValue(inputValues.get("key1"));
            return inputText;
        public void setInputText(HtmlInputText inputText) {
            this.inputText = inputText;
        }Way 2:
    JSF 2<h:form id="form">
         <h:inputText value="#{MyBean.inputValue}" />
    </h:form>MyBean 2    private Map inputValues = new HashMap();
        private String inputValue;
        public String getInputValue() {
            inputValues.put("key2", "testvalue2"); // test
            inputValue = (String) inputValues.get("key2");
            return inputValue;
        public void setInputValue(String inputValue) {
            this.inputValue = inputValue;
        }

  • Problem with validating a field in VA01/VA02

    Hi,
    I was required to add validation for Material Group 3 (VBAP-MVGR3) in 'Additional Data A' tab (VA01/VA02). The corresponding screen number in 4459. In the PAI section, there is a module called 'vbap_bearbeiten'. In this module, there is an enhancement point called 'VBAP_BEARBEITEN_10 '. I created an implementation of this enhancement point to call a validation subroutine which i put in user exit MV45AFZZ. My problem is whenever a wrong entry is entered for that field, the whole screen in the 'Additional Data A' tab turned grey and disabled for user entry. Re-entry for the correct Material Group 3 is not allowed.
    Initially, i used a different approach. I made a core change to screen 4459 by adding a statement like below in the PAI section :-
    FIELD vbap-mvgr3 MODULE zsd_check_mvgr3 ON REQUEST.
    In fact, the validation worked without any issue. User was prompted for an error message and then was allowed to re-enter a correct entry for that field if a wrong entry was entered initially. However, since this approach involved a core change, it was not allowed by my superior and he demands for using the enhancement framework approach.
    Kindly please let me know if you have any idea of resolving this issue. Thanks much in advance.

    Hi guys, thanks much for your feedback.
    I tried to call my validation subroutine from USEREXIT_CHECK_VBAP (MV45AFZB). However, it did not work as well. Although the validation subroutine was successfully called in USEREXIT_CHECK_VBAP and error message dialog box was shown if entry was not correct, but when i clicked on the dialog box / pressed the 'enter' key, the 'Material Group 3' field was not opened for re-editing (it was still shown in grey and disallowed for user entry). In fact, through debugging, i found that USEREXIT_CHECK_VBAP was called again (after i pressed the 'enter' key) and it caused the program to enter an infinite loop.
    On the other hand, i also tried to use USEREXIT_MOVE_FIELD_TO_VBKD (MV45ZFZZ). Unfortunately, i also met with the same issue as described above.  Kindly please let me know if there is a way to solve this issue. Thanks.

  • Problem with long text field in PLD

    Hi all.
    I´m doing a layout for A/R invoices. I have a user field of text type. When I try to display this field and the text is too long the PLD make a new line. but in the first line cut me some characters. How can I fix this issue?
    Can you help me?
    Thanks

    The Aligment properties are:
        *Horizontal: Left
        *Vertical: Top
        *Line break: Divide into rows
        *Length:
        *Filler:
        *Field haight adjustment: checked
        *Sum in words: Not checked
        *Suppress zeros: Not checked

  • Problem with JButtons Text field not updating

    Im working on a program (which has its full code included below incase its part of the problem) which wants to change a Jbutton's name during a program. The way I'm trying to make it change is by having a string, "test", be called "before update". then have the jbuttons text equal test. then, in an actionlistener, it changes string test to equal "after update". This doesn't update the Jbuttons text.
    I don't get any errors when I press the button, but the buttons name is not updating. Whats causing the buttons name not to be updated?
    Thanks for help in advance.
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*; 
    public class TicTac extends JFrame {
    public int Teamplaying = 0;
    public int CrossA, CrossB, CrossC, CrossD, CrossF, CrossG, CrossH, CrossI, CircleA, CircleB, CircleC, CircleD, CircleE, CircleF, CircleG, CircleH, CirclI, TLB, TMB, TRB, MLB, MMB, MRB, LLB, LMB, LRB = 0;
    String test = "Before Update";
        public TicTac() {
             JPanel TicTac = new JPanel();
             TicTac.setLayout(new GridLayout(3,4));
                  TicTac.add(new JButton(test));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  TicTac.add(new JLabel("a"));
                  setContentPane(TicTac);
             pack();
             setTitle("Add Numbers Together TicTac");
             setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             setLocationRelativeTo(null);
        class TopLeftBox implements ActionListener {
             public void actionPerformed(ActionEvent e) {
             String test = "After update";
             if (Teamplaying == 0) {
                  CrossA = CrossA + 1;
                  CrossD = CrossD + 1;
                  CrossG = CrossG + 1;
             else {
                  CircleA = CircleA + 1;
                  CircleB = CircleB + 1;
         public static void main(String[]args) {
        TicTac Toe = new TicTac();
        Toe.setVisible(true);
    }

    1) Strings are immutable meaning you can't change them.
    2) Even if you could, the two test strings are completely different variables.
    3) To change JButton text, you should call its setText method.
    4) For a JButton to perform an action on button press, it needs to have an actionlistener added to it via the addActionListener(...) method.
    5) Please read, study, and review the Sun Swing tutorials. You will benefit greatly from having a solid foundation in Swing basics before you try coding in Swing.
    Good luck.
    Edit: a small example code (SSCCE, if you will):
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class Frame extends JFrame
        public Frame()
            JPanel panel = new JPanel();
            JButton button = new JButton("Before Update");
            button.addActionListener(new ButtonListener()); // add actionlistener here
            panel.add(button);
            setContentPane(panel);
            pack();
            setTitle("Frame");
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setLocationRelativeTo(null);
        private class ButtonListener implements ActionListener
            public void actionPerformed(ActionEvent e)
                // get the button that called this action
                JButton button = (JButton)e.getSource();
                // update the button's text
                button.setText("After update");
        public static void main(String[] args)
            SwingUtilities.invokeLater(new Runnable()
                @Override
                public void run()
                    new Frame().setVisible(true);               
    }Edited by: Encephalopathic on Apr 28, 2008 9:26 PM

  • Problem with append += text in Text Field

    Hi guys
    i have a problem with append text.
    I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
    Then i have one String and one Text Field.
    Using for loop im getting right results. But when im running script again then im getting  same text again.
    F.ex.
    First time:
    City name: Name 1
    City name: Name 2
    Second time:
    City name: Name 1
    City name: Name 2
    City name: Name 1
    City name: Name 2
    I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
    How to avoid this?
    Here is script:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    _CityAreaTF1 = new TextField();
      _CityAreaTF1.border = true;
      _CityAreaTF1.wordWrap = true;
      _CityAreaTF1.multiline = true;
      _CityAreaTF1.selectable = false;
      _CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
      _CityAreaTF1.name = "CityAreaTF1";
      _CityAreaTF1.embedFonts = true;
      _CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();

    I think i found why.
    There was no problem with TextField.
    There was a problem with Array. "CityArea"
    So each time I executed script it added new string in Array. And that is because i got like:
    TextField
    City 1
    City 2
    City 1
    City 2
    Running this script is Ok:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    But outside of this for loop there is another for loop for adding Cities in CityArray.
    I fixed it by adding empty array at the start of function
    function myFunc():void
    CityArea = [ ]; // Empty array fixed this issue
    // LOOP FOR ADDING SHOPS IN CITY AREA
    for (var j:int = 0; j < _Shops; j++)
    CityArea.push(_Shop);
    // FOR LOOP TO ADDING SHOPS IN STRING
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    Thank you for your help kglad

  • Spry validation text field across two columns in a table?

    I have a table with two columns.  I can easily insert a spry validated text field into the left cell but when I drag the box over so that box is in the right column and the label is still in the left column then that breaks the widget.
    Is this even possible for me to do or do I have to put the widget in just one column?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

  • Problems with customer text objects in ZDEBMAS definition

    Hi
       We have a Z* version ( ZDEBMAS ) of std customer chg pointer msg type DEBMAS - this ZDEBMAS is a shortened version of DEBMAS
    We notice that whenever customer related texts are changed in customer master, change pointer objects with CD class - CUSTTEXT, TABLE-STXH get generated for the DEBMAS msg type. No such change pointer data gets generated for my ZDEBMAS.
    I do not see any CD class with 'CUSSTEXT' entry in the definition of DEBMAS message type -bd52.  
    I basically want to replicate the customer text data change pointer generation functionality for my 'ZDEBMAS' msg type too ? Any pointers so to what I am missing ?
    We are at a very critical stage of implementing the Z* solution - any pointers will be rewarded right away ....

    Hi Abdul
             Thanks for the quick response. Yes the change pointers are activated globally ( bd61 ) and the change pointer is activated for ZDEBMAS ( bd50 ). The problem here is that - change pointer data gets generated in ZDEBMAS for other customer related fields - the problem is with customer text fields - the change pointer data does not get generated for customer text fields in ZDEBMAS - whereas it gets generated for DEBMAS - I am wondering why and how ?? ( since DEBMAS does not have an explicity CUSTTEXT - object class in its definition ) . Also, when I try to add this object class as a part of ZDEBMAS , I get an error message that this object class does not exist

  • Paging a data table with input text fields

    I've created a datatable with input text fields so that contents can be edited. I have 'save' and 'cancel' buttons on the page so that changes can be saved or abandoned. That seems to work fine.
    However, I have a problem with paging. If I modify an input text field, page to the next page in the datatable and then page back, the modified input text field reverts to the original entry in the database. Does anyone know how I can preserve this change (without issuing a commit) until the user clicks on the save button?
    Here is a snippet of jsp with datatable.
    <h:dataTable binding="#{DocTypeDetail.doctypeMetadataTable}" headerClass="list-header" id="doctypeMetadataTable"
    rowClasses="list-row-even,list-row-odd" rows="5" style="left: 240px; top: 312px; position: absolute"
    value="#{DocTypeDetail.doctypeMetadataTableModel}" var="currentRow">
    <h:column binding="#{DocTypeDetail.column2}" id="column2">
    <h:inputText binding="#{DocTypeDetail.textField1}" id="textField1" value="#{currentRow['name']}"/>
    <f:facet name="header">
    <h:outputText binding="#{DocTypeDetail.outputText5}" id="outputText5" value="Name"/>
    </f:facet>
    </h:column>
    <h:column binding="#{DocTypeDetail.column3}" id="column3">
    <h:inputText binding="#{DocTypeDetail.textField2}" id="textField2" value="#{currentRow['value']}"/>
    <f:facet name="header">
    <h:outputText binding="#{DocTypeDetail.outputText8}" id="outputText8" value="Value"/>
    </f:facet>
    </h:column>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header"/>
    <f:facet name="header">
    <h:panelGroup binding="#{DocTypeDetail.groupPanel1}" id="groupPanel1" style="display: block; text-align: center" styleClass="list-paging-header">
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_firstPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderFirstButton}" id="doctypeMetadataTableHeaderFirstButton"
    image="resources/paging_first.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_previousPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderPreviousButton}" id="doctypeMetadataTableHeaderPreviousButton"
    image="resources/paging_previous.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_nextPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderNextButton}" id="doctypeMetadataTableHeaderNextButton"
    image="resources/paging_next.gif" immediate="true"/>
    <h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_lastPageAction}"
    binding="#{DocTypeDetail.doctypeMetadataTableHeaderLastButton}" id="doctypeMetadataTableHeaderLastButton"
    image="resources/paging_last.gif" immediate="true"/>
    </h:panelGroup>
    </f:facet>
    </h:dataTable>

    I know by now you must have figured it out. If not you might want to try keeping the backing bean in session instead of request scope.
    Hope that helps,
    HeMan

  • 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

Maybe you are looking for