Can I include a bean inside a customization project?

Hi,
I am customizing out-of-the-box Profile (.jsff) pages. I'll have to create a bean which will get binary data from Oracle. I have a project to customize the Profile pages. Can I include the bean inside the project? Or, should I create a separate project, and have the pages referenced to the bean class. How should I go for that?
Many Thanks

Hi,
For now, you can change any attributes on user's profile page like department and etc. What's about if I want to create a dynamic drop-down department list for a user to pick? The department list will be generated from a database source. In jdeveloper, you can have various roles. I'm switching back and forth between 'default' and 'customization' roles. In the default role, I'm going to create a javabean to create the dynamic department list. In customization role, I customize the 'look and feel' of the profile page. This is kind of pain in the neck. Am I going to a wrong direction? Is there anyway of getting the work done without switching.
Secondly, on the profile page, I use EL to reference an attribute in a javabean. But, when I load the page, it errors out.
<Jan 24, 2012 3:16:22 PM EST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /edit-basic/view1 URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff actual-URI: /oracle/webcenter/peopleconnections/profile/view/jsf/regions/ootbedit/editbasic.jsff.
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'PersonBean' resolved to null+
at com.sun.el.parser.AstValue.getTarget(Unknown Source)
at com.sun.el.parser.AstValue.isReadOnly(Unknown Source)
at com.sun.el.ValueExpressionImpl.isReadOnly(Unknown Source)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
Any help would be appreciated. Thanks.
Edited by: 891549 on Jan 26, 2012 9:45 PM

