Back button disapears when resource bundle is used

I created a header containing a OutputText. The value of the OutputText is defined by a ResourceBundle. Now, when I start the application, the back-button appears to be under the OutputText, even if the value defined in the ResourceBundle is a really small string.
This is what I have defined in the AMX file:
<amx:facet name="header">
<amx:outputText id="outputText1" value="#{viewcontrollerBundle.ORDER}"/>
<amx:commandButton id="commandButton1" action="__back" text="#{viewcontrollerBundle.BACK}"/>
</amx:facet>
This is what I have defined in the ResourceBundle:
<trans-unit id="ORDER">
<source>B</source>
<target/>
Even if I put only one character in there, the back button is nearly not visible.

You should put your back button in the "primary" facet. This is what it is meant for. Then it gets the correct placement and it will also get the back arrow styling by default.
Then your markup would look like this:
<amx:facet name="header">
<amx:outputText id="outputText1" value="#{viewcontrollerBundle.ORDER}"/>
</amx:facet>
<amx:facet name="primary">
<amx:commandButton id="commandButton1" action="__back" text="#{viewcontrollerBundle.BACK}"/>
</amx:facet>
The primary facet (in iOS) appears in the upper left and the secondary facet appears in the upper right. The notion of the facets let's the framework move these around in different in future if the platforms change and thus you don't need to change your markup, we simply move the placement of the facet.
Edited by: Denis T on May 24, 2012 10:36 AM

