JSF Issue - Arrrrg!

Hi,
Only starting on JSF and ive encountered this issue:
javax.servlet.ServletException: /searchForm.jsp(27,12) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
root cause
javax.faces.FacesException: /searchForm.jsp(27,12) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
     org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:340)
     org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
     org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
     org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
root cause
org.apache.jasper.JasperException: /searchForm.jsp(27,12) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
     org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
     org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
     org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
     org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1174)
     org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
     org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
     org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
     org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
     org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
     org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
     org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
     org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
     org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
     org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
     org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
     org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
     org.apache.jasper.compiler.Validator.validate(Validator.java:1739)
     org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
     org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
     org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
     org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
     org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
     org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
Im using MyFaces 1.2, jdk 1.6 and Tomcat 6.0.
Any help on this would be much appreciated!

What is on line 27, character 12 of the JSP file?

Similar Messages

  • Jsf issue using session attributes

    I have a JSF issue where I can't seem to get session attributes to be stored as initial values on my inputText field below. I've tried 2 things: (1) reading session attributes in my locrateForm bean, and then use getter method to get them to the jsp form ( I read the session attributes in the getter - I know it's a no-no, but I'm desparate)...
    (2) reading session attributes in my jsp and storing them to the inputText fields.
    Both times, I can successfully read the session attributes, but I can't get it stored in the inputText below....Pls provide this new jsf user some direction...thanks in advance...
    Also....I thought the below EL would auto-invoke the getter method in the "locrateForm" Bean to get the initial value, but it's not...my books don't explain this well...
    <h:inputText id="locrateDest" value="#{locrateForm.locrate.locrateDest}" >
    </h:inputText>

    Can you show us the snippit of your faces-config.xml for locrateForm and the snippit of the Java implementation that involves locrate and locrateDest?

  • Weblogic JSF issue

    Hi,
    I am working on a migration project to convert my app from websphere 5.1 to wls 10.3.
    Now, in doing do I am getting the following JSF error.
    java.lang.UnsupportedOperationException     at javax.faces.context.FacesContext.getELContext(FacesContext.java:137)
         at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:888)
         at com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:328)
         at com.supervalu.ris.jsf.misc.RISViewHandler.createView(RISViewHandler.java:107)
    Following are my web-inf lib files copied from websphere project.
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-logging.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    jstl_el.jar
    standard.jar
    Google search suggested version problem ....but I am not sure.
    Can you pls help me?
    Edited by: user588655 on Oct 1, 2010 9:34 AM

    Add a "weblogic.xml" file inside your application "WEB-INF" directory with the following Tag inside it:
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    Please refer to CLASSLOADER FILTERING Feature of weblogic: http://weblogic-wonders.com/weblogic/parsers_issues/

  • Number Validation in jsf  Issue

    I am new to jsf
    I have a text box in which user can enter only number i done the validtion for it..
    It displays...
    value must be an integer number between -2147483648 and 2147483647
    But i want ot display only 'value must be integer' i want to omit the rest of the part..
    I tried
    <h:inputText value="#{employee.age}" required="true" requiredMessage="Value must be integer"
    <f:validateLongRange minimum="0 maixmum="100" />
    </h:inputText>
    Please suggest the solution for it please
    shashi

    santigo wrote:
    You can find the .properties file and change the message. But i do not recommend it to u.Why not? You're free to customize any general error messages. You're not forced to use the standard error messages.
    but you can write your custom validater.Too much more work than simply creating a propertiesfile with a single line in it, putting it in the classpath and specifying it in the faces-config.xml.

  • JSF issue in DataTable while rendering in input text

    <tr>
    <td><textarea name="test:0:_id6" cols="25" rows="5">&#8212 test</textarea></td>
    </tr>
    but the value for this textarea is: &#8212 test
    my question is why the value &#8212 test is rendered as &#8212 test.

    Hi Ram,
    Based on the dataset and query you posted, I did a test but it works fine in both SQL Server Management Studio (SSMS) and Query Designer in Business Intelligence Development Studio
    (BIDS). In the Query Designer of BIDS, I got the following result without the additional strings <Expr> and </Expr>
    NoteID
    Comments_Concatenated
    100
    Text 1,Text 2
    101
    Text 3,Text 4
    Since it generates 2 data fields NoteID and Comments_Concatenated, could you please specify them to the Detail Data row of a table to see if the works fine when the report is rendering?
    If it the additional string still exists, please post and screenshot and the version of your Reporting Services.
    Thanks,
    Tony Chain
    Tony Chain [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Centering a jsf page

    I am trying to center my jsf page to cater for different screens of different screen resolutions.I have tried
      <table> <td align="center"> page body....</td> </table> but this doesnt work.Can someone help?

    This is not a JSF issue. This is a HTML/CSS issue. To center a block HTML element, set the CSS 'margin' property to '0 auto'. To center an inline HTML element, set the CSS 'text-align' property to 'center'. You can learn HTML and CSS at w3schools.com.

  • Project folder name in NetBeans interfering with JSF/GlassFish deployment

    I am not sure if this is a JSF issue or a NetBeans issue. I am very new to both.
    I have a project in a folder, let's say C:\Folder1, and when I try to "deploy" it on the GlassFish server, I get strange errors about a missing class... though that class is not even a part of this project.
    I believe that C:\Folder1 may have been something I used in the past for a different project but that is long gone.
    So this new project, if I move it to folder C:\Folder1a or C:\Folder2 or ANYTHING else but C:\Folder1... then it will deploy fine. But if I move it back to Folder1 (i.e. the exact same directory structure underneath that level), I get the mysterious error messages from GlassFish server about being unable to find the class that it doesn't even need.
    NOTE: When I say I am moving the project folder around, I am of course re-adding it to Netbeans every time via the "open project" under the file menu. In fact, I've even tried creating a brand new "naked" project, and then manually importing my source code into that project's folders. I have scanned every source doc for the mysterious missing classes and they aren't referenced anywhere! It has to be some metadata that Netbeans stores about that directory name since I once used it for a different project which DID have the mystery class name in it. Hopefully that makes sense...
    Any ideas? Obviously I can work around it, but it still irks me.
    Thanks!

    Clean build
    Unforunately that does not work. Here are the steps I followed:
    Create new project in Netbeans, point it to an empty folder called Ex2605. After that, I bring a couple source files (.java and .xhtml) into that Ex2605 directory structure. When I clean and build, it says ok. When I try to deploy, I get this error:
    +Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: LShoppingCart;. Please see server.log for more details.+
    C:\<path>\Ex2605\nbproject\build-impl.xml:721: The module has not been deployed.
    See the server log for details.
    BUILD FAILED (total time: 16 seconds)
    "ShoppingCart" is a class from a different project, that I once long ago had in a directory named Ex2605 at the same location. But that directory is long gone, it has been removed from the Netbeans project list, and there are NO references to the ShoppingCart class anywhere in any of the files currently in the Ex2605 folder. So that fact that Netbeans apparently is looking for something called LShoppingCart tells me it maintains a history somewhere else of what I used to have in the Ex2605 folder, and apparently I need to purge that history but have no idea how.
    If I try all of the above with any directory NOT named Ex2605, it works fine.

  • Urgent - can't set managed bean value using a form, getting null

    I have a form with a bean -- unbelievably, I can't get the values entered into the form by the user to get stored into the bean. Everything is null... I've looked at a zillion examples, posts and compared etc...yet still can't see what is missing.
    Here's part of a trace :
    [cc]Dec-31 01:25:02 ApplicationImpl - Created bean resourceBean successfully
    [cc]Dec-31 01:25:02 ApplicationImpl - Storing resourceBean in scope request
    [cc]Dec-31 01:25:02 VariableResolverImpl - resolveVariable: Resolved variable:id=null name=null
    [cc]Dec-31 01:25:02 ValueBindingImpl - getValue Result:id=null name=null
    [cc]Dec-31 01:25:02 ValueBindingImpl - -->Returning id=null name=null
    If you have any ideas, please let me know--it seems just as I solve one JSF issue, I run into another on unexpectedly simple things.
    Here's the ResourceBean.java, the bean-config.xml and my jsp.
    package com.intalio.qa.tcm.view.beans;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.faces.model.SelectItem;
    import org.apache.log4j.Logger;
    import com.intalio.qa.exceptions.DuplicateIdException;
    import com.intalio.qa.tcm.model.Resource;
    import com.intalio.qa.tcm.view.builders.ResourceBuilder;
    import com.intalio.qa.tcm.view.util.FacesUtils;
    * Resource backing bean.
    public class ResourceBean extends RootBean {
         * Class logger
         public static final Logger LOG =
              Logger.getLogger(ResourceBean.class);
    * The Resource id
         private String id = null;
         * The Resource name
         private String name = null;
    * Description
    private String description= null;
         * the resource type id associated with the Resource
         private String resourceTypeId= null;
         private static SelectItem[] resourceTypeIds = new SelectItem[] {
              new SelectItem("External Software"),
              new SelectItem("Hardware"),
              new SelectItem("Intalio Product Software"),
              new SelectItem("Machine - Dual CPU"),
              new SelectItem("Machine - CPU Single"),
              new SelectItem("Memory - UNIX"),
              new SelectItem("Memory - Windows") };
    * @return Returns the resourceTypeIds.
    public SelectItem[] getResourceTypeIds() {
    return resourceTypeIds;
    * @param resourceTypeIds The resourceTypeIds to set.
    public void setResourceTypeIds(SelectItem[] typeIds) {
    resourceTypeIds = typeIds;
         * Default constructor.
         public ResourceBean() {
    super();
    init();
         * Initializes ResourceBean.
         * @see RootBean#init()
         protected void init() {
         /*True, but I'd strongly recommend instead using:
    FacesContext fContext = FacesContext.getCurrentInstance();
    Map requestParams = fContext.getExternalContext().getRequestParameterMap();
    String companyId = (String) requestParams.get("companyID");
    The getRequest(), getSession(), and getContext() methods of ExternalContext should only be used as a last resort.*/
         * Backing bean action to update Resource.
         * @return the navigation result
         public String updateAction() {
              LOG.info("updateAction is invoked");
              try {
                   Resource Resource = ResourceBuilder.createResource(this);
                   LOG.info("ResourceId = " + Resource.getId());
              //     viewServicesManager.getResourceService().updateResource(Resource);
              } catch (Exception e) {
                   String msg = "Could not update Resource";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(msg + ": Internal Error.");
                   return ActionResult.FAILURE;
              LOG.info("Resource with id of " + id + " was updated successfully.");
              return ActionResult.SUCCESS;
         * Backing bean action to create a new Resource.
         * @return the navigation result
         public String addAction() {
              try {
                   Resource resource = ResourceBuilder.createResource(this);
    LOG.info("resource created: " + resource.getName() + " with typeId = " + resource.getResourceTypeId());
                   viewServicesManager.getResourceService().saveResource(resource);
              } catch (DuplicateIdException de) {
                   String msg = "This id already exists";
                   LOG.info(msg);
                   FacesUtils.addErrorMessage(msg);
                   return ActionResult.RETRY;
              } catch (Exception e) {
                   String msg = "Could not save Resource";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(msg + ": Internal Error");
                   return ActionResult.FAILURE;
              String msg = "Resource with id of " + id + " was created successfully.";
              LOG.info(msg);
              return ActionResult.SUCCESS;
         * Backing bean action to delete Resource.
         * @return the navigation result
         public String deleteAction() {
              LOG.info("deleteAction is invoked");
              try {
         //          Resource Resource = ResourceBuilder.createResource(this);
         //          viewServicesManager.getResourceService().deleteResource(Resource);
                   //remove the ResourceList inside the cache
    //               FacesUtils.resetManagedBean(BeanNames.RESOURCE_LIST_BEAN);
              } catch (Exception e) {
                   String msg = "Could not delete Resource. ";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(null, msg + "Internal Error.");
                   return ActionResult.FAILURE;
              String msg = "Resource with id of " + id + " was deleted successfully.";
              LOG.info(msg);
              FacesUtils.addInfoMessage(msg);
              return ActionResult.SUCCESS;
         public String getId() {
              return id;
         * Invoked by the JSF managed bean facility.
         * <p>
         * The id is from the request parameter.
         * If the id is not null, by using the id as the key,
         * the Resource bean is initialized.
         * @param newQueryId the query id from request parameter
         public void setId(String newId) {
              LOG.info("setId " + newId);
              id = newId;
         public String getName() {
              return name;
         public void setName(String newName) {
              name = newName;
         public String getDescription() {
              return description;
         public void setDescription(String newDescription) {
              description = newDescription;
         public String getResourceTypeId() {
              return resourceTypeId;
         public void setResourceTypeId(String newResourceTypeId) {
              resourceTypeId = newResourceTypeId;
         public String toString() {
              return "id=" + id + " name=" + name;
         <!-- view -->
         <managed-bean>
              <description>
                   Managed bean
              </description>
              <managed-bean-name>applicationBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ApplicationBean
              </managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
              <managed-property>
                   <property-name>viewServicesManager</property-name>
                   <value>#{viewServicesManagerBean}</value>
              </managed-property>
              </managed-bean>
         <managed-bean>
              <description>
                   View service manager impl for business services
              </description>
              <managed-bean-name>viewServicesManagerBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ViewServicesManagerBean</managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <description>
                   Backing bean that contains product information.
              </description>
              <managed-bean-name>resourceBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ResourceBean
              </managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>viewServicesManager</property-name>
                   <value>#{viewServicesManagerBean}</value>
              </managed-property>
         </managed-bean>
    </faces-config>
    <f:view>
         <h:form id="createResourceForm" target="dataFrame">
              <h:outputText value="#{applicationBean.dummyVariable}" rendered="true" />
              <div align="center">
              <head>
              <link href="../../css/stylesheet.css" rel="stylesheet" type="text/css">
              <FONT color="#191970" size="4" face="Arial">Resources View</FONT>
              </head>
              <table style="margin-top: 2%" width="35%" cellpadding="10">
                   <div align="left">
                   <FONT color="#191970" size="3" face="Arial">Update Resources </FONT>
                   </div>
                   <tr>
                        <td align="center" valign="top" align="center" style="" bgcolor="white" />
                        <table>
                             <tbody>
                                  <tr>
                                       <td align="left" styleClass="header" width="100" />
                                       <td align="left" width="450" />
                                  </tr>
                                  <tr>
                                       <td align="right" width="100"><h:outputText value="Id" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.id}" id="id"/> <h:message for="id" styleClass="errorMessage" /></td>
                                  </tr>
                                  <tr>
                                       <td align="right" width="100"><h:outputText value="Name" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.name}" id="name" /> <h:message for="name" styleClass="errorMessage" /></td>
                                  </tr>
                                  <tr>
                                       <!--td align="right" width="100" valign="bottom"><h:outputText value="Type" /></td>
                                       <td align="left" width="550"><h:selectOneMenu>
                                            <f:selectItems value="#{resourceBean.resourceTypeIds}" />
                                       </h:selectOneMenu> <h:outputText value="#{resourceBean.resourceTypeId}" id="dresourceTypeId" /> <h:message for="resourceTypeId" styleClass="errorMessage" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td align="right" width="100" valign="bottom"><h:outputText value="Description" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.description}" id="description" size="96" /> <h:message for="description" styleClass="errorMessage" /></td>
                                  </tr>
                             </tbody>
                        </table>
         </h:form>
         </td>
         <!-- END DATA FORM -->
         <!-- BEGIN COMMANDS -->
         <td width="30%" align="left" valign="top"><h:form id="buttonCommandsForm">
              <h:panelGroup id="buttons">
                   <h:panelGrid columns="1" cellspacing="1" cellpadding="2" border="0" bgcolor="white">
                        <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
                        </h:commandButton>
                        <h:commandButton id="deleteCB" value="Delete" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.deleteAction}">
                        </h:commandButton>
                        <h:commandButton id="spaceFillerButton" style="height:21px; width:51px;font-size:8pt;background-color: #ffffff;color: #ffffff;border: 0px;">
                        </h:commandButton>
                        <h:commandButton id="saveCB" value="Save" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.saveAction}">
                        </h:commandButton>
                        <h:commandButton id="updateCB" value="Update" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.updateAction}">
                        </h:commandButton>
                   </h:panelGrid>
              </h:panelGroup>
         </h:form> <!-- end buttons --></td>
         </tr>
         </table>
         <HR align="center" size="2" width="60%" />
         <!-- data table -->
         </div>
    </f:view>
    THANKS.
    -L

    I solved this.
    Since I was testing the action code only, I didn't define a navigation entry corresponding to the action string returned for this button:
    <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
    </h:commandButton>After I added a nav definition, it worked. I don't know why at this point. I suspect a key step in the lifecycle was pre-empted...someone else can probably explain why. If I get a chance to research it after I'm done with my project, I'll update this post.
    Thanks.
    -L

  • Standard button image problem

    Hi,
    I've got a problem when I try to set Image to the button from standard components.. I can set it up, but than I didn't see the image in the browser.
    With the button from basic components there is everything working fine, unfortunately I need that component from standard.. any advice?
    thx.

    Hi,
    I've got a problem when I try to set Image to the button from standard
    components.. I can set it up, but than I didn't see the image in the browser.
    With the button from basic components there is everything working fine,
    unfortunately I need that component from standard.. any advice?
    thx.Standard button has problems with images due to a JSF issue. To work around the issue, remove leading / from the buttons image property and re-deploy. This should cause the standard button image to display correctly.
    Hope it helps,
    Lark

  • ClassNotFoundException while invoking EL function during render response

    I wrote a simple EL function to retrieve the clientId of a UIComponentBase object -- I'm generating some javascript. The first time I load the page (without a submit), the page generates just fine, including the javascript output that successfully invoked my EL function from a h:outputText element.
    However, when I submit the form it throws a ClassNotFoundException (for my EL function class) and generally freaks out after that. Now, obviously it should be able to find the class since it managed to find it on the initial rendering of the page.
    Am I missing something about using EL functions in a JSF tag? (I'm using JBoss Seam under the covers, but am not sure if this is a Seam issue or a pure-JSF issue.) Thanks for any light you folks can shed on this.

    The Faces Context is set up by the Faces Servlet, which hasn't run yet in a filter.
    I haven't tried it, but [url http://blog.lightwaysoftware.com/2010/10/accessing-facescontext-from-a-servlet-filter/]this may help you.
    DOH! That's what you are doing already.
    If you're using JDev 11.1.2.x, you could try [url http://ocpsoft.com/java/jsf-java/jsf-20-extension-development-accessing-facescontext-in-a-filter/]this
    John

  • Application quit working with jre1.6.0_13

    An application I support has been working until someone installed jre1.6.0_13
    on their desktop. Now part of the application works and part does not work.
    The entire application works with jre1.6.0_11. With update 13, the application stops working when attempting to do a new on a class (ProjectInformationPanel) that
    extends JPanel. I get my debug statement right before the 'new' is called but I don't get the debug statement that is in the constructor for ProjectInformationPanel. Has anybody encountered something similar or know of a fix? Thanks for your help.

    asmita2005 wrote:
    Thanks for that.
    Does that mean it is a Tomcat issue and not a JSF issue?I can't say for sure but the fact it works in some versions of Tomcat but not others is a strong indicator.
    Where can I find the Tomcat users mailing list?I don't know off the top of my head but doubt they are hiding it. Try the Tomcat website or the documentation that came with Tomcat.
    How can I remain updated about the same?Typically there is a subscription process.

  • Page forward from behind /WEB-INF

    Hi all,
    I've got a ADF JSF application and I want to keep most of my pages behind the /WEB-INF directory. The thinking is that I want these pages to be accessible only through component actions. So far I'm able to redirect to these *.jspx pages from outside the /WEB-INF directory. However the problem arises when I'm trying to redirect from a page inside the /WEB-INF directory to another page inside the /WEB-INF. Is there some configuration option in the web.xml or faces-config.xml file to do this? Failing which is there another option to 'hide' the URL of these pages?
    Cheers
    George

    Hi,
    according to the Servlet security spec all sources in WEB-INF are protected from direct browser access and redirects. The reason why this works for JSF navigation is because it performs a server side navigation that does not fall under this restriction. So this is not a JSF issue but a J2EE restriction
    Frank

  • War file does not load drivers.

    Hello All,
    I have made a web application in jsf framework which runs fine in netbeans on 8084 port.
    but when I copy the war file in my webapps of tomcat which runs on 8080 port.
    The login page gets loaded but when I click login to validate user in database, it
    gives error that the "cannot load jdbc driver".
    Also in netbeans when I run my appplication its runs as "http://localhost:8080/"
    amd my page gets loaded but from tomcat I have to run as
    "http://localhost:8080/trial_web_portal"
    If I just type "http://localhost:8080/" my tomcat page get displayed.
    Please help.
    Also let me know whether is this a jsf issue.

    Vish_1x1 wrote:
    ..Also let me know whether is this a jsf issue.Don't know, what I can tell you is that whatever issue it is, has nothing to do with Java Web Start & JNLP.

  • How can i  remove messages from faces context

    hi
    how can i remove messages from faces context
    with regards
    shannu sarma

    I'm also looking to find a way to remove message/s from FacesContext, and so far I've not been able to do this.
    The issues described below (if you have the patience to understand it) may uncover some JSF issues when combining different functionalities in JSF to come up with a solution.
    I have a requirement to display (let's just say error) messages in a message board. I do this in 2 steps: field-level validations are done first, and if all corrected (by the user), I do multi-field-level as well as business logic validation after model update (the way JSF seems to be designed to handle different types of validations). Let's say I have a combination of 3 combo-boxes that are dependent on one another. Selection from (1) requires dynamically filtering and setting a list for two and that in turn requires dynamically filtering and setting a list for 3, so the first two have valueChangeListener (try doing this in JSF!!!, I had to hack my way through to set this up with JSF, but that is not the issue). I have business rules associated with items within combo (1) and other entry fields entered by users (i.e. for simplicity let's just say, if material 'chain' is selected from combo 1, I should set combo (2) and (3), and validate that user entered at least four in # used entry field). Let's say I have a table with many rows of above combination of combo-boxes specified. Again for simplicity, assume we only have business rule violations (not field-level that would not go through model update):
    * User selects many combination of entried before submit (with no field-level error)
    * Business rules are checked and messages added to FacesContext and displayed in a message board
    * Next, all these messages disappear from the view when selecting any item from any combo-box (with valueChangeListeners attached to them) - 2 reasons: 1. a new FacesContext is created per valueChangeEvent 2. Business model update does not happen (so we don't generate these messages again and add them to FacesContext, it is not efficient to do so anyways)
    * we would like to display all those business logic validation messages so the user could correct them all (and not lose them by any combo-box selection)
    * As a workaround, I add these messages to session (which is another issue, since FacesMessages are not serializable) at the end of business logic validation, and retrieve and display them by (a.) forcing combo-boxes go through (field-level) validation, (b.) adding a new hidden field at the end of all fields in JSP page with a custom-validator that all it does is to get messages saved to session (from the last business logic validation) and add them to the FacesContext - this ensures that messages are not lost due to combo-box selections
    * The problem is that when user submits (to validate the business rules again), since the old Business validations messages are added to FacesContext at the end of field-level validation, I need to clear them, before adding the newly generated messages
    * But....I can't remove messages from FacesContext
    So here's a reason for this 'needed' functionality, based on whatever is available (as of JSF 1.1.01). Is there a better way to this, I'll be delighted to hear it (as I have tried different solutions myself with above combination of issuses), and have wasted some time trying to work-around the issues I've faced using JSF (in every one of those ways I've tried) ....part of which is described here...
    Thanks...

  • Could not get stylesheet cache

    I got java.lang.IllegalArgumentException:
    Required XSS file $oracle_home/ultrasearch/webapp/isearch_admin/cabo/styles/blaf.xss does not exist
    the file is in the directory. can someone tell me what is happening

    Hi,
    the short truth is that you cannot use JSF pages as login screens because
    1 - they don't know to handle the j_security_check action
    2 - the JSF contex cannot be created
    Its a JSF issue that all implementations face
    Frank

Maybe you are looking for

  • I can't figure out what's wrong with this code

    First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom: One two buckle your shoe Three four shut the door Five six pick up sticks Seven eight

  • Legacy asset data upload for multiple line items

    Hello Legacy asset data upload for multiple line items- for example Building is an asset which is having different line items for purchasing of land,constructaion or renovation etc.........now to upload the legacy data what should be consider...only

  • Need help with Boot Camp dual booting

    I'm trying to install windows 7 on a separate partition but after the mac book pro restarts to start the installation it says windows can't be installed because it needs to be NTFS format but the mac partition is Mac OS Extended(journaled) but gives

  • Old IMac 17'' video sync problem at boot

    Hi, A friend has brought his IMac 17'', which has a video sync problem. At boot, all screen lines are out of sync, but I can more or less recognize the apple logo, which disappears later. Something happens at least, there is a boot processing going o

  • Anyone know what this device is? Guitar - Computer

    If you go to http://www.apple.com/ilife/garageband/ and watch the main video (left hand side) at 1:02 you see a device that is used to plug the guitar into the computer. Anyone know what this specific device is? Also does anyone have any experience w