How to add a validator to a custom tag

Hello,
I would like to know how to add a validator to my custom tag as an attribute.
<mytags:custom validator=???/>
Thanks.
Sebastien

Are you wanting to use one of the JSF validators or a home brewed one?

Similar Messages

  • How to add F4 help for the custom field of a custom table

    Hi All,
    How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
    PROCESS ON VALUE-REQUEST.
      FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
    But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
    Thanks&Regards
    mahesh

    Hi,
    Create a subroutine under the event and call the following FM
    1. Select all the related data into an itab, for ex i_kunnr
    2.    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
        DDIC_STRUCTURE         = ' '
           retfield               = 'KUNNR'
        PVALKEY                = ' '
           dynpprog               = sy-repid
           dynpnr                 = '1000'
           dynprofield            = <selection screen field>
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
           value_org              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
          TABLES
           value_tab              = <b>i_kunnr</b>
        FIELD_TAB              =
           return_tab             = < return table >
        DYNPFLD_MAPPING        =
         EXCEPTIONS
           parameter_error        = 1
           no_values_found        = 2
           OTHERS                 = 3

  • How to add an embedded report to custom UI?

    Dear colleagues:
    Since now I am doing investigation on this:How to add an embedded report to custom UI , so do you have some guideline doc for this?
    Requirement is:
    Customer want to add a custom report to a custom FS page. And it has some standard fields from contract. So do you have any ideas about this?
    Thanks & Best Regards,
    Qiang

    Hi Jens,
    Attachment is the guideline for how to add an embedded report to custom UI. However, so far as i know, there still a limitation that is about inport parameter.
    For example, now can show all data of accounts. but i just only want show one account data when click account. so you can share to us if you have any idea about it.
    Thanks &Best Regards,
    Qiang

  • How to add new validation for the iProcurement web page?

    Hi,
    I am very new to OA Framework. Can you experts give me some guidance on how to proceed with the following customization?
    My requirement is in iprocurement when you open a new cart and check out on "ICX_POR_SHOPPING_CART" there is a Project Field and reference to Charge account. If the users go to charge account (ICX_POR_CHECKOUT_SUMMARY) and enter the segment values ( which includes project segment) and enters a value in project segment other than '000000' with out entering the Project Field on "ICX_POR_SHOPPING_CART" the page should give error.
    Please give me some suggestions on how to proceed.
    Thanks
    Vish

    I need the client side validation. By saying server side validation if you mean writing a triger on tables to validate then I am thinking to take that option as last resort.
    Can you please tell me what is PPR ( Is it personalization?) stands for.? In my case the Charge Account is DFF.
    Can you direct me to any documentation on how to add custom javascript to achieve my objective?.
    Thanks for your Help.
    Regards

  • How to add a reference to a custom stylesheet from a Team Site wiki page

    We have a Team Site (no publishing feature enabled).  We have several wiki pages where we inserted custom html content via "edit source".  This custom content has some divs defined in it to which we want to apply some styling.  We
    have styles.css saved in Style Library.  How do I reference this style.css from the wiki page?  I don't want to put the style definition on the wiki page itself since the same style will be shared by multiple pages.
    thanks,

    There are a variety of customization options available for BEA Workshop. Through metadata you can define renderings for custom tags, tag appearance in the tag libraries view, customize the tag editors, and much more.
    Information about customization can be found at the following link: http://workshopstudio.bea.com/docs/tlei.htm
    Adding custom tag documention to the Tag Libraries view is not currently a configuration option but would be a useful addition. I will file an enchancement request for this functionality.

  • How to use a variable of jsp custom tag in my java code?

    hi folks,
    i got a folderList tag like this:
    ArrayList list = new ArrayList(20);
    %>
    <foo:folderList path="${attributes.newsPath}" var="year" contentType="folder">
    <%
              list.add(${year.contentEntryName});   // of course, this doesn't work
    %>
    </foo:folderList>I think, its clear what I want to do. I am just wondering how I can use my Variable "year" in the Java code between <% %>...

    <% list.add(year.getContentEntryName()); %>
    You have to have defined in the custom tag that "var" relates to a scripting variable that you want defined.
    <tag>
      <variable>
        <name-given>var</name-given>
        <variable-class>myPackage.myClass</variable-class>
        <declare>true</declare>
        <scope>NESTED</scope>
      </variable>
    </tag> Cheers,
    evnafets

  • How to invoke a funtion on a custom tag value?

    Hello,
    I have a custom tag used in my code.
    It is used as follows:
    <b:testtag name="Title"/>
    This outputs a String value.
    This is used in my HTML as follows:
    <b:testtag name="Title"/>
    This part of the code works fine. However i now want to invoke some funtion on the String outputted before actually outputing it. To be more specific, i need to convert the string to uppercase before outputting it.
    So my question is, Is there anyway to directly invoke the String.toUpperCase method on the tag output?
    If not, another way of achieving this is to store the value returned by the custom tag into a java String variable in a scriplet code, and invoke the String.toUpperCase method.
    Any idea how to go about with this? Particularly, i would like to know if it is possible to store the value outputted by the tag into a java variable in a scriplet code?
    If not is there any other way of converting the tag output value to uppercase?
    Please help!
    Thanks in advance

    Solution one: Change your tag so it outputs in uppercase
    Solution two: use a tag from a String taglib and put that tag around your tag
    example taglib:
    http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
    example bit of code
    <a href='some test url here'><str:upperCase><b:testtag name="Title"/></str:upperCase></a>

  • Challenge: how to login a user from a custom Tag?

    Hey. The question is in the title.
    This is the doEndTag() function inside a TagSupport implentation class :
    public int doEndTag() {
      String j_username = pageContext.getRequest().getParameter("j_username");
      String j_password = pageContext.getRequest().getParameter("j_password");
      // HOW TO USE THESE 2 STRINGS FOR LOGING THE USER?
      return EVAL_PAGE;
    }I can do basic authenticaton (I'm using tomcat btw), it's fine but I need to do this because the client is a Flash and not an html page. Any help is welcome, thanks!

    maybe spit out some javascript which sets hidden variables j_username and j_password on the page and submits to /j_security_check?
    The important thing is that the special URL /j_security_check is what handles the authentication, and that's handled by the Web Container. Unless you can exactly duplicate what the Web Container is doing in your custom tag, it's probably best to stick with the standard authentication, or roll your own.
    Brian

  • How to add a lookup to the customized jsp

    Hi,
    I added a menu item, when click on this menu item it goes to the one jsp page(my own jsp page), here I have one field, for this field I want to add a lookup.....
    please advice me how to achieve this.....
    Thanks.

    I was actually trying this with my custom JSP. This shows up a "lookup item" in the jsp with all valid values added in the associated lookup:
    Just few points for your reference:
    1) Bean-Name = Your bean name
    2) Action-Form-Field = Any field from your action form
    3) USR_UDF_TESTLOOKUP = OIM field
    I actually created a UDF in Users with DB column name='*USR_UDF_TESTLOOKUP*' and of lookup type. All valid values to be shown in the JSP are provided in this lookup only.
    4) First-Name = The label which should get displayed when we click on the lookup icon.
    5) All remaining fields must be left as it is.
    Copy this to any JSP and see it should work.
         <tr>
              <td class="ControlLabel" width="25%">
              Custom Field
              </td>
              <td
              width="35px">
              </td>          
              <td class="ControlLabel">
              <tctags:lookupfield name="*Bean-Name*" property="*Action-Form-Field*"
              windowheight="500"
              windowwidth="500"
         lookupcolumn="USR_UDF_TESTLOOKUP"
              selectionColumn="Lookup Definition.Lookup Code Information.Decode"
              columnLabelKey="First-Name"
              htmlFormName="*Bean-Name*"
              styleClass="Fields"
              iconsrc="images/lookup.gif"
              tabindex="65"
              maxlength="25" />
              </td>
         </tr>
    Thanks
    Sunny

  • How to add a specific parameter in custom report

    hi,
    I have created a custom report in OIM 10g. I have three input parameters. startdate, enddate and resource object name,. With start date and end date the report is displaying correctly. when i add the resource object name as the third specific parameter is throwing the below exception
    java.sql.SQLException: Missing IN or OUT parameter at index:: 15
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1869)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
    at com.thortech.xl.dataaccess.tcDataBase.readPartialStoredProcedure(Unknown Source)
    at com.thortech.xl.dataaccess.tcDataBase.readStoredProcedure(Unknown Source)
    at com.thortech.xl.dataobj.CallableStatementUtil.execute(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.ReportOperationsBean.getPagedReportData(Unknown Source)
    I have given the input parameter correctly in meta data also. anywhere else we need to mention the specific parameter?
    Thanks

    Hey,
    From OIM 9.1.0.2 Reports you have two options:
    With OIMReports:
    1- Including in XML files the parameters as section: Examples of InputParameter tags and ReturnColumns tag
    2-And Creating a New Entry in the REP Table.
    http://docs.oracle.com/cd/E10391_01/doc.910/e10365/reporting.htm
    Section: How to create Report in OIM 9.1.0.2.
    With BIPublisher(easiest way-license is needed):
    Once you downloaded and install BIPub in your application server you will have access to all OIM report definitions.Then it is just a matter of learning how to change a report definition. It's very simple.
    It has a 'desktop tool' that you can install in your desktop. This specifc tool provides an extension to MS Word(MACRO) and you can even work with Word to generate report templates.
    Descriptions:
    0- deploy BIPublisher and OIM reports to your apps server
    1- Install the BIPublisher desktop tools in your desktop
    2- Modify the report query using the BIPub interface and add your UDF fields
    3- Run the report you want to modify from BIPub and export the generated data as XML
    4- Download the report template in RTF format
    5- With RTF file(open it) in your MS Word
    6- Load the XML file you generated in step 4 in your MS Word
    7- You could load this specif xml change what you want. (word will have a 'BI Publisher' menu with different operations you can do)
    7- With Report template(save it).
    8- Update the report template in the report definition(using the BIPub web interface
    9- Run the report again
    It means that front end page you need to edit this in Word page.
    The sources are here: http://www.oracle.com/technetwork/testcontent/oim-reports-9102-130923.zip
    I hope this helps,
    Thiago Leoncio.

  • How to add Column field in the custom Query Link search page as a header

    Hi,
    I have created a Query page link in web layout editor. Now, I want to customise the view of the result. I see an option to change the "Text1" and "text2", but how do I add other fields as a colum in the search result ?
    The only column I see by default Id, Title, release date and author. I want to see some of the custom metadata in the search result. I don't wan't to apply user specific custom search page.
    Overall, I want a common search view across all the user such that each user doesn't have to create a custom search view.
    Please help.
    Thanks

    hi
    By adding context node, you will not be able to fetch value. To fetch value in BTSubject, you need to have following nodes in your context node.
    Node          Relation                  Higher level node
    BTAdminH
    BTBOSSet  BTHeaderBOSSet   BTAdminH
    BTSubjectSet BTSubjectSet_A BTBOSSet
    BTSubject BTSubjectAll  BTSubjectSet_A
    Right now you dont have BTBOSSet and BTSubjectSet in your view. That is why component is unable to pull data in BTSubject.
    My suggestion would be to create cuco with above nodes
    Bind BTAdminH with BTAdminH of Component controller
    and bind BTSubject of details view with BTSubject of your Cuco.
    If you want code code gp catalog as it comes in complaint then there is seperate procedure for that.
    Best regards
    Pankaj Kumar

  • How to add a Link to a custom Search Componnent (HTMLB)

    Hi all,
    i developed a custom Search Component for the Search iView based on the <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/41cbcb56-0701-0010-43b4-fbc138ea2b6a">Tutorial</a> (CodeSamples Section) from Thilo Brandt. It extends the BaseCompositeComponent and implements the iSearchComponent. In the Tutorial he creates the Elements (Checkboxes, links, etc.) in the Method "renderComponent()". He also creates a Link, but i need it with a different function. The link in the tutorial a releases a new search roundtrip. I need to open a new Bowserwindow and show the content of a specified URL. How can i do that?
    The second Problem is that i have to show an icon for the Link. I added an Image to the the Project to the /dist/images Path. But how can i access this resource? The following code shows xou the Problem. I need to fill the variable pathToImage.
    Link linkToHelp = new Link(this.createCompositeComponentId("HELPLINK"));
    Image helpImage = new Image(<b>pathToImage</b>,"Help");
    linkToHelp.addComponent(helpImage);
    Thank you for answers.
    Marcus

    hi
    you don't need to use custom actions in order to add links to the quick launch menu. It allows to add links programmatically to the menu items collections directly, see e.g.
    Adding Links to Quick Launch. From this link check the following example which adds an item under the Lists heading in Quick Launch.:
    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Navigation;
    namespace ConsoleApp
    class Program
    static void Main(string[] args)
    using (SPSite site = new SPSite("http://localhost"))
    using (SPWeb web = site.OpenWeb())
    // Get the Links list or create it if it does not exist.
    SPList list = web.Lists.TryGetList("Links");
    if (list == null || list.BaseTemplate != SPListTemplateType.Links)
    // Create the list.
    Guid listId = web.Lists.Add("Links", "Interesting hyperlinks", SPListTemplateType.Links);
    list = web.Lists.GetList(listId, false);
    // Check for an existing link to the list.
    SPNavigationNode listNode = web.Navigation.GetNodeByUrl(list.DefaultViewUrl);
    // No link, so create one.
    if (listNode == null)
    // Create the node.
    listNode = new SPNavigationNode(list.Title, list.DefaultViewUrl);
    // Add it to Quick Launch.
    listNode = web.Navigation.AddToQuickLaunch(listNode, SPQuickLaunchHeading.Lists);
    Console.Write("\nPress ENTER to continue....");
    Console.ReadLine();
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How to call Party Validation in the Custom EDI Pipeline component

    Hi ,
    There are two business divisions in our organizations. We have one party. Now we have to enable the ISA13 duplicate functionality for one business divisions. But the sender will send the same ISA06 and ISA08. Inorder to enable it may followed
    the below approach,
    Receive the File -> Change the ISA08 value -> Publish -> Validate with the party (Check ISA13 enabled) .
    For the above process, created a pipeline component to change the ISA08 value. Now how do we can enable the message to get validated for "Validate with the party (Check ISA13 enabled)".
    Thanks,
    Sathish

    Thank you boatseller for the swift response.
    Yes I have created a new agreement with Check ISA13 enabled.
    Yes i have placed the custom component(replace ISA08) in the Decode stage, then i used the builtin EDIDisassembler in the Disassembler stage, It is working fine. But i don't want to disassemble the message. Just required to validate the Party with its agreement.
    And let it get streamed to next stage.
    Please advice.

  • How to add New Menu Bar using Custom.pll

    Hi All,
    I have developed a form based on the Oracle Apps form.For standard form i have to add one more menu bar in tools menu using custom.pll,i'm using 11.5.8 version.
    So can any one help me in thi regards as i'm new to this custom.pll,How can we add that New menu bar item and how can we open the custom.pll
    where we have to write the code and all the stuff.Which we have to use like wise.
    If any one is having the code on the regarding u can please pass me.
    Help me in this as it is urget to the client.
    Regards
    Siva

    Hi Donny thanks for ur reply,
    As i was new to the Custom.pll,i have opened the custom.pll throught Form Builder.I have found the packages of the Custom.pll,I have to add new Special Menu to it.If u have code can u please give me simple example.
    If I press that Menu I have to open New Form that i have Customized.And also to get values into that form.
    Can u please help me in this give me simple Example.In Which trigger i have to write the code and all the stuff....
    Bit urget
    If any one is having coding can pls send me to my mail id :[email protected]
    Regards
    Siva

  • How to Add/Edit validation rule for Column in ADf table(Jdeveloper11g)

    I am working on Jdevloper11g with ADF table. There i have one column where user can enter numeric value in range 1-1000 .So i have to add validation as such he/she can't enter value apart from 1-1000 range also not any other charcters.
    I know on form, if i select attribute from binding and right click i will find one option "Edit Vlaidation rule..." and from there i can change validation rule for perticular field.
    But how i can achive same on Column's filed??
    Thanks for all help.
    Jaydeep

    Hi Barnislav,
    I tried the way you mentioned but i am getting below exception.
    Could not complete Edit validation Rule... Because it would result in an invalid document
    oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element RangeValidationBean not expected [ node = RangeValidationBean ]
    <tree IterBinding="searchConfigurationDataIterator" id="searchConfigurationData" ApplyValidation="true">
    <nodeDefinition DefName="com.oraclecnm.util.search.SearchAttributeBean">
    <AttrNames>
    <Item Value="searchAttributeName" />
    <Item Value="searchAttributeId" />
    <Item Value="weightage" />
    <Item Value="isAttributeSearchable" />
    </AttrNames>
    </nodeDefinition>
    <RangeValidationBean OnAttribute="weightage" ResId="pages.SearchConfigurationPageDef.searchConfigurationData_Rule_1" Inverse="false" Severity="Error" Name="searchConfigurationData_Rule_0" OperandType="LITERAL" MinValue="1" MaxValue="1000" />
    </tree>
         at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3669)
         at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3577)
         at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2825)
         at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1166)
         at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1653)
         at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1684)
         at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2898)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:586)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:556)
         at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:469)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
         at oracle.adfdtinternal.model.ide.validation.RuleEditAction.actionPerformed(RuleEditAction.java:35)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
         at java.awt.Component.processMouseEvent(Component.java:6041)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Maybe you are looking for