JSF Error Message Parameters

Hi ,
I am displaying a customized error message by passing parameters . In the reources bundle , I have
javax.faces.component.UIInput.REQUIRED={0} is required
JSP has
<h:inputText styleClass="inputText" id="firstName" value="#{bean.firstName}"
required="true"></h:inputText>
<h:message styleClass="error_text" id="message1" for="firstName"> </h:message>
This is outputting "{0} is required" whereas I would expect to display "FirstName is required".

Default javax.faces.component.UIInput.REQUIRED has no parameters. Default 'required' validator (inside the UIInput) does not replace any parameters, just because it is designed to use message that has no parameters.
If you redefine the javax.faces.component.UIInput.REQUIRED and add any parameters to there it does not make any sense because the default validator still does not replace anything (as designed).
So, if you want to have a parameter replaced you have to write your own custom validator.
As an alternative, you can use the approach shown at:
http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk7.html
Sergey: jsfTutorials.net

Similar Messages

  • Oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

    Dear Guru's,
    I am not able to solve the above issue for last couple of days.
    I am newbie to the webservice
    My Issue...
    I am using Jdeveloper 11.1.2.4.0 Release 2
    1. Using Jdev I built one small Web Service with two methods.
            While testing the Webservice...
                   I passed User Id as Parameter and it successfully return the values (user id, user name and description) from fnd_user table
    2. I created another application to consume the web service i created.
                   1. I added the webservice SOAP and added the method.
                   2. Created a jsf page and drag and drop the parameter and return values to the jsf page.
    3. While executing the created jsf page I received the error message as below
    "oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=UserName, 2=UserName}"
    Even I know that this issue is repeated one in our forum, I was not able to solve this issue.
    Can anybody help to solve this issue.
    Thanks and Regards,
    Durai S E

  • JBO-28006. Error message parameters are {0=PS_TXN_seq}

    When we run ADF program then error message display in log file.
    reproduce step is below.>>
    1.Create user sales_user, sales_runuser
    2.create db object in sales_user
    3.grant select, insert, update, delete on object to sales_runuser
    4.deploy ADF program
    5.run ADF program in sales_runuser
    6.check log
    Error Message is below.>>
    cause error code is JBO-28006. Error message parameters are {0=PS_TXN_seq}
    at oracle.jbo.PCollException.throwException(PCollException.java:36)
    at oracle.jbo.pcoll.OraclePersistManager.createTable(OraclePersistManager.java:889)
    at oracle.jbo.pcoll.OraclePersistManager.queryNextCollectionId(OraclePersistManager.java:1424)
    Caused By: java.sql.SQLSyntaxErrorException: ORA-01031: Insufficient Privilege
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    I already research this reason and I found note.
    ORA-01031: insufficient privileges JBO-28006: Could not create persistence table PS_TXN_seq [ID 1245894.1]
    This Note's solution - add privileges (create table, create index, create sequence) to sales_runuser.
    sales_runuser is ADF runtime user.
    But we already have database object (ps_txn, ps_txn_seq) in sales_user.
    sales_user is database object owner.
    Our DBA don't want to add privileges (create table, create index, create sequence) to sales_runuser.
    SO we tried grant db object and created synonym.
    Script is below.>>
    1.connect sales_ser
    2.grant all on ps_txn, ps_txn_seq.
    3.create synonym sales_runuser.ps_txn, sales_runuser.ps_txn_seq for sales_user.ps_txn, sales_user.ps_txn_seq.
    restart Middleware Server.
    But Error message still display.
    We want to access synonym in ADF run user.
    Is it possible or impossible?
    Pls, Let me know correct answer.

    You can set the configuration property jbo.server.internal_connection to direct the state management to use a different database connection than your application. Maybe this helps?
    Documentation: http://docs.oracle.com/cd/E12839_01/web.1111/b31974/bcstatemgmt.htm#ADFFD1307
    - Joonas

  • JSF error messages

    has anybody successful using JSF error messages. Im using JSF portlet framework to display error msgs using h:messages tag. Im able to display validation/conversion errors with h:message tag.
    Im unable to display general messages that are result of an application exception. Has anybody ever done that?
    Help would be appreciated.
    Thanks
    -Sri

    If I understand you correctly ...
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage message = new FacesMessage("New Message");
    context.addMessage(null, message);

  • JSF: Error Message are not getting cleared

    Hi,
    I am facing some problem with error messages in JSF.
    Here is what I am doing
    1. User submits a form, server validates and sends back the error to the client error message added to Faces Context.
    2. User checks the messages, changes the input and submits. assuming everything is correct now.
    3. On server, it validates and writes data to response for download using the following code.
    FacesContext faces = FacesContext.getCurrentInstance();
        HttpServletResponse response = (HttpServletResponse)faces.getExternalContext().getResponse();
        DownloadResponse.sendDownload( response, is, fileName );
        faces.responseComplete();
      }4. It shows the download popup to download the file. The problem here is that error message are not getting cleared off. User can still see the error message on the screen.
    It seems I am missing something in JSF req-response life cycle. Anyone please point out the mistake.

    SudhirMongia wrote:
    4. It shows the download popup to download the file. The problem here is that error message are not getting cleared off. User can still see the error message on the screen. Wrong. The problem is that the view is not rerendered, which makes sense because you are not sending view content to the browser but your file.
    Your real question probably is: how do I cause a file download and still rerender the view afterwards to show the results? To that I myself do not have the answer unfortunately, but I have seen that question come by a few times already, so doing some searches in these forums may yield you an answer.

  • JSF error message - retain ?

    HI all,
    i am using jsf <h:messages />. its getting cleared, if i click a commandlink which shows a popup div. That popup div is rendered in a bean.
    How to retain the error messages after getting the response.
    Samething happened when i change a select option which processes in valueChangeListener. After Changes made in Select option (getting the response) how to retain the error message ?
    Help me. Thanks in advance.
    Srinivas.R

    Thanks for ur replies.
    i am using tomahawk div (t:div) to show a
    small popup div when the user clicks a link. for
    changing Serial id (for my application) which calls
    backing bean for rendering & perform action
    regarding.
    Also when the Country select option changed, i
    am populating relavant state list in another select
    component, its internally calling backing bean. this
    also clears the error messages.
    How to retain the error messages without changing
    this business.At this point you are pretty much outside the regular functionality provided by JSF. I still think the best approach will be to eliminate the reloading of the page. You could accomplish this via AJAX. There are a few libraries out there for using AJAX with JSF; ajax4jsf for sure and I think JBoss Seam, RichFaces, ICEFaces, Trinidad and I'm sure I missed some.

  • JSF error message: Automatic prompting for file download

    This is a weird problem. I have a JSF application wherin I popup a new window on a submit button.
    The window opens a test.jsf page that redirects the output to a servlet1.
    Servlet then based on some parameters does a sendRedirectI() to different servlets out of context.
    Now the issue is that when the output is redirected to out of context servlet, that returns a file download.
    If in IE browser, if one does not do a setting of "Automatic prompting for file download", this window that I had opened on submit buttton vanishes in a jiffy. If the IE setting is done, it shows the file download correctly.
    I would want to show the user some kind of message by which he/she understands that this IE setting has to be done.
    I have tried several ways:
    1. Javascript: window.onbeforeunload on the test.jsf so that when the window unloads i can show some message. But since test.jsf forwards to servlet1, the html page generated does not show my script.
    2. I also tried checking if some windows registry can help me understand the setting.
    3. I tried writing in response object the javascript and then redirecting it to servlet out of context. But I guess sendRedirect() does a new request, so this did not help.
    Can anyone help? I am not sure if I am able to explain my problem correctly.
    Yani

    Here is the result.I used your code and it worked fine with IE setting Enabled. But when I tried to access the download servlet after opening a new window, it doesnt download the file.

  • JSF Error Message not displaying/popping up in clickToEdit table

    I have an entity object validation rule which displays a message when the validation fails. I have set the Validation Failure Severity as an Informational Warning. I do want to user to continue if he is happy to do so. Everything works fine when testing in the model project.
    Now, in the ViewController project when I add the View Object to a page as a af:table component the Warning message only comes up if the tables Behavior/EditingMode property is equal to editAll AND if the inputText Behavior/AutoSubmit property is false. It actually seems like this is the only time the validation is performed…
    If I change the tables Behavior/EditingMode property to be clickToEdit the warning message does not come up anymore?
    If I change the inputText Behavior/AutoSubmit property equal to true, then the warning messagewill not come up in ether of the editAll or clickToEdit table. A orange border will be displayed in the editAll table, but no message?
    What is the difference, and how can I get the warning message to be displayed when the table is clickToEdit table?
    I am using JDeveloper 11.1.1.3 PS2
    Thanks

    Hi
    Just to mention. It seems this issue was a bug in 11.1.1.3, and it is fixed in 11.1.1.4...
    I still don't know how to get around the problem in 11.1.1.3, but atleast it is working in the latest version.

  • Dynamic Error Message from a Bundle Showed in a rich:fileUpload

    Hello.
    There is a way to show a dynamic error message from a bundle (i.e, There is a problem in the word {0} in line {1}.) in a rich:fileUpload after the Managed Bean method in fileUploadListener="#{MyManagedBean.myMethod}" attribute was performed? That's because the error message parameters are discovered only after the MyManagedBean.myMethod execution.
    As far I know, I'm able only to show a static message with transferErrorLabel="#{myBundle.myErrorMessage}" attribute.
    Here is my rich:fileUpload component code:
      <rich:fileUpload id="upload"   
         fileUploadListener="#{PlanilhaManagedBean.importar}"  
         maxFilesQuantity="100" 
         immediateUpload="true" listHeight="130" acceptedTypes="xls"  
         addControlLabel="#{bundle.geralProcurarArquivo}" 
         ontyperejected="alert('#{bundle.geralExtensaoInvalida}')"    
         cancelEntryControlLabel="#{bundle.geralCancelar}" 
         clearAllControlLabel="#{bundle.geralLimparTudo}"     
         clearControlLabel="#{bundle.geralLimpar}" 
         doneLabel="#{bundle.geralArquivoTransferidoComSucesso}"  
         progressLabel="#{bundle.geralTransferindoArquivo}" 
         stopControlLabel="#{bundle.geralParar}"  
         stopEntryControlLabel="#{bundle.geralParar}" 
         transferErrorLabel="#{bundle.geralErroNaTransferenciaDoArquivo}" /> Any idea?
    Thanks in advance.

    Hi, BalusC. Thanks for your reply.
    I already tried that. I put a navigation-rule in faces-config.xml to the same page of the rich:fileUpload, but the rich:fileUpload component doesn't starts a get or a post request. So the navigation-rule is ignored and the page wasn't rendered again.
    I also tried to put the <a4j:support ...> in the rich:fileUpload to re-render the <h:messages ...> component, but didn't work too. The <h:messages ...> wasn't re-render.
    Thanks in advance.
    Edited by: reolca on May 10, 2009 5:40 AM

  • Customizing Business Components Error Messages sample

    hi i have been following this sample and this: http://jobinesh.blogspot.de/2011/03/customizing-business-components-error.html,i have follow the instruction but its not working win my application i re-create the problem,i have check with the working sample i have done everything i can see be done in the working sample but mine still not work can somebody check what am i missing i have upload in this hostfile i used hr schema http://www.datafilehost.com/download-9d37bd8a.html. am using jdeveloper 11.1.1.6.0
    i have created the two class and one of them
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
                 version="11.1.1.59.23" id="DataBindings" SeparateXMLFiles="false"
                 Package="view" ClientType="Generic"
                 ErrorHandlerClass="view.CustomErrorHandler"
    what else am i missing what have i not done,i know am mssing something but don't know what,the sample does not show step by step implementation,it just have a working solution,if somebody know step by step  implementation can you pls explain to meEdited by: adf009 on 2013/03/12 12:09 PM
    Edited by: adf009 on 2013/03/20 2:44 PM

    is not working in my application,in my application am checking primary key constraint not unique constrains like in sample is there a diffirent
    this is my class,i have re-create the problem http://www.datafilehost.com/download-9c3e5f17.html
    import java.util.ListResourceBundle;
    public class CustomMessageBundle extends ListResourceBundle {
        private static final Object[][] sMessageStrings =
            new String[][] { { "UAM_ORGUSERSLINK_PK",
                               "Hello, The user Already Belong to this organisation" }, };
        /**Return String Identifiers and corresponding Messages in a two-dimensional array.
        protected Object[][] getContents() {
            return sMessageStrings;
    i have follow steps in the sample
    am geting this log error,instead of geting my error message
    <XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.servlet.ServletException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[assist03 3099 ].
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: oracle.jbo.TooManyObjectsException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25013. Error message parameters are {0=oracle.jbo.Key[assist03 3099 ]}
         at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:604)
         at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:613)
         at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1020)
         at oracle.jbo.server.EntityCache.replaceForAltKey(EntityCache.java:1820)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:4094)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3676)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3301)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
         at ecadastre.gov.za.uam.model.entities.UamOrganisationUserImpl.setUsername(UamOrganisationUserImpl.java:137)
         at OrgDetails.onRowCreate(OrgDetails.java:2057)
         at OrgDetails.addMember(OrgDetails.java:1978)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
         at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
         at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 38 morehi can anybody help me please
    Edited by: adf009 on 2013/03/26 4:59 PM

  • Customising Error Messages in JHeadstart

    Hi All,
    I would like to customise some ADF JSF error message. I've got the error - JBO-25013: Too many objects match the primary key oracle.jbo.Key[ASGARD CBD ]. but would like to replace it with "Row already exists with same Cmp Id,Cmp Tran Type".
    I've followed the steps outlined in http://download-west.oracle.com/docs/html/B25947_01/bcadvgen008.htm#sm0462 and after recompilation and reganeration, the old error message still appears. Can you guys please help me with it? Thank you and have a nice day.
    Kind Regards,
    John

    Hi,
    Thank you for your reply but I'm a bit confused here.
    First, when you say 'open your JHS-Application definition generator' do you actually mean JHS Application Definition Editor (JADE)?
    Under the service node? I cannot see any 'service node' anywhere inside JADE. But I can see 'NLS Resource Bundle *' with the value of 'PAM0840_From_Designer.view.ApplicationResources'.
    Go to the above path? What above path do you mean?
    Uncheck OVERRIDE NLS entries? Do you mean uncheck the 'Override NLS Resource Bundle Entries?*' inside JADE under the 'Internationalization' section?
    Thank you for your advice.
    Kind Regards,
    John

  • Field Service - STAR program is completing with Error message

    Hi
    Synchronize Territory Assignment Rules (STAR) program is getting completed with following error message:
    Parameters used were 'Service' with a Run mode as 'Total Refresh'. It errors out with 'No data found' error message. (Log file appended below)
    Can someone help to find out root cause?
    Regards,
    CRM Foundation: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    JTY_STAR module: Synchronize Territory Assignment Rules
    Current system time is 29-APR-2011 15:01:48
    **Starts**29-APR-2011 15:01:48
    **Ends**29-APR-2011 15:01:55
    100 : ORA-01403: no data found
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 29-APR-2011 15:01:55
    P.S. Reposting - It looks like I had posted in wrong category earlier. Sorry!. Re-posting again with CRM category for Field service this time.

    As per the SR we had to laod all the old rates, as this was the beginning of a new fiscal year.

  • ADF-BC/JSF How to display acustom error message from a backing bean

    Hi all
    Can anybody provide an example of how to manipulate the list of error messages from a JSF backing bean.
    In my code I use a different navigation case and this directs the user to the page displaying the error message but I am sure that there must be a more elegant way.
    Thanks in advance
    Thanassis

    Thanks Kris
    I think you 've put me on the right track here, it's just that in my case what I really want to do is prevent my users from editing records not belonging to their own group. This is done via a selectOne table component and then the backing bean code tests if the value #{row.UserGroup} matches the #{bindings.LoggedOnUserGroup.inputValue}. If the values are equal then the beans returns the navigation case to the edit page. Otherwise it returns the navigation case for the "cannot edit" page.
    So what I am thinking is to return null and somehow raise the right kind of exception in order to display the error in the af:messages tag.
    Thanassis

  • Validation error message in JSF 1.2

    I am testing my Web application inside Tomcat 6.0.2 and using JSF 1.2. I was surprised to see that validation error messages do not only display the custom error message, but also the id tag and a "Validation Error: " text. For instance, if an input text component has the required property set to true and the user does not fill in value, the following error message will be displayed on page submiision: "hello:test: Validation Error: Value is required." instead of just "Value is required.". I am wondering if there is a way to silence the id tag and the "Validation Error: " text. hello:test id tag reflects the fact that the form has an id of "hello" and the input text component an id equal to "test".

    Hello
    I'm quite new to this technology. Would like to know how can we replace the 'annoying component id' with label while generationg validation/conversion error message.
    E.g:
    'for:compID' some error message
    must be formated as
    'compLabel' some error message
    I happened to know that this feature is supported in JSF 1.2 impl. But didn't work for me with Sun RI.Can any body give me some sample code snippet for the same
    Thanks
    Jobinesh

  • Error message when trying to excute jsf examples or my own code

    Hi, Any help would be deeply appreciated. I am trying to run code I've written to test jsf on WSAD and am getting the following runtime error when I deploy to the test environment. I get this error message even when I try to run the examples supplied with the EA3 version of JSF (when I import the source into my java source folder and compile (rather than using the precompiled imported classes).
    [4/25/03 11:09:29:170 EDT] 5d874f9b WebGroup E SRVE0026E: [Servlet Error]-[Cannot find FacesContext]: javax.servlet.jsp.JspException: Cannot find FacesContext
         at javax.faces.webapp.FacesTag.doStartTag(FacesTag.java:209)
         at org.apache.jsp._Input._jspService(_Input.java:147)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    <CUT REMAINDER OF ERROR MESSAGE>
    Thanks in advance for your help,
    sanjay

    Hi,
    I also received a message like you. In my case I forgot to redirect the
    user to a address which contains /faces/ part. Like that
    http://localhost:8080/ims/faces/newinventory.jsp
    Also You have to check your web.xml file. These lines have to be there.
    - <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    - <!-- Faces Servlet Mapping
    -->
    - <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Omer

Maybe you are looking for

  • Brand new iPad fails sync due to "computer no longer authorized"

    Hello all, I have a brand new iPad 64GB that I can't sync to my existing iTunes library.  Every time I try, I get an error that says, "The iPad could not be synced because this computer is no longer authorized for purchased items that are on this iPa

  • Problem in MRP run with Project/WBS Element

    Dear PP Gurus, I want to run MRP thro Project/WBS Element. I have created WBS Element & WBS BOM for Material. Then created sales order for that material and assign WBS element to sales order. Maintain Planning Strategy 21 ( Make to Order/Project) for

  • Clean Lion install, keeping Time Machine history?

    I have a 2011 unibody MBP, and have been gathering kludge on it for some time, and on previous machines (2007 MBP, 2004 Powerbook) whose data I've migrated over using the Migration Assitant. I'd like to, at some point soon, do a fresh install of Lion

  • How to check when DB is Restarted

    Hi all, I have a small problem. I am doing database transactions using a class which will run continuously in the background of my main application(From which I am calling the functions of former class and do DB operations). In the data base class co

  • SAP Implementation Certificate

    Hi, One of the SAP training institute in Bangalore makes us write the SAP- Implementation certification exam with the cost of INR 5000 after there training. Is there any use of Implementation certificate and please guide can we go for the Implementat