Editing onClick attribute of an ActionLink

Hi,
I want to create a Disconnect link on my JSF application. I would like to have a JavaScript confirmation of the disconnection before it is done.
The problem is that JSC automatically generates the onClick method of my actionLink and so I cannot override it to put my JavaScript confirmation to avoid the form being submitted if the user selects Cancel.
Would you have a solution for this?

I found the thread http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51657 which reports a similar problem.
The answer was:
"This is a known issue. A change request has already been filed for the same."
This answer was posted in February. Have things changed since?

Similar Messages

  • Create/Edit "Custom Attributes" in Dynamic Distribution Groups

    Hi,
    I wanna create a Dynamic Distribution Group based on the users "title" and "company".
    I've noticed that there are 15 "Custom Attributes" that I can edit in someway, I guess via PowerShell?
    So what is the easiest way to accomplice this?

    Hi,
    Agree with the above suggestion, you can also bulk change the custom attributes:
    Get-Mailbox -ResultSize Unlimited -Database Execs | Set-Mailbox -CustomAttribute1 “title”
    http://dougg.co.nz/2012/05/01/bulk-setting-exchange-2010-custom-attributes/
    to Edit Custom Attributes:
    get-mailbox -filter {customattribute1 -eq ""} | set-mailbox -customattribute1 = "<value>"
    And here is a reference about Create/Edit "Custom Attributes" in Dynamic Distribution Groups:
    http://windowsitpro.com/exchange-server-2010/exchange-2010-sp2-value-custom-attributes
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best regards,
    Angela Shi
    TechNet Community Support

  • Problem in onClick attribute of the netui:anchor tag

    Hi,
    I have a String object to be passed to the javascript function with onClick attribute.
    eg: <%String st = new String("helo");%>
    <netui:anchor action="display" onClick="display()">
    I want to pass the object st to the java script so that I can do some validations. how can I do that. If I say,
    onClick="display('<%=st%>')" it is not working. can you please suggest me a solution.
    Regards,
    Satish.

    I haven't tried this with the netui:anchor tag, but it works with the netui:button tag.
    <%
    String onCl = "display('" + st + "')";
    %>
    <netui:anchor action="display" onClick="<%=onCl%>">
    Apparently, you can place a scriptlet inside the onClick attribute, but you cannot intermingle the scriptlet with plain text.
    Also, the onclick attribute appears not to support XScript ({request.whatever}). I find that weird.

  • Repeating Regions and Editable Tag Attributes?

    I want to produce a template that will let users create pages
    that list items as a thumbnail image and a short text description,
    one after the other.
    I can set this up as a repeating region, but I would also
    like to make only certain attributes of the image editable (src and
    alt for example). However, when I use editable tag attributes to do
    this, the image in each repeated region ends up with the same
    attribute values - when I add a new repeat region and then change
    the src tag through the Template Properties dialog,
    all of the images take on the same src value. Looking at the
    code, it looks like the editable instances in each repeated region
    get the same name, and so I can see that DW will get confused.
    Is this a limitation in DW? Is there a work around anyone can
    suggest?
    TIA

    So, you have some number of people who are editing the child
    pages and you
    want to constrain their editing choices? Are you using
    Contribute?
    Anyhow, I am not aware of any convenient way you can do
    something like this
    using DW's Template features.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "manicbananic" <[email protected]> wrote in
    message
    news:g7pimq$fvg$[email protected]..
    >I want to produce a template that will let users create
    pages that list
    >items
    > as a thumbnail image and a short text description, one
    after the other.
    >
    > I can set this up as a repeating region, but I would
    also like to make
    > only
    > certain attributes of the image editable (src and alt
    for example).
    > However,
    > when I use editable tag attributes to do this, the image
    in each repeated
    > region ends up with the same attribute values - when I
    add a new repeat
    > region
    > and then change the src tag through the Template
    Properties dialog,
    >
    all
    > of the images take on the same src value. Looking at the
    code, it looks
    > like
    > the editable instances in each repeated region get the
    same name, and so I
    > can
    > see that DW will get confused.
    >
    > Is this a limitation in DW? Is there a work around
    anyone can suggest?
    >
    > TIA
    >

  • How to edit the attributes of a SAP standard screen?

    hello all,
    i would like to ask if it is possible to edit the attributes (particularly the language) of a SAP standard screen without using any access key? if yes, how would i be able to apply the changes?
    thanks!
    - annalyn

    Hi,
    Screen attributes are stored in table D020S. You can update this table using ABAP code. The language is stored in field SPRA of this table. The texts appearing on the screen are in D020T.
    It is likely you will not be allowed aa data modification statement (INSERT/UPDATE...) on these tables if you are on newer versions of SAP (46/47...). You can bypass that by using native SQL and some other workaround (which might be another thread here).
    It is most strongly recommended to not modify SAP standard objects, and specially not without an object key. However, if you are working on something like a miniSAP and want to play around with it, the method mentioned above shall do.
    Hope this helps,
    cheers,
    Ajay

  • Skillbuilders Modal plugin onclick attribute gets removed

    Hi,
    Apex 4.2.0.00.27, IE8, Firefox 17.0
    I am trying to use the Skillbuilders Modal plugin with a classic report. I followed the instructions and in the link column put the following in the link attributes:
    onclick="return false;" class="edit-link"
    When I click the classic report 'edit' link the new page opens full size instead of in a modal window (it works correctly from a separate button). Examination of the page in Firebug suggests that the 'onclick="return false;" attribute is being removed.
    Page Source excerpt:
    &lt;tr class=&quot;highlight-row&quot;&gt;&lt;td headers=&quot;ID&quot; class=&quot;data&quot;&gt;&lt;a href=&quot;f?p=1:52015:15766172029982::NO::P52015_ID:1&quot; onclick=&quot;return false;&quot; class=&quot;edit-link&quot;&gt;&lt;img src=&quot;/icas/edit.gif&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/td&gt;&lt;td headers=&quot;ADO_ASA_ID&quot; class=&quot;data&quot;&gt;1&lt;/td&gt;&lt;td headers=&quot;EXT_BOD_ID&quot; class=&quot;data&quot;&gt;1&lt;/td&gt;&lt;td headers=&quot;DATE_CREATED&quot; class=&quot;data&quot;&gt;29-May-2013&lt;/td&gt;&lt;td headers=&quot;USER_CREATED&quot; class=&quot;data&quot;&gt;SC&lt;/td&gt;&lt;td headers=&quot;EMPLOYEE_ID&quot; class=&quot;data&quot;&gt;1&lt;/td&gt;&lt;td headers=&quot;DISCUSSION&quot; class=&quot;data&quot;&gt;test&lt;/td&gt;&lt;td headers=&quot;CONTACT_DATE&quot; class=&quot;data&quot;&gt;29-May-2013&lt;/td&gt;&lt;/tr&gt;
    Firebug excerpt:
    &lt;a class=&quot;edit-link&quot; href=&quot;f?p=1:52015:15766172029982::NO::P52015_ID:1&quot;&gt;
    I tried create do a simple version to upload, but as is always the way, that one worked fine.
    Can anyone suggest why the onclick="return false" bit might be getting dropped?
    Thanks,
    Nick.

    Further info - the page in question has a Form and a Report region. The modal window opens correctly if I remove the page process for updating the form (the standard 'Process Row...'). Setting a condition of 'Never' has no effect, the mere prescence of this page process is enough to break it.
    Does anyone know if Apex 5.0 will have a simpler Modal functionality, or will it be based on this plugin? In other words, should I persevere with it or wait for the new version.
    Apologies for the useless code extract above - it looked fine when I posted this on the old forum but the new 'improved' one can't seem to cope with it.
    Nick.

  • Bug editing report attributes in Firefox

    Has anybody logged this problem before?
    It occurs in Apex 2.2 and 3.0 and FireFox 2.2, but I cannot reproduce it using IE6.
    Open a page with a report region and go to the report attributes.
    Look at the Headings Type and remember the setting.
    Edit one of the columns using the "pencil icon".
    Go back to the report attributes using the back button in the browser.
    The Headings Type has changed!
    This can cause you to lose your custom headings.
    Rob

    from someone who clearly knew HTMLDB/Apex inside and out I'd say 'clearly not' if they said it wouldn't work on other browsers than IE ;)
    Unless you're misquoting or mis-remembering what they actually said then that statement you heard was in direct conflict with the "Supported Browsers" section of the documentation -
    http://download-uk.oracle.com/docs/cd/B32472_01/doc/relnotes.300/b32465/toc.htm#BGBCEGBI
    which quotes -
    To view or develop Oracle Application Express applications, Web browsers
    must support JavaScript and the HTML 4.0 and CSS 1.0 standards. The
    following browsers meet this requirement:
    Microsoft Internet Explorer 6.0 or higher (Windows only)
    Firefox 1.0 or higherI'll also add that 'officially supported' and 'will work' are actually two different things. I use a Mac and my browser of choice is usually Safari or Firefox and whilst Safari is not 'officially supported' the APEX Application Builder works absolutely fine (the SQL Workshop does not work though). However pretty much every application that I develop with APEX will also work in Safari quite happily.
    not like those fly by night trainers who just go on the course themselves to teach it the next >week straight from the notes as I've seen on a few of the coursesI'm not sure who you're referring to specifically, but as with any course the best people (I have found) to teach are those people who do use the product day in and day out and have a passion for it, so perhaps it's another good opportunity to point out the following link -
    European APEX Training
    http://eurotraining.apex-evangelists.com/
    (end of shameless self-advertising ;)
    There are also many other great teaching courses around, including the event at ODTUG -
    http://www.odtugapextraining.com/
    and trust me...you won't hear anyone saying things like "APEX doesn't work in anything else but IE" at any of these training events ;)

  • Change/Edit Request Attributes in CUP at Approval Stage

    Hi All,
    We have SAP GRC AE/CUP 5.3 SP07 installed in our environment. In our work flow of the request, there is a requirement that some of the request attributes need to be changed by the role owner/ approver at the approval stage of the request. The request contains both SAP standard as well as some custom attributes. I only see an option to edit the validity date or the roles/profiles of the request at the approval stage. Is this option configurable? If not, do we have any work around to achieve the requirement?
    Thanks, Anil

    Hi Harleen and Alpesh,
    We are in GRC 5.3 SP8 and we would like to allow approvers in each stages to change the validity date (e.g. Valide to date) in a role request.   Here is the situation:
    I have a workflow path which has two approval stages.   Both stages were configured to allow "Change Request Content".    What I noticed is the approver in the first approval stage can change the validity date and then approve the request.    But when the request is on the 2nd approval stage, the approver can no longer modify the validity date.  
    Is this the same scenario which Harleen said that "You cannot edit the information of a request once it enters the approval stages"?   If this is the same scenario, do you know whether a fix is considered by  or available from SAP? 
    There may be situations where we don't want the 2nd approver to overwirte what 1st approver has approved.   However, in some situations we may want to keep that flexibility to let the later approver to have the last say.
    Thanks for your input.

  • Why My Screen Painter Only can Edit Specific Attributes

    In my Screen Painter, i only can edit the item's specific Attr,like Caption,but I can't edit the uniqueID,Type.....
    The specific Attr has a EditTxt dialog that i can enter my value,but for the items, it seems disapear. I only see the Attr Name and scrollbar,no edit dialog.
    Why?

    Hi Frank,
    I'm not sure wether I have well understand your problem, I will try to answer anyway.
    The UniqueID, Type, Description... attributes are included into the general item characteristics. When you click on an item you can see in the Items tab all the attributes (in the top the general ones and in the bottom the specifics).
    I can modify all the items attributes without problem.
    Are you using a specific item type?
    Which B1/SDK version do you have?
    Regards
    Trinidad.

  • Restricting Edit of Attribute Sets against a BP

    Hello All,
    I have a requirement to be able to restrict the editing of Marketing Attributes against a BP. 
    The scenario is this.  SAP CRM receives BP from an external system via an interface.  Part of this interface delivers some marketing attributes.  The attributes in this set must not be editable in SAP CRM.  I have investigated the use of authorisation objects BGRKP and BGRKL, but these only control the ability to maintain the attribute set data, as far as I can see, and not to control how the attributes are handled at the BP level.
    Any help greatly appreciated.
    Many thanks
    Jon

    Hi Jon,
    You need to use C_CABN_GRP auth object, to use it first you need to assign some value in tcode CT04 for those particular attribute and then in pfcg role use the same value and in Activity give only Display access.
    Also i have answered similar question in below thread which might be useful in your case. Just try to give Display only access in Activity for below ones too (which i mentioned in my reply there)
    Marketing attributes visibility
    Regards,
    Shobhit

  • How can edit hyperlink attributes?

    Adobe Muse 2014: I can't seem to figure out how to change hyperlink attributes such as: remove the underline, changing size or color, or pretty much anything to do with links. I see them under Character Style Options, but don't see anywhere to change them. I know it's going to be a goofy question and that I'll find it right after posting, but I can't find anything online about it.
    Any help would be appreciated. Thanks

    Go to "Hyperlinks" in your top toolbar. Click the word "Hyperlinks" (which is hyperlinked and shows as blue text). When the little window pops up, click "Edit Link Styles". You should get a "Site Properties" window. Click the "Content" tab.

  • Script to edit 'isCriticalSystemObject' attribute

    Is it possible to write a script to set an OU that contains security groups' attribute 'isCriticalSystemObject' to true?
    Sean

    In AD DS, the following attributes are disallowed in a Modify for an object of class user:
    badPasswordTime,
    badPwdCount,
    dBCSPwd, isCriticalSystemObject,
    lastLogoff,
    lastLogon, lastLogonTimestamp,
    lmPwdHistory,
    logonCount,
    memberOf, msDS-User-Account-Control-Computed,
    ntPwdHistory,
    objectSid,
    rid, sAMAccountType, and
    supplementalCredentials. If one of these attributes is specified in a Modify, the Modify returns
    unwillingToPerform / ERROR_DS_ATTRIBUTE_OWNED_BY_SAM.
    In AD DS, the following attributes are disallowed in a Modify for an object of class group: isCriticalSystemObject, memberOf, objectSid, rid, sAMAccountType, and userPassword. If one of these attributes is specified in a Modify, the Modify returns
    unwillingToPerform / ERROR_DS_ATTRIBUTE_OWNED_BY_SAM.
    From: http://msdn.microsoft.com/en-us/library/cc223462.aspx
    ¯\_(ツ)_/¯

  • AM 8.0 Editing Message Attributes?

    OK, i just updated to apple mail 8.0 and noticed each email listing shows an "inbox-XXX" listing for each email or whatever mail box list is selected "draft-XXX", "sent-XXX"
    Under "View > Message Attributes all the attributes are grayed except "Size" (odd) so I cant turn off the "TO" attribute
    I also looked in prefs and found no setting that will effect what is displayed.
    How do I turn this listing off, it's taking up too much room and truncating the subject line of the emails.
    Thanks
    497

    Hi,
    No issue,the meaning of restricted mode is that no one connect to oracle database while migration is going on.
    Thanks
    Kuljeet

  • Show ItemRenderer only when editing (onclick)

    I have a datagrid, that after the user has logged in becomes editable.
    I would like that when the user clicks into a given field, say a date or number field, an itemRenderer that corresponds to the type of date appear.
    Example: if i click into the date field, i get a datechooser, or a numericStepper when i click into a number based field.
    Then after I click out of that field, it just shows the value, no longer the itemRenderer.
    FYI, I am using Pure MVC, so this logic is in a mediator '.as' class.
    Please help.

    I am getting the itemEditor to work mostly now.
    problem i am having is, after i switch the datagrid to become editable and then click into a given field (ie: itemEditor as a numeric stepper), if i just click in and out of the field, but do not make any changes to it, the data in the field either becomes "NaN" (in the case of a numeric stepper editor) or just blank (in the case of a combo box editor)
    Here is my code:
    DataGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    PureMVC AS3 Demo - Flex Application Skeleton
    Copyright (c) 2007 Daniele Ugoletti <[email protected]>
    Your reuse is governed by the Creative Commons Attribution 3.0 License
    -->
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    width="100%" height="100%">
    <mx:Script>
      <![CDATA[
      import com.*;
      import flash.events.Event;
      import mx.controls.DataGrid;
      import mx.controls.dataGridClasses.DataGridColumn;
      import mx.controls.Alert;
      import flash.net.URLRequest;
      import mx.controls.NumericStepper;
      import mx.controls.DateChooser;
      import mx.controls.CheckBox;
      import mx.controls.ComboBox;
      public static const CREATION_COMPLETE: String = "myCreationComplete";
      public static const LOAD_SETTINGS: String = "load settings";
      private function dateFormat(item:Object, column:DataGridColumn):String
      return df.format(item.date);
      public function onLinkBtnClick(request:URLRequest):void
      //trace("urlRequest: "+request)
      try {
        navigateToURL(request);
      }catch (e:Error) {
        // UNFORTUNATELY, THE ERROR IS THRU INTERNET EXPLORER AND IS NOT CAUGHT HERE
        trace("error: " + e)
        Alert.show("There was an error in opening the requested file!")
      }]]>
    </mx:Script>
    <mx:DateFormatter id="df" formatString="MM/DD/YY"/>
    <mx:VBox width="100%" height="100%" verticalGap="0" >
      <mx:HBox id="cbHBox" width="100%" height="0" fontWeight="bold" horizontalAlign="right" visible="false" >
      <mx:CheckBox id="selectAllCB" label="Select All / None" labelPlacement="left" fontWeight="bold" color="0xFFFFFF" />
      <mx:Spacer width="{colSelected.width/2 + 2}" />
      </mx:HBox>
      <mx:DataGrid id="settingsDataGrid"
      height="100%" width="100%"
      editable="false"
      horizontalScrollPolicy="off">
      <mx:columns>
        <mx:DataGridColumn width="24" headerText="Number" dataField="number" resizable="false"/>
        <mx:DataGridColumn width="120" headerText="Title" dataField="title" />
        <mx:DataGridColumn width="20" headerText="Date" dataField="date" labelFunction="dateFormat" editorDataField="dfDate" itemEditor="com.view.itemRenderers.DGDateFieldEditor"  resizable="false" />
        <mx:DataGridColumn width="12" headerText="Book" dataField="book" editorDataField="nsBook" itemEditor="com.view.itemRenderers.DGNumericStepperEditor" resizable="false" />
        <mx:DataGridColumn id="colType" width="14" headerText="Type" dataField="type" editorDataField="cbType" itemEditor="com.view.itemRenderers.DGTypeComboBoxEditor" resizable="false" />
        <mx:DataGridColumn width="10" textAlign="center" headerText="Link" sortable="false" draggable="false" resizable="false"
        dataField="link" itemRenderer="com.view.itemRenderers.DGLinkButtonEditor"
        rendererIsEditor="true" editable="false"/>
        <!--<mx:DataGridColumn id="colSelected" width="46" headerText="Select" visible="false" editable="false" itemRenderer="{CheckBoxRenderer}"  editorDataField="selected" />-->
        <mx:DataGridColumn id="colSelected" width="46" textAlign="center" visible="false" sortable="false" draggable="false" resizable="false"
        headerText="Select" dataField="sel" itemRenderer="com.view.itemRenderers.DGCheckBoxEditor"
        rendererIsEditor="true" editorDataField="cbSelected"/>
      </mx:columns>
      </mx:DataGrid>
    </mx:VBox>
    </mx:Canvas>
    DGNumericStepperEditor.mxml
     <?xml version="1.0"?>
    <!-- itemRenderers\dataGrid\myComponents\EditorDGCheckBox.mxml -->
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
    implements="mx.controls.listClasses.IDropInListItemRenderer,mx.managers.IFocusManagerComp onent"
    horizontalAlign="center" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
             import mx.controls.listClasses.ListData;
       import mx.controls.dataGridClasses.DataGridListData;
       import mx.controls.listClasses.BaseListData;
       import mx.controls.dataGridClasses.DataGridItemRenderer
       import mx.events.FlexEvent;
       import mx.controls.Alert
       private var _listData:DataGridListData;         
                // Define a property for returning the new value to the cell.
                public var nsBook:Number;           
                // Implement the drawFocus() method for the VBox.
                override public function drawFocus(draw:Boolean):void {
        bookNS.setFocus();
       [Bindable]
       override public function set data(value:Object):void{
        super.data = value;
        bookNS.value = data[_listData.dataField];
       override public function get data():Object {
        return super.data;
          public function get listData():BaseListData
        return _listData;
       public function set listData(value:BaseListData):void
        _listData = DataGridListData(value);
            ]]>
        </mx:Script>
    <mx:NumericStepper id="bookNS" horizontalCenter="center" maximum="18" width="100%"
            click="nsBook = bookNS.value" />
    </mx:VBox>
    PLEASE HELP, getting these itemRenderers and itemEditors to work properly is DRIVING ME CRAZY!!!

  • JDev 9.0.3. : JBO Event and "OnClick" attribute" can work together ?

    Hi,
    I've a JSP page developed by JDeveloper 9.0.3, with a checkbox item:
    <input name="pluto" type="checkbox" value="1" onClick="" />
    I need to execute some transactions on db everytime "pluto" is checked or uncheked. I'd like to handle this by a JBO Event, is it possible?
    I know that I could use javascript to handle the "OnClick" event, but how can execute insert statement on db using the same connection already defined in my JSP application?
    Thanks in advance.
    Nunzio

    Repost

Maybe you are looking for