Similar Messages

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • Making a button disapear when not selected

    Is there anyway I can make it so my custom button apears when it is selected, but disapear when it's not (rather than a color change). I can't seem to figure this out. Any suggestins would be greatly appreciated.
    Salil Sundresh

    That didn't seem to work because I have a video file as the background and I am still getting the keyed colors as highlight rather than an image file.
    This is Basically what I want to do, but in DVD SP:
    http://salsunproductions.sitesled.com/misc/testrollover/testrollover.htm
    The arrow should be an IMAGE file, NOT a highlight color that DVD SP creates. Is this even possible? Any suggestions would be greatly appreciated.
    Thanks,
    Salil Sundresh

  • Keyboard and back button unavailable when talking to phone

    While I am under a phone call if I want to search the browser or sending a text message the keyboard will be unavailable so do the back button will become unavailable
    Solved!
    Go to Solution.

    Can you check if the same occurs in safe mode?
    http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Loaded Mountain Lion and time capsule no longer works, airport utility can't be configured, back ups have stopped, sparse bundle in use errors occur, what a mess!!!!

    Should Airport Utility now be defunct for my time capsule because I have upgraded OS to Mountain Lion? I have tried every fix I can think of but AU will not set up. I'm also getting repeated time machine back up failures and now I have a new "sparsebundleinuse" error which is totally useless to me, I have no idea what a sparse bundle is, I have no idea what it's suddenly being used by and there's no information to say what to do about it. Apple is killing me here!!!

    I've tried to but on the install for Airport Utility 6, after the download I get through the introduction then the license then I get "airport utility can't be installed on this disk. The version of Mac OS X on this volume is not supported" and that's it, no more options!?

  • Like button disapears when muse site uploaded to Business Catalyst

    This is my Muse page
    This is what happens when it goes into business catalyst - like button just drops off. Adobe - please HELP!!!!!!

    Hi Grant,
    Because for now CSS and HTML file editing is incompatible with Muse (e.g. republishing your site will potentially overwrite all the changes), we've decided to hide the file manager for Muse users.
    However, there is a way to re-enable it. In order to enable site management for your user, please log into your site, and click on "My Details" (upper right). In the My details page, please check the option "Enable online content editing (incompatible with Muse)", and enter the password to confirm. A new entry (Site Manager) will appear in your menu.
    A similar case here:
    http://forums.adobe.com/thread/1030124
    Hope this helps,
    Alexandru

  • When navigating off home page(s), back button unavailable for use

    When I start up Firefox, I have 5 home pages. Once I navigate off the homepage to a page inside the sight, the homepage isn't available on the back button. When I first started using Firefox, I didn't have this problem, it has started with recent updates and has continued onto V4.0. I have loaded more than once, and this doesn't correct the problem

    Problem has been solved, I forgot to add a Parameter in request on the basis of which it performs the relevant action!
    Thanks for ur reply!

  • Is it possible to invalidate session when I click my browsers back button

    Hai
    I have a question.
    I am building a jsp page with multiple forms.As of now,
    no login system has been implemented.
    I need my session to time out when the client click on the back
    button on the browser to prevent data corruption.
    Is there a possible way to do this in Java/ Script
    I know the use of session.invalidate() but how to tie it up to the
    browser's back button
    A second problem
    If I use session.invalidate() on Tomcat 3.2
    I find that it is not invalidated.But this same function on tomcat 4
    doesn't have any problem
    Could anyone help on these issues
    Thanks

    You don't mean you want to invalidate session every time you move to a new page, do you? If you do, after implementation of login system the users will be asked for passwords at each page. If you don't, it's better to use headers for your response.
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Expires", "-1");

  • I can't use the BACK button to get back to Google after visiting some websites.

    If I use certain web pages, I can't get back to my Google search after I finish. The BACK button says the page expired, and that I should ask the site to send the page again. I do not want to see that page, but just step past it to the page before it.
    There should be a way to tell Firefox that I don't really want to see that page again, but just to keep going back to the page before that.
    This usually happens on pages with forms.
    Some other pages actually destroy my BACK button history when they start. How can I prevent this? I have often seen another page I wanted to go to next in the search, and then the page I went to first erased my BACK button list. Then, when I went to search again, I couldn't find the other page.

    Try http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • What happened to the quick browse button (down arrow) that use to be by the back button for quickly moving back several webpages?

    The old Firefox used to have a small arrow button next to the forward/back buttons. When clicked it would show the entire browsing history making it easy to jump back several pages. Now it seems to be gone. I have only used the new version for a day and already I am tired of having to click back one page at a time. Was the quick navigate button moved or was it taken away?

    This feature is still available, simply right click on the back button, and select which page you would like to go back to, just as before.

  • Disable explorer back button (using JS)

    please tell me how to disable explorer back button, i have made a project and i want to disable explorer back button on signout button, tell me the code using java script

    The page that the browser goes back to would have to identify that it came from some place that was not right and redirect to an error page. This means you need all kinds of checking in every page. Of course, if a page has specific input requirements, it makes it easier, but you need a lot of state validation to keep track of these things. If back goes to a form submission page that already was submitted, you need to be able to track this and deny resubmission... But the browser will really be sending the same data from the original form. So you might have a hidden field with some unique ID that once used, can't be used again.
    In my current project, we have a check on all pages to redirect to login. Login uses Javascript to popup the actual login and application in a new window without menus and toolbars. This removes the back button. The user can still use the popup right-click menu to go back, but this is not a common thing for many users, and we have our pages designed in such a way as to facilitate going back when appropriate, but when not, they can't.
    In some ways, you have to trust that the user isn't going to go back when it's not appropriate... well, I might be dreaming here...

  • Getting String using ResourceBundle and XLIF resource bundle.

    Hello,
    I am using Jdev. 11.1.1.2.0. I am trying to use XLIFF resource bundle in the Model project and trying to get string from the bundle using following code. I am getting MissingResourceException. if I use Property Bundle, it works fine.
    public String getMessage(String code)
    return ResourceBundle.getBundle("model.ModelBundle").getString("MESSAGE1");
    Any help to make it work with XLIFF resource bundle will be appreciated.
    Thanks,
    Amit
    Edited by: Amit Patel on Apr 1, 2010 10:23 AM

    To get the values from the resource bundle, you use the <fmt:message> tag
    <fmt:message bundle="${appbundle}" key="lbl.accountnum"/>

  • Need to click the back button twice

    Hi all
    I'm having problems with a program. I have ALV grid and double clicking on a line calls a function that displays a detailed entry screen (dynpro).
    In that screen the user can use the data to call a function module to create BP from the given data.
    I now want to enable my users to go back to the ALV grid by clicking the Back button and when the function code is 'BACK' I do:
    leave to screen 0.
    But the user must press the back button twice before he can go back. If the user however just enters the detailed screen and presses the back button it works fine.
    Regards,
    Gunnar

    Hello,
    I had a similar problems few days ago. If the user must click back button twice in some cases it is because 2 screens are being created.
    What happens to me is that I had a Modul-pool, in this program I had 2 dynpros, one for input and the other to call in it the function-module REUSE_ALV_GRID_DISPLAY in order to show an ALV. When the ALV was shown the user should press back button twice in order to return to the first screen. This behaviour is because the ALV is shown in its own screen, so finally I had 3 screens instead of 2.
    What I did to solve the problem was to delete the dynpro which only purpose was to show the ALV. At last I had a dynpro for the input of the program, in the PAI of this dynpro I invoke REUSE_ALV_GRID_DISPLAY which shows the ALV in its own screen.
    I hope it will hellp you.

  • [iPhone] Back Button

    Is there a way to get the left pointed button style that back buttons use?
    I'm trying to put a back button on a custom view I created so just setting navigationItem.backBarButtonItem to a UIBarButtonItem doesn't work. It never appears.
    I need to set the button to navigationItem.leftBarButtonItem to make it show up in the navigation controller, but that doesn't give me the back pointing button style.
    Setting navigationItem.hidesBackButton = NO has no affect.
    The navigation controller for this view thinks it is the root navigation controller which is why I'm assuming the backBarButtonItem doesn't work.

    The nav bar uses the back button style when there is more than one nav item on the stack. Try adding a dummy nav item onto the nav bar stack and see if that helps.
    Message was edited by: RickMaddy

  • ADF FACES: af:messages does'nt display label with resource bundles

    Hi,
    There is a problem with the af:messages component and error messages containing labels (such as Value is Required error message for required fields).
    If I have an af:inputText with it's label property refering to a resource bundle loaded using the f:loadBundle action, when the Value is Required message is displayed, I get "" for the field name.
    If I replace the label property with a constant value or with an expression refering to a managed bean property, then the label is properly displayed in the error message.
    I suspect this has to do as to when the action of getting the label is done. Maybe the bundle is not availlable at that time. Anyway, this is a bummer as it mean that we cannot use the f:loadBundle action to load resource bundles.
    This happen with AE11. I have not tested this with EA12.

    Thank's!
    I'll try EA12 when I have the time.
    I also found that in our JSPs, we've put the f:loadBundle ouside of the f:view tag. I'll fix that in our codebase.
    While researching a fix, I found out that using a managed bean (which implement Map interface) to load the bundle based on the name refered in the expression language is a lot more intuitive and allow for an easier management of the different resource bundle than the f:loadBundle tag.
    Basically, our EL expression are now #{bundles.bundleName.property} we replace any "_" in bundleName with "." and then lookup this name as a ResourceBundle with the locale of the view. We keep the managed bean in the request scope it remember each bundle it loaded.
    We could have done it with a custom VariableResolver. Maybe a future release of the JSF spec could provide a standard variable name that would implement the same behaviour. This way, one does not have to load each bundles before hand and only the bundles accessed by the JSP will be loaded.

Maybe you are looking for