JSF - Click twice to get actual content and data from back Bean

Hello,
maybe an easy thing ... i got a Menu wih commandLink. the BackBean sends back the "from-outcome". After I cklick on a commandLine, the page is called, but some vars are still from page befor. cklicking second time, then it works. The bad thing about this, is, I have Realm, and the LoginPage appears after I click twice. The User sees the protected<page wthout beeing logged in ...
someone has an idea?
thx.
PS.:Bean ist Session-Scope, marked as Stateful.

Hello,
thx for the answet. I debugged.
When I call with the command the next page, I call a Bean which gives back the outcome ti display the next page. the vars i'm reading, i read with another bean, called when i make the content. apparently, when i use this
context = FacesContext.getCurrentInstance();
resp = (HttpServletRequest) context.getExternalContext().getRequest();
System.out.println("Get " + resp.getRequestURI());
the display says : "/company-db/index.faces"
the page i'm go to is "registry.faces"
when I click a second time, then the display is:
the display says "/company-db/registry.faces"

Similar Messages

  • How do i get my songs and data from my old mac onto my pc so that i can copy it onto my new ipod touch

    how do i get my songs and data from my old mac onto my pc so that i can copy it onto my new ipod touch

    jrswish wrote:
    When I plugged in my new one it cleared all my song and apps out of my current itunes.
    Are you sure of that?  Check in the Library.  Click on the Apps icon to see all apps.  Similarly click on the Music icon to see the songs.

  • HT201274 hello i have just deleted content and data from my iphone now my phone doesnt show anything

    hello i have just deleted my iphone content and data from my phone. now my phone just shows apple logo with bars it does not log into windows. what do i have to do to get my iphone working

    Try Here  >  http://support.apple.com/kb/HT1808
    Be sure to follow All the Steps...

  • How i can display data from backing bean from jsf adf page

    Hi all
    I am creating a adf bc jsf application i am referring hr schema employee table
    in my jsf page i have a inputtext with label employee number if i enter employee number and press tab i should get employee name and jobid and salary for this purpose i am doing like as follows
    my view object query is as follows
    SELECT EMPLOYEE_ID,FIRST_NAME,JOB_ID,SALARY
    FROM EMPLOYEES
    WHERE EMPLOYEE_ID=:EMP_NO
    and my backing bean for my jsf page is as follows
    package view.backing;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    import oracle.adf.view.faces.component.html.HtmlBody;
    import oracle.adf.view.faces.component.html.HtmlHead;
    import oracle.adf.view.faces.component.html.HtmlHtml;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    public class BindTest3
    private HtmlHtml html1;
    private HtmlHead head1;
    private HtmlBody body1;
    private HtmlForm testForm;
    private CoreInputText employeeId;
    private CoreOutputText firstName;
    private CoreOutputText jobId;
    private CoreOutputText salary;
    public void setHtml1(HtmlHtml html1)
    this.html1 = html1;
    public HtmlHtml getHtml1()
    return html1;
    public void setHead1(HtmlHead head1)
    this.head1 = head1;
    public HtmlHead getHead1()
    return head1;
    public void setBody1(HtmlBody body1)
    this.body1 = body1;
    public HtmlBody getBody1()
    return body1;
    public void setTestForm(HtmlForm form1)
    this.testForm = form1;
    public HtmlForm getTestForm()
    return testForm;
    public void setEmployeeId(CoreInputText inputText1)
    this.employeeId = inputText1;
    public CoreInputText getEmployeeId()
    return employeeId;
    public void changeMethod(ValueChangeEvent event)
    String EmployeeId=(String)event.getNewValue();
    CheckForBind check=new CheckForBind();
    System.out.println(check.getEmployeeNo());
    String amDef = "model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef,config);
    ViewObject vo = am.findViewObject("EmployeeBindViewObj1");
    vo.setNamedWhereClauseParam("EMP_NO",EmployeeId);
    System.out.println("Query will return "+
    vo.getEstimatedRowCount()+" rows...");
    vo.executeQuery();
    while (vo.hasNext()) {
    Row curUser = vo.next();
    System.out.println(vo.getCurrentRowIndex()+" "+
    curUser.getAttribute("EmployeeId")+" "+
    curUser.getAttribute("FirstName")+" " curUser.getAttribute("JobId")" "+curUser.getAttribute("Salary"));
    //firstName =(String)curUser.getAttribute("EmployeeId");
    //setFirstName(curUser.getAttribute("EmployeeId"));
    firstName.setValue((String)curUser.getAttribute("FirstName"));
    //jobId.setValue((CoreOutputText) curUser.getAttribute("FirstName"));
    // salary.setValue((CoreOutputText)curUser.getAttribute("Salary"));
    // values.setJobId((CoreOutputText)curUser.getAttribute("JobId"));
    // values.setFirstName((CoreOutputText) curUser.getAttribute("FirstName"));
    //values.setSalary((CoreOutputText)curUser.getAttribute("Salary"));
    Configuration.releaseRootApplicationModule(am,true);
    public void setFirstName(CoreOutputText outputText1)
    this.firstName = outputText1;
    public CoreOutputText getFirstName()
    return firstName;
    public void setJobId(CoreOutputText outputText2)
    this.jobId = outputText2;
    public CoreOutputText getJobId()
    return jobId;
    public void setSalary(CoreOutputText outputText3)
    this.salary = outputText3;
    public CoreOutputText getSalary()
    return salary;
    and my jsf page is as follows
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <afh:html binding="#{backing_BindTest3.html1}" id="html1">
    <afh:head title="Home" binding="#{backing_BindTest2.head1}" id="head1">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <style type="text/css">
    body {
    background-color: #f7f7f7;
    </style>
    </afh:head>
    <afh:body binding="#{backing_BindTest3.body1}" id="body1">
    <h:form binding="#{backing_BindTest3.testForm}" id="testForm">
    <af:inputText label="Employee No" binding="#{backing_BindTest3.employeeId}"
    id="employeeId" valueChangeListener="#{backing_BindTest3.changeMethod}" autoSubmit="true"/>
    <af:outputText value="#{backing_BindTest3.firstName.value}"
    binding="#{backing_BindTest3.firstName}"
    id="firstName"/>
    <af:outputText value="outputText2"
    binding="#{backing_BindTest3.jobId}"
    id="jobId"/>
    <af:outputText value="outputText3"
    binding="#{backing_BindTest3.salary}"
    id="salary"/>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    <%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_BindTest2--%>
    but i am getting result in console but i cant get the value of firstname into my jsf page
    can any one can tell me for get the value to jsf page what i can do
    and what are the changes i can do in my jsf page

    hi,
    i tried to set value like as follows
    name=(CoreOutputText)curUser.getAttribute("FirstName");
    but that time i getting exception like as follows
    ec 22, 2007 2:17:27 PM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    SEVERE: java.lang.ClassCastException: java.lang.String
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.String
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.String
         at view.backing.ChangeValue.changeMethod(ChangeValue.java:49)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    What will be the resion please help it is very critical for me

  • Easy Custom device tool - how to get actual waveforms or data from a channel

    I want to use a custom device to do the simulation for my system, but I am not sure how to get channel data to it?  I am using a cRio 9024, and 6 modules for signal input and signal output.  I did the walk through, but it is not connecting to channel data.  Any thoughts?
    Attachments:
    Add.zip ‏164 KB

    Sorry that my previous response was so brief - I didn't have the opportunity to take a look at your code last Friday (and on top of that, I poorly worded my question about running your code in LabVIEW).
    You would want to include logic to communicate with your cRIO in the Execute VI - you don't need to add anything to the Channel Data or System Data controls to get the data into your custom device. If you're using the Scan Engine, this would mean just dragging and dropping Scan Engine IO variables into the Execute VI and then operating on the data you read out of them. Now, if you want to pass data out of the custom device to other parts of VeriStand, you would need to add items to Channel Data for each value you want to pass out of the custom device.
    When I mentioned running your code in LabVIEW, the idea I was trying to get at is creating a separate test project to verify that the logic you have implemented in your Execute VI works apart from the custom device architecture. Now that I've had a chance to take a look at your code, I see that the logic to communicate with the cRIO hasn't been implemented yet. As such, that original suggestion doesn't make sense - sorry for the confusion.
    Also, just so you're aware, you'll need to modify your custom device project to allow the custom device to be compiled for a VxWorks target. To do so, add your cRIO to the project as a new target and then copy all of your custom device files to the cRIO controller. You'll also need to make some modifications to the build specification to get everything to compile correctly.
    Finally, I also notice that in your init VI, you don't pass a file path to the Open/Create/Replace file VI, which will likely cause some problems when you try to run the device.
    Regards,
    Ryan K.

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How can i delete content and data in iphone5 i bought wherein the previous owner forgot his icloud password?

    I bought an iphone5 from a friend and I want to delete his content and data from the phone but he cannot remember his password, how can I reset this iphone?

    Figster512 wrote:
    open the Settings app, then click General, then scroll all the way down and click Reset, then click Erase All Content and Settings.
    Which will not work if he doesn't know the password for the Apple ID used in iCloud for Find My iPhone.
    Hence, Csound1's question about Find My iPhone...

  • Time taken to clear content and data

    I have just cleared the content and data from my 64G Ipad1, and it has been showing the Apple icon with progress bar (with no progress at all) for the past 3 hours.  May I enquire how long does it usually take??
    THe ipad does not respond at all now and it worries me.  Is it normal??
    Thanks in advance for the inputs.

    It shouldn't take but a minute or two.
    You need to restore the device.
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • Time and date from an atomic clock

    Hi,
    I want to make an application in Labview 6i which gets the time and date
    from an atomic clock (this is a must!). What is the easiest way to do this?
    Regards,
    Sergio

    Sergio Cruz wrote:
    >
    > Hi,
    >
    > I want to make an application in Labview 6i which gets the time and date
    > from an atomic clock (this is a must!). What is the easiest way to do this?
    You cannot maintain atomic clock accuracy using software on a PC. Think
    about it. You're running on a PC whose clock may gain milliseconds per
    day if you're lucky, probably seconds / day.
    Out of the box, Windows can do things (like downloading Windows updates)
    which can delay operations for seconds.
    It can take several milliseconds to update an indicator that shows the
    time, if that is what you plan to do.
    I can see some approaches:
    * If you can accept moderate accuracy of about 1-10 ms run software such
    as Dimension 4 from www.thinkman.com.
    That can be set up to run ever
    y 15 minutes, automatically synchronizing
    your PC to Internet time servers.
    You don't need to control it from LabVIEW; if you had to, you could run
    the executable C:\Program Files\D4\D4.exe using System Exec.
    * You haven't described what you are doing. If you want more accurate
    time keeping, then you might get a timekeeping board to plug into your
    PC and control any other hardware you may be using.
    Search the Web for "IRIG board".
    Good luck, Mark

  • I need to erase all Contents and Settings from my i phone 5 but I forgot the restrictions passcode. How can I get it. ( Idon't have access to i tunes). Thanks.

    I need to erase all Contents and Settings from my i phone 5 but I forgot the restrictions passcode. How can I get it. ( Idon't have access to i tunes). Thanks.

    Not possible.  You need access to iTunes.
    The passcode will be required to make changes to these settings or to disable Restrictions. Note: If you lose or forget a restriction passcode, you will need to perform a factory restore to remove it.
    The above comes from here:
    http://support.apple.com/kb/HT4213

  • I am having problems with my 3D preferences, all I can see is "Get more content" and " 3D Print Utilities"

    I am having problems with my 3D preferences, all I can see is "Get more content" and " 3D Print Utilities"

    That means either your graphics card does not support 3D or that there is a problem with your graphics drivers. See if your GPU maker has an update.
    Error: "Graphics hardware not officially supported for 3D" | Photoshop CC, 13.1

  • How can I move the tab bar to the bottom, and how do I get my reload and stop buttons back?

    The new version of Firefox has repositioned my tab bar to the top and I cannot move it to the bottom. I tried about:config, but browser.tabs.ontop was already set to false - very curious, since this should have solved my problem in the first place.
    In the new version of Firefox I cannot get my reload and stop buttons back again.

    Firefox uses a combined Stop/Reload/Go button that is positioned at the right end of the location bar.
    *You get a Stop button during page loading that changes to a Reload button when the page has finished loading
    *You get a Go button if you modify the location bar content
    *Middle-click the Reload button to duplicate the current tab to a new tab

  • HT1848 How do I download content and apps from the iTunes Store to my computer, and then sync them to iPhone

    How do I download content and apps from the iTunes Store to my computer, and then sync them to iPhone

    Nevermind I got it
    I went to itunes on my iphone and clicked on purchesed and then went to not on this iphone and downloaded it
    Thank you all so much for you time and sorry im new to this

  • My old computer is broken, so how do i get my music and photos from my iPod onto my new computer

    my old computer is broken, so how do i get my music and photos from my iPod onto iTunes on my new computer. It says it can only be synced to 1. but my old 1 is broken.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    Keep in mind that the recovered photos will not be in their full resolution, but instead will be the scaled down versions that were optimized in size and resolution to fit your iPod's smaller LCD screen.
    B-rock

  • HT1848 how do i get my apps and music from my ipod to my iphone

    how do i get my apps and music from my ipod touch to my iphone?????????

    Either click here and follow the instructions, or follow those in the article you asked this question from and then sync the iPhone with that iTunes library.
    (82400)

Maybe you are looking for

  • Unable to see Errors.

    Hi, I have an interface named 'Load_Interface' which loads data from source to target. After executing the interface, I am checking for Error by right clicking on target table (control ---> Error). I get the following error: ODI-20160: The table sche

  • My MacBook Pro (15-inch Mid 2009) question mark on startup

    My MacBook Pro (15-inch Mid 2009) has a question mark on startup. I brought it to my local apple service centre and they told me that after a few tests it was the hardrive, so they changed it under-warranty. Back home I started re-installing my syste

  • Problems with Siri and Mail after upgrading

    Siri will no longer do text command phones random people instead. My yahoo mail after fetching shows updated days before and shows Unread mail but won't show them logging into yahoo I have no unread mail??

  • Automatic tempfile offline due to write error on

    Hi everybody, I am getting the following in my alert log and my TEMPFILE went offline. KCF: write/open error block=0x5a909 online=1 file=4 /database1/oratemp1/temp1_04.dbf error=27091 txt: 'HP-UX Error: 28: No space left on device Automatic tempfile

  • Problem Exporting.. (WMV FORMAT)

    Can anyone help? I am new to Final Cut Pro 6 and I have just finished my first video for my company that we plan to put on our website. The video uses 4 Video Tracks and 5 Audio Tracks. Currently I have the the video finalized and save in final cut p