Method call before visual web jsf page loads

Hi All.....
I have written a method in a java class that accesses the mysql backend db to check if a process is still running. If the process is still running, a JOptionPane is produced informing the user of this and offers an <ok> option(to check the process status again) and a <cancel> option(to redirect the user to the homepage). If the process is completed, I want the page to just load as normal. I want this method to be called before the visual web jsf page loads. I have the method call in the super_init() method of the page and everything seemed to be working fine, the problem I have run into is that if I set the value in the db to show the process is running, the JOptionPane is produced(like it should be), and then if I set the value to show the process has completed and choose <ok> from the pane, the page loads.....this is what I want. Now, after the page loads, if I set the value in the db to show the process is running again, the JOptionPane is produced again right after I apply the changes to the db edit!!!!. I don't know why this is happening. Should I be calling the method from somewhere other the super_init()????? I have tried the method call in the prerender(), preprocess(), and destroy() methods all with the same results.
Anyone have any ideas on what the problem could be??
Thanks in advance.
Silgd

The Java part of a JSP/Servlet based webapplication runs physically at the server machine.
Only the HTML/CSS/JS part which is generated by the webapplication and sent to the client physically runs at the client machine.
JOptionPane is a Java Swing component which thus runs at the server machine. So you as client would only see it when both the server and the client runs at physically the same machine. Which is often only the case in development environment and doesn´t occur in real life! There is normally means of two physically different machines connected through the network/internet.
To solve your actual problem, look for Ajax poll techniques. To display an alert or confirm dialogue in the client side, you use Javascript for this.

Similar Messages

  • Setting the value of a hidden field in a Visual Web jsf page

    Hey All,
    I am new to jsf and need some help with the following. I have written a method in the java portion of the jsf page that will get the selection(s) from a listbox and return them as a string. I need to assign the value of that string to a hidden field in the jsp portion of the page, so that I can pass the string as a parameter to a servlet. I have tried the following code in the "button_action", in the java portion of the jsf page, to assign the value of the string, returned from method, to the hidden field:
    hiddenField.setValue(string);
    This is not working. Any and all help on this matter is greatly appreciated.
    Thanks in advance.

    Here is the tag for the hidden field when the "hidden field" component is added from the pallette, I addded the "value" and "id". The name of the class is ReportStandard, which extends the AbstractPageBean.
    <webuijsf:hiddenField binding="#{ReportStandard.utilSelHF}" id="utilSelHF" value="#{ReportStandard.utilParams}"/>This is how I am calling the hidden field in the servlet:
    utils = request.getParameter("form1:utilSelHF_field");Here is the code for the button_action:
    public String runReport_button_action() {
           this.utilParams = get_utilSelection();
           return "sRptrslts";
    }

  • Action method calls when refreshing the JSF page

    I have a test application which contains a JSF page. The page contains a command button. Button's action attribute is mapped with action method in managed bean.Inside action method I am not doing anything and just redirecting to the same page using navigation-rule configured in faces-config.xml. I deployed the application and tested the page.
    This is what I observed.
    scenario 1:
    ===========
    1) Run the page.
    2) Refresh the page.
    Observation:
    Action method not called.
    scenario 2:
    ===========
    1) Run the page.
    2) Click the command button.
    2) Refresh the page any number of times.
    Observation:
    For each and every time the page is refreshed Action method is called.
    Can anybody tell me why it is happening?

    sk_java wrote:
    I have a test application which contains a JSF page. The page contains a command button. Button's action attribute is mapped with action method in managed bean.Inside action method I am not doing anything and just redirecting to the same page using navigation-rule configured in faces-config.xml. I deployed the application and tested the page.
    This is what I observed.
    scenario 1:
    ===========
    1) Run the page.
    2) Refresh the page.
    Observation:
    Action method not called.
    You get the page using a http get so no action is "configured" to fire...
    scenario 2:
    ===========
    1) Run the page.
    2) Click the command button.
    2) Refresh the page any number of times.
    Observation:
    For each and every time the page is refreshed Action method is called.
    Can anybody tell me why it is happening?Using the command button (the first time) you obtain the view as postback so refreshing the page the browser will redo the last POST that fire again the Action...

  • Maintain the status of a Visual Web JSF page

    Hello,
    I have a JSF page in which I display several images.And when the user click on one image it will be viewed on her real size. So the user will be redirected to another page. Then, if he go back to the previous page will be displayed containing the associated images. But when he click on an image, the event of the click is not handled and the second page is not displayed.
    I think that it is due to the life cycle of the page.But I don't know How to do.
    How can I please maintain the state of the page listing the images in order to have the events still handled.
    Thanks in advance.

    Here is the tag for the hidden field when the "hidden field" component is added from the pallette, I addded the "value" and "id". The name of the class is ReportStandard, which extends the AbstractPageBean.
    <webuijsf:hiddenField binding="#{ReportStandard.utilSelHF}" id="utilSelHF" value="#{ReportStandard.utilParams}"/>This is how I am calling the hidden field in the servlet:
    utils = request.getParameter("form1:utilSelHF_field");Here is the code for the button_action:
    public String runReport_button_action() {
           this.utilParams = get_utilSelection();
           return "sRptrslts";
    }

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • Table display in Visual Web JSF (Project woodstock)

    Hi...
    I am trying to display a table(Quota) from a database in Visual Web JSF(project woodstock) and it works fine, as in I am able to run the project and a browser opens up dislaying the page with the date from the table. However when I try to display another table (Booking) from the same database, I am having problems. The page renders with no content(BLANK) in the browser. I am not sure why this is happening as I am using the same technique used to display content from the Quota table.
    This is my jsp code to display the Quota table ( this is the table that loads fine)
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <webuijsf:page id="page1">
                <webuijsf:html id="html1">
                    <webuijsf:head id="head1">
                        <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    </webuijsf:head>
                    <webuijsf:body id="body1" style="-rave-layout: grid">
                        <webuijsf:form id="form1">
                            <h:panelGrid id="gridPanel1" style="left: 216px; top: 216px; position: absolute">
                                <webuijsf:staticText id="staticText1" style="font-size: large" text="FACILITY"/>
                                <webuijsf:table augmentTitle="false" id="table1" title="Table" width="0">
                                    <webuijsf:tableRowGroup id="tableRowGroup1" rows="5" sourceData="#{SessionBean1.quotaArray}" sourceVar="currentRow">
                                        <webuijsf:tableColumn headerText="allocatedhours" id="tableColumn1" sort="allocatedhours">
                                            <webuijsf:staticText id="staticText2" text="#{currentRow.value['allocatedhours']}"/>
                                        </webuijsf:tableColumn>
                                        <webuijsf:tableColumn headerText="yearofStudy" id="tableColumn2" sort="yearofStudy">
                                            <webuijsf:staticText id="staticText3" text="#{currentRow.value['yearofStudy']}"/>
                                        </webuijsf:tableColumn>
                                    </webuijsf:tableRowGroup>
                                </webuijsf:table>
                            </h:panelGrid>
                        </webuijsf:form>
                    </webuijsf:body>
                </webuijsf:html>
            </webuijsf:page>
        </f:view>
    </jsp:root>Below is the jsp code to view the Booking table ( I am just getting a blank web page when I run the project with this code).
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <webuijsf:page id="page1">
                <webuijsf:html id="html1">
                    <webuijsf:head id="head1">
                        <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    </webuijsf:head>
                    <webuijsf:body id="body1" style="-rave-layout: grid">
                        <webuijsf:form id="form1">
                            <h:panelGrid id="gridPanel1" style="left: 216px; top: 216px; position: absolute">
                                <webuijsf:staticText id="staticText1" style="font-size: large" text="FACILITY"/>
                                <webuijsf:table augmentTitle="false" id="table1" title="Table" width="0">
                                    <webuijsf:tableRowGroup id="tableRowGroup1" rows="5" sourceData="#{SessionBean1.bookingArray}" sourceVar="currentRow">
                                        <webuijsf:tableColumn headerText="bookingdate" id="tableColumn1" sort="bookingdate">
                                            <webuijsf:staticText id="staticText2" text="#{currentRow.value['bookingdate']}"/>
                                        </webuijsf:tableColumn>
                                        <webuijsf:tableColumn headerText="bookingendtime" id="tableColumn2" sort="bookingendtime">
                                            <webuijsf:staticText id="staticText3" text="#{currentRow.value['bookingendtime']}"/>
                                        </webuijsf:tableColumn>
                                    </webuijsf:tableRowGroup>
                                </webuijsf:table>
                            </h:panelGrid>
                        </webuijsf:form>
                    </webuijsf:body>
                </webuijsf:html>
            </webuijsf:page>
        </f:view>
    </jsp:root>

    Hi..guys..
    The following is the code from my 'SessionBean1'.java file.
    package com.TestApp.managedbean;
    import com.TestApp.dao.QuotaFacadeLocal;
    import com.TestApp.entity.Quota;
    import com.TestApp.dao.BookingFacadeLocal;
    import com.TestApp.entity.Booking;
    import java.util.List;
    import javax.ejb.EJB;
    import com.sun.rave.web.ui.appbase.AbstractSessionBean;
    import javax.faces.FacesException;
    * <p>Session scope data bean for your application.  Create properties
    *  here to represent cached data that should be made available across
    *  multiple HTTP requests for an individual user.</p>
    * <p>An instance of this class will be created for you automatically,
    * the first time your application evaluates a value binding expression
    * or method binding expression that references a managed bean using
    * this class.</p>
    public class SessionBean1 extends AbstractSessionBean {
        // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
         * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced.</p>
        private void _init() throws Exception {
        // </editor-fold>
         * <p>Construct a new session data bean instance.</p>
        public SessionBean1() {
        @EJB
         private BookingFacadeLocal bookingDAO;
         private Booking[] bookingArray;
         @EJB
         private QuotaFacadeLocal quotaDAO;
         private Quota[] quotaArray;    
         * <p>This method is called when this bean is initially added to
         * session scope.  Typically, this occurs as a result of evaluating
         * a value binding or method binding expression, which utilizes the
         * managed bean facility to instantiate this bean and store it into
         * session scope.</p>
         * <p>You may customize this method to initialize and cache data values
         * or resources that are required for the lifetime of a particular
         * user session.</p>
        @Override
        public void init() {
            // Perform initializations inherited from our superclass
            super.init();
            // Perform application initialization that must complete
            // *before* managed components are initialized
            // TODO - add your own initialiation code here
            // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
            // Initialize automatically managed components
            // *Note* - this logic should NOT be modified
            try {
                _init();
            } catch (Exception e) {
                log("SessionBean1 Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Perform application initialization that must complete
            // *after* managed components are initialized
            // TODO - add your own initialization code here
         * <p>This method is called when the session containing it is about to be
         * passivated.  Typically, this occurs in a distributed servlet container
         * when the session is about to be transferred to a different
         * container instance, after which the <code>activate()</code> method
         * will be called to indicate that the transfer is complete.</p>
         * <p>You may customize this method to release references to session data
         * or resources that can not be serialized with the session itself.</p>
        @Override
        public void passivate() {
         * <p>This method is called when the session containing it was
         * reactivated.</p>
         * <p>You may customize this method to reacquire references to session
         * data or resources that could not be serialized with the
         * session itself.</p>
        @Override
        public void activate() {
         * <p>This method is called when this bean is removed from
         * session scope.  Typically, this occurs as a result of
         * the session timing out or being terminated by the application.</p>
         * <p>You may customize this method to clean up resources allocated
         * during the execution of the <code>init()</code> method, or
         * at any later time during the lifetime of the application.</p>
        @Override
        public void destroy() {
         * <p>Return a reference to the scoped data bean.</p>
         * @return reference to the scoped data bean
        protected ApplicationBean1 getApplicationBean1() {
            return (ApplicationBean1) getBean("ApplicationBean1");
        public Booking[] getBookingArray() {
             List<Booking> bookingList = bookingDAO.findAll();
             if (bookingList != null) {
                 bookingArray = bookingList.toArray(new Booking[0]);
             } else {
                 bookingArray = null;
             return bookingArray;
        public Quota[] getQuotaArray() {
             List<Quota> quotaList = quotaDAO.findAll();
             if (quotaList != null) {
                 quotaArray = quotaList.toArray(new Quota[0]);
             } else {
                 quotaArray = null;
             return quotaArray;
    }

  • How to handle left-right navigation in visual web jsf?

    I am developing a new application using visual web jsf woodstock in netbeans and components. Tab works fine for top level navigation. Is there any solution for left-right navigation? I wanted tree but each node has a link to a very new page. How can i handle left right naviagtion the same way tab does, content loads on the same page.

    I don't know exactly how the tabs do it, but I suspect it is one of the following two methods. First method, all of the content of each tab is steamed in the original request and activating the tab controls just use JS/DHTML to hide some content and show the correct content. The second method would be to use AJAX style requests when the tab is activated to get the new content from the server and then JS/DHTML to show it.
    If you tree is large, you will not want to use the first method. If you use the second method, consider a JSF-aware AJAX library like a4j.
    On a side note, Woodstock is probably not the best choice for a new project, as it is no longer being actively developed (see [https://woodstock.dev.java.net/index.html|https://woodstock.dev.java.net/index.html]).

  • On JSF Page load UI components loading sequence

    Hi All,
    I have some questions about the UI components loading sequence on the JSF page load.
    When a JSF page loads it loads its UI components which have a sequence of getters and setters declared in the backing bean of that jspx page.
    Qustion 1: How these getters and setters in backing bean work in loading the jspx page?
    Question 2: How this backing bean is related to the Page Definition file for the page loading?
    Question 3 (main query): What is the sequence of the getters and setters. Means, if i drop 3 UI components, 1 input text, then a command button and then an output text, then they are accordingly declared in backing bean. On page load first i/p texts getter gets called, then setter, then command button's and theno/p texts, in these sequence.
    But can i manipulate their sequence of loading. If yes then how it can be possible?

    Answer 1: Getters and Setters in bean normally will be bounded to ui component's properties in jspx page, when jspx page loads these getters get called through introspection and setters gets called when a request is submitted.
    Answer 2: Backing bean and page definition are two different entities and they are no way related unless you have a data control for the backing bean and have bindings for those methods in page definition file
    Answer 3: The sequence of getters and setters depends on the order of the components they bounded to in jspx page. components in jsf page gets loaded from top to bottom so the getter bound to the top component gets called first and the getter bound to bottom component gets called last.
    The only way to change the sequence of getter methods getting called is to just change the order of the components they bound to in jspx page.
    Usually, it is not suggested to put business logic inside getters and setters, where you have action and actionlisteners for the same. If you follow that, you don't need to worry of the sequence of getters and setters execution
    Sireesha

  • Visual Web JSF and Java Script problem

    Hi i am using Visual Web JSF for development in my project. AJAX to update data from server when users enters data in one text box its an chat application. i am getting data from server but unable to update my <webuijsf:textarea> component with the new data on my chat page ... I am facing another problem in java script that it is not accepting relational operators (< . >) in JSF Application.... i am attaching some code here for reference...result =http.responseText.split(","); /// this is the response text from AJAX based call
    var obj=document.getElementById('form1:chatter_box'); /// this text area is to be updated...
    var txt=document.createTextNode(http.responseText);
    ///document.getElementById('form1:chatter_box').innerHTML = txt;
    for(i=0;i < size;i++){
    var txt1=document.createTextNode(result);
    obj.appendChild(txt1);

    Try changing onclick to onClick and try...
    regards
    shanu

  • How to use the feature of ajax in visual web jsf

    Hello,everyone!
    I want to use the feature of ajax in visual web jsf,but the program encountered a error. I want refresh the dropdownlist once the javascript captured the refresh message,they both behaved asynchronously. However, the textField1 rendered with a blank box,while the dropDown1 had no change. The code as follows:
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page binding="#{Page1.page1}" id="page1">
    <webuijsf:html binding="#{Page1.html1}" id="html1">
    <webuijsf:head binding="#{Page1.head1}" id="head1">
    <webuijsf:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    <webuijsf:script>
    var processEvents = {                                                
    update: function(props) {
    var combo=document.getElementById("form1:dropDown1");
    combo.refresh();
    // Subscribe to refresh event.
    function refreshme(){
    var dom=document.getElementById("form1:textField1");
    dom.refresh();
    dojo.subscribe(webui.suntheme.widget.textField.event.refresh.endTopic, processEvents, "update");
    </webuijsf:script>
    </webuijsf:head>
    <webuijsf:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <webuijsf:form binding="#{Page1.form1}" id="form1">
    <webuijsf:textField binding="#{Page1.textField1}" id="textField1" onBlur="refreshme();"
    style="position: absolute; left: 168px; top: 144px" valueChangeListenerExpression="#{Page1.textField1_processValueChange}"/>
    <webuijsf:textField binding="#{Page1.textField2}" id="textField2" style="left: 168px; top: 96px; position: absolute"/>
    <webuijsf:dropDown binding="#{Page1.dropDown1}" id="dropDown1" items="#{Page1.dropDown1DefaultOptions.options}" style="position: absolute; left: 192px; top: 216px"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    /**********************************java******************************************/
    the function textField1_processValueChange didn't been invoked
    public void textField1_processValueChange(ValueChangeEvent event) {
    DropDown dd=getDropDown1();
    Option op1=new Option();
    String addText=(String)getTextField1().getText();
    op1.setLabel(addText);
    op1.setTooltip("tooptip");
    op1.setValue(addText);
    ArrayList <Option> l=null;
    Iterator <Option> i = dd.getListItems();
    while(i.hasNext()){
    l.add(i.next());
    l.add(op1);
    dd.setItems(l);
    thanks In advance all of your replies.

    Hi there,
    Take a look at this, will help you
    http://developers.sun.com/jscreator/learning/tutorials/2/textcompletion.html
    Thanks
    K

  • Visual Web JSF web app unable to render. The theme tries to access META-INF

    Hi,
    BACKGROUND: I have created a Netbeans 6 Visual Web Project using the default Visual Web JSF Theme. My web application can be viewed properly and correctly when i deploy it on tomcat 6.
    ARCHITECTURE: Our server configuration requires IIS to be our web server and tomcat to be our app server. Both are running on different machines. I have successfully linked up IIS 6 and tomcat 6 using the JK isapi_redirector.
    PROBLEM: However, when i connect to my app via IIS, my starting page opens but the input box components on that page are not displayed and i get several javascript errors that read - 'dojo is undefined' and 'webui is undefined'.
    PROBLEM DETAILS: I found that the page being served had a lot of files being requested from a META-INF folder. I have attached a snippet here.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#" xmlns:waistate="http://www.w3.org/2005/07/aaa">
    <head>
    <title></title><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/css_master-all.css" /><link rel="stylesheet" type="text/css" href="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/css/ie.css" /><script type="text/javascript">var djConfig={"parseOnLoad":false,"isDebug":false}</script><script type="text/javascript" src="/BMC/theme/META-INF/json2_0/json.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/prototype1_5/prototype.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/com_sun_faces_ajax.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dojo/dojo.js"></script><script type="text/javascript" src="/BMC/theme/META-INF/dojo1_0_1/dijit/dijit.js"></script><script type="text/javascript">dojo.registerModulePath("webui.suntheme", "/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript");</script><script type="text/javascript" src="/BMC/theme/com/sun/webui/jsf/suntheme4_1_1/javascript/webui-jsfx.js"></script><script type="text/javascript">webui.suntheme.bootstrap.init({"debug":false,"theme":{"locale":"en-US","prefix":"/BMC/theme","modulePath":"/com/sun/webui/jsf/suntheme4_1_1/javascript/theme","bundle":"suntheme","module":"webui.suntheme.theme"}});</script><link id="link1" rel="stylesheet" type="text/css" href="/BMC/resources/stylesheet.css" />I think the JK isapi_connector in IIS is preventing access to the META-INF path and the isapi_director log file says - "*+[emerg] HttpFilterProc::jk_isapi_plugin.c (1282): [BMC/theme/META-INF/json2_0/json.js] points to the web-inf or meta-inf directory. Somebody tries to hack into the site!!!+*". The same message is repeated for several more javascript files that are being served from under the META-INF path.
    Any help or advice in this matter will be greatly appreciated.
    Thanks!!!

    I managed to find a workaround. Thought i should share it with those who are faced with a similar issue.
    I found that a bug report had been placed in the past with Apache Dev. However, they had said that they would not modify their logic because the servlet container spec requires it (even though isapi_redirector is only a connector and not a container). They said that there is no way for the isapi_redirector to differentiate between /foo/WEB-INF when foo is a context and when foo is just a sub-directory of the ROOT web application. So, the general consensus was to err on the side of safety and risk blocking a few requests that are valid.
    However, this causes a serious issue for those using NetBeans JSF Visual Web Projects. Hence, I created my own flavour of isapi_redirector by modifying the code such that this check is not performed and leaving the onus of checking on Tomcat.
    For those who are interested, the simplest way to go about this would be to force the function uri_is_web_inf (in jk_isapi_plugin.c ) to always return FALSE.

  • Using facelets and Visual web jsf frameworks together

    I am developing a new jsf application and I wanted to make the page navigation simpler like making the content pages independently using woodstock components and including them in the main template page.
    I have downloaded Facelets support plugin for netbeans and installed it. I have created a new project using the wizard and i specified the two (facelets and visual web jsf) as frameworks for use. But I failed to leverage my application with facelets because I don't know how to use woodstock components with facelets.
    I am new to jsf and i want the woodstock visual components. Can't I use facelets then?
    Plz help.

    I managed to find a workaround. Thought i should share it with those who are faced with a similar issue.
    I found that a bug report had been placed in the past with Apache Dev. However, they had said that they would not modify their logic because the servlet container spec requires it (even though isapi_redirector is only a connector and not a container). They said that there is no way for the isapi_redirector to differentiate between /foo/WEB-INF when foo is a context and when foo is just a sub-directory of the ROOT web application. So, the general consensus was to err on the side of safety and risk blocking a few requests that are valid.
    However, this causes a serious issue for those using NetBeans JSF Visual Web Projects. Hence, I created my own flavour of isapi_redirector by modifying the code such that this check is not performed and leaving the onus of checking on Tomcat.
    For those who are interested, the simplest way to go about this would be to force the function uri_is_web_inf (in jk_isapi_plugin.c ) to always return FALSE.

  • Visual Web JSF: Rendering a checkbox group with some checkboxes preselected

    Dear Sirs and Madams,
    I am a Visual Web JSF newbie and have been humbled by this one issue: I have User value objects which hold a List attribute of what user privileges they have. Am trying to render a checkbox group of user privileges for a chosen user with some user privileges already checked (the ones the user already has), and some not checked (potential privileges to give to the user) for the EditAUsersPrivileges page. Is this even possible? If so, how?
    Profusely thanking you in advance,
    Phoenix

    Of course, use the value attribute of the component and set it to EL representing the desired property.

  • NB Visual Web JSF Uses Transitional DOCTYPE, Need Strict for position:fixed

    When trying to create a CSS "position:fixed" element in my project that works for Firefox/IE6/IE7 I looked up the simple CSS hacks that need to be used for IE6. Unfortunately, IE6 MUST use a Strict DOCTYPE to accomplish this, and there appears to be no way to change this in the Visual Web projects.
    The only thing I can find is the webuijsf:page element has attributes that depending on their boolean value will toggle between a Transitional and Frameset DOCTYPE.
    Unless someone knows a CSS hack for IE6 that works with a Transitional DOCTYPE, is there a way for me to switch the Visual Web JSF stuff to use a Strict DOCTYPE?

    asherwin wrote:
    Unless someone knows a CSS hack for IE6 that works with a Transitional DOCTYPEGoogle gives lot results if I only search for "position:fixed".
    is there a way for me to switch the Visual Web JSF stuff to use a Strict DOCTYPE?If the documentation doesn't state anything about it, I would report this issue at the mailinglist/issuetracker at the homepage of Visual Web JSF.

  • Visual Web JSF Portlet Upload file Problem in Websynergy

    Hello,
    I am using Websynergy milestone 3 release. I have tried to build AS A PORTLET the sample code, "Uploading Files in NetBeans Visual Web JSF Applications" (http://www.netbeans.org/kb/60/web/intro.html) using netbeans 6.5. The solution deploys successfully but unfortunately, the file Upload control does not work in the websynergy portlet environment. No file seems to be uploaded. The same code works very well in non-portlet environment. Is there a work-around for the Portlet environment?
    Looking forward to some help!
    Pius

    Hello,
    I am using Websynergy milestone 3 release. I have tried to build AS A PORTLET the sample code, "Uploading Files in NetBeans Visual Web JSF Applications" (http://www.netbeans.org/kb/60/web/intro.html) using netbeans 6.5. The solution deploys successfully but unfortunately, the file Upload control does not work in the websynergy portlet environment. No file seems to be uploaded. The same code works very well in non-portlet environment. Is there a work-around for the Portlet environment?
    Looking forward to some help!
    Pius

Maybe you are looking for

  • Support Message creation in Satellite System should trigger ZLFN not SLFN

    Hi Experts! I guess (hope) this is a rather simple question but I just can not find the right section in SPRO. We made a lot of customizing regarding Change Requests and Change Documents (made copies of SDCR and SDMJ). The Support Message (SLFN) has

  • Can't get Time Machine to back up server or attached drives

    Tried to use the search on these new discussion forums and was told I'm not authorized to search the server forums so sorry if this has already been asked and answered. I'm having a serious issue trying to back up my Mac Mini Server running 10.6.7. 

  • Mime type note set for css with wwv_flow_file_mgr.get_file

    Hello, We have an apex application over here that has problems with the mime type of a theme (css) file. The css file works correctly in IE but not in FF or Chrome (because IE check the file extension, but FF seems not do not ..). This is the call th

  • Create Purchase Requistions through MD01 despite Procurement Type X

    Hi, When we run MD01, Planned Orders are being created for our materials with Procurement Type X despite we select "1 - Purchase Requisitions" in field "Create Pruchase req." We would like to have Purchase Requisitions created instead of Planned Orde

  • Strange behavior in Horizontal Menu

    I have created a horizontal menu where Rollover, Mouse Down, and Active are red. The behavior of all of the menu in IE 11 is correct except for CONTACT. When CONTACT is selected, the site scrolls to the correct place but the ACTIVE state shows as gra