Binding not working when returning to same page

Hi, Im developing a portlet that access some data from MYSQL.
I have a simple page with several textfields, all with bindings to a javabean object that is a property of SessionBean1 bean, so it is a Session Scope bean.
In that page I put some buttons like next, prior, etc. to navigate between all registers of my DB. I added some code to event button like this:
public String bnext_action() {
// get sessionbean
SessionBean1 SBean1 = (SessionBean1)getBean("SessionBean1");
// navigate to next register in database
// ProdBean is my property bean that get values from database
// bindings are like this : text="#{SessionBean1.prodBean.codigo}
SBean1.getProdBean().GetNextReg(SBean1.getModuloIdx());
// set current register index
SBean1.setModuloIdx(SBean1.getProdBean().getIndex());
return null;
The problem is that when I get next register of database, bindings are not reflecting new values, always holding first values. I tried to force things by setting values in pre-rendering face manually with setText method of textfields but nothing happens.
As Im a newbie in Java yet I really don't undestand this, I have readed all JSF life cycle documention and portlet life cycle docs but couldn't find an answer. Why binding is not working?

Thanks for this.  Unfortunately now I have tried with Standard actions the links do not work at all.  The links provided were created with spaces so contained within the links are lots of '%20'. e.g. :
PCI%20DSS/UWE%20PCI-DSS%20Quick%20Reference%20guide.pdf
for some reason when creating the links with standard actions, when the project is published the links have changed to contain 25s  e.g.
PCI%2520DSS/UWE%2520PCI-DSS%2520Quick%2520Reference%2520guide.pdf
no idea why this is happening.

Similar Messages

  • Fit to Width not working when linking directly to page number

    I have set my initial view to Fit to Width.  If I link only to the file, the document fits to width.  However, when I add a specific page number to the link, the document opens up the full page.  It does not fit to width.  Is there something else I need to set or is that how it is supposed to function?  When I add destinations, the fit to width seems to work fine.

    Try adding the view=fitH parameter like:
    http://example.org/doc.pdf#page=72&view=fitH,100
    www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf

  • Adding a MeshView as part of another class not working when returned?

    I have a class that extends box, to get the properties to display it as a box, or else have the option to display it as a 3D image/Mesh.
    I have this code
    public class Face extends Box
            private MeshView image3D;
            public Face(TriangleMesh mesh)
                this.image3D = new MeshView(mesh);
        public TriangleMesh getImage3D()
            return (TriangleMesh) image3D.getMesh();
    public MeshView getImage3DView()
            return image3D;
        public void setImage3D(TriangleMesh mesh)
            this.image3D = new MeshView(mesh);
    Granted there are many more methods and variables I just wanted to show what I needed. Basically I have a 3D importer class, which I'll post in a second, which imports the data for the mesh. From there I return the TriangleMesh and then set it to a MeshViewer that is setup currently as a constructor call in the Face class, and then I set it to a group using the getter method.
      Face d = new Face(i.stlImporter("CylinderHead-binary.stl"));
    d.setMaterial(gray);
    d.setLayoutX(200);
    d.setLayoutY(200);
    Group s1 = new Group (d.getImage3DView());and finally
    public class importer
        TriangleMesh mesh = new TriangleMesh();
       public TriangleMesh stlImporter(String s)
            StlMeshImporter stl = new StlMeshImporter();
            // Generated vertex normals result in a smoothly shaded surface
            stl.setCreaseAngle(24); 
            try
                URL cylinderHeadUrl = this.getClass().getResource(s);
                stl.read(cylinderHeadUrl);
            catch (ImportException e) {
                e.printStackTrace();
            // STL includes only geometry data
            mesh = stl.getImport();
            stl.close();
            return mesh;
       public TriangleMesh getStlImport()
           return mesh;
    }However if I change all of the face code into MeshView it will work. So basically it seems that something is up with MeshView being used in Face.
    Edited by: KonradZuse on Apr 5, 2013 8:22 PM

    Well basically I wanted to have a class that was originally a box, but then would have a 3D image. The converter that came out a week or so ago imports it as a Mesh, so I wanted to be able to have it return a mesh if it's a 3D object.
    I was just confused how it would all work. To make a box, I assumed I had to extend the box, and great it based on that, or shape. Maybe it would just be easier to save the TriangleMesh, then load it into a MeshViewer in another class. I figured I could just make a viewer in the class and just add that viewer, but maybe that's not a good idea.
    Now I realize that I can just make everything a 3D mesh, box included, so I can just make it a viewer with additional properties like my box was supposed to be, or maybe just the mesh itself, then add it to a viewer later, thoughts?
    I'd appreciate any insight on the class structure that I'm confused about, thanks!~!!
    ~KZ

  • I have i phone 4s i there is problem of wifi my wifi is not working when i go to the wifi there is no working on off when i update it as a 6.1 ios on that time again it was good but after 2 days again the same problem i am too tired

    I have i phone 4s i there is problem of wifi my wifi is not working when i go to the wifi there is no working on off when i update it as a 6.1 ios on that time again it was good but after 2 days again the same problem i am too tired and i also reset network setting but nothing gonna be worked

    Sounds like the device was dropped at some point and damaged as a result.
    Take it to Apple for evaluation and a replacement.

  • I tunes is not working. when i go to update apps nothing happens go to itunes page is blank

    itunes not working. when i go to update apps nothing happens. if i go to itunes store page is blank and does not go to the store

    http://support.apple.com/kb/ts1567

  • Help! Javascript not working when object moved from one page to another!

    Hello all:
    I am new to Adobe Livecycle Designer (version 8.0). I have created a 3 page interactive pdf form with numerous objects (text fields, radio buttons, drop-down boxes, etc.), that our business wants to begin using soon.
    I am having difficulty with some of my Javascript not working with a few of my objects on page 2 of the form. Specifically, there is a drop-down box for "Country" on page 2 of my form. When the user selects, for example, "United States" from the list, I have Javascript that is supposed to change the "Currency" drop-down box rawValue to "US Dollars" accordingly (upon the change event).
    I think my Javascript syntax is proper, but I am not certain. Here is my simple Javascript associated with the "Country" drop-down box (Note: rawValue 80 = "United States" and rawValue 105 = "US Dollars"):
    form1.Page1.cmbContactInfoCountry::change: - (JavaScript, client) -
    if (this.rawValue == 80) {     
         cmbCurrency.rawValue = 105;
    This seems pretty straight forward and it WORKS when my "Country" drop-down box is moved to page 1 of the form, but it WILL NOT WORK when I move the "Country" drop-down box back to page 2 of the form (which is where it belongs).
    Does anyone have any suggestions or solutions? I have spent probably 6-8 hours racking my brain trying to figure out why it works when on one page, but it does not work when move to a different page. I am guessing that I may have corrupted something OR that I am not fully addressing the proper name of the object?
    Please help!
    Frustrated and helpless near Chicago!
    Taylor T

    Hi Jono:
    Thank you for your quick reply.I was able to obtain the full name of the cmbCurrency object using the method you taught me. That is brilliant! Great short-cut tool.
    Unfortunately, I am still having issues with getting Javasript for the cmbCountry object to work with the cmbCurrency object. I haved pasted my new Javascript below.
    JavaScript for cmbCountry object:
    //UNITED STATES
    if (this.rawValue == 1) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 1;
    else
    //CANADA
    if (this.rawValue == 2) {
              xfa.resolveNode("form1.#subform[1].cmbCurrency").rawValue = 2;
    I have checked the "Specify Item Values" checkbox of the cmbCurrency drop-down object and Value 1 = "US Dollars" and Value 2 = "Canadian Dollars".
    When I select "Canada" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object is changed to "US Dollars" (when it is clearly defined as "Canadian Dollars"). When I select "United States" from the cmbCountry drop-down object, the rawValue of the cmbCurrency drop-down object stays blank for uknown reasons. Very strange.
    Since I am not able to further explain in detail on what I am experiencing, I have posted a link to my file below (I just signed up for an account at ShareFile). I would forever be indebted to you if you can help me figure this out!
    https://thomptk.sharefile.com/?cmd=d&id=07ede2fe11db4549

  • Form in Dynamic page not working when checkbox is used.

    I have created a form using dynamic page. The form most have display fields and a checkbox field. When I check a box, it assigns 'Y' value and when unclick, it assign 'N' to the database field.
    When I submit the form, the procedure which is supposed to save the form data never gets executed. Well, at least it says, page not found HTTP 404 error.
    Interestingly if I make this field a text box and manually enter 'Y' or 'N', and then submit the form, the procedure is executed. Data gets saved.
    Is the checkbox not supposed to be used for a database field because checkbox value can be assigned only using javascript and the procedure never get that value ?
    Can you please tell me how to use a checkbox for a database field using dynamic page ?
    thanks,
    Mainak

    Sharmila,
    When I said, the form does not get submitted, I meant that the procedure does not work. The form gets submitted but the procedure does not work. It gives HTTP 404 error. That is what perplexes me. I am unable to understand why the procedure does not work when I click a checkbox.
    May be you can make this work. I am hopeless about this.
    Here is the code for the procedure sumbit_form:
    NOTE: I ADDED TWO FIELDS CALLED PROMOT VARCHAR2(1), PROMOTID NUMBER(4) TO THE EMP TABLE AND CREATED A NEW TABLE CALLED PROMOTEMP. THIS IS A TEST CASE.
    create or replace procedure sumbit_form
    (p_empno IN portal30.wwv_utl_api_types.vc_arr, p_promot IN portal30.wwv_utl_api_types.vc_arr, p_action IN VARCHAR2)
    is
    begin
    if p_action = 'save' then
    for i in 1..p_empno.count LOOP
    update scott.promotemp
    set promot = p_promot(i)
    where empno = p_empno(i);
    END LOOP;
    end if;
    commit;
    htp.p('<b>Saved Successfully</b>');
    htp.p('<table border=1 bordercolor="red">');
    for c1 in (select * from promotemp where promot='Y')
    LOOP
    htp.p('<tr><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.sal);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    EXCEPTION
    when others then
    raise;
    end;
    Here is the code for the dynamic page.
    <HTML>
    <HEAD>
    <TITLE>Promot Emp</TITLE>
    <script language="JavaScript1.1">
    function include(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements.type == 'checkbox') {
              if (thisform.elements[i].checked) {
                   thisform.elements[i].value = 'Y'; }
              else { thisform.elements[i].value = 'N'; }
    form.submit();
    function show(form) {
    var thisform = form;
    for (var i=0; i<thisform.length; i++) {
         if (thisform.elements[i].type == 'checkbox') {
              if (thisform.elements[i].value = 'Y') {
                   thisform.elements[i].checked = true; }
              else { thisform.elements[i].checked = false; }
    </script>
    </HEAD>
    <BODY>
    <FORM action="scott.sumbit_form" method="post">
    <table border=1 bordercolor="red">
    <tr>
    <td> </td>
    <td>Name</td>
    <td>Job</td>
    <td>Manager</td>
    <td>Hire Date</td>
    <td>Commission</td>
    <td>Department#</td>
    <td>Include</td>
    </tr>
    <ORACLE>declare
    i number;
    begin
    i := 0;
    for c1 in (select * from scott.promotemp where promotid = :promotid)
    loop
    htp.p('<tr><td>');
    htp.p('<input type="hidden" name="p_empno" value='||c1.empno||'>');
    htp.p('</td><td>');
    htp.p(c1.ename);
    htp.p('</td><td>');
    htp.p(c1.job);
    htp.p('</td><td>');
    htp.p(c1.mgr);
    htp.p('</td><td>');
    htp.p(c1.hiredate);
    htp.p('</td><td>');
    htp.p(c1.comm);
    htp.p('</td><td>');
    htp.p(c1.deptno);
    htp.p('</td><td>');
    if (c1.promot = 'Y') then
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">Yes
    <OPTION VALUE="N">No
    </SELECT>');
    else
    htp.p('<SELECT NAME="p_promot" SIZE="1">
    <OPTION SELECTED VALUE="'||c1.promot||'">No
    <OPTION VALUE="Y">Yes
    </SELECT>');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('<input type="submit" value="save" name="p_action">');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    thanks,
    Mainak

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro

    My HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro.
    In device manager showing that biometric reader is working properly. But actually the finger printer reader is not reading or senseing. It seems like "dummy" part. Please help me to correctly configure step by step for this issue.
    thankyou
    Hillet
    This question was solved.
    View Solution.

    Have you installed the Validity Sensor Fingerprint driver software for Windows 8.1?
    http://h20564.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6943811&swItemId=ob_134806_1&swEnvOid=415...
    See page 64 in the following Windows 8.1 user manual for Validity Fingerprint setup information
    http://h20565.www2.hp.com/hpsc/doc/public/display?sp4ts.oid=6943810&docId=emr_na-c04371762&docLocale...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Breadcrumb in BSP is not working when application is called inside Portal.

    Dear All,
                We have implemented SAP Learning Solution by integrating it with SAP EP 7.0.
    We called the BSP Application HCM_LEARNING inside portal  using BSP iView template.
    The problem we are facing is, the breadcrumbs in the BSP application "HCM_LEARNING"  is working fine when it is called as a standalone application. But the same is not working when it is called inside portal framework page.
    Enterprise Portal breadcrumbs are working fine.
    How could we resolve this.?
    Regards,
    Eben Joyson.

    this is the radio button
    <af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                                                     label="#{bindings.Gender1.label}"
                                                     required="#{bindings.Gender1.hints.mandatory}"
                                                     shortDesc="#{bindings.Gender1.hints.tooltip}"
                                                     id="sor5">
                <f:selectItems value="#{bindings.Gender1.items}" id="si7"/>
              </af:selectOneRadio>
    i use this sample
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html

  • PDF conversion with PDF2ID; Hypertext not working when exported back to pdf.

    I have done a PDF conversion with PDF2ID, however Hypertext is not working when I exported it back to pdf. I am using the PDF2ID plug-in program to redo all the product booklets for our company as the hypertext did not work when downloaded to any smart phone. All that appeared were blank placeholders in each booklet index page.
    According to the PDF2ID people the program plug-in recovers all URLs static and dynamic and bookmarks and local links and suggested I check with Adobe ID5 for help, but Adobe says my $1,000 ID5 is no longer supported and that I should go to the forums.....so here I am.
    This is the first time I've even opened my ID5, so I'm a bit lost. Now I need to improve the quality of the PDFs, as we also need to convert all images to TIFF-CMYK in order to have the booklets printed & bound professionally. they tell me ID can do that.
    Any help is greatly appreciated.
    David

    Daveorne wrote:
    they tell me ID can do that.
    Ugh...in some companies, that is training.
    Don't take this the wrong way David, but of course ID can't do anything. PDF2ID conversions can be sketchy in the hands of the experienced. The same can be said of properly preparing matials for print. As Bob has already alluded, you're in an unfair position there. It's not uncommon for "management" types to just throw some sophisticated tools at a need and expect someone to make it work. In order to do what's being asked of you, you'll have to learn a fair bit about InDesign and production. It's too soon to ask about the output when you haven't learned to manage the input.

  • Output Tray 2 does not work when we print a smartforms document immediately

    Dear printer specialists,
    we've the following issue:
    We are printing the same smartforms document in different plants. One plant decided to get the print output into output tray 2 of the printer (lower tray), so we've copied the standard device type into a z-device type and made the SPAD set-up with a preselection for the tray 2 (lower tray). The new device type has been assigned to the output device. Now we made a test and released the print-output for an immediate printing. The output was printed as before in tray 1 (upper tray). When we restart the output from the spool (SP01), the output will be printed in tray 2. Why does this not work, when we print immediately ? Does anyone know how to solve this problem ? (We don't want to change the smartforms document.)
    Thany you for every information to solve this problem.
    Kind regards, Wolfgang

    HI,
    Check if there is a different tra setting in the smartform itself.
    /nsmartforms -> <Form> -> Pages and Windows -> FIRST, NEXT, TERMCOND -> field Resource Name
    Regards,
    Aidan

  • Partner function not working when creating PO with ref to PReq

    Partner function is not working when creating a Purchase Order with ref to a Purchase Requistion, Partner functions maintained in the vendor master are VN, OA & PI.
    But OA & PI are not appearing in the PO header partner tab when created with ref to PR.
    however it works when i create the PO directly ( without the PR ref )
    I am using the same material & Plant for both manual PO & PR to PO.
    Any idea what could be wrong .
    I have maintained the settings for schema groups for vendor master & purchasing doc in the partner determination.
    Thanks
    Dkmurthy

    Hi,
    I have also an issue that seems similar to one you are discussing.
    When we use ME59N and create a PO with ref. from a PR (created from a sales order), the message determination works well, it reads the condition set in MN04 (condition records for messages), and creates a message (with output type for EDI , medium: 6, and partner function LS: Logical system). Message is created and idoc is sent.
    When we try with ME21N, ME21 and we create the PO with ref. to the same PR, either by entering manually the PR in the document overview of ME21N or by selecting the PR (without entering the PR number), i.e with date, the message is not created in the PO.
    Company code is assigned to purchase organization, and so is purchase organization to plant.
    Any idea why there is no automatic message determination in the case of the transaction: ME21N
    Note: If I try ME21N, and enter the output type and partner, manually, I receive a warning message
    VN006 (Partner XXXX does not exist for partner function LS). If I accept this warning message, then message is saved- idoc is sent. However I can not overcome the warning message, if it plays any role, because I can not assign partner function LS to the vendor.Then I receive message CZ 327 (Can not use this partner role).
    Any input is wellcome.

  • The built-in dictionary on my iPad only works with certain sites.  What do I need to do so that I can it all the time. (For example, it does not work when I read e-newspaper.)

    What do I need to do so that I can use the built-in dictionary all the time? My iPad 2's dictionary functions on Japanese e-newspapers but not on the Arizona Republic or other e-newspapers.

    Rikirannu wrote:
    My iPad 2's dictionary functions on Japanese e-newspapers but not on the Arizona Republic or other e-newspapers.
    Are you talking about the English dictionary?  Mine seems to work ok on the AZ republic web page.  Does yours not work on all webpages?  Does it not work when you type an English word in Notes and then do select and define?

Maybe you are looking for

  • Static member problem in multiple instance of  web application

    Problem I am working on a product which is java based. I have a war file. I have to deploy this war file in JBoss. Further, I need to run multiple instance of this war file in same JBoss instance. Issue      In that war file there is servlet Start.ja

  • WRT54GS ... Can connect to Internet but not to my network

    I have three desktop computers wired to the router and a laptop that I connect using wireless. One of my computers went to the shop. Now, I can't get it to connect to the network, but I can access the Internet with a browser and with an FTP Client. T

  • Set maximum PARALLEL threats

    Hi, is it possible to set a maximum on the PARALLEL processing for a mapping? Can i do it by changing it in the package? regards, Osman

  • IE07 and error 'Maintain field selection for Fleet data in Equipment List'

    Hi all, When running transaction IE07 (multi-level equipment list) , I get the following error:  'Maintain field selection for Fleet data in Equipment List (Multilevel)' I can't see where is the missing configuration point. We have activated business

  • Currency display in a separate cell

    Hi BI experts, I have a question about currency display in BI reporting. In BI reporting, the currency amounts are shown with the amount and currency together in one cell, such as 500 EUR, etc. But my current request is to split this into two cells,