Control Hints, various languages????? 9.0.3

Hi,
how can i set the control hints for an attribute for various languages. in jdev 9.0.2 it was very easy but in jdev 9.0.3 pre??????
Pleas help
Thanks
Achim

Here's what I tried.
Created a default JClient app over BC4J (Dept/Emp tables).
Added control hints for Dept Entity attribute DName.
Created a new class DeptImplMsgBundle_en_GB that extends DeptImplMsgBundle and lives in the same package (mypackage1.common)
In the generated JClient example, I modified the "main()" method to perform Locale.setLocale(Locale.UK) in the first line in the main.
And then when the JClient app is run it does pickup proper locale text for the control hints (from the UK msg bundle).
Also I tried app.setLocale(Locale.UK) instead of Locale.setLocale() - where app is the JUApplication object returned from createApplicationObject method call in the main () and that worked too - The label/tooltip for Dname did show properly.
To get data/connection setup in proper locale you may want to set the jbo.default.country and jbo.default.language properties in the application module configuration.

Similar Messages

  • ADF BC - view - Control Hints - localization

    I wanted to ask if there is a nice way to create localization of Control Hints based on resource bundle like on UIX page.Is there an easy way to specify the resource bundle which will be accessed by EL? or this must be done other way?
    (There is not nice solution that involve putting all localization in UIX - take labels not from model, but I'm interested in other solution...)
    There are created for view resource bundles but how to put other languages there... and maybe one more thing radio button lists.
    I managed to create localization in a kind of magic (force) way:
    <ui:radioSet model="${bindings.reportingPeriodRadio1}" selectedValue="${bindings.reportingPeriodRadio}">
    ...<ui:contents childData="${bindings.reportingPeriodRadio1.displayData}">
    ......<ui:option model="${uix.current}" text=""/>
    ...</ui:contents>
    </ui:radioSet>
    Override text in option, and add on left labels with localization took from resource bundles. Its not nice... but it works, can u help me make it nicer ;)
    Thx for respons
    Michal Szymanski
    P.S. sorry for my en ;)

    This new 10.1.3-production JSF/ADFBC tutorial covers a lot of ground and includes an example of building the search page that you're trying to build, too :-)
    http://otn.oracle.com/obe/obe1013jdev/masterdetail_adf_bc/master-detail_pagewith_adf_bc.htm
    The trick is noticing that a View Object with named bind parameters includes an additional built-in operation in its "Operations" folder called ExecuteWithParams. Dropping this operation onto your page gives you the choice of creating a "Parameter Form" for your VO's bind variables. If you then drop the VO as a readonly table to the same page and run the page, you are done. :-)
    Try to do that in Eclipse in two drag-drop operations! ;-)
    It warms my heart to hear you say that about JDeveloper versus Eclipse... Really makes my day!

  • Refresh control hints lables after change the locale

    Hello,
    I'm building a web application using ADF ( JSP/BC4J/STRUTS ).
    I want to give the user the facility to change the display language, so i made an event on a Data Action that change both HTTP session locale and Application Module session locale
    the code is :
    public void onChangeLang(DataActionContext ctx)
    Locale userLocale = getLocale(ctx.getHttpServletRequest());
    String newLang = "en";
    if ("en".equals(userLocale.getLanguage()))
    newLang = "ar";
    Locale newUserLocale = new Locale(newLang,"") ;
    setLocale(ctx.getHttpServletRequest(),newUserLocale);
    ctx.getBindingContainer().getDataControl().setLocaleContext(new DefLocaleContext(newUserLocale));
    ctx.getBindingContainer().refreshControl();
    The locale change correctly after executing this action , but the control hint labels remain as it is !!
    So how i can refresh these labels, or how i correctly change the user language based on his event ?

    Hi,
    anybody can help in this problem !!

  • Internationalization ADF BC Control Hints Label

    Hi guys,
    In Control Hints Label of the ViewObject's Attribute, I declared a label. It's defined in ModelBundle.properties file. Then I created an localized version of the ModelBundle.properties file whose name is ModelBundle_tr.properties.
    On the JSPX page I included two ImageLink components, a CommandButton component and a InputText component. The source for the Links, the Button and the InputText are:
    &lt;af:commandButton text="#{res.LOGIN}"/&gt;
    bq. &lt;af:spacer width="10" height="10"/&gt;
    &lt;af:commandImageLink icon="/images/tr.png" actionListener="#{UserPreferences.localeChangeListener}" immediate="true"&gt;
    bq. &lt;af:setPropertyListener from="tr" type="action" to="#{UserPreferences.language}"/&gt;
    &lt;/af:commandImageLink&gt;
    &lt;af:spacer width="10" height="10"/&gt;
    &lt;af:commandImageLink icon="/images/us.png" actionListener="#{UserPreferences.localeChangeListener}" immediate="true"&gt;
    bq. &lt;af:setPropertyListener from="en" type="action" to="#{UserPreferences.language}"/&gt;
    &lt;/af:commandImageLink&gt;
    &lt;af:inputText value="#{bindings.FirstName.inputValue}"
    label="#{bindings.FirstName.hints.label}"
    required="#{bindings.FirstName.hints.mandatory}"
    columns="#{bindings.FirstName.hints.displayWidth}"
    maximumLength="#{bindings.FirstName.hints.precision}"
    shortDesc="#{bindings.FirstName.hints.tooltip}"&gt;
    &lt;f:validator binding="#{bindings.FirstName.validator}"/&gt; &lt;/af:inputText&gt;
    Within the UserPreferencesBean.java
    public class UserPreferences {
    private String language;
    public UserPreferences() {
    public void setLanguage(String language) {
    this.language = language;
    public String getLanguage() {
    return language;
    public void localeChangeListener(ActionEvent actionEvent) {
    FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(getLanguage()));
    When I click on any of the ImageLink, the page is refreshes and the Text of the CommandButton changes. However the label of the InputText is not changes. What is strange is that when I click the same image link the label changes. That is, I should click twice the ImageLink to be able to have correct control hint label for the view object's attribute. The code in the localeChangeListener method is not enough to have the control hint of the view object to refreshed??

    Hi ,
    maybe you have the same problem as me.
    11G  bug, a Label on an ADF Datacontrol and Locale, adfbundle
    thanks edwin

  • Control Hint

    We can change the label from the label text in the attributes control hint. But what if I want it Dynamicly render at runtime depending on the display language. Is there a easy way to do it? What do you suggest? Thanks in advanced...

    repost

  • Problem with control hints and date formatting

    Hi,
    I have a Date attribute with a control hint 'dd.MM.yyyy' in my EO. When the user browse through the data all date values have 4 digits. But when a lazy user changes a date value to e.g. 12.12.04, the new value is stored as 12.12.0004. This is correct Java behavior.
    When I change my control hint to 'dd.MM.yy', the lazy user can enter 12.12.04, which is stored as 12.12.2004. Great, but the user want to see a 4-digit year.
    My problem is that the customer wants to enter only 2 digits for the year but the application must render the date with 4 digits.
    How can I configure ADF to solve my problem?
    Does Domains help? Is there a general switch in Java or ADF witch converts 12.12.04 to 12.12.2004?
    Any hints are welcome.
    Thanks,
    Markus

    For your 2nd problem, you can create a field of type string (create a data type which has domain STRING), which has unlimited lenght. However, you can only have 3 of these fields in your table.
    I think this will solve the # problem too.
    Regards,
    Valter Oliveira.

  • How can I unlock my ipod touch?  The screen is locked and has various languages on the sliding bar.  It wont let you touch it

    how can I unlock my ipod touch?  The screen is locked and has various languages on the sliding bar.  the screen is grey and the normal screen saver is gone.

    As a first attempt, try a reboot by holding both the power and home buttons untl the apple logo appears and it restarts, ignoring the red slider if that appears.

  • Trying to set control hints in entity object attributes in generic classes

    Hi, how are you? I work for a project , that uses JDeveloper 10.1.3.3 version and I am assigned to solve some problems in the part that is associated with ADF Business Components—Model—of the application. The question is how could I implement generic functionality in CustomEntityImpl and there I am to assign some control hint values to some attributes and then the entities that will extend this class will acquire this functionality in their attributes.
    I send you some code I have in my mind in order to find out how to write something relevant to set control hints. I have searched in relevant api’s for AttributeHints and EntityDef but I did not find a solution to my problem. I’ve tried this code:
    AttributeHints ah=new AttributeHints(new AttributeDef(RIBUTE_DISPLAY_HINT_HIDE ) );
    but it does not work. How could I set this value – to hide one attribute whenever it exists in my entities , setting it once in my CustomEntityImpl class?
    I’ve read the whole tutorial ADF Business Components For Forms 4GL Developers but I did not find a solution to my problem. Your help would be a gift to me. Thank you very much!
    private String primary_key = "Id";
    private final String dte_insert = "Dteinsert";
    private final String dte_update = "Dteupdate";
    private final String user_insert = "Usrinsert";
    private final String user_update = "Usrupdate";
    private final String afm = "Afm";
    protected boolean findAttribute(String name) {
    String[] list = this.getAttributeNames();
    for (int i = 0; i < list.length; i++) {                       
    if (name.equals(list))
    return true;
    return false;
    protected void doDML(int operation, TransactionEvent transactionEvent) {
    //Insert Operation
    if (operation == DML_INSERT) {
    //Add history column
    if (findAttribute(dte_insert)) {
    Date date = new Date((new Date()).getCurrentDate());
    this.setAttribute(dte_insert, date);
    //Update Operation
    else if (operation == DML_UPDATE) {
    //Add history column
    if (findAttribute(dte_update)) {
    Date date = new Date((new Date()).getCurrentDate());
    this.setAttribute(dte_update, date);
    //Delete Operation
    else if (operation == DML_DELETE) {
    //To DO
    super.doDML(operation, transactionEvent);

    I Suggest you set its Attribute on EOImpl, override doDML, and before call super.doDML set your Attribute. There is a special reason to set Attribute on beforeCommit?
    Best Regards

  • How To Use Control Hint Label In columnHeader?

    Using JDeveloper 9.0.3 I created a uiXML-BC4J app.
    I specified control hint Labels for each attribute in a view object whose source is a db table. The uix page browses the table using the view object. How do I get the column header to use the Control Hint Label? I'm currently hard coding column header text:
    <columnHeader>
    <bc4j:sortableHeader text="Product No" />
    </columnHeader>
    I would rather specify the control hint Label. How do I do that?
    Thanks for your time.
    Greg

    By "in the page", I meant just as you're doing it now.
    You could also externalize it to a Java ResourceBundle;
    see the "Internationalization" chapter of the UIX
    developer's guide.

  • Default values for the controlling area and language

    Hello
    I have a query.
    I need to set default values for the controlling area and language in the screen
    "find account assignment data 1"
    Is it possible to do so?
    Thanks.
    Jayawant Gokhale

    Hello
    To clarify,
    This is the search used ,when I go for shopping.For the Cost assignment,the fields controlling area and language should be default for a user.
    Could someone throw a light on this.
    Thanks.

  • Possible BUG in 10.1.3 - JDev 'hangs' when creating Control Hints for EO

    I noticed that every time I want to add someting under Control Hints for myEO (and then click Apply ot OK) JDev basically hangs and I need to restart it by first killing the process.
    Afterwards, I have to go back to myEO and edit it again since the changes were not saved. Just before I open myEO I can see 'common' directory in the Application Navigator just under my 'businessobjects' package. However when I edit myEO and this time successfully click OK (or Apply) this directory is gone.
    I guess it has something to do with the creation of myEOImplMsgBundle.java file which for some reason hangs JDev.
    Anyone experienced similiar (same) issue?

    This has to do something with Java Code Generation Engine.
    I have just tried to create Row Impl file for my VO and gut 'hanged'.
    Anyone from Oracle?

  • Control hints for AM Client interface

    Hello,
    I am exposing a method in Application module through user interface.
    I want to configure the parameter labels as AM control hints.
    Is it possible? where can I set them?
    Thanks
    Ponraj

    Thanks Arunkumar, Its 11.1.1.5.
    If that's not possible I have to use ViewController projects resource bundle.
    I have business components such as VOs that I expose through UI. I am using control hints for the exposed fields. So I was trying to have client interface hints with in the Model project.
    Regards
    Ponraj

  • Control hints tab for an attribute of a view object shows null pointer erro

    hi
    I am using j developer 11g. I have a view object and it is working fine and i set control hints for an attribute , i set display label and length etc
    there. now i am taking the view object the control hints tab for the particular tab didnt shows and there displayed follwing error
    how can i rectiify this error.
    java.lang.NullPointerException
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.isOverridenProperty(ControlHintsPanel.java:662)
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.processUIHintsOnEnter(ControlHintsPanel.java:577)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.initializeControlsFromContext(BaseControlHintsPanel.java:187)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.enter(BaseControlHintsPanel.java:340)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:806)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:758)
         at oracle.jbo.ui.wizard.JboWizard.newMddPageSelected(JboWizard.java:827)
         at oracle.jbo.ui.mdd.MddTraversable.onEntry(MddTraversable.java:70)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:1213)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:1194)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:128)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1650)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1518)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1512)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.Dialog$3.run(Dialog.java:1097)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1095)
         at java.awt.Component.show(Component.java:1422)
         at java.awt.Component.setVisible(Component.java:1375)
         at java.awt.Window.setVisible(Window.java:806)
         at java.awt.Dialog.setVisible(Dialog.java:985)
         at oracle.jbo.ui.main.JboDialog.setVisible(JboDialog.java:164)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.setVisible(JboWizard.java:2557)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.jbo.ui.main.JboDialog.showDialog(JboDialog.java:142)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.showDialog(JboWizard.java:2493)
         at oracle.jbo.ui.wizard.JboWizard.createMddWizard(JboWizard.java:549)
         at oracle.jbo.ui.wizard.JboWizard.setVisible(JboWizard.java:352)
         at oracle.jbo.ui.wizard.JboWizard.showDialog(JboWizard.java:330)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeEOAttributeDialog(JdxMenuManager.java:1295)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeAttributeDialog(JdxMenuManager.java:1277)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doEditMenuAction(DtuMenuManager.java:1776)
         at oracle.jbo.dt.ui.main.DtuMenuManager.performMenuAction(DtuMenuManager.java:1584)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doMenuAction(DtuMenuManager.java:1377)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doMenuAction(JdxMenuManager.java:892)
         at oracle.jbo.dt.jdevx.deployment.ui.JxdMenuManager.doMenuAction(JxdMenuManager.java:66)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1363)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1348)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoBaseEditor.doMenuAction(JeoBaseEditor.java:327)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.doMenuAction(JeoEditorPage.java:777)
         at oracle.jbo.dt.jdevx.ui.editors.view.VoeAttributesPage.doMenuAction(VoeAttributesPage.java:366)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseDoubleClick(JeoEditorPage.java:642)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseClicked(JeoEditorPage.java:623)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6044)
         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:3995)
         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)

    I did try making a VO that extends the original VO, but with the attribute based on the SDO_NN_DISTANCE function call, which means that a call to SDO_NN MUST be in the WHERE clause.
    This works to some extent, in that the common attributes and methods are in the second VO, inherited from the first, without me having to write them again. However, I have to use them in my ViewController project as two separate VOs. For one thing, I need two separate result pages, one for when the query used the SDO_NN in the where, and needed the distance in the output, and one without. One uses the original VO, and the other uses the new one. Similarly, I need two separate pages for adding additional criteria. Doing it this way with pairs of nearly identical pages is going to be a pain, and will be difficult to maintain, since any change will have to be done twice. Or can .jspx pages be written that extend other .jspx pages, and in particular override the VO bindings in the pageDef? Could a single .jspx page decide dynamically which pageDef to use?
    I decided to try a different tack. Back to a single VO, I wrote a WHERE clause that calls SDO_NN, but returns all of the rows. That way, I can have a call to SDO_NN_DISTANCE in the SELECT for all queries, and I was even able to add a parameter that sets the Distance attribute to NULL if it is irrelevant to the query the user constructs. This is a good work around, but it is a little slow, because SDO_NN is doing a lot of work but returning every row when it hasn't been replaced with an "actual" SDO_NN where clause.
    One more possibility: Can I have a method that replaces the entire SELECT command for this VO dynamically? I assume that you need to make sure that the expressions in the SELECTed data still map to the attributes one to one, with the same aliases. After all, I am already replacing the WHERE clause dynamically, and it works fine.

  • Control-Hints are suppose work with UIX/XML, right?

    Control-Hints are suppose work with UIX/XML, right?
    I've added some control hints and they worked correctly when viewed using UIX/JSP pages. However, none of the Control-Hints appear on UIX/XML pages.
    The documentation suggests that this should work. Am I wrong?
    Bill G...

    There's a bit of confusion here (which is entirely our fault).
    UIX JSP is a subset of UIX XML (almost entirely; a few tags in
    UIX JSP simply wouldn't make sense in UIX XML, like <uix:buildTree>).
    However, BC4J UIX JSP is not a subset of BC4J UIX XML; the two
    are essentially entirely different libraries. (Any JSP tag that
    starts with <bc4juix:> counts as a "BC4J UIX JSP" tag.) I agree
    that this is confusing.
    As far as control hints go: BC4J UIX XML does not currently
    support control hints. It does offer more than enough flexibility
    to tweak all the dials and knobs made available by control hints (and
    a lot more).

  • Problem with control hints and Struts tags

    hi all. i'm using jdev 10.1.2 and JSP's. I was trying to set the format mask for a couple of number fields and ran into some trouble because; "JSP 1.2 prevents control hints from being used to set input element's display properties in a Struts input form". Has anyone found a way around this.
    thanks

    in your code, are you using the name attribute?
    that's required:
    http://e-docs.bea.com/wlp/docs70/jsp/navigat.htm#999781
    there are examples of this tag in use...
    c:/bea/weblogic700/samples/portal/sampleportalDomain/beaApps/sampleportal/sampleportal/registration/new_user.jsp
    -tanya
    "Sai S Prasad" <[email protected]> wrote:
    >
    Hi,
    I am trying to populate a validatedForm text filed like this:
    <webflow:text value='<%= invoiceNumber %>' />
    I tried single and double quotes and I can't get it to work. The page
    always has
    blank value for this text field. Any suggestions are welcome. Thanks.

Maybe you are looking for

  • InDesign CS6 crashing when I change document set up from letter to tabloid on all my Indd files

    New problem we're experiencing today. Wondering if anyone else is experiencing the same issue?

  • Purchase order sending to an alternate email

    Dear experts, In the vendor master, the default communication is set to email, and a email is maintained. The payment advise and the purchase orders are sending to the email that defined here. We would like to send the purchase orders to an a differe

  • One data set inside another

    I have a list with data source A, which contains a ClientName, some dates, and a dollar amount.  This is all displayed within a list, one client per row.  I also have data source B, which also has ClientName and a list of notes about the client.  Wha

  • Organize Bookmarks: I want to rename a batch of ~100 bookmarks with search-replace

    Organize Bookmarks: I want to rename a batch of ~100 bookmarks changing words in the "name" field with search-replace Please (a) tell me a work-around, or (b) program a plugin for a more advanced bookmarks editor. thanks a lot!

  • Regarding WD ABAP

    Hi All, I want to ADD and DELETE a row from the table in WD ABAP.I have created a button for add but it is not working while run time.So please sort it out and if anyone of you is sending a code then please validate it so that I can easily understand