BACKING BEAN issue with af:showpanelcontrol - little Urgent!!

Hello,
I need to create a af:showonepanel control that has four panels. This af:showpanel control uses af:showdetailitem to display details. The requirement is to programmatically disclose or undisclose the navigation between panels as soon as a mouse hover event takes place.
In Order to achieve this, I have done following three things.
1) Created a managed bean
2) Wrote following java class
package Ruchir.CoexsysStart.coexsys.classes.jsps;
import oracle.adf.view.faces.component.core.layout.*;
import oracle.adf.view.faces.component.*;
public class ShowApanel {
private CoreShowDetail detail;
public ShowApanel() {
public String setSight(CoreShowDetail detail) {
detail.setDisclosed(!detail.isDisclosed());
3)Bind the component to the corresponding bean property using an EL expression
as the value for the binding attribute, as shown in this code snippet:
<af:showonepanel binding="#(#Ruchir.Start.sys.classes.jsps.ShowApanel.Setsight()">
At this stage, I tested the navigation of the af:showonepanel but it is not working as expected at all. I am not sure what I am doing wrong. I am new to Java and through trial and error approach I came up with above mentioned solution. Please indicate my mistakes where exactly it is failing.
Thank you so much for your time and efforts on this posting.
-Ruchir

Reposting above message to bring it front. This is a critical path item for me. So hoping the sooner I get feedback the luckier I will be :)
Thanks,
Ruchir

Similar Messages

  • PanelTabbedPane and Backing Bean issue

    I have a page with 2 components: a "save" button and a tabbedPane with serverSideTabSwitch set to "true".
    The tabbedpane contains 2 tabs and in each tab there is an inputfield whose value is linked to a backing bean.
    If the user enters a value in the input field of the first tab, then clicks the second tab, enters a value in the input field of the second tab and then clicks the "save" button, only the value entered in the last chosen tab is set in the backing bean (and thus saved)
    Is there a solution for this problem , so that the information in all tabs is set in the backing bean (and also validated) ?
    A snippet of my JSP:
    <h:form>
    <h:commandButton action="#{testtabBean.save}" value="Save" />
    </h:form>
    <t:panelTabbedPane serverSideTabSwitch="true" >
    <t:panelTab id="tab1" label="Tab1">
    <h:inputText value="#{testtabBean.text1}"></h:inputText>
    </t:panelTab>
    <t:panelTab id="tab2" label="Tab2">
    <h:inputText value="#{testtabBean.text2}"></h:inputText>
    </t:panelTab>
    </t:panelTabbedPane>
    My backing bean:
    public class TestTabBean {
    private String text1;
    private String text2;
    public String getText1() {
    return text1;
    public void setText1(String text1) {
    this.text1 = text1;
    public String getText2() {
    return text2;
    public void setText2(String text2) {
    this.text2 = text2;
    public String save() {
    return null;
    }

    3 hours later is worked out is should be false :) Fixes the issue.
    <t:panelTabbedPane serverSideTabSwitch="false"

  • Calling Backing Bean Method with h:outputLink

    Is there a way to call a backing bean using h:outputLink isntead of h:commandLink ?

    No, you can't. You however can just let it point to a JSF page and make use of the constructor of the involved request scoped managed bean.

  • Issue with Case Statment Bit Urgent.

    Hi Friends,
    I am using a Case in my select statment but problem is i have used group by clause.
    This is the main query.
    SELECT   papf.employee_number OHR,
               papf.business_group_id,
               (CASE
                   WHEN (paaf.effective_start_date = Min("paaf.effective_start_date" From Below Where condition))
                   THEN
                      TO_CHAR (
                         (SELECT   ORIGINAL_DATE_OF_HIRE
                            FROM   apps.per_all_people_f p1
                           WHERE   p1.employee_number = papf.employee_number
                                   AND p1.current_employee_flag = 'Y'),
                         'DD-MON-YYYY'
                   ELSE
                      TO_CHAR (MIN (paaf.effective_start_date), 'DD-MON-YYYY')
                END)                                                                EFFECTIVE_START_DATE,
               DECODE (TO_CHAR (MAX (paaf.effective_end_date), 'DD-MON-RRRR'),
                       '31-DEC-4712', NULL,
                       TO_CHAR (MAX (paaf.effective_end_date), 'DD-MON-RRRR'))      EFFECTIVE_END_DATE,
       FROM   apps.per_all_people_f papf,
               apps.per_all_assignments_f paaf,
               apps.per_grades pg,
               apps.per_jobs pj
       WHERE       papf.person_id = paaf.person_id
               AND papf.employee_number = '2130'
               AND papf.current_employee_flag = 'Y'
               AND paaf.grade_id = pg.grade_id
               AND paaf.job_id = pj.job_id
               AND (   paaf.ass_attribute21 IS NOT NULL
                    OR paaf.ass_attribute22 IS NOT NULL
                    OR paaf.ass_attribute23 IS NOT NULL
                    OR paaf.ass_attribute24 IS NOT NULL
                    OR paaf.ass_attribute25 IS NOT NULL)
               AND EXISTS
                     (SELECT   pap.EMPLOYEE_NUMBER
                        FROM   APPS.PER_ALL_PEOPLE_F PAP
                       WHERE   TRUNC (SYSDATE) BETWEEN PAP.EFFECTIVE_START_DATE AND  PAP.EFFECTIVE_END_DATE
                               AND PAP.CURRENT_EMPLOYEE_FLAG = 'Y'
                               AND PAP.EMPLOYEE_NUMBER = PAPF.EMPLOYEE_NUMBER)
               AND PAAF.EFFECTIVE_START_DATE >
                     NVL (
                        (SELECT   MAX (PAAFA.EFFECTIVE_START_DATE)
                                     EFFECTIVE_START_DATE
                           FROM   APPS.PER_ALL_ASSIGNMENTS_F PAAFA,
                                  APPS.PER_PERIODS_OF_SERVICE PPOSA
                          WHERE   PAAFA.PERIOD_OF_SERVICE_ID =
                                     PPOSA.PERIOD_OF_SERVICE_ID
                                  AND (UPPER (PPOSA.LEAVING_REASON) NOT LIKE
                                          '%TRANSFER%')
                                  AND PPOSA.ACTUAL_TERMINATION_DATE < SYSDATE
                                  AND PAAFA.PERSON_ID IN
                                           (SELECT   DISTINCT PERSON_ID
                                              FROM   apps.per_all_people_f
                                             WHERE   employee_number =
                                                        PAPF.EMPLOYEE_NUMBER)),
                        TO_DATE ('01-JAN-1881')
    GROUP BY   papf.employee_number,
               papf.person_id,
               paaf.assignment_id,
               fnd_date.canonical_to_date (papf.ATTRIBUTE29),
               papf.business_group_id,
               TRIM(SUBSTR (PAAF.ASS_ATTRIBUTE21,
                            INSTR (PAAF.ASS_ATTRIBUTE21, '-') + 1)),
               TRIM(SUBSTR (PAAF.ASS_ATTRIBUTE22,
                            INSTR (PAAF.ASS_ATTRIBUTE22, '-') + 1)),
               UPPER (paaf.ass_attribute23),
               UPPER (paaf.ass_attribute24),
               UPPER (paaf.ass_attribute25),
               xx_ijp_get_loc (paaf.ass_attribute23),
               pg.name,
               pj.name
    ORDER BY   papf.employee_number, MIN (paaf.effective_start_date) DESC -----------------
    Output of the query
    EFFECTIVE_START_DATE     EFFECTIVE_END_DATE
    13-JAN-2010     
    15-DEC-2009          12-JAN-2010
    09-JUN-2009          14-DEC-2009
    05-JUN-2009          08-JUN-2009
    22-SEP-2008          04-JUN-2009
    21-APR-2008          21-SEP-2008
    21-JAN-2008          20-APR-2008
    01-JAN-2008          20-JAN-2008
    04-APR-2007          31-DEC-2007While using when in case statment i want to put the condition from where condition of main query and pick the min value of EFFECTIVE_START_DATE column i.e 04-APR-2007 so i can replace this with employee Date of Joining through Case condtion.
    Any solution for this.
    Please suggest it's bit urgent.
    Thanks
    Bachan.

    Bachan wrote:
    Please suggest it's bit urgent.Ok, I'll suggest it's a bit urgent...
    "it's a bit urgent"
    But only to you.
    Everybody who posts a question would like it answering as soon as possible. Do you not think it's rude of you to expect that your question demands more immediate attention than someone elses? Is that fair on all the other people who've just asked their question and are patient enough to wait for answers? Or should they be happy that you're jumping up and down saying "me first! me first!"
    What about everybody who's giving up their own time volunteering to answer questions? They have their own jobs to do as well. Do you not think it's rude to expect them to drop what they're doing to just help you because you think your question is "urgent".
    Typically, you will find that less people will come to help you if you say your question is urgent because most people will ignore it as they consider it rude. The best way to ask you question is to give as much information as possible and ensure you state what your database version is, as well as providing table structures, example data and expected output, so that the most appropriate answer can be given.
    Looking at your code, it's not clear what your problem is as we don't have the input data to try it ourselves.
    One clear issue is:
    TO_DATE ('01-JAN-1881')As you don't specify a format mask so it will rely on your NLS_DATE_FORMAT mask being set to DD-MON-YYYY which, if it's not, will cause the code to either give incorrect results or error.

  • Issue with RSS Feed Service-Urgent

    Hi,
    1. I am using the service provided by UCM for using extracting details from the RSS feed.I tried using the service with a RSS feed url i.e.("http://rss.news.yahoo.com/rss/topstories") works fine and displays all results on my custom page.
    2. The same piece of code, I moved my client instance but found nothing happens not even I am getting any error. Only the thing I can see is a page loading and loading for long time.
    3. I found a document related to RSS feed it has mentioned to upload fragments into the SS which i did in my and client instance. The names are RSS_Feed.Zip and RSS FEEDS_FRAGMENT_LIB.zip.
    4. The feed URL provided when executed from browser in client and my instance displays feed, but when use it with service works on development instance works fine, but
    doesn't work on client instance.
    5. Below mentioned is the sample page which I am using to execute the feed.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!--$include ss_layout_head_info-->
    <title><!--$dDocTitle--></title>
    <script id="ssInfo" type="text/xml" warning="DO NOT MODIFY!">
    <ssinfo >
    </ssinfo>
    </script>
    </head>
    <body>
         <!--$feedUrl="http://rss.news.yahoo.com/rss/topstories",parseXml="true"-->
         <!--$executeService("GET_REMOTE_FEED")-->
              <ul class="userlist">
              <!--$loop RSS_ENTRIES-->
                   <li class="notopborder">
                        <span class="userdetails">
                             <span class="username"><!--$title--></span>
                             <span><!--$description--></span>
                             <span class="hours"><!--$pubDate--></span>
                        </span>
                        <div class="clear"></div>
                   </li>
              <!--$endloop-->
              <ul>
    </body>
    </html>
    Any kind of help is highly appreciated.
    Thanks,
    Abhijit
    Edited by: AbhijijitPr on Oct 12, 2010 12:47 PM
    Edited by: AbhijijitPr on Oct 12, 2010 12:58 PM

    I found the issue, the service provided by UCM i.e. the GET_REMOTE_FEED as when checked in the source code found doesn't support https. So any request made on https will give no result.
    Thanks,
    Abhijit

  • Battery back up issue with lumia 610

    i have been using nokia lumia 610 ..past one month
    battery back up was average(15 to 20 hrs) ,but reduced after some time i got it check with nokia care they said there is no problem with phone and battery
    thing is that
    when i use phone for surfing withing 5 minutes battery reduced to 95 per form 100
    when i use chat app it reduce to 85 per within 5 to 7 minutes
    nokia care people say that there is no problem with handset
    when i ask that this is nomal than  they say it should last a day under following type of usage
    30 min of browsing
    30 min of calling
    1 hour of music
    30 min of video playing
    1 hour of instant messaging
    but phone last total 7 to 8 hours and i am not finding any kind of solution regarding this problem
    please help and i expect this time that any of the nokia associate answer my problem

    1.
    Yes there is a bluetooth problem. I can received the same file from my other phone but cannot with laptop.
    It works with phones.
    2.
    Battery backup is okay for me. Don't run too many apps and leave them in background. Close them by long pressing menu key and selecting X.
    3.
    For backup memory card is needed.
    As we go for software update or reinstall all data gets deleted. So it needs removable memory card.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------

  • Layout problem with smartform..Little Urgent

    Hi gurus,
    I have a window of size 1 cm.. In this i want to print a number which should be of the same size as the window(1 cm in height). But the maximum font i can give in the character format is 99 pt. and this is making the number to printed in less than half the area provided for it.
    Please tell me how i can increase the font for the number so that it fits the window fully.
    Thanks in Advance.
    KK.

    Hi,
    you have given window size of 1 cm in that only the character font of less then 20 can be fitted I think you are giving the font size or the font family so that it takes default font of system so it is coming as so. In your system go to
    -> Go to SE73 ->select system fonts and go with display.
    -> Now check the font size and family that you are providing.
    -> Now in the character format of the style provide the font family and size that is in the system fonts.
    Thanks,
    NN.

  • Issue with shared services - Need Urgent Help please!!

    Hello Experts
    One of my customer has installed a new instance of oracle and copied all the schemas and data over to the new instance.
    Now when they bring up shared services, have lost all our provisioning. None of the projects are recognized by shared serices and gets the following error when we try to bring up a user
    'xxxxx' is not a recognized Shared Services project. Please contact your adminstrator
    Is there something we need to do to restore Shared Services to its original state?
    Thanks in advance.
    Regards,
    Sonu
    Edited by: 637223 on Jan 20, 2009 2:19 AM

    hi,
    I doubt that "creating a new instance of oracle and copied all the schemas and data over to the new instance" will register the project with shared service and thats why giving error. Because when you install shared service, it asks you about the database name (oracle in your case) to register with. So even if you overwrite that database by new instance it gives error.
    Have you tried the configuration utilty ? Over there you can provide the new database instanse as your database and configure your shared service. Remember that you need to do a complete configuration of shared service , analytic administration services and analytic services. After configuring, Restart the system.....it should work.
    Hope this helps!
    Regards,
    James

  • Issue with Struct and RKF Urgent

    Hi All,
    i am having a requirement where i need to create 10 restricted key figures and need to place in the rows, i am unable to place them in the row without structure, is der any alternate solution for this. another thing is i had created a structure using year and calmonth when i am checking for the query its giving an error stating that its an empty structure.
    plz thru some light on this
    Thanx in advance
    KK

    You can directly drag 0CALMONTH into rows, columns or free characteristics anywhere in your query.
    You don't need to create structure.
    Structures are only used for Key figures.
    Hope this answers your question.

  • Calling a method on backing bean in response to contextual event

    Hi
    I am using Jdeveloper 11.1.1.6.0 and using ADF contextual events..
    I have a drop down list and i am rasiing a contextual event on changing the current selection. In response to that event i want to call a backing bean method with parameters.. But when i click on the subscriber section for the contextual event, i can see only some bindings of the page.. How can i call a method on backing bean as a subscriber..
    Thanks
    Raghu

    Hi,
    this article has a use case for the POJO approach: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
    Another is to define a method binding in the receiving PageDef file and configure it as explained here
    http://java.net/projects/smuenchadf/pages/ADFSamplesBindings/revisions/3#SMU164
    Frank

  • Clearing up a backing bean's property values.

    Hi All
    I saw a few similar posts from the past on this forum similar to my issue but couldnt make much sense of them. Therefore appologies for any repetition :)
    I have search jsp/jsf page. And have one session scope backing bean associated with it. There is a cancel/Back button on the jsp page that takes the current user back to the previous page.
    The problem is that if the user entered some search criteria in the UI components that criteria is retained in my backing bean when the user revists the page. I want my bean's properties to be cleared up once the user leaves the page.
    I would prefer not to set the scope of my backing bean to request.
    One solution i can think of is to set all the properties to null before leaving the page. (I have not tried it yet as I am actually posting from home after coming back from work :) )
    Could you guys advise any more elegant solutions that could possibly solve this issue?
    many thanks

    Set the beans propertie values to null in the constructor [If it is in pagecode]
    and in the jsp use binding
    Like for example:in the constructor of the pagecode
    public Some(){
    if((getFacesContext().getExternalContext().getRequestParameterMap().isEmpty()) || (getFacesContext().getExternalContext().getRequestParameterMap().containsKey("parkPlanFrm:prePlanName"))){
    ValueBinding vb = getFacesContext().getApplication().createValueBinding("#{bean}");
    Bean pcBean = new Bean()
    pcBean = (Bean)vb.getValue(getFacesContext());
    pcBean.getParkPlanCountyMenu().setSubmittedValue("select");
    pcBean.getParkPlanCountyMenu().setValue(null);
    vb.setValue(getFacesContext(), pcBean);               
    IN THE JSP:
    <h:inputText id="parkPlanPpn" styleClass="inputText" maxlength="15" size="15"
    value="#{bean.prePlanNumber}" binding="#{bean.parkPlanPpn}" size="15">
    </h:inputText>
    Here *value="#{bean.prePlanNumber}"* is from the Managed Bean
    *binding="#{bean.parkPlanPpn}"* is from PageCode
    Ravi

  • Initializing backing bean

    I've found here an answer to a question how to initialize backing bean with get request with parameter:
    http://localhost/details.faces?id=1231
    create an BackingBean for your details.jsp
    set its scope to "request"
    in Construktor you do something like this:
    public BackingBean(){  String param = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id");// pass 'param' into SQL or something other.//result of that could be the value of backingbeans properties
    if you have SQL, i recommend to use <h:dataTable> in jsp-file,
    that could use a resultset directly for displaying.
    Now, I have a backing bean with components in it. I see in book that I shouldn't set components values, rather let to retrieve null value and then let a call setValue. Let's say that I want to initilaize component in backing bean consructor with a value that I retrieve form database basing on id. Can I create this component by my self ? I know that this in not a good practice, but that is what I want to do.
    M@t

    I wonder why your link isn't working... :p

  • Role of backing beans in MVC design

    Hello,
    yet another JSF/MVC question. In short, I would like to know what the role of the backing beans are in an MVC design with JSF. The most simple answer would be that they are just the Controllers. But that doesn't seem enough.
    Suppose I have an application model, call it Ma, which is just an interface that represents a use case in Java. Ma doesn't know anything about a view or controller, it is just domain logic with application-specific state and behavior added. Now,
    - my backing bean uses Ma as its Model, acting as a true Controller by delegating requests to it
    - my backing bean also adds view-specific state (show/hide stuff and it also returns a List<SelectItem> for example) that I can't put on Ma, so it also acts as a view model Mv
    So, I could argue that I have an Mv-V-C design, where the backing bean is both C and Mv. My user interface V only queries Mv for its state.
    Usually I read that V and C are considered to be very tightly coupled, so then I would have an Ma-V-C design with the backing bean being C and part of V.
    Is it just a question of terminology or point of view, expressing the same idea twice?

    The way I think about it is that there are multiple layers of MVC.This kind of refers to my point-of-view question. So let's try two of them.
    The view itself can be thought of as containing MVC elements.When only looking at JSF (presentation layer) we have:
    - Model: backing beans (view model Mv)
    - View: view root and JSPs (query backing beans for state)
    - Controller: Faces servlet (dispatches requests to backing beans)
    In my "enterprise" quality applications, I will have three distinct layers.Taking a step back, let's look at the application layer (your "control layer", application logic behind interface) and the presentation layer.
    Then:
    - Model: application model Ma in application layer
    - View: backing bean (associated with UI components)
    - Controller: backing bean (dispatches requests to Ma)
    Agree?
    It's interesting that you call my application layer "control layer" since it seems more like a model to me, especiallly when you say:
    The control layer consists of business logic interfaces and their implementations.This said, the objects in this application layer do have some controller functionality as they orchestrate the interactions with the underlying domain model, just llike the backing beans do with the application model. So maybe you can take another step back and consider these application logic interfaces as the View and Controller for the underlying domain model. That is: in a layered MVC design every M can become the VC for an underlying (more general) layer?
    And I have seen this taken to extremes.Perhaps that's what I'm doing here :)

  • Trigger Backing Bean Action from Java script

    Hello
    I'm quite new to JSF, Would like to know how we can trigger a bcaking bean action method using java script as part of form submit.
    Already I added one commandbutton with an action method defined in backing bean, But our requiremnt is to trigger the same action even if the user submits form by pressing Enter key.
    Targeted device is Windows Mobile IE ( In IE Mobile, we can't track onkeydown, onkeyup, onkeypress, onmousemove, onmousedown and onmouseup event. )
    1. How the JSF binds a backing bean method with JSF commandButton control on runtime. I didn't find any hidden value corresponding to this commandButton.
    2.How we can trigger a bcaking bean action method using java script as part of form submit
    Thanks
    Jobinesh

    thanks a lot for the replies. I'll try it out.
    But one question, just because of curiosity
    1. How the JSF binds a backing bean method with JSF commandButton control on runtime. I didn't find any hidden value/or any other flag corresponding to this commandButton from the genarted html for the correspondant jsf soure.

  • Issue with teradata connection

    Hi,
    I am trying to connect to teradata using the application where we are using Java code to connect(Using JDBC datasource).
    In the application we use excel sheet to upload the values. If i have 2 lineitems to upload, and when i try for the first time, error of not getting conneted to teradata will come for the first lineitem and the second lineitem values will be uploaded without any problem. there after if i try to upload, all the lineitmes will be uploaded to teradata without any fail. but the same issue will be seen if the application is kept idle and used after some time.
    when i tried to check the error, it says, "SOCKET COMMUNICATION FAILURE".
    when we checked teraddata logs, we found out that there are more nunber of ET than BT. so tried setting TMODE = ANSI in database URL. but still issue is triggering.
    can anybody help on this issue.? its little urgent.
    Thank you in advance.

    Hi Hamendra,
    we want to upload values into teradata. passing of these values into the teradata is done by excel sheet using a application. problem arises when we upload. initially, we get connection error for all the lines. but if we try again, for first few lineitems the error will still trigger and remaining lineitems will get uploaded without any issue. once this stage is achieved, there after, all the lineitems are getting uploaded without any issue. this problem will again trigger if we keep the application idle (or i can say, dont connect to teradata) for some time.
    in code we are closing all the connection once the values are uploaded. so there is no issue of open connection.
    Thanks
    Shailesh

Maybe you are looking for

  • Aiport Extreme (N) & Video Playback

    Hi there, I have an external HD hooked up to my Airport Extreme base station. I have my iTunes library as well as some movies. When playing songs in iTunes wirelessly from the base station I do not have a problem, no loss, music plays smooth. However

  • IPad Air display refresh rate for full screen movies?

    What exactly happens if I play a movie on the iPad full screen with a rate of e.g. 24p, 25p or 50i? The stated maximal refresh rate is 60Hz. Will this rate be reduced when playing movies? Or will frames be dropped / interpolated if the frame rate and

  • Can't switch VT's with Ctrl+Alt+Fx or Ctrl+Alt+backspace terminate

    Ctrl+Alt+F2 doesn't seem to register. It's been a long term issue I have had for years. I've tried all the various fixes. I can manually change to virtual terminals without issues using: sudo chvt 2 Once I'm in a VT I can use Alt+Fx to change between

  • How to modify data recieved from the database and displayed in a DG

    Hello, it's me again with a simple question : i've got the SQLi request who returns multiples rows. In this row i have for example : Reward --> 1 How to, instead of displaying  1 in the datagrid, change this value to "YES" I follow this lead : privat

  • Generate picking list based on delivery date to be shipment

    Hi, How to schedule picking list to be generated based on the delivery date to be shipment, so that manual key-in to picking list is not necessary? Thanks.