Similar Messages

  • How can I include a parsys inside a javascript function.

    I am using radio button provided by CQ5.4.
    I am writing a javascript function which checks whether a radio button is being clicked or not..
    If the radio button is being clicked an alert window is opening ..this means that function is being called when radio button is being clicked.
    but when I try to include parsys instead of alert window, when the radio button is being clicked..the parsys is not appearing..
    Can u please help me that how should i write the "<cq:include>" for parsys inside the javascript function so that it starts appearing on click of the radio button.
    THANKS
    ASHWANI

    Ashwani,
    I would recommend detecting the WCMMode and always showing the parsys if the page is displaying in edit or design mode:
    http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/WCMMode.html
    Unless there is a really good reason to hide the section from authors, it's generally confusing to authors to hide a section.  Additionally, hiding a parsys in JavaScript can cause strange artifacts as the drag and drop section of the parsys won't be hidden with the content of the parsys.
    -Dan

  • Can I include java files into my javafx project?

    If I do so, exception always occurs until I delete the created java files.

    Suppose I include the following class in my project (all other classes are of .jx type)
    public interface ServicePortType extends java.rmi.Remote{
        public String getMessage() throws java.rmi.RemoteException;
    }However if I'm trying to run the whole project,
    the following exception occurs:
    Cannot run program "C:\Program Files\Java\jre6\bin\javac.exe": CreateProcess error=2, The system cannot find the file specified
    C:\Documents and Settings\daps-stg\My Documents\NetBeansProjects\ProductionPath\nbproject\build-impl.xml:143: exec returned: -1
    BUILD FAILED (total time: 0 seconds)If I cancel the java source from my javafx project, it runs normally without any bug.
    So how is this happening and what is the potential solution?
    Thx. -- Isaac.

  • How can I include Java Bean model into the model outside the component

    Hi All,
    I am new to SAP portal. I wanted to create a bean for storing the data and to include that into the application model.
    Please help me with an example .
    Regards,
    Saroj

    Hi,
      Check these blogs.
    The specified item was not found.
    Importing Complex JavaBean model into WebDynpro by creating relationships for the model classes
    JavaBean Model Import: when it really works
    Issue in Importing Java Bean Model
    Regards,
    Harini S
    Consider rewarding points for helpful answers. Post this thread in WD forums for more results.

  • Can't include C-code in objective-c project

    I am having problems including a little C source code file in an existing objective-c project.
    The problem is that xcode spits out lots of warnings and error messages when it tries to compile the whole project or just the C file, in particular, lots of "parse error"s.
    I thought obj-c is a true superset of C, isn't it?
    The project is the GLSLEditorSample that comes with the XCode Examples.
    The funny thing is that the project contains already two other plain C source code files ...
    If you could give me any hint or suggestion or pointer where to look, i would be very grateful.
    If you want to take a quick look at my xcode project you can download everything from
    http://zach.in.tu-clausthal.de/tmp/Source.zip
    Thanks a lot in advance,
    gabriel.

    Thanks a lot for testing.
    When i build the project (with nano_timer.[ch] included), then i get zillions of errors.
    The first ones in the list are:
    nano_timer.c:13: error: parse error before '*' token
    nano_timer.c:14: warning: no previous prototype for 'nano_init'
    nano_timer.c:15: error: 'nt' undeclared (first use in this function)
    nano_timer.c:15: error: 'true' undeclared (first use in this function)
    And even before those i seem to get an error in nano_timer.h at line 18, which is the declaration of 'first_time' in the struct 'NanoTimer', i.e., in
    struct NanoTimer
    unsigned long long int time_stamp;
    double history[NANOTIMER_NUMHISTORY];
    bool first_time;
    } NanoTimer;
    And the error message there is:
    nano_timer.h:18: error: parse error before 'bool'
    Any ideas?
    Best regards,
    Gabriel.

  • Include python script inside an app

    Hi all, I'm writing an applescript app which should use a python script.
    how can I include the script inside the apple and have it called by the applescript?
    Thank you!

    Now, is there a way to let the user choose both the output file directory and the output file name (out.iso)?
    To get the filename, add this after the code to select the directory:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;">
    set outPutName to text returned of (display dialog "Now, please enter a filename:" default answer "out" with title "Enter Filename") & ".iso"</pre>
    But you need to remove "quoted form of the" from dirOutput.
    Also, "set dirOutput to POSIX path of the dirOut" is not needed.
    so, this should work:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;">
    set dirOut to (POSIX path of (choose folder with prompt "Scegli la posizione in cui salvare il file convertito"))
    set outPutName to text returned of (display dialog "Now, please enter a filename:" default answer "out" with title "Enter Filename") & ".iso"
    if outPutName is ".iso" then set outPutName to "out.iso" -- simple error check for blank name
    if outPutName contains "/" then set outPutName to "out.iso" -- simple error check for bad charater in name
    set fullPathOut to quoted form of (dirOut & outPutName)
    </pre>
    Tony

  • Can we include the customize results in the Open Script Result Summary

    hi all
    can we include the customize results in the Open Script Result Summary if we include what is the code.
    customize result i mean
    Scenario: i am checking the concurrent job is completed successfully or not
    result:Concurrent Job Completed Successfully
    i am want to see the above result in the Open Script Result Summary can anybody help me on this.

    You want to launch a concurrent program, right? And to check the result, right?
    Is that for a functional test script or a load test script?
    Let's say it's functional. You have basically 2 options:
    * Do it separately. You create a scenario which launches the program and you write the RequestID in a file, then you create a second script which read the file and then go to the concurrent processing dashboard and search for the RequestID and check the status. You have to desynchronize the 2 scripts. Launch the first one. And then, later on, launch the 2nd one when you are sure the program is finish.
    * You do it in one single script and you wait til you get the status. See the code below I've written for a customer (for a POC);
    This is not the best option in my opinion because you don't know how long you need to wait and therefore you block other scripts execution... But the customer wanted it like this.
                   do {
                        delay(5000);
                        forms
                                  .textField(
                                            "//forms:textField[(@name='JOBS_PHASE_0')]")
                                  .storeAttribute("Batch_Phase", "text");
                        info("Phase du traitement: {{Batch_Phase}}");
                        forms
                                  .button(56,
                                            "//forms:button[(@name='JOBS_REFRESH_0')]")
                                  .click();
                   } while ((eval("{{Batch_Phase}}").equals("Running")));
    But wait, after having written all the stuff above, maybe you just want to check the toolbar status, is that correct?
    Normally, OpenScript automatically insert a "status bar test".
    Then I guess there's a default time-out (30 or 60 sec I think), you can maybe change to adapt.
    Well, looping could also be an option as i describe above.
    Let me know
    JB

  • [SOLVED] Can I submit a package including source code inside to AUR?

    I'm about to make PKGBUILD for scim-unikey (http://code.google.com/p/scim-unikey/), they dont not have a public subversion url right now. The current version on their site is quite old. They update the newest package through a thread here http://forum.ubuntu-vn.org/viewtopic.ph … &sk=t&sd=a (WARNING: it's Vietnamese).
    I want to make a package for the newest version, so my question is: can I include the source code of the newest version inside my tarball to the AUR?
    The wiki http://wiki.archlinux.org/index.php/AUR_User_Guidelines and http://wiki.archlinux.org/index.php/Arc … _Standards dont mention anything about included source code.
    Comments are welcome!
    Last edited by tinhtruong (2009-02-22 07:57:24)

    Many thanks. Here is the details what I've done:
    set the 'source' in the PKGBUILD file like this:
    source=($pkgname-$pkgver.tar.bz2)
    Instead of a valid url, make sure you have the file '$pkgname-$pkgver.tar.bz2' (in my case it's scim-unikey-20090218.tar.bz2) is in the same directory as the PKGBUILD file.
    Hope it could be useful to someone else.

  • How can I import a servlet inside a JSP?

    Hi! I have seen tons of instructions on importing beans inside a JSP page but I want to use servlets instead. This question might be stupid, but I'm not really adept with JSPs yet and I hope you can help me.
    I need to import classes inside my JSP page so that I can use the methods and manipulate them through the JSP.
    Thank you!
    lauramos

    I'm curious, have you looked into using the MVC or Struts framework? One idea would be to map the Servlet you created to a JSP via XML (or any other mapping you want #?.jhtml for all that matters) and jsp:include as needed. Just a few mappings needed in WEB-INF/web.xml for instance...
    <servlet>
    ��<servlet-name>HeaderPageHandler</servlet-name>
    ��<servlet-class>packagename.HeaderPageHandler</servlet-class>
    </servlet>
    <servlet-mapping>
    ��<servlet-name>HeaderPageHandler</servlet-name>
    ��<url-pattern>/header_page.jsp</url-pattern>
    </servlet-mapping>
    In the JSP:
    <jsp:include page = "header_page.jsp" flush = "true" />
    The Servlet could forward the information over to another page using the getRequestDispatcher(String url).include(req, resp); From there, use the application or request scope to handle the jsp:useBean to output what you need. You could take that further and customize some of your own TLDs so you could state simple tags like <tag:output class="text">some text here</tag:output>

  • How can I get an instance of my customize cell in tableview?

    Hi,I'd like to generate a customize tablecell in my tableview.but How can I get an instance of my customize cell in tableview when selected item changes?
    public class Person {
              private javafx.beans.property.BooleanProperty active;
              private StringProperty firstName;
              private StringProperty lastName;
              private StringProperty email;
              private Person(String fName, String lName, String email) {
                   this.active = new SimpleBooleanProperty(true);
                   this.firstName = new SimpleStringProperty(fName);
                   this.lastName = new SimpleStringProperty(lName);
                   this.email = new SimpleStringProperty(email);
              public javafx.beans.property.BooleanProperty activeProperty() { return active; }
              public StringProperty firstNameProperty() { return firstName; }
              public StringProperty lastNameProperty() { return lastName; }
              public StringProperty emailProperty() { return email; }
    final ObservableList<Person> data = FXCollections.observableArrayList(
                             new Person("Jacob", "Smith", "[email protected]"),
                             new Person("Isabella", "Johnson", "[email protected]"),
                             new Person("Ethan", "Williams", "[email protected]"),
                             new Person("Emma", "Jones", "[email protected]"),
                             new Person("Michael", "Brown", "[email protected]")
    public class RatingCell extends TableCell<Person,String> {
        private NabiSyncRating rating;//NabiSyncRating is a customize control.it has some method ,like change backgroud-color,value,etc.
        public RatingCell() {
             rating = new NabiSyncRating(-1);
        @Override
        public void startEdit() {
            super.startEdit();
            if (isEmpty()) {
                return;
            rating.setDisable(false);
            rating.requestFocus();
        @Override
        public void cancelEdit() {
            super.cancelEdit();
            rating.setDisable(true);
        public void commitEdit(String value) {
            super.commitEdit(value);
            rating.setDisable(true);
        @Override
        public void updateItem(String item, boolean empty) {
            super.updateItem(item, empty);
    Callback<TableColumn<Person, String>, TableCell<Person, String>> ratingCellFactory = new Callback<TableColumn<Person, String>, TableCell<Person, String>>() {
                        @Override
                        public TableCell<Person, String> call(
                                  TableColumn<Person, String> p) {
                             return new RatingCell();
    TableColumn firstNameCol = new TableColumn();
    firstNameCol.setCellFactory(ratingCellFactory);
    firstNameCol.setMinWidth(100);
    firstNameCol.setMaxWidth(224);
    firstNameCol.setResizable(true);
    tableView.getColumns().addAll(firstNameCol);
    tableView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
                  @Override
                  public void changed(ObservableValue observable, Object oldvalue, Object newValue)
                               Person person=(Person)newValue;
                               //I'd like to get the instance of my customize control 'RatingCell' ,How can I get the RatingCell instance which in current row?
                         System.out.println("selected row is : " + newValue );
                  });

    HI,
    I have found a solution to find it
    First ,you need to set person property 'id' as the input parameter for your customized component method 'public void updateItem(String item, boolean empty)'
    ratingCol.setCellValueFactory(new PropertyValueFactory<Person,String>("id"));
    firstNameCol.setCellFactory(ratingCellFactory);and then you need to implement your customize component like this:
    import javafx.scene.control.ContentDisplay;
    import javafx.scene.control.TableCell;
    public class RatingCell extends TableCell<Person,String> {
        private NabiSyncRating rating;
        public RatingCell() {
             rating = new NabiSyncRating(5);
            this.setGraphic(rating);
            this.setContentDisplay(ContentDisplay.GRAPHIC_ONLY);
            this.setEditable(true);
        public void updateRating()
             if(rating!=null)
                  rating.selectRating();
        @Override
        public void startEdit() {
            super.startEdit();
            if (isEmpty()) {
                return;
            rating.setDisable(false);
            rating.requestFocus();
        @Override
        public void cancelEdit() {
            super.cancelEdit();
            rating.setDisable(true);
        public void commitEdit(String value) {
            super.commitEdit(value);
            rating.setDisable(true);
        @Override
        public void updateItem(String item, boolean empty) {
             if(item!=null && item.length()>0)
                  if(rating!=null)
                       rating.setId("NR"+item);
                       this.setId("NC"+item);
                super.updateItem(item, empty);
    } and find the current like this :
    tableView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
                       @Override
                       public void changed(ObservableValue observable, Object oldvalue, Object newValue)
                            Person person=(Person)newValue;
                            Set<Node> colNodes=tableView.lookupAll("RatingCell");
                            for(Node nod:colNodes)
                                 System.out.println("person.email:"+"NC"+person.email.getValue()+"|nodId: " + nod.getId()+"\r\n" );
                                 if(("NC"+person.email.getValue()).equals(nod.getId()))
                                       System.out.println("get current instance" );
                                      ((RatingCell)nod).updateRating();
                       });Edited by: noob on Apr 20, 2012 4:49 PM

  • Can I access a label inside of an MC and then go back to the main time line

    Here is my current set up.
    I have a labeled section on main time line which has icons of 12 different videos. Each icon acts as a button and brings a user to a labeled section with a FLV Video Playback component impemented to play the corresponding video. These labeled sections are located on the main time.
    This methog makes my main time line very long. Is there a way to make an additional MC which will hold all the video buttons and then have this MC separated into labeled sections.
    In other words can I access a label inside of an MC and then go back to the main time line?
    My present code for accessing the label located on the main timeline is:
    HowTo_maininfo_mc.theArrangement_btn.addEventListener(MouseEvent.CLICK, theArrangement_btn_amimated_btnDown);
    function theArrangement_btn_amimated_btnDown(event:MouseEvent):void {
    gotoAndPlay("theArrangement");
    How would it look if my label "theArrangement" would be located inside of an MC?
    Is there any specific code if I want to have a close button located on the label inside of an MC and it needs to fire out to a label located on the main timeline?

    Oh, WOW! It is working perfectly now.
    My mistake was that I was specifiying the var sourceVar:String;
    for every single button. It was not clear to me from the first example that it has to be specified only once.
    I made a small test Flash file and everything works now. It still doesn't work on my big flash file, I guess some other code messes it up and I can' not figure what it is exactly.
    I would like to include the OUTPUT error message in hopes that you can spot right away what a mistake could be:
    VideoError: 1000: Unable to make connection to server or to find FLV on server
              at fl.video::VideoPlayer/stop()
              at fl.video::FLVPlayback/stop()
              at acolyteVideos_fla::mainsite_mc_2/stopF2()[acolyteVideos_fla.mainsite_mc_2::frame484:21]
              at flash.display::MovieClip/gotoAndPlay()
              at acolyteVideos_fla::mainsite_mc_2/onClick_GoBackToHowTo2()[acolyteVideos_fla.mainsite_mc_2 ::frame484:13]
    If there is no immediate cure for it, I will go through code line by line. Since it is working on the test it must be something wrong with my main file.
    Additiona question (please let me know if I should paste it as a new thread)
    I have similar set up with UILoader. Where different buttons set up to bring a user to individual labeled sections with individual UILoader. Should it be arranged in the same way that it is only one loader and "var sourceVar:String;" code is the one which brings up different content for each button?

  • How can I include external javascript/css/html

    Hi there
    I want to create a analyser bar for when music plays in my edge project, can anyone let me know how to include a external file wthin my project? Is it a yepnope fuction?
    http://www.developphp.com/view.php?tid=1348
    Here is the link I am using as a tutorial for creating the analyser...

    You're welcome, George
    Say you have a symbol whose instance is named slider,
    and the symbol has an element named phrase (an empty
    text element used as a container for the html snippets
    you load in it) :
    var $phrase = sym.getSymbol('slider').$('phrase');
    var filename = buildFileName(); // a function defined elsewhere
    $phrase.load( 'text/' +filename +'.html');
    The HTML file contains a html snippet, that is to say what
    you would normally write inside <body> (no <header>).
    Gil

  • How to Instantiate a bean inside a LoginServlet before redirecting toanothe

    Hi there
    I am writing a Login Servlet where i am validating a user.
    If he is successful i am redirecting to members page say main.jsp
    on links to main.jsp page i want to use beans like addressbook and userprofile on other jsp pages like addressbook.jsp and userprofile.jsp so that user can add or modify them as per his requirement
    i have access to the database tables coreesponding to these these beans in the login servlet itself.
    My question is How to do this as well as how to check for sessions across multiple pages and remember the logged in user and his bean instances which i want shared across multiple pages
    Its urgent
    Thanking u in advance
    Mumtaz
    India

    Hi There
    Could u please tell if i can put more than one beans inside the session object and then use it on all pages
    Also will my appln be safe for more than one user
    because i am getting all the details of that specific user in the LoginServlet
    Help appreciated

  • "Do not include a break inside the TD tag" is ignored

    In Edit | Preferences | Code Format in DW CS5, the setting "Do not include a break inside the TD tag" is ticked but DW is still putting a line break in the tag like this...
    <td> </td>
    Any idea why the setting is being ignored?
    Malcolm

    Artisan Internet wrote:
    Both fair comments, many thanks. The reason I want to remove the space is because it's impossible to have an empty row with a height of less than about 6 pixels (used as a spacer or for coloured divider lines of different thicknesses) when there's a space within the TD tag. The space counts as a character which means that the row can't be less than the height of a character.
    I know I could make a transparent spacer GIF, and create custom styles for different horizontal rules in the stylesheet, but it's always been a lot quicker to simply use a table row with a height.
    Looks like I'll just have to carry on deleting the spaces from the code.
    Malcolm
    Your best solution is to insert a transparent spacer.gif and give it the dimensions you want. That will overrule all the 'empty' defaults. Please remember, the spacer need only be in one cell of the row. All other cells, unless they have larger content, will follow suit... applies to rows and columns.
    (The 'height' attribute by itself, as you've discovered, is kind of dicey. So is the width.)

  • Can jsp include Servlet?

    can a jsp include a servlet inside in the code using the jsp include?
    i am using tomcat 4.x

    That depends on the type of include and the servlets function.
    If you used the <% include file="relative URL" %> syntax, you can include a servlet that does a task (but does not output HTML) or a servlet that outputs HTML.
    Now you can use the <% include file="relative URL" %> to <jsp:include page="relative URL" flush="true" /> but only if the servlet you are including OUTPUTS html. If this servlet DOES something other than outputting HTML then you are S.O.L. and and you cannot include the Servlet=P
    Hope that helps

Maybe you are looking for