Different behavior: Hyperlink vs Button, please advice

I have a "Customers" page, that lists all customers using Data Table bound to a customerDataProvider. User can click on the first column to go to "Customer Detail" page, which has its own data Provider and provides more details about the specific customer. So far so good.
In the "Customer Detail" page, I added a "Close" button and a "Close" hyperlink (to test). The purpose of these is to close the detail page and to go back to "Customers" page. Simple, right.
This is what I found:
When you click on the close hyperlink in the detail page, it goes back to the master page (Customer page), and the master page remembers its state (page number, sorting, etc.)
When you click on the button (I tried both ui:button and h:commandButton), the master page goes back to its default state and it does not remember its state.
I would like to use the button and have the page remember its state. Why are they behaving different? Any insights?

So, I have two choices:
1. Disable "Submit" on the "Close" button - since its just a link and it doesn't need to submit. But I can't figure out how to disable submit and make the button act like a hyperlink.
2. Use session bean to store the table state. I just tried this one to save sorting and it worked, but I need to save all other parameters of table state, like page number, records per page, filtering, etc. Is there just one function that I can call to store all these, or do I need to save each one seperately?
In session bean:
// Save the sort critera of a data table - MS
    private TableDataSorter tableDataSorter;
    public void setTableDataSorter(TableDataSorter tableDataSorter){
        this.tableDataSorter=tableDataSorter;
    public TableDataSorter getTableDataSorter(){
        return this.tableDataSorter;
    }In preRender of master page:
public void prerender() {
        info("Page="+this.getTableRowGroup1().getPage());
        if (getSessionBean1().getTableDataSorter()!=null){
            this.getTableRowGroup1().setTableDataSorter(getSessionBean1().getTableDataSorter());
        //web_userDataProvider.refresh();
    }Is there a better way to do this or this is the best we can do?

Similar Messages

  • Hyperlink to button CS6

    Hello is use this script in Indesign CS5 and it works. Now i have CS6 and it's not working anymore.
    It makes the yellow bar but the hyperlink is empty.
    Does somebody know to fix this?
    Kind regards,
    Patrick
    /* Copyright 2014, Kasyan Servetsky
    February 3, 2014
    Written by Kasyan Servetsky
    http://www.kasyan.ho.com.ua
    e-mail: [email protected] */ 
    //====================================================================================== 
    var scriptName = "Convert hyperlinks to buttons - 2.0", 
    doc; 
    Main(); 
    //===================================== FUNCTIONS  ====================================== 
    function Main() { 
        var hyperlink, source, sourceText, destination, page, arr, outlinedText, gb, button, behavior, sourcePageItem, 
        barodeCount = 0, 
        hypCount = 0; 
        if (app.documents.length == 0) ErrorExit("Please open a document and try again.", true); 
        var startTime = new Date(); 
        doc = app.activeDocument; 
        var layer = MakeLayer("Buttons"); 
        var swatch = MakeColor("RGB Yellow", ColorSpace.RGB, ColorModel.process, [255, 255, 0]); 
        var hyperlinks = doc.hyperlinks; 
        var progressWin = new Window ("window", scriptName); 
        progressBar = progressWin.add ("progressbar", undefined, 0, undefined); 
        progressBar.preferredSize.width = 450; 
        progressTxt = progressWin.add("statictext", undefined,  "Starting processing hyperlinks"); 
        progressTxt.preferredSize.width = 400; 
        progressTxt.preferredSize.height = 30; 
        progressTxt.alignment = "left"; 
        progressBar.maxvalue = hyperlinks.length; 
        progressWin.show(); 
        for (var i = hyperlinks.length-1; i >= 0; i--) { 
            hyperlink = hyperlinks[i]; 
            source = hyperlink.source; 
            destination = hyperlink.destination; 
            if (source.constructor.name == "HyperlinkTextSource") { 
                sourceText = source.sourceText; 
                page = sourceText.parentTextFrames[0].parentPage; 
                arr = sourceText.createOutlines(false); 
                outlinedText = arr[0]; 
                gb = outlinedText.geometricBounds; 
                outlinedText.remove();             
            else if (source.constructor.name == "HyperlinkPageItemSource") { 
                sourcePageItem = source.sourcePageItem; 
                gb = sourcePageItem.geometricBounds; 
                page = sourcePageItem.parentPage; 
            barodeCount++; 
            progressBar.value = barodeCount; 
            progressTxt.text = "Processing hyperlink " + hyperlink.name + " (Page - " + page.name + ")"; 
            if (source.constructor.name == "HyperlinkTextSource" || source.constructor.name == "HyperlinkPageItemSource") { 
                button = page.buttons.add(layer, {geometricBounds: gb, name: hyperlink.name}); 
                button.fillColor = swatch; 
                button.fillTint = 50; 
                button.groups[0].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;     
                behavior = button.gotoURLBehaviors.add(); 
                behavior.url = destination.destinationURL; 
                hyperlink.remove(); 
                source.remove(); 
                hypCount++; 
        var endTime = new Date(); 
        var duration = GetDuration(startTime, endTime); 
        progressWin.close(); 
        alert("Finished. " + hypCount + " hyperlinks were convertted to buttons.\n(time elapsed: " + duration + ")", scriptName); 
    function GetDuration(startTime, endTime) { 
        var str; 
        var duration = (endTime - startTime)/1000; 
        duration = Math.round(duration); 
        if (duration >= 60) { 
            var minutes = Math.floor(duration/60); 
            var seconds = duration - (minutes * 60); 
            str = minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second"); 
            if (minutes >= 60) { 
                var hours = Math.floor(minutes/60); 
                minutes = minutes - (hours * 60); 
                str = hours + ((hours != 1) ? " hours, " : " hour, ") + minutes + ((minutes != 1) ? " minutes, " :  " minute, ") + seconds + ((seconds != 1) ? " seconds" : " second"); 
        else { 
            str = duration + ((duration != 1) ? " seconds" : " second"); 
        return str; 
    function MakeLayer(name, layerColor) { 
        var layer = doc.layers.item(name); 
        if (!layer.isValid) { 
            layer = doc.layers.add({name: name}); 
            if (layerColor != undefined) layer.layerColor = layerColor; 
        return layer; 
    function MakeColor(colorName, colorSpace, colorModel, colorValue) { 
        var doc = app.activeDocument; 
        var color = doc.colors.item(colorName); 
        if (!color.isValid) { 
            color = doc.colors.add({name: colorName, space: colorSpace, model: colorModel, colorValue: colorValue}); 
        return color; 
    function ErrorExit(error, icon) { 
        alert(error, scriptName, icon); 
        exit(); 

    Hi Patric,
    Actually it was written in CS6. I just retested it in CC 2014 and it works for me (see the screenshots).
    Before
    After
    Regards,
    Kasyan

  • PLEASE ADVICE: switch devices transfer data

    Hi people,
    I wish someone could help me with this. I have a BBcurve 8900 and trying to switch device with my new BBcurve 9300. However when I connect the second device, in the switch application of BBdesktop sftware , the contacts do not synchronize and I do not get my address book transferred to the new device. In the synchronisation options, next to the address book it says "not installed".
    Does anybody know what I am doing wrong or how I can fix this.
    Thanks in advance 

    If you save an equipment in IH01 the sub equipments also receive the same changes...
    ...inherited from a functional location or superior equipment based on the "Data Origin".
    You can check the "Data Origin" for every screen in an equipment from menu: Edit -> Data Origin
    If individual maintained then these will not be updated when the field is changed at higher equipment level.
    While installing equipment on functional location or superordinate equipment...
    ...you can click on the button "install with data transfer" and decide if you want the the data in the different fields to be inherited.
    But I can not find any customizing or badi's that will give me the partners from the superordinate equipment's partner-profile.
    Please advice.

  • TS4585 When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    That usually means that there is something wrong with the backup and it cannot be used.  You can try restoring the backup again, but if you continue to get the same message all you can do is restore to a different backup, if you have one.

  • Hyperlink (or Button) in Page Footer on Page 0

    (This message was inadvertantly posted twice. Please disregard this instance)
    I have created an application in HTML DB 2.0 with a Page 0 for my Page Headers & Footers. I am attempting to add either a hyperlink or button to my Page Footer on Page 0 so that the button, or hyperlink, appears on each page. This functionality is essentially a site disclaimer which I want accessible from every page in an inconspicuous fashion. I have not been able to find a straight-forward example or solution. Thanks.
    Message was edited by: MovingTarget
    MovingTarget

    Hi Rob,
    see "Understanding the URL syntax" at http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    That should give you the necessary info you need.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Add hyperlink or button to open document in client application

    Good day.
    I have SharePoint 2013 and Office Web Apps 2013 integrated with it.
    I configured the default behavior when clicking on a document in a document library to open it in web app. 
    And I want additionally to have column in this library with hyperlink or button to open document in client application.
    I can click on menu near document name with WAC preview and then click "change" button. But in this case I make 2 clicks. So I want to have this  "change" button as a column in the list of document library.
    How can I do it?

    Hi, Daniel.
    I successfully created rich
    text type column - richtextcolumn.
    Then I created workflow associated with documents library and added action to set field in current element
    - it sets richtextcolumn with value you wrote - "<a class="ms-listlink ms-draggable"
    onclick="return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','1','SharePoint.OpenDocuments','','','','1','0','0','0x7fffffffffffffff')" href="[%Current
    Item: Server Relative URL%]" DragId="7">test</a> .".
    I configured this workflow to run on element creating and editing.
    Then I upload a document and see link to this document appearing in richtextcolumn.
    But when I click this link it just download document and then open it in client application. So if I change something in this document and try to save it, it will be saved in my local download folder and not sharepoint.

  • Hyperlink vs Button in an InDesign Interactive Folio?

    Hi! I am trying to create an interactive document in InDesign via the Folio Builder that can be used on an iPad or Android tablet. I am trying to put in navigation so that you can hop around within the document. I did this via a master page (is this an issue?). But it appears that I can do this using either hyperlinks OR buttons, they seem very similar to me. Why would you use one versus the other? Either way, I can't seem to get them to work when I port to the iPad. Any thoughts?
    Thanks!!
    -M

    That won't work.
    Navigation through the folio must be done using the navto:// command.
    This has been discussed in the DPS forum. Please post followups there.
    http://forums.adobe.com/community/dps
    Bob

  • Simple question - Button -please.

    Hi,
    so: I'm coming form DVD Studio Pro where i'm completely at home. But the text in DVDSP looks horrible and is really horrible to work with.
    And then come to Encore. WOW! the text looks nice, good!
    But now, here i am, making buttons in Encore is a totally different way than in DVDSP.
    I kind of see a bit how this layer set for buttons and prefix works... but i can't find out how to work out my highlights (or subpicture...). And basically i'm not completely stupid neither, but when i look for this topic in the help files, i can't find any clear explanation about HOW TO MAKE A BUTTON>  Please Adobe, stop only thinking of the home users that will use the presets..!!! Some people also want to create their menu fully from scratch!
    Thus, is there anyone that can tell me in a few words how to define:
    - The active area of a button
    - The way to make and define what will highlight (is it only vector masks, can't I design any shape? Is it pixel based or vector based?)
    I think with this i'll be already one big step further.
    I'm trying to open myself to Encore, and love the quality of the text, but well, yoo, why are the help in Adobe soooo unfriendly? Everything online, very confusing forum structure.. well.. i'll stop here, I don't wanna sound bitter. BAsically, i like but i feel it becomes so preset based and not anymore for the one that wants to makes things different.. Please Adobe, don't forget us. We might not be the one that are the most numerous, but we are the one that make thing change in the AV world and that is your future too!
    ok, sorry but i had to let it out a bit..
    I hope I can get some help on the buttons issue asap. THX!!
    Federico

    Hi David,
    thx for your fast answer.
    I just had a fast look and fully understand now. That's a bit what i could get... but still that's indeed much clear/to the point than the Encore help "files".
    One last thing: Can the highlight be pixel based? Because in the tutorial, it's or text (vector thus) or Shape (also vector...).
    And how to make the active area bigger than the buttons graphics for instance.. (see image inserted below)
    thx!

  • Mutiple Behaviors from one button

    How can i set multiple behaviors to one button? I want a
    popup window to close when I click Submit, and also change the main
    page to a different website. Any help with this will be
    appreciated.

    Write a script that does it, activate the script with the
    button.
    "B3CARL" <[email protected]> wrote in
    message
    news:ea9at5$anv$[email protected]..
    > How can i set multiple behaviors to one button? I want a
    popup window to
    > close when I click Submit, and also change the main page
    to a different
    > website. Any help with this will be appreciated.

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • TS3274 Hi I am using iPad 2, when I tap app icon on the screen it shakes and does not open the app please advice what need to be done

    Hi I am using iPad 2, when I tap app icon on the screen it shakes and does not open the app please advice what need to be done

    - First try clciking the Home button one and try again.
    - Next reset the iPod. Nothing is lost
    Reset iPad: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Then restore from backup
    - Restore to factory defaults/new iPod

  • Please advice process GR/IR, Dr and Cr

    Hello everyone.
    please advice process of GR/IR
    and if you have relevant document . please share to me
    I just know basic
    process GR
    Dr  Inventory        XXX
      Cr   GR/IR clearing    XXX
    process IR
    Dr  GR/IR clearing   XXX
      Cr    Vendor
    but I saw document of IR is
    Dr S  Custom clearing account            130,144.99
    Dr S   Purchase offsetting account       97,273.98
    Cr K   Vendor custom department                       20,996.00-
    Cr M  Custom %                                        97,273.98-
    Cr S   Merchant good price different                  11,875.01-
    Cr S   Purchase account for procurement cost          97,273.98-
    could you please describe business process of GR/IR and why IR document look like this ?
    or if you have relevant document . please share to me
    Moderator: Please, search before posting

    Hi,
    Is your purchase account active in your system.
    The entry which is showing means that you have booked both Goods/Planned delivery Charges together.
    Which normally should not be done as vendors are different and creates confusion.
    It is always better if you can book your Planned Delivery cost and goods cost separately.

  • I probably misclicked when I activated the security lock on the iPhone and now I can not figure out what password I entered. Moreover, I have patches and funky looking phone so I can not restore iphine pres itunes. Please advice.

    I probably misclicked when I activated the security lock on the iPhone and now I can not figure out what password I entered. Moreover, I have patches and funky looking phone so I can not restore iphine pres itunes. Please advice.

    Your only recourse is to force it into DFU mode:
    Turn your phone off and connect your cable to the computer, but not the device just yet. Start up iTunes. Now, hold down the home button on your phone and plug it in to the cable - don't let go of the button until iTunes tells you it's detected a phone in recovery mode. Now you can restore to factory settings.

  • RDCMan different behavior for different machines

    I'm using Remote Desktop Connection Manager, which has been very useful since I have to remote into so many different machines.
    I am curious though and this is more of a question than a problem, but I notice different behavior remoting into different systems.
    On some servers, I get this popup when I connect:
    On other servers, I get brought to this screen to enter my password:
    I've checked the group policy settings, registry settings, made sure I didn't have any saved credentials, makes no difference.
    Any idea why?

    RDP Session Setting:
    Console Session Settings:
    Hi,
    As per my research, that is the default behavior and it correlates for 2 different scenario “Console and RDP”. When you are performing “Console” of server then it will provide you the direct screen of server to login. But when you want to take RDP
    then it will ask you as “Windows Security” login prompt.
    Please check my words on your screenshots
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Please advice how i can recover my pictures without backup?

    please advice how i can recover my pictures without a backup \. i restored my iphone without to do a backup. i am checking that exist different programs but i have to pay. please somebody help me!!

    You also may have a chance that some of the more recent photos are in photo stream if you had iCloud enabled. By logging into iCloud on the phone, you may be able to have some of them come through, up to 1000. If you didn't have it enabled, then I believe you are out of luck, I'm sorry.

Maybe you are looking for