Bind using an attribute?

I want to be able to bind to the directory using either my e-mail address, or my cn. Is there a way to setup this up in the directory, or would I have to write a script to query the directory, find the dn, and then login using that?
example: my account is set up as: dn:cn=john smith,dc=abc,dc=com
Within the entry, John has a mail attribute of: [email protected]
Can I set up 5.2, so that John can bind as mail=[email protected]
Thanks.

Hi There,
My managed bean definition is:
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>SessionBean1</managed-bean-name>
<managed-bean-class>jimmysmortgagepaymentcalculator.SessionBean1</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>ApplicationBean1</managed-bean-name>
<managed-bean-class>jimmysmortgagepaymentcalculator.ApplicationBean1</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>Page1</managed-bean-name>
<managed-bean-class>jimmysmortgagepaymentcalculator.Page1</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>com$bloodoo$PaymentBean</managed-bean-name>
<managed-bean-class>com.bloodoo.com$bloodoo$PaymentBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>PaymentBean</managed-bean-name>
<managed-bean-class>com.bloodoo.PaymentBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Regards
Jim

Similar Messages

  • Difference between using Binding and Value Attribute

    what is the deference between using binding and value attribute, when I use binding attribute at the time of Value change listener is behaving like action listener,
    Ex:
    If I use value attribute, at the time of value change listener the component is not showing the result in the component but when I use Binding attribute it is happening automatically. So I want to know how the binding attribute is working.
    I know, at the time of binding attribute the component is creating an instance at the bean side, So even also how it is following the life cycle of the JSF Frame work, and also Please suggest me weather which one is better to use either Binding or Value?

    JNaveen wrote:
    If I use value attribute, at the time of value change listener the component is not showing the result in the component but when I use Binding attribute it is happening automatically. So I want to know how the binding attribute is working.You need to learn about the JSF lifecycle. The ValueChangeEvent is invoked after conversion and validation in the 3rd phase, while the model values are updated in the 4th phase. In the valueChangeListener method you normally use ValueChangeEvent#getNewValue() to get the new value after the change.
    I know, at the time of binding attribute the component is creating an instance at the bean side, So even also how it is following the life cycle of the JSF Frame work, and also Please suggest me weather which one is better to use either Binding or Value?Use the 'value' attribute to bind the value to the bean. Use the 'binding' attribute to bind the component to the bean. If you don't need to precreate the component or do other things than getting/setting its value, then there is no need for the 'binding' attribute.
    Read on those links if you want to know something more about the JSF lifecycle:
    [http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html].
    [http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html] (pick 1st download).

  • How to bind a specific attribute of an element to an input field

    HI,
    in my web shop application I create an overview page of the items dynamically in the wdDoModify Method. Each item has it's own transparent container. I do not use tables or row repeaters, because they did not fullfill my requirements.
    Now I have the problem to bind a specific attribute to an input field.
    I bind the value with following code:
    amountInput.bindValue(item.getAttributePointer("amount").getAttributeInfo())
    item is the element of the item to display. amount is the attribute with type integer.
    The problem is, that I have 4 Items on the screen. When I enter a value for amount, all amounts on the screen are the same. So I guess that the input field is not bound to the correct element.
    Has anybody an idea what I have done wrong? Or which string for bindValue do I have to use for example for an attribute of the 5th element in a node?
    Best regards,
    Peter

    Peter, you can set the context node to mutiple select, but you have to select it on item variable, like:
    item = wdContext.nodeXXX.getElementAt(1);
    amountInput.bindValue(item.getAttributePointer("amount").getAttributeInfo())
    item = wdContext.nodeXXX.getElementAt(2);
    amountInput2.bindValue(item.getAttributePointer("amount").getAttributeInfo())
    Regards,
    Edson Thomaz

  • Use of attributes in FIX statement w/ other mbrsets

    Hi all,I just discovered that in 6.1.4, using a FIX statement like:FIX (@ATTRIBUTE("Diet"), @LEVMBRS(Products, 0))will actually select all products, not just a subset that have the attribute "Diet" (where "Diet" is, of course, an attribute of products).Now you might think I'm ignorant, since it seems logical that the subset "Diet" might be overridden by the superset "Products". However the same problem happens if I use:FIX (@ATTRIBUTE("Diet"), @ATTRIBUTE("Discontinued"))This statement returns neither the intersection nor the union of those two subsets - I seem to get ALL products.What gives? Am I just a foolish country boy?-dan

    Does this select ALL of the products, or just the Level 0 products? The reason I ask is that the statement will not be combined using AND logic - only members of different dimensions will be combined using AND logic. Try the following:FIX (@LEVMBRS(Product, 0) AND @ATTRIBUTE(Diet))Now, if your attribute is at level 0 (I assume it is) and you want to select them, just use:FIX (@ATTRIBUTE(Diet))That will select all of the products that have a Diet attribute.Hope that helps.Regards,Jade-------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Error in committing data while using dynamic attributes

    Hi,
    Module: Performance Management
    Page: Give Final Ratings: Main Appraiser
    Here, I have used dynamic attributes to show the competency name without segments.
    I have added this attribute through controller and i passed value to this attribute in the same ProcessRequest method.
    But, when the manager tries to complete the appraisal for his employee by pressing the continue button in the above mentioned page, the following exception is throwing.
    "This competence already exists within the assessment."
    Is this dynamic attribute will be the problem for this?
    can any one please tell me?
    Thanks in advance,
    SAN

    Hi,
    If you added the column from Extended Controller. It should be a transient attribute to the VO and I think it should not create any issues.
    Error "This competence already exists within the assessment." looks like from an FND Message , You can try to debug this issue by finding the FND Message Name corresponding to the error and search the Message Name in the seeded code.
    -Idris

  • How to use extends attribute in jsp page directive

    Can anybody tell how to extend a existing .jsp file from another .jsp file. I have tried but it gives error.
    I have used Extends attribute of page directive as below:
    <%@ page extends = "MyAnotherJsp.jsp"%>
    I also tried : <%@ page extends = "MyAnotherJsp"%>
    I am using Tomcat as a web server
    Also tell where to put those files.
    Thanks.

    Hi I am using Netbeans 5.5, Sun Java System Application Server 9.
    ABC.java
    package javapackage;
    public class ABC{
    public String show(){
    return "Sandip Gaikwad";
    index.jsp
    <%@ page extends="javapackage.ABC" %>
    <html>
    <head>
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page </h1>
    </body>
    </html>
    Above code throws following exception at runtime:-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    Server log
    StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] F:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\Page_Extends_Attribute_Example\org\apache\jsp\index_jsp.java:36: getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) in javax.servlet.jsp.JspFactory cannot be applied to (org.apache.jsp.index_jsp,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,<nulltype>,boolean,int,boolean)
    [javac] pageContext = _jspxFactory.getPageContext(this, request, response,
    [javac] ^
    [javac] 1 error
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:94)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:384)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:461)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:528)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:507)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:530)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:412)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:318)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    If I delete the line <%@ extends="javapackage.ABC"%> it works fine. Please tell me what is wrong with this line.

  • How to use 'roles' attribute in action-mapping ?

    Hi,
    Can anybody tell me what are the steps needed to use 'roles' attribute in <action> tag of struts-config.xml file?
    I want to provide Action level security.
    Also pls post an example if u r having.
    Regards
    Veeru

    Hi,
    The RfcAdapter trys to find a Sender Agreement for this RFC call but the lookup failes. The values used for this lookup are:
    Sender Party/Sender Service: The values from Party and Service belonging to the sender channel.
    Sender Interface: The name of the RFC function module.
    Sender Namespace: The fix RFC namespace urn:sap-com:document:sap:rfc:functions
    Receiver Party/Receiver Service: These fields are empty. This will match the wildcard
    Regards,
    Suryanarayana

  • Use request attributes in JSF

    Is there a way we can pass data from one form bean to the other using request attributes insted of session attributes?
    I am able to work with session attributes using
    HttpSession mySession = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(true); and setting attributes to it, but getting null pointers(occassionally) when I retrieve the atribute and work with it.
    getSession(false) isnt helping either.
    Looks like facesServlet is creating a new request when it forwards to next page. Any idea on how to get the Faces Servlet do something like request despatcher forward, for navigation so I can work with request attributes?
    Appreciate your input.

    Can I have just one backing bean and use it for all jsps in the app? App has 4 flows from home page and mutiple jsps in each flow. Each jsp has multiple form fields. Is that OK?
    Any way to passing data/objects between different backing beans - other than using session attributes? I had similar problems working on Struts app as well.

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • Using action attribute of netui:button in WSRP

    In WSRP When I use action attribute of <b>netui:button</b> tag to override the action attribute of the <b>netui:form</b> tag but the button doesnt override the action attribute of netui:form tag. Please tell me the reson and solution for this problem.

    Please attach a sample repro case.
    Subbu
    Rajiv Gandhi wrote:
    In WSRP When I use action attribute of <b>netui:button</b> tag to override the action attribute of the <b>netui:form</b> tag but the button doesnt override the action attribute of netui:form tag. Please tell me the reson and solution for this problem.

  • Can we use Navigational attributes as Virtual Characteristics

    Hi,
    I need to derive the virtual characteristic based on 2 infoobjects in the multiprovider. One of the infoobject is a navigational attribute. I am using the BADI approach to create the virtual characteristic. Can we use navigational attributes to pass values to derive the virtual Char or is there any limitation.
    Basically can I use the below code to read navigational attr
    when <b>'0EMPLOYEE_0JOB'</b> OR '0PROFIT_CTR'.
              l_s_chanm-chanm = <chanm_used>.
              l_s_chanm-mode = rrke_c_mode-read.
              append l_s_chanm to c_t_chanm.
    Thanks,
    Kal

    Hi Kal,
              I think you model a virtual KFig in the way you have suggested.I think the routine will work.Its looking similar populating  a field using read masterdata.I think it will work.
    Regards
    Karthik

  • Difference between drill down and filter using navigation attributes?

    hi all,
    can anyone let me know the difference between filter and drilldown options using navigational attributes. pls explain with examples for filter and drill down and how it varies.
    thanxs
    haritha

    Jst to add up with an example :
    Say you have a cost center variance analysis report with cost elements in the filter. ( not present in the default report result )
    Filter - You can right click on a particular cost center & say " Keep Filter Value " - it will result in only showing that cost center & you can wish to select other filter value doing " Select Filter Value ".
    Drill Down - If u wish to see the cost elements associated with cost centers you can right click on Cost Center & do " Drill Down To - Cost Element " or Drill Across.

  • Dynamic calc account using an attribute filter

    Hi experts,
    I have an account member as a dynamic calc tagged as two-pass, Its formula is: StoreMember1 / (StoreMember2/StoreMember3->MEMBER_IN_SPARSE_DIM),
    When i'm using an attribute filter that´s linked to one of my sparse dimensions the values of the account is not correct because it´s a percentage and the attribute filter just SUM the percentage of the values.
    What i really need and i don't know if it´s possible, is a way to recalculate my dynamic calc member after the attribute aggregate the value.
    Product1 Tagged as (Atribute XYZ)
    Product2 Tagged as (Atribute XYZ)
    StoreMember1->Product1 = 80
    StoreMember2->Product1 = 100
    StoreMember3->MEMBER_IN_SPARSE_DIM->NA_PRODUCT = 10
    80 / (100/10) = 8
    Dynamic_%->Product1 = 8% (Correct)
    StoreMember1->Product2 = 80
    StoreMember2->Product2 = 100
    StoreMember3->MEMBER_IN_SPARSE_DIM->NA_PRODUCT = 10
    80 / (100/10) = 8
    Dynamic_%->Product2 = 8% (Correct)
    StoreMember1->(Atribute XYZ) = 160
    StoreMember2->(Atribute XYZ) = 200
    StoreMember3->MEMBER_IN_SPARSE_DIM->NA_PRODUCT = 10
    160 / (200/10) = 8
    But in My calc
    Dynamic_%->(Atribute XYZ) = 16%  (But i need 8%)
    I'm using Plannig\Essbase 11.1.2
    Thank you in advance for your help

    The numbers are just to illustrate what is happening, my real numbers are others, there are about thousands products more.
    StoreMember2->(Atribute XYZ) = 200 it´s probably ok
    Because is the sum of the Product1 Tagged as (Atribute XYZ) = 100 + Product2 Tagged as (Atribute XYZ) = 100
    What´s happened is that when i look in XYZ attribute its simply sum after my dynamic calc
    StoreMember1->Product1 = 80
    StoreMember1->Product2 = 80
    StoreMember1->(Atribute Filter XYZ) = 160 (Ok)
    StoreMember2->Product1 = 100
    StoreMember2->Product2 = 100
    StoreMember2->(Atribute Filter XYZ) = 200 (OK)
    StoreMember3->MEMBER_IN_SPARSE_DIM->NA_PRODUCT = 10 (OK)
    160 / (200/10) = 8
    DynamicCalc% = 16 (wrong probably the attribute is a dynamic dimension that sum after dynamic calc Member)

  • Source Used Item Attribute

    Hi All,
    I am using HTML DB 2.0. I am a new user of HTMLDB. Please explain the difference between 2 Source Used Item Attribute
    1. Always, replacing an existing value in session state
    2. Only when current value in session state is null.
    If there is already a thread on this, please give me the link.
    Thanks in advance
    Monika

    So are you saying that this behaviour is different in v1.6?Yes. Otherwise the PPR stuff wouldn't work when those requests referenced uncommitted session state.
    You mean, "will NOT be able to ..."No, it will be able to see the value of the item (in uncommitted session state). That's the change from 1.6.
    What is an example of a "session-state committing source method"? Code that not only sets the source of the item for display but as a side-effect cause update_cache_with_write to occur for that item or for any other item(s). For example a PL/SQL Function source type that returns the source value and also does :P1_ITEM := 'value'; .
    Scott
    Message was edited by:
    sspadafo

  • I am unable to get tooltips in Firefox for my application though i am using title attribute.

    I am unable to get tooltips in Firefox for my application though i am using title attribute.
    I have even set the browser.chrome.toolbar_tips property to true. I am getting tooltips for all other sites except mine application.

    Can you post the code that isn't working or a link to a website with that code?
    Did you check for other elements covering that link?
    * https://developer.mozilla.org/En/DOM_Inspector
    * https://developer.mozilla.org/en/Introduction_to_DOM_Inspector
    * DOM Inspector: https://addons.mozilla.org/firefox/addon/6622

Maybe you are looking for

  • Project Pro 2013 client Deployment with Lync 2010 and Team Explorer Excel Issues Following

    Current machines are Office 2010 SP1 or SP2 32-bit Just deployed Project 2013 Pro and Std to the existing machines that had Project 2010 Pro or Std.  We selected the full install since people use integration into different tools. Results: lync 2010 6

  • XI 3.0: Startup/Shutdown problem

    Hi everybody. In our scenario we have a JDBC Sender channel: we noticed that when the XI machine is stopped/restarted (without stopping the sender channel before)we have some error in the firsts polling cycles: that is, it seems that the Adapter is a

  • V1.x presets in 2 are the cause of blockiness

    I wish stumbled across this before: "Compressor 1.x settings do not work with Compressor 2" http://docs.info.apple.com/article.html?artnum=302019 I was inadvertently using the old presets (you should not see a MPEG2 - 60min option which is what I fav

  • SAP SDK DoQuery Help

    Hi I'm going to update morethan one transactions at ones. can i use transaction block? then if there is a failure in one transaction, i can rollback the whole transactions. Please help me to solve this problem kind regards, Chaminda Ratnayake

  • Flipping image in midp 2.0

    Hi All, I am trying to flip the image which is in integer array ( int[] ) format. I use drawRGB() method which takes int[] to paint. At one point of time i need to rotate the image ( which is in int array ) by 180 degree and paint it on the screen. (