JSF Page is not  rendering correctly on NON JSF Action

Hi All,
When I go from JSF actions (clicking HtmlCommandButton HtmlActionLink), I am getting the correct page. But when I come from non jsf actions say if I come through by clicking normal anchor tag or javascript action or normal html submit button, I am getting same old rendered page. How can I overcome this problem??
Thanks
Sudhakar

I am getting same old rendered pageIn otherwords, page is not getting refreshed and contains old data

Similar Messages

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

  • Page is not rendering as per requirement request

    Hi All,
    Basically Here is the scenario.
    Based on selectoin of particular service item from combo box(dropdown list), We are creating the JSF controls dynamically on new page for further process.
    We are maintaining the controls information in database that need to be created dynamically and rendered for each service.
    And I am able to create the controls dynamically and able to place them on page perfectly.
    Until here everything looks ok for me.
    But main problem I have identified is when I go for new request, I am getting the same old page when I select the other service.
    Initially I though this could be a problem of caching and I have placed meta info in order to expire the page. But that was no use.
    So I logged all the data that is coming from database and logged the information where I have created the controls dynamically..
    What I have identified is I am getting the right data on paricular service selection and even I am able to see that methods execution is correct. I was stunned and not able to understand why the JSF is not able to show the controls.
    So I searched the JavaDoc for solution. I though I could use FacesContext.release() method. But that does not help me. Even I tried to clear the parent objects using gridpanel1.getChildren().clear(). Even that does not supported me :(
    In order to understand my problem, here I am pating the code.
    Please help me why the hell my page is not rendering
    Below is code in constructor
    javax.faces.context.ExternalContext ec = context.getExternalContext();
                javax.servlet.http.HttpServletRequest request=(javax.servlet.http.HttpServletRequest)ec.getRequest();
                String service=request.getParameter("form1:cmbServices");
                int serviceid=-1;
                if(service!=null) {
                    serviceid=Integer.parseInt(service);
                gridPanel1.getChildren().clear();
                controls =getControls(serviceid);
                HtmlControl[] controlArray =controls.getHtmlControls();
                //log(controlArray.length+" Length");
                for (int i =0;i<controlArray.length;i++) {
                    HtmlControl control =controlArray;
    //log(control+" Control");
    //log(controlArray.length+" Length");
    if (control.isRadio()) {
    addRadio(control);
    //log("Entered here in adding radio");
    else if (control.isCheckBox()) {
    addCheckBox(control);
    //log("Entered here in adding checkbox");
    else if (control.isTextBox()) {
    addTextBox(control);
    //log("Entered here in adding textbox");
    here is the code for dynamic creation of controls
    private void addRadio(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlSelectOneRadio radio = new HtmlSelectOneRadio();
            radio.setBorder(0);
            radio.setLayout("pageDirection");
            //radio.setId("Radio_"+control.getId());
            radio.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            Radio objRadio =(Radio)control;
            //  vectDefaultSelectItemsArray
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<objRadio.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objRadio.getValues().get(i)+"",""+objRadio.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            radio.setStyleClass("bodyText");
            radio.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(radio);
            parent.getChildren().add(gridPanel);
        private void addCheckBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            outputText.setStyleClass("bodyText");
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            HtmlSelectManyCheckbox checkBox = new HtmlSelectManyCheckbox();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            //checkBox.setId("CheckBox_"+control.getId());
            checkBox.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            CheckBox objcheckBox =(CheckBox)control;
            //  arrays[0]=new DefaultSelectItemsArray();
            //arrays[0].clear();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            //  array.clear();
            for (int i =0;i<objcheckBox.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
                //     array.add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            checkBox.setStyleClass("bodyText");
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addTextBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlInputText textField = new HtmlInputText();
            //  textField.setId("textField_"+control.getId());
            textField.setId(control.getName()+"__"+control.getId());
            HtmlOutputText outputText1 = new HtmlOutputText();
            outputText1.setValue(" ");
            outputText1.setStyleClass("bodyText");
            textField.setStyleClass("frmObjects");
            gridPanel.setColumns(3);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(outputText1);
            gridPanel.getChildren().add(textField);
            parent.getChildren().add(gridPanel);
    here is my after render response method
    protected void afterRenderResponse() {
            //job_selection_templateRowSet.close();
            jiya_html_controlRowSet.close();
            FacesContext.getCurrentInstance().release();
    here is my getValueBinding method
    private ValueBinding getValueBinding(String expression) {
            return     FacesContext.getCurrentInstance().getApplication().createValueBinding(expression);
        }Thanks
    Sudhakar.

    Hi,
    You can try the following to debug and provide us more details.
    1. I am assuming you are trying to navigate by using a commandLink/Command Button ? If so, is the action handler for the command getting called ?
    2. Do you have input components in the page with Validators/converters attached to them ? If so, you may not watch for validation/conversion errors. If there are errors, the same page will be redisplayed. In that case you would need to associate message component to get more details on what went wrong.
    3. Have you set up the necessary navigation rules to navigate to the right page ?
    4. When you are adding components programatically, its better to assign explicit id's to your components, to avoid any unexpected behavior.
    Hope this helps.
    Regards
    -Jayashri

  • Basic Layout not rendering correctly.

    ''locking as a duplicate of https://support.mozilla.org/en-US/questions/1035123''
    Hello,
    I've been trying to debug a problem I was noticing on my production websites, so I dumbed it down to a quick codepen to show off the issue. http://codepen.io/anon/pen/GgoBNJ
    Basically, standard fonts (helvetica, arial, etc.) are not rendering correctly within a div. For some reason the text is pushing itself up ~2 pixels. Not to mention, fonts are looking very jagged within the browser for no apparent reason.
    I am setting up a basic div with hardly any styles and yet this produces two different renderings within FF and Chrome
    .box{
    font-family: Helvetica, Arial, Sans-serif;
    font-size: 14px;
    border: 2px solid #FF5500;
    display: inline-block;
    width: 100px;
    This is causing me all sorts of headaches with designers who are trying to make layouts pixel perfect as I have zero control over something like this. Any help would be greatly appreciated!
    Thanks in advance.

    You may have zoomed the page(s) by accident.
    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl/Command+0 (zero))
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    You can right-click on a web page and select "Inspect Element" to open the Inspector (Firefox/Tools > Web Developer).
    You can check the font used for selected text in the Font tab in the right pane of the Inspector.
    *https://developer.mozilla.org/Tools/Page_Inspector
    You can do a font test to see if you can identify corrupted font(s).
    *http://browserspy.dk/fonts-flash.php?detail=1
    You can try different default fonts and temporarily disable website fonts to test the selected default font.
    *Tools > Options > Content : Fonts & Colors > Advanced
    *[ ] "Allow pages to choose their own fonts, instead of my selections above"

  • Why is my .psd file not rendering correctly in ae

    Some layers of the .psd document are not rendered correctly. However they are imported.
    The strange thing is that when I first move from Photoshop to Illustrator, save it as an .ai file it is rendered properly (in Ae).
    I am kind of clueless as to what is causing this issue.
    Kind regards,
    Jelle

    Okay if more information is needed, i'll provide. However you may disregard my initial comment about illustrator. It flattens the photoshop layers so I do not have any flexibility in After Effects. In other words, my main question remains: why is my psd file not rendering correctly in ae?
    Further details:
    -photoshop cc and after effects cc.
    -macbook pro retina
    If still not clear enough, please tell me what details you are looking for furthermore

  • Page does NOT load correctly in FIREFOX

    My HOME page does not RELOAD correctly in FIREFOX when when
    the link is clicked on from another page in my little "2 page"
    site.
    BUT if I click on the BACK button it loads CORRECTLY
    It works correctly in IE
    Here is the Home page:
    http://www.quicksubmitbrokerswholesale.com/
    Here is page 2 where clicking on the link in FIREFOX loads
    incorrectly:
    http://www.quicksubmitbrokerswholesale.com/submitforpricing.html
    What do I need to TWEAK to make it work OK in FIREFOX?
    Thanks in advance

    Here is the crux of all your problems:
    <!-- Fireworks 4.0 Dreamweaver 4.0 target.
    You built the site in Fireworks, and a very old version at
    that, and then
    imported the site into DW. Graphics apps like Fireworks and
    Photoshop
    produce bloated, convoluted code and fragile structures. If
    you want a
    worthwhile site you will have to start over. Create only your
    graphics in FW
    and build the entire site in DW. Be cautioned though such an
    old version of
    DW won't produce a site consistent with today's standards.
    You really should
    upgrade if you want to deliver value to your client.
    Walt
    "electro-dud" <[email protected]> wrote in
    message
    news:gb2k07$9v4$[email protected]..
    > My HOME page does not RELOAD correctly in FIREFOX when
    when the link is
    > clicked
    > on from another page in my little "2 page" site.
    > BUT if I click on the BACK button it loads CORRECTLY
    >
    > It works correctly in IE
    >
    > Here is the Home page:
    >
    http://www.quicksubmitbrokerswholesale.com/
    >
    > Here is page 2 where clicking on the link in FIREFOX
    loads incorrectly:
    >
    http://www.quicksubmitbrokerswholesale.com/submitforpricing.html
    >
    > What do I need to TWEAK to make it work OK in FIREFOX?
    >
    > Thanks in advance
    >
    >

  • When scaling in page setup, 1st page prints correctly, but subsequent pages do not scale correctly/too large for the paper, parts of the text missing

    When trying to print in Firefox, and when scaling the page size in page setup, the first page prints correctly, but subsequent pages do not scale correctly and are too large for the paper, with parts of the text are being cut off at the top and right. This is not fixed by checking or un-checking the "ignore scaling/shrink to fit page width" in the print window, or by changing the scaling%.
    I am running Firefox 15.0.1, on Mac OS 10.5.8.
    The same problem happens in the print preview and if I save the print as a .pdf
    I have tried all the fixes in the how to's and others in various forums with no improvement.
    This happens every time I try to print a document scaled up or down only in Firefox.

    The 2nd page print scaling error has been an issue with Firefox on the Mac since 2011. People at Mozilla have not considered this a major problem. Try printing anything at less than 100% and you'll quickly see how every page after the first page being scaled wrong gets old real fast. The lack of a solution to this issue forced me long ago into using Safari as my primary browser. Good luck waiting until version 21 for a solution. Current release is 18.0.2.

  • Some pages do not display correctly ofter install iobit malware

    hi
    ofter i install iobit anti malware,some page do not display correctly on my browser
    i remove all addson of fire fox and reastart firefox but firefox not work true
    It seems that the style of some web pages not working correctly
    (if i find attach button , i attach web pages that not dispaly correctly)

    Ok, then in that case, Try the steps at [[Websites look wrong or appear differently than they should]]

  • [SOLVED] KDE4.3 is not rendering correctly the images in the desktop

    I've posted a bug in KDE because the KDE images are not rendered correctly:
    https://bugs.kde.org/show_bug.cgi?id=202829
    You can see an image of my desktop at:
    https://bugs.kde.org/attachment.cgi?id=35921
    As someone suggests, and I also agree with him, it would be a driver problem. My graphic card is "ATI Radeon X1950 Pro" and I'm using the "xf86-video-ati 6.12.2-2" driver. I know that there are other possibilities according to this wiki:
    http://wiki.archlinux.org/index.php/ATI
    I already tested them with KDE4.2 and xf86-video-ati provided the best result for me.
    Someone with an ATI card has the same problem? Which driver would you suggest to me?
    Thank you
    Last edited by jjjaime (2009-08-06 19:04:12)

    Thank flamelab for your help.
    The xf86-video-ati-git:
    http://aur.archlinux.org/packages.php?ID=15374
    fixed all my problems. Probably you've heard about it Now, I don't have any rendering problem and I have enabled the Desktop effects. I tested it with and without the xorg.conf file. Both of them worked, but without the file I don't have my keyboard in Spanish.
    I read that it was possible the KMS support. I tested it by changing from graphical to text mode but it takes some time so I guess that it's not enabled. Is there any way to test KMS?
    Is it possible to upgrade the AUR driver to the official repository? Meanwhile, I will comment my problem in the KDE site.
    Best regards,
    Jaime

  • PDF not rendering correctly

    Hi
    Can anyone help? I am using an iMac and have had a pdf emailed to me. When I login on to the site and select the PDF to view, it is not rendering correctly.
    I am not a technical person but to me it appears to open as a series of code, letters, numbers and symbols.
    Any ideas how to rectify this?
    Is it Adobe related or can I update the settings for the browser? I am using Safari.
    Thanks

    what OS & Safari version ?
    Often, removing any 'pdf' plugins in
    /Library/Internet Plug-Ins/
    and
    ~/Library/Internet Plug-Ins/
    then restarting the browser will solve pdf display issues, although in this case, it sounds as if the site is telling Safari that these are text type files & it's attempting to display them accordingly.
    Disabling plug-ins via Safari - Preferences - Security should also eliminate pdf plug-ins as a cause.

  • Rollover text not rendering correctly in Safari 7.x

    Safari 7.x and my blog (NotNecessarilyPretty.com) are not getting along.
    Specifically, the rollover text in the post titles (see attached or visit site) is not rendering correctly. The right edge of the text does not change to the correct color. Have been in contact with Apple as well as the theme's developer, but have yet to be offered of a fix. 
    This blog displays correctly when accessed via Chrome or Firefox, and prior to Mavericks, Safari evidenced no problem.
    Thoughts on how to correct this?
    Thanks!

    The original screenshot didn't show here, so for anyone else reading, who may well know much more about CSS & Safari than I :
    changes to this - note the right edge
    But with word-spacing un-checked in Inspector...

  • RequestCenter emails not rendering correctly in Outlook 2007

    RequestCenter emails not rendering correctly in Outlook 2007
    I'm having an problem where the RequestCenter automated emails are losing most of their HTML formatting when viewed in Outlook 2007.  When I look at the same email in Outlook 2003, the HTML formatting is fine.  Here's a picture of the same email displayed in Outlook 2003 and 2007:
    When I view the source HTML of the email, I noticed that there are duplicate HTML, HEAD, and BODY tags that have been automatically added by RequestCenter.  Apparently these extra tags are ignored by Outlook 2003, but cause problems with Outlook 2007.
    This picture shows the HTML source in RequestCenter's HTML editor compared to the HTML source from within Outlook with the extra tags.
    I tried removing the HTML, HEAD, and BODY tags in the HTML editor, but the editor puts the tags back in when you save it.
    Does anyone know how to fix this?
    Thanks,
    Scott

    We've actually had the same problem and had opened a ticket with customer care - it's the editor that's in the version we have (or had, since we are going through the upgrade).  What we've had to do is embed xml tags in the body of the email too, and then the team that processes the email has a little application that will process the data in the tags and strip the HTML that the editor applies.  Not much help, I know. 
    I've heard a rumor that the issue is fixed in 2007 with the new text editor - I'

  • Page is not displaying correctly on mobile

    Hey. Can anyone help me to see why my page is not displaying correctly on mobile.
    www.highestgoodclothing.com/phone/videos.html
    The page displays correctly on a desktop.
    On mobile there is a right margin that I do not want there. All of my other mobile pages seem to be working just fine. How do I fix this? Thanks

    Hi,
    I think it may be <div class="html5gallery-viral-0"> (contains the social media buttons) // screencasteu.worldsecuresystems.com/AP/2013-08-01_1033.png
    It's the only element that isn't in sync with the other elements on page, when compared to home.html for example.
    Kind Regards,
    Alex Pavelescu

  • When i open the add ons page in firefox the pages do not display correctly the pages only show text and are in lists

    when i click on the add ons tab the page does not show correctly. There are no graphics just text. It is difficult to view the page details. If you click on a link within the page the next page opens with exactly the same problem. All other tabs and pages open and display correctly

    Hi,
    If you're using a theme you can try to temporarily switch to the '''Default''' theme in Tools > Add-ons > Appearance. If the problem persists, please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]. Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u '''Use hardware acceleration when available''']. All these settings/options/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme, option or hardware acceleration is causing issues. Disabling/enabling hardware acceleration, and some types of add-ons in normal mode may require a Firefox restart.
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.org/en-US/kb/Options%20window Options]

  • Page is not rendered after first request

    Hi all,
    i have two page with names page1.jsp and page2.jsp. i open page2.jsp as pop up window by clicking a link on page1.jsp
    in _init() of page2.jsp,  i am getting some information from database and then i am able to create dynamic components according to information provided by database.
    for example, i create 3 textFields (their Id's are myTextField1, myTextField2, myTextField3) as result of execution of sql querry.
    Until here everything is ok for me, components looks rendered.
    i closed the page2 and then reopen it as pop up window again. i tryint to create another three textFields (their Id's are myTextField4, myTextField5, myTextField6). it looks like created at runtime, however i am getting the same old page.
    Please help me why my page is not rendering after reopening.
    Regards,

    any idea?
    it's similar problem without solution at following link
    http://swforum.sun.com/jive/thread.jspa?threadID=54347&messageID=208120#208120
    Any help apprechiated

Maybe you are looking for

  • Problem with ORA-06502 when exp/imp between two identical versions

    Hi I have two identical systems, one system that I develop on and the test system. The two systems have the same version of the Portal. When I export and then import the application from the systems I get a error message on the test system. ORA-06502

  • Would RollBacks For Stateless Session Beans work In case of Stored Procedures or Triggers Written in Oracle PL/SQl

              We are writing a J2EE application and using Weblogic 5.1 on Unix machine. We are           considering writing some Stored Procedures or Triggers on Oracle DBMS. Hence our           Stateless Session Beans / Data Access Objects (DAOs) would

  • Reg pop lov in apex

    hi I am using a pop lov for selecing a value form the pop up values. I want to change the display style of the pop window to , say a jquery calender style or a neat report using lightbox (or any other good looking ones..).Can any one help me in this

  • How to use commit work in class cl_bls

    Hi, When i have used commit work after email sent, it goes into dump. Here is the code segment:   try.     -------- create persistent send request ------------------------       send_request = cl_bcs=>create_persistent( ).     -------- create and set

  • Question for MUKS, if you are listening

    MUKS I have seen an old post which talks about white balance. This is what you wrote. "When you take a picture of the white card, make sure it is not over-exposed.  Split the image into the RGB components using IMAQ Extract Color Planes.  Select the