Required Attribute For mx:TextInput

Hi All,
I need to set required="true" attribute to
<mx:TextInput/> .
But as per the docs, there is no such attribute for this
component.
The <mx:FormItem/> has the required Attribute, but i am
not using the Forms , but a simple TextInput and it should be
entered mandatory by the User.
Any Idea's how to set required="true" for
<mx:TextInput/>
Regards,
Madan N

Hi ,
below is the code to display the TextInput
<mx:GridRow>
<mx:GridItem width="110"><mx:Label text="Name"
width="100" fontWeight="bold"/></mx:GridItem>
<mx:GridItem><mx:TextInput width="100" id="name"
tabIndex="1"/></mx:GridItem>
<mx:GridItem width="110"><mx:Label text="SurName"
width="100" fontWeight="bold"/></mx:GridItem>
<mx:GridItem><mx:TextInput width="100" id="surname"
tabIndex="2"/></mx:GridItem>
</mx:GridRow>
I need to show up the TextInputs as required and a tooltip
saying this field is required as that showsup when using
<mx:FormItem/>
Madan N

Similar Messages

  • [svn:fx-trunk] 7553: Fix the default value of the [skinPart] "required" attribute for asdoc.

    Revision: 7553
    Author:   [email protected]
    Date:     2009-06-04 09:32:51 -0700 (Thu, 04 Jun 2009)
    Log Message:
    Fix the default value of the "required" attribute for asdoc.
    Bugs: SDK-21488
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21488
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelGenerator.java

    ${ui:cond( uix.current.isNewRow, 'true', ui:cond( bindings.AddProjectNutsoverleg.value == 1, 'true', 'false' ) ) } notice the '.value' it could also be '.inputValue'.
    If not there is also an option to make sure that when the checkbox is empty a value is returned anyways this work like this:
      protected void processUpdateModel( DataActionContext ctx )
        //First look for the request parameter
        Object cbInRequest = ctx.getHttpServletRequest().getParameter( "nameofthecheckbox" );
        //We only need to do anything if it was not submitted
        if( cbInRequest == null )
          // Get hold of the Form Bean containing the record
          BindingContainerActionForm updateForm = (BindingContainerActionForm) ctx.getActionForm();
          //Get the binding for our particular column
          JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get( "nameofthecheckbox" );
          //Reset that explicitly to the *unchecked* value
          checkBoxBinding.setAttribute( 0, new oracle.jbo.domain.Number( 0 ) );
        super.processUpdateModel( ctx );
      }Maybe this helps.

  • JPSTranslate:Custom tag is missing required attribute for

    When ever I am placing a label in jsf using RAD i am getting a similar error which i am not able to rectify. And how to integreate swing components in Faces jsp file
    Please help me out.

    volkov wrote:
    Error Message:JSPG0227E: Exception caught while translating /index.jsp: /index.jsp(13,1) --> JSPG0006E: Custom Tag is missing required attribute propertyWhich is line 13 then? And check the syntax for that tag.

  • How to override the default "required" attribute for the UIComponent?

    Hi, consider the following markup: <h:inputText id="txt_firstName" value="#{myBean.firstName}" required="true"/>
    if I leave this field empty and hit the submit button, the required validator will fire an error msg. If however, I leave an empty space in the text box and hit submit button, it will go through no problem.
    I'd like to override the required attribute, so it will trim the spaces first before decide if it really is empty:
    //whatever the name of the method i'm overriding....
    String value = (String)value;
    if(value==null)throw new ValidatorException(whateverDefinedInTheBundle);
    value = value.trim();
    if(value.length==0)throw new ValidatorException(whateverDefinedInTheBundle);
    How can I go about doing that?
    Thank you.

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • Error when using a condition for required attribute

    Hi
    I have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....
    I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method that is being called for doing the condition check is given below:
    public boolean isSomeCondition() {
        // assumes submitButton is a component binding 
        FacesContext fc = FacesContext.getCurrentInstance();
        Map reqParams = fc.getExternalContext().getRequestParameterMap();
        return reqParams.containsKey(submitButton.getClientId());
      }It is same that is given at the following location
    http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works ---Soln 3
    But the problem is if I am submitting the form using Javascript from another page(page is a popup that is opened inside the current window), this condition doesnt work and it gives me an error saying "Check some field for its value"
    Please help me sort out this problem
    Thanks

    I think the problem is not clear....my mistake
    I try to be more elaborate on this....
    I open up a popup page from my main window....Here I perform a search(lets say there is a requirement for finding the Country and pincode for a particular city that the user enters)
    Now when I select the particular row in the datatable and click the submit button...... I want the selected values to be filled inside the parent window.....
    I want to bring to your notice that the button that is clicked is in the popup page...not in the parent window.....
    So you see that when that button in popup is clicked i am submiting the form of the parent window and during that time I dont want the validation to occur..... To submit the form of the parent window I use the Javascript like this : window.opener.document.forms[0].submit();Also one more thing that I want to mention is that the method that is used for specifying the condition for required attribute for mandatory fields in the parent window works fine for any button that i click inside my parent window......
    What I mean by this is lets say I have a button to add a dynamic row into my parent page then also I have to submit the form but during that time validation should not occur and it works fine.
    So now I think its clear that the Javascript is being invoked from another page which is submitting the parent window.....
    Then you're doing something wrong. Invoking the wrong button maybe? So please enlighten me where i am wrong and how possibly would I know which button I am invoking??

  • Required attribute does not work with any data type other than String

    sir,
    I am a new to JSF. My problem is that I have used an integer type data in my page which is taking its value from a bean.But in jsf code I have used the required attribute for the <h:inputText> but if I leave the text box empty it is not showing the validation error which it show show. Another problem is that the page is also not navigating to the next page.
    The code is
    <h:inputText value="#{UserBean.age}" required="true"/>
    where age is of integer type

    Well. The fact that it is not jumping to the next view is "works as required". The assumption is, that once you say a field is required, it could be that the application CANNOT function without that value. Therefor the initial view is redisplayed until all required values are entered.
    IF you need a different behaviour, then the OptionalValidator-package which is currently in development state, is the way to go. It allows to specify different validating strategies for different links on a view (no validation, soft validation (== allow to go on, but produce warning messages), hard validation (== the way JSF works right now)). The problem is that with JSF 1.1 it is quite difficult to implement this behaviour. For simple validators (no parameters) it is working, but for complex validators (requiring parameters) not yet. For more info: http://wiki.apache.org/myfaces/OptionalValidationFramework
    No comment on the String-only behaviour, as I have not yet tested/observed that problem...
    hth
    Alexander

  • Validating different sets of required attributes in an XML schema.

    My requirement is to validate an xml with two different validation strategies. In strategy 1, the xml is required to have several instances of an element with certain required attributes. In strategy 2, the xml is required to have several instances of the same element with different required attributes. So, the idea is that there are two different sets of the same element with different set of required attributes for each set. Is there a way to validate this with using only one xsd. My only solution so far is to use two different xsd files to validate. Thank you.

    Define an xsd:choice for the 2 elements.

  • Cfselect "required" attribute

    hi guys, i've been having trouble with the required attribute
    for cfselect. i can't seem to find a time when the javascript will
    launch. I've searched online and i've seen that other ppl have been
    having probs with this too, but i didn't see anything about a
    solution. any help would be appreciated

    It seems that there is a "bug" in the CFFORM.JS file in how
    it handles the CFSELECT required attribute (see comments at the
    bottom of the
    http://livedocs.macromedia.com/coldfusion/5.0/CFML_Reference/Tags91.htm
    page). Just adding a one-line change to the CFFORM.JS file fixes
    the problem. Note that if you have multiple site instances on one
    server, you may have to apply this fix to every CFFORM.JS that
    exists within the JRUN4\Servers\... folders.
    I should also mention, as stated in the Live Docs page (see
    above link), that if you use the MULTIPLE parameter of the CFSELECT
    tag that it works fine. It is when you only want to restrict to one
    selection that the CFFORM.JS fix is needed.
    I would expect that the CFFORM.JS change would be valid fix
    for most of the versions (I am running CFMX 7.0.2). Hopefully Adobe
    will apply this fix to any future releases of the CFFORM.JS file.

  • Help required specifying Transation attributes for this scenario

    Hi ,
    I am trying to create/update rows in a database using BMP and CMP beans.
    A business method ( Method1 )in session bean calls a non-business method ( Method2) in the same session bean which inturn calls an EntityBean ( EB1-BMP) . EB1 can throw a certain business exception upon which , the Method1 in the session bean calls another EntityBean in a loop( EB2-CMP).
    The problem is that , when the EB1 throws the business exception, i am getting an exception ( part of the stack trace attached below ).
    Could any please explain what should be the transaction attributes to be specified for this scenario.
    Using RequiresNew for the EntityBeans would not work ( or would it ?? ) because the entity bean is being called in a loop and the commit or rollback should happen for all the methods.
    I feel the problem should be solved by specifying the transaction attribute for Method2 ( non business method in session bean ) as Required, but i guess this is not possible.
    How exactly will the transaction behave in this scenario, is the exception caused because EB1 has thrown an exception and i am trying to continue the transaction.
    Could someone please suggest a solution or workaround for this problem.
    Regards,
    Harsha
    ---- Begin backtrace for nested exception
    java.lang.IllegalStateException
    at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1694)
    javax.ejb.EJBException: nested exception is: com.ibm.ws.ejbpersistence.utilpm.PersistenceManagerException: PMGR6022E: Error using adapter to create or execute an Interaction. com.ibm.ws.rsadapter.cci.WSInteractionImpl@28d16547
    .

    tryout business method ( Method1 )in session bean with transaction as RequiresNew.
    catch exception in Method2 originated from EB1-BMP
    make the method in EB2-CMP as Required/Mandatory
    I have made a guess here so just tryout and let me know if works.
    Its recommend that not to use both BMP's and CMPs in your application. Have any one either.

  • [svn:bz-trunk] 24018: Updates to the message to send across only required message attributes for small message format

    Revision: 24018
    Revision: 24018
    Author:   [email protected]
    Date:     2012-07-11 02:23:31 -0700 (Wed, 11 Jul 2012)
    Log Message:
    Updates to the message to send across only required message attributes for small message format
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/messages/AbstractMessage.java
        blazeds/trunk/modules/core/src/flex/messaging/messages/AsyncMessage.java
        blazeds/trunk/modules/core/src/flex/messaging/messages/CommandMessage.java
        blazeds/trunk/modules/core/src/flex/messaging/messages/ErrorMessage.java
        blazeds/trunk/modules/core/src/flex/messaging/messages/Message.java
        blazeds/trunk/modules/core/src/flex/messaging/messages/RemotingMessage.java

    Im not sure what's the problem, but let's try to figure it out. First of all explain what do you mean by "it works very bad". Doest it hang, is it slow, is quality unacceptable.
    Myself, I have one problem with JMF. When i run video & audio on my Centrino 1.4 GHz, it just takes 100% CPU! And of course quality becomes degraded. Check if you have something like this.

  • B2B Document Editor Global Replace for Requirement attribute

    Hi Gurus,
    I am having hard time to replace requirement attribute from required to optional to all segments and fields through B2B document editor.
    Here is my scenario...
    I am building a spec for "Application A" and it is expecting HL7 structure with all segments and fields are optionanl.
    I tried with "Find & Replace" tool but when I select Segment and Field nodes it is not giving an option for "Requirement" (Search Atributes section)
    Any trick?
    Thanks,
    Datla

    Thanks Anuj,
    It would be very helpful and save lot of time for us if we have that functionality in the tool. I am wondering what stopping in the tool to replace "Requirement" and "User Option" attributes as it is allowing to replace all other (Data Type, ID, Name, Position,Purpose, Repeats) attributes.
    Thanks,
    Datla

  • Student Attributes for Requirement Profile Templates

    Hello,
    I am working on setting up Admission audits.  And, I am looking at using the Student Attributes in the Requirement Profile Template.  But, I am having problems configuring the parameter values for the Student Attributes.  I can get the parameter values to work when using a SAP defined table such as T7PIQADMCATEG, but when I use one of our custom tables the parameter values will not populate.  What do I need to do to get a custom table to work with the Student Attributes parameter values?
    Thanks,
    Ezra.

    Rob,
    I understand how to use the BAdI to assign a requirement profile based on the student attributes.  My question is more basic.  I am having trouble with the defining of the student attributes, IMG Path: \Student Lifecycle Management\Processes in Student Lifecycle Management\Audits\Requirement Profile Templates\Define Student Attributes for Requirement Profile Templates. This IMG items requires defining the Attribute and a Parameter.   I can't get the Parameter to use a Z-table.  The Parameter is defined in the IMG Path: \Student Lifecycle Management\Processes in Student Lifecycle Management\Audits\Basic Settings\Define Parameters for Audit Types.  The Parameter requires a Structure name and Component name.  When I put in a Z-table for these items, the drop-down for the Parameter Value will not be populated for the Stdt Attribute I defined with the Z-table in transaction PIQAUDTMPL_M.
    Thanks for the help,
    Ezra.

  • Can´t create a date attribute for basic asset

    Hi
    I created a basic asset where I want to have a date attribute to pick up a date for calendar.
    My question is: How can I create a date attribute for a basic asset? For what I understand I have to create an element attribute in my descriptor file like this
    <PROPERTY NAME="imagedate" DESCRIPTION="Image date">
      <STORAGE TYPE="TIMESTAMP" LENGTH="8"/>
      <INPUTFORM TYPE="ELEMENT" WIDTH="24" MAXLENGTH="48" REQUIRED="NO" DEFAULT="" INSTRUCTION="Format: yyyy-mm-dd hh:mm"/>
      <SEARCHFORM DESCRIPTION="Image date" TYPE="ELEMENT" WIDTH="48" MAXLENGTH="128"/>
    </PROPERTY>
    Then, when I create a new instance of this asset, this attribute appears with this error:
    Date: Unable to find element OpenMarket/Xcelerate/AssetType/Oportunidade/ContentForm/imagedate
    But the element (imagedate.xml) is there!!
    I request help.

    It seems that the table does not have the entries, maybe b/c we are on R3 4.7.  Could you tell me what the entries are suppossed to be to allow the Asset and Cost Center lookup?  The search does work for WBS element though and I don't see anything specific to WBS element in that table.  In any case if you know the entries that would be great, also this table is not modifiable via SM30, here are the entries that I have in that table.
    AUF_NETNR     PLM_HELPVALUES_AUTHCHECK
    BU_PARTNER     BUPA_BAPI_F4_AUTHORITY
    DAENR     PLM_HELPVALUES_AUTHCHECK
    DOKNR     PLM_HELPVALUES_AUTHCHECK
    EQUNR     PLM_HELPVALUES_AUTHCHECK
    KUNNR     PARTNER_BAPI_F4_AUTHORITY
    LIFNR     PARTNER_BAPI_F4_AUTHORITY
    MATNR     PLM_HELPVALUES_AUTHCHECK
    NW_AUFNR     PLM_HELPVALUES_AUTHCHECK
    PARNR     PARTNER_BAPI_F4_AUTHORITY
    PS_POSID     PLM_HELPVALUES_AUTHCHECK
    PS_PSPID     PLM_HELPVALUES_AUTHCHECK
    QMNUM     PLM_HELPVALUES_AUTHCHECK
    S_AGNCYNUM     INT_FLBOOK_F4_AUTHORITY
    S_AIRPORT     INT_FLBOOK_F4_AUTHORITY
    S_BOOK_ID     INT_FLBOOK_F4_AUTHORITY
    S_CARR_ID     INT_FLBOOK_F4_AUTHORITY
    S_CITY     INT_FLBOOK_F4_AUTHORITY
    S_CONN_ID     INT_FLBOOK_F4_AUTHORITY
    S_COUNTNUM     INT_FLBOOK_F4_AUTHORITY
    S_COUNTR     INT_FLBOOK_F4_AUTHORITY
    S_CUSTOMER     INT_FLBOOK_F4_AUTHORITY
    S_FLCONN     INT_FLBOOK_F4_AUTHORITY
    S_FLCONN1     INT_FLBOOK_F4_AUTHORITY
    S_FLCONN2     INT_FLBOOK_F4_AUTHORITY
    S_PLANETYE     INT_FLBOOK_F4_AUTHORITY
    S_TRNUM     INT_FLBOOK_F4_AUTHORITY
    TPLNR     PLM_HELPVALUES_AUTHCHECK
    USCOMP     SUSR_BAPI_F4_AUTHORITY
    XUBNAME     SUSR_BAPI_F4_AUTHORITY

  • Automatic Generation of classes with required attribute names

    Hi ,
    I am new to XML technologies ...I am having a problem in deciding whether I
    should use JAXB or Castor for data binding.
    The problem is the attributes I am to use are named differently as that found in
    the DTD.I have creted my own classes using the required attribute names and the
    n mapped them using the Castor mapping with the attributes.
    I was wondering how should I achieve --"automatic generation of classes" with th
    e specified attribute names?
    I understand that JAXB can be used to automatically generate classes ,but this
    uses the same default names as that of the XML file ..is there a way of forcing
    JAXB to generate classes that use my name attributes rather than that of the XM
    L dtd
    If I use Castor ..is there a way to do the same.Generate Classes with the specif
    id attributes

    Hi ,
    I am new to XML technologies ...I am having a problem in deciding whether I
    should use JAXB or Castor for data binding.
    The problem is the attributes I am to use are named differently as that found in
    the DTD.I have creted my own classes using the required attribute names and the
    n mapped them using the Castor mapping with the attributes.
    I was wondering how should I achieve --"automatic generation of classes" with th
    e specified attribute names?
    I understand that JAXB can be used to automatically generate classes ,but this
    uses the same default names as that of the XML file ..is there a way of forcing
    JAXB to generate classes that use my name attributes rather than that of the XM
    L dtd
    If I use Castor ..is there a way to do the same.Generate Classes with the specif
    id attributes

  • Attribute for user contains errors. Inform system admin

    Hello,
    We've got an issue with shopping carts created by a user that was deleted from system. When trying to see in Monitoring Shopping Carts header or item details of a given sc. A web error occurs:
    The URL http://srp.srm.gruposalinas.com.mx:8000/sap/bc/gui/sap/its/bbpsc11/! was not called due to an error.
    Note
    The following error text was processed in the system SRP : Attribute for user contains errors. Inform system admin.
    The error occurred on the application server srm-pro_SRP_00 and in the work process 2 .
    The termination type was: TH_RES_FREE
    The ABAP call stack was:
    Form: OUTPUT_EXPRESS_MESSAGES of program SAPLBBP_SC_UI_ITS
    Form: EXTERNAL_SCREEN_DETERMINE of program SAPLBBP_SC_UI_ITS
    Module: EXTERNAL_SCREEN_DETERMINE of program SAPLBBP_SC_UI_ITS
    We've cheked SAP NOTE 312058-BBPPU99: Error: Attribute for ... is missing. Inform ...
    But it seems that none of the information applies to us, since this issue is only present for Shopping carts that were created by this deleted user.
    So we tried to re-assing one of this sc, chaning PARTNER_NO,ADDR_NR    
    ADDR NP data in table CRMD_PARTNER according to a new given user, but it didn't work. So we need to know how to re-assing this sc or perhaps how to find what specific attribute is missing.
    Any advice is welcome.
    Thanks in advance.

    Hi
    <b>Which SRM version are you using ? This is an SRM error message.</b>
    The manager role should be enough to change user attribute. The transaction is BBPATTRMAINT. Employee role should have BBPUM02 or BBPAT05 to change their own attribute.
    <u>Please check whether the User ID you are using to Log into BBP_PD (and seems to be assigned in the org structure also)is consistent and has no errors in tcode USERS_GEN.  You should check the user, it's not set up properly in USERS_GEN Transaction, Else repair the user.
    To maintain the user attributes you must have the Administrator role.. Your user should have role SAP_BBP-STAL_ADMINISTRATOR and be integrated in the org structure. your user must be integrated in SRM organizational structure. To see which attributes are missing, you can click on the user in PPOMA_BBP to see details, and go to last tab "Check". This will list all required attributes depending on used scenarios (so you may not require all of them). You can also use transaction BBP_ATTR_CHECK to check user's attributes for a particular scenario.</u>
    <b>Please go through the following links as well -></b>
    bbp_mon_sc attributes
    Re: FM for attribute's value assignation in PPOMA ?
    Note 751022 - Monitor Shopping Cart: Item deletion causes termination
    Re: User Settings are not saved
    Re: Not able to generate user users_gen
    Re: SRM organization plan...
    Re: User creation error
    <u>Hope this will definitely help. Do let me know.</u>
    Regards
    - Atul

Maybe you are looking for