[ADF, JDev12.1.3] Page of the input parameters: 1) expression for a value of type enum? (2) can they be used to initialize CIU?

Hallo,

I have a backingBean extended myBean bean 'associate' to a page fragment used in a stubborn workflow.

I want to declare to the fragment in the settings of btf 2 who have a fixed value. Their values should be copied in 2 myBeanattributes.

An attribute is Boolean, and I guess it does not give any problem, but the other is to an enum type that is defined in the myBean bean itself.

I have to write in "value *" pass the enum value to var enum in myBean?

And if the "value *" have been a public static final string of a Java class in the application Module which expression I should use?

I would like to use parameters of entry Page to initialize (hide, show,...) in myBean some component of the user interface in the page fragment? Is this possible without intervention in any problem? Can kindlu give you some tips to achieve this?

Thank you

Federico

It also works with range backingBean?

I don't know (I just created a few vars inside managed bean in my application of playground).

The fragment contains a search with table form and it's always the same, whereas the bean (containing the search called action when the user clicks on the button 'Search') should take the page settings to compose the search query according to them.

Yes, but that are not exactly 'page settings' because you retrieve the values of the url of the page, right?

In conclusion, the problem is that I should switch to the different settings depending on the btf bean where the fragment is used.

You have a better idea to achieve this?

Then why you are not using the BTF settings (they will be in pageFlowScope)

Dario

Tags: Java

Similar Questions

  • copy the address book Outlook Express for Hotmail - can't get in Outlook Express

    copy the address book Outlook Express for Hotmail - can't get in Outlook Express.

    Lately I often can't get into my Outlook email.  I know that I can use Hotmail, but I need my address book. I know that it has to see with the Qwest no longer carring MSN.   Can you tell me how to recover or to carry it?

    Thank you, Cookie 303-371-6295 or 303-931-4632

    The address book is a file with an extension of wab file.  Search for *.wab and then you can click on it to open it.  You can then go to file | Export | Address book, then save it as a csv file.  To import into Hotmail, as in this case: www.windowslivehelp.com because it is where are the experts of Hotmail.

    Steve

  • Configure the router Cisco E2000 wireless for my laptop HP with Vista, I can't work.

    Configure the router Cisco E2000 wireless for my laptop HP with Vista, I can't work.  I spoke with Cisco and they said that my Atheros AR5007 adapter does not work with Cisco E2000 and contact my computer vendor

    Hello

    HM... I guess that the Cisco people know what they're taking everything. The AR5005 is a b/g card and there should be a good reason to not work with a router that is able (the E2000 is able g) g.

    This is HP drivers for the card, http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=us&lc=en&dlc=en&softwareitem=ob-55737-1

    If you can't make it work, you must decide between a new card or another router.

    Personally, if it's new and I could return it, I'd get a different router model. But YMMV

    ------------

    My posts reflect my understanding and experience. It does not necessarily reflect the opinion or the vision of Microsoft, or anyone else.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Hello! I have download CC and paid $69.99 but I want to use the programs that I pay for, why, if I pay $69.99, I have to use the test programs? you want to know what I pay and how I can get the services of programs I want to use.

    Hello! I have download CC and paid $69.99 but I want to use the programs that I pay for, why, if I pay $69.99, I have to use the test programs? you want to know what I pay and how I can get the services of programs I want to use.

    Miguelo28272279 for more information on how to solve the connection error preventing your membership to authorize please see sign, activation or connection errors. CS5.5 and later, Acrobat DC.  We invite you to update this discussion if you have any questions about the steps listed in the document.

  • bought photoshop elements 11 year last for windows and use it in my office. The office is now crashed and not usable. So I bought iMac now. Is it possible to make the trade more to change the license in version iMac for a small fee. If not, can I partitio

    bought photoshop elements 11 year last for windows and use it in my office. The office is now crashed and not usable. So I bought iMac now. Is it possible to make the trade more to change the license in version iMac for a small fee. Otherwise, I can partition the hard drive in the iMac and install windows and also photoshop elements? What is the best alternative? Why?

    A license of Photoshop Elements is good for Mac and Windows, it should be just a matter of download the Mac version and using your serial number to activate it.

    PES 10: 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

    If you have any problem with the activation contact Adobe support using cat... Start here  If after selecting the relevant answers, you are unable to find a solution, choose "still need help? Contact us. "and the contact Chat option.

  • [ADF, JDev12.1.3] Which is the best way to define the properties of CIU/fragments of pages. Is the approach that I have used a good choice (for a beginner)?

    Hallo,

    in my app, that I have a lot of pages and fragments in which properties (for example rendered text, disabled, Selected,...), lots of user interface components must be set, before/when the page is displayed, depending on the session and pageFlow scope attributes.

    So far I have created for each page/one backingBean brought bean fragment in which I defined an attribute for each property defined (e.g. 2 properties for each UIC: UIC is 10...) "I have 20 attributes to manage in the bean).

    Then, I linked each attribute of the bean to the respective UIC property. You can see in this my thread (unfortunately without answers ) [ADF, JDev12.1.3] backingBean bean: a lot of properties to set for lots of CIU... is better by using the properties of the binding or access code (created by ID) UIC? a small example. I put the attributes the bean Builder (or in a function of 'action' if the APP properties must be set based on the interaction of the user).

    I would like to know:

    • If it is a good approach / recommended / safe or if there is a better way;
    • If the scope backingBean is OK, or if a larger scope would be better.

    As I asked in the thread in the link above, the situation can become difficult to manage if the PPP for which setting, properties are very different.

    So I'd like if there is no alternative that I can use to get the same result with less effort.

    For example, using the class ComponentReference or invokeOnComponentAPI could simplify my life? And their use could I always use backingBean brought beans?

    Thank you

    Federico

    Federico, please understand that this forum has no sla. I have other work to do, who pays my bills. I will do my best to help, but you can not expect the instant replay.

    (1) you must not use the bean to init your beans. You can delay load or init your beans instead.

    (2) as Frank and says you can use a bean to view range and use it to make your calculations as long as you know how their parameters go to the btf

    (3) you should always use the reference of the component if you bind a component to a bean. Make a habit of all scopes.

    As we do not know how you calculate the State and how often it changes while the Working Group is on the page, it is difficult to give further advice.

    Timo

  • [ADF, JDev12.1.3] Which is the right place (for example, bean or AM) to create and store secret data that the user is unable to intercept?

    Hallo,

    in my page, when the user clicks on a button, I'have run an operation and in particular generate a code PIN and password that the user must not not know/interception.

    The STEM must be kept "secretly" in the comic book.

    I created a function to generate the PIN code in the 'Utils' to the ViewController project class.

    In the managed bean associated page I would deal with the click of the button through its ActionListener function.

    In this function I would also generate PIN call the "generatePIN" works and finally store the PIN in the comic book.

    Is the bean, the right to 'place' where build and store the PIN in the database?

    Maybe I'd better to generate the PIN and then store it throug a function of the module of the Application?

    Thank you

    Federico

    Well, he should go to the model because it is part of business process and is not part of the presentation of data.

    (AMImpl, VOImpl, or same ViewRowImpl are good places to write such code)

    The STEM must be kept "secretly" in the comic book.

    I don't know what that means exactly.

    Aspect of security, no matter where you place code (in the model or ViewController) because both are executed inside the Java virtual machine server-side.

    If you need to secure communications between WLS and DB, then open the database by using the SSL protocol connection (or create the stored procedure and generate PIN directly in db)...

    Dario

  • [ADF, JDev12.1.3] That is the approach recommended to store the information of the logged-on user?

    Hallo,

    I would like to know which are:

    • approaches possible and advised to store the main information (which will be used throughout the application) of the user that is logged;
    • for each of the approaches that are the main advantages and disadvantages.

    For example

    I have my doubts if store info in variables private module request or if I'd better use the HttpSession.

    The use of HttpsSession back to store the information in a range session bean?

    A scope session bean should be used only to store information?

    Sorry if these question may be stupid but I'm starting to take care of the security of my application and I am a bit confused about the available possibilities.

    I use ADF Essentials, so I can't use ADFSecurity.

    Thank you

    Federico

    I have my doubts if store info in variables private module request or if I'd better use the HttpSession.

    Never use app module variables to store data. If you need to store data in the model project, you can use the UserData card, but you must implement the serialization/deserialization.

    Read this blog post for more information: http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html

    The use of HttpsSession back to store the information in a range session bean?

    They are similar.

    Difference is that you can put data directly to the session http (as an attribute) and if you use managed bean then keep you data in the attributes of bean and framework will put bean in scope of the session.

    A scope session bean should be used only to store information?

    Well, do not store the amount of data in session bean because it will influence the performance of the server (if the number of users increases you need more RAM, if you assign more RAM to the server it will be time for garbage collection, will also increase if you have clustering then great session bean (s) will increase the time of synchronization of the session) ", etc...)

    Dario

  • [ADF, JDev12.1.3] What is the right approach to manage the Value property of a Date of entry through a bean?

    Hallo,

    I created a custom search form by dragging on the CIU af:inputText and af:inputDate.

    I have some difficulties in the treatment of af: inputDate CIU.

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    When the user clicks the button to search for the form of the search_action in the bean creates the query with parameters (identified by (?) because I am using SQL Server as DBMS).

    Then, I need programmatically check the values of af: inputDate CIU and then use them to define the query parameters.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    You could you kindly help me (better if give me a simple example)?

    Thank you

    Federico

    I've linked the Value of each af:inputDate property to a Date variable in a range backingBean bean.

    It is the correct type of Date or can I use the String type?

    Date type is correct.

    Are there property should I settle for FA: inputDate CIU to "do a good job? For example Valdiator, converter...?

    Well, if you need validate the date, then you will need validator (or check the value in managed bean)

    It goes the same for the converter.

    I see that when I use the calendar of af: inputDate, the field is entered in the format dd/mm/yyyy is good for me but I'm not able to uderstand how to treat the value to check by program and then use it to set a parameter to the query of VO.

    In your beans, you will get the Date value, so no matter how it is displayed on the user interface.

    To date handling, you can use standard java api as java.util.Calendar

    I also want to set the initial value of some CIU af:inputDate in the bean. It takes for example the 1st of the month 6 months ago. What code would I use to do this?

    Use standard java api to calculate the new date, then assign accessor value in your bean (for example, in the constructor of the bean)

    Dario

  • Switch the setting to a page of the window parent child and store session values in the parent window

    Hello

    I have two pages of the apex. I open a page of the child using javascript in the parent page.

    Parent window has the following articles.  P1_Text1, P1_text2, P1_text3. The setting is 'Change only when the session state is null', static assignment.

    In the child window: I have two buttons 'Confirm' and 'close '.

    When I press "confirm", it sets the value of a page element parent in a process of PL/SQL.

    BEGIN

    / * some calculations

    followed by an assignment statement * /.

    : P1_Text1: = final_value;

    END;

    "Close" button in the child window. as a result of javascript that are associated with:

    JavaScript:

    Window.opener.Location.href = window.opener.location.href;

    Window.Close ();


    When I press the close button, the parent window gets updated and P1_Text1 is responsible for the requirements.  Everything is going well so far.


    But the problem is with other elements of the parent page. They become null.


    How to store the values of the elements of the page of the parent window?



    Kind regards

    Archana








    archana2 wrote:

    But the problem is with other elements of the parent page. They become null.

    How to store the values of the elements of the page of the parent window?

    Problem: You're not 'save' the other page elements.

    Solution: Before you open the child window, you need to "introduce" the values desired registered on the server.

    This is best done with a dynamic Action that uses a PL/SQL code block.  The key is to include all the items you want to store the property in the "Page" referred to submit

    PL/SQL code is a code simple no - ops

    begin
      null;
    end;
    

    For you, it seems that the 'child window open"should be action 2 of this dynamic Action.

    MK

  • Certain pages of the site out of alignment for others (Desktop built so far)

    If you use the 'HOME' button as a guide - pages "Do I need help" and 'Remarks Ian' move has left a few pixels - align all other pages. (I checked there is no text boxes extra outside pages etc.) If I go to the Chrome developer tools to check the site - is the only thing I can see HOUSE has < body > and capricious pages are < class body >. Please - how to fix? I'm only using a master page file. Help! (and I tried deletion and replacement of pages with the page master pages). Thank you!

    http://ian023.BusinessCatalyst.com/index.html

    I tried to check, but don't see the exact behavior you have described: http://take.ms/feGRs

    If you are referring to the sidebar in the browser, it's because of the length of the page.

    Thank you

    Sanjit

  • problem with pipe separated from the input parameters to call

    Hi all

    I have a requirment as...

    I have a Sp 10 which have 3 SETTINGS and 3 settings as shown below...


    PROCEDURE sample_sp1 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array



    PROCEDURE sample_sp2 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array



    .........


    ..........


    PROCEDURE sample_sp10 (p_start_dt IN VARCHAR2,
    p_end_dt IN VARCHAR2,
    p_shift IN varchar2,
    p_out1 OUT t_bpd_nm, - array type
    p_out2 OUT t_target, - array type
    p_out3 to t_drr); -type of array






    Now, I have to create a new SP. This SP, I have to call one of the top 10 SP and have to come back as a REF CURSOR.


    the entries to the new MS are 3 as... (shown below).


    create or replace new_sp (p_report_name IN varchar2,
    p_report_inputs IN varchar2,
    p_report_as_ref to ref_cur_type) is


    ..............

    where p_report_name is a name of sp
    p_report_inputs is the input to SP parameters with "|" separated pipes (ex: ' 23/04/2010 | 20/05/2010 | 2 ')
    p_report_as_ref is setting to return as an OUT refcursor.


    I'm unable to manage the setting shild (with tickets). How to separate input parameters and how can I call existing SP
    with these settings?


    friends... can someone help me please...


    Thanks in advance...

    What of it?

    with t as
    (select replace('500 Oracle Parkway| Redwood Shores| CA','|',',') str from dual)
    SELECT
      replace(REGEXP_SUBSTR(str,'[^,]+,'),',') first,
      replace(REGEXP_SUBSTR(str,',[^,]+',1,1),',') second,
      replace(REGEXP_SUBSTR(str,',[^,]+',1,2),',') third
      FROM t;
    
    ----
    500 Oracle Parkway      Redwood Shores      CA
    
  • How can I fix the link from Outlook Express for Internet Explorer

    I am running Windows XP home. Whenever I get an email with a link to a website, my outlook express freezes and I havce to restart.

    Can someone help please

    Reset IE as default value even if it already seems that is first, and then restart it.

    Control Panel | Add/Remove programs. Set Program Access and Defaults. Custom + down arrow | Choose a default browser. Select the Internet Explorer radio button.

    If that does not do...

    Hyperlinks do not work in Outlook Express or in Word (revised 29-Apr-09)
    http://support.Microsoft.com/kb/823301

    Hyperlinks do not work in Outlook Express after you put upgraded to IE7 [or IE8] (revised 29-Apr-09)
    http://support.Microsoft.com/kb/929867

    If still no joy:

    With the permission of MVP Frank Saunders. [RIP]

    If nothing happens when you click on a link:
    Open Windows Explorer or on the control panel.
    Go to tools | Folder options | Types of files.
    Scroll to [NONE] URL: HyperText Transfer Protocol (NOT the shortcut URL: Internet) and select it.
    Click Edit or advanced, depending on your version of Windows.
    Choose 'open '.
    Click on change.

    "Application used to perform action" should read:

    "C:\PROGRAM may EXPLORER\iexplore.exe" - nohome (check the path to)
    Iexplore.exe to ensure that it is correct and use the double quotes).

    DDE should be checked and in the boxes below, you should have:

    #1:
    « %1 »,,-1,0,,,

    #2
    IExplore

    #3 (white)

    #4
    WWW_OpenURL

    Protocol URL: HyperText Transfer with Privacy should be the same.

    If the foregoing is correct, uncheck the box: use DDE.

    And if you still have problems, try a new OE identity.

    You may have a damaged identity especially if it's the default main identity. File | Identities | Add the new identity. Create a new one and try it. If all goes well, you can import your messages and address book from the old identity and delete it.

  • Can I write an expression for a value of the model you are looking at, rather than a specific model?

    I know that I can make an expression to a particular layer in a model specific to get a value, for example. COMP ("OpeningTitle01"). Layer ("TITLENAME") .text .sourceText will get the value of the TITLENAME layer in the model OpeningTitle01, but I want to make several compositions (so I can add them to the queue of rendering at the same time) where each will change the value of the underlying model.  Is this possible?  The model where I will use the expression is nested on 5 levels below the top level, and I want to put the value in a layer in each of the new compositions.  Any help is appreciated-thanks guys!

    If what you're asking, is if you can use an expression to cause a layer inside precomp to render different text based on that comp the precomp happens to be nested in, the answer is no.

  • [ADF, JDev12.1.3] What options are there in JDev to avoid write values of constant "in the clear" when writing of the code?

    Hallo (and sorry if this is in part a matter of 'Java');

    I am originally from C++ programming where a directive 'set' can be used to give a name to a constant value: when coding this allows you to use the name instead to write the value in the clear.

    For example

    In C++ , we have:

    file costants.h

    #define TYPE_PERSON 1

    #define TYPE_INDUSTRY 2

    //...

    In Java , I guess I should use a class such as:

    / / file myCostants.java

    Class myCostants {}

    public static final int TYPE_PERSON = 1;

    public static final int TYPE_INDUSTRY = 2;

    //...

    {static()}

    }

    I would like to know if it's the same thing in JDev or if the framework offers more options.

    Thank you

    Federico

    The same thing in ADF also. If you use a text string /, it should be defined as constants as you said (public static final) or it must come from resource group.

    Thank you

Maybe you are looking for