JSF, NetBeans and customizing of Standard Validation Errors

Hello together,
i want to use german Standard Validation Errors via a own .properties File:
1.
Here is my faces-config.xml ( the entries are uncommented ! ):
<faces-config>
<application>
<locale-config>
<default-locale>de</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
*<message-bundle>alles.mymessages</message-bundle>*
</application>
</faces-config>
2.
Here is mymessages.properties-File in package alles:
javax.faces.validator.NOT_IN_RANGE=Das angegebene Attribut liegt nicht zwischen den erwarteten Werten {0} und {1}.
javax.faces.validator.NOT_IN_RANGE_detail="{2}"\:Eingegebener Wert liegt nicht im erwarteten Bereich von {0} bis {1}.
javax.faces.validator.LongRangeValidator.LIMIT=Validierungsfehler
javax.faces.validator.LongRangeValidator.LIMIT_detail=Eingegebener Wert kann nicht in den korrekten Typ umgewandelt werden.
javax.faces.validator.LongRangeValidator.MAXIMUM=Validierungsfehler
javax.faces.validator.LongRangeValidator.MAXIMUM_detail="{1}"\:Wert ist gr\u00F6\u00DFer als das erlaubte Maximum"{0}".
3.
Here the part of the JSF-View with the Validator:
<ui:textField binding="#{WorkTypeEdit.textFieldBeschartKzSoll}" converter="#{WorkTypeEdit.bigIntegerConverter1}"
id="textFieldBeschartKzSoll" required="true" style="height: 24px; width: 48px" validator="#{WorkTypeEdit.longRangeValidator1.validate}"/>
The application still shows the standard englisch validation error text. What is wrong here ?
I' am using NetBeans 5.5.1 with VWP and the deploment is to Glassfish server.
Thanks a lot.
HJA

Hello Raymond,
i did some coding and create additional a custom validator:
My JSF-View part:
<ui:textField binding="#{WorkTypeEdit.textFieldBeschartKzSoll}" converter="#{WorkTypeEdit.integerConverter1}"
id="textFieldBeschartKzSoll" maxLength="2" required="true" style="height: 24px; width: 48px" *validator="#{MyValidation.validateInput}">*
*<f:validateLongRange minimum="1" maximum="9"></f:validateLongRange>*
</ui:textField>
My custom validator in Myvalidation class:
public void validateInput (FacesContext facescontext, UIComponent component, Object value) throws ValidatorException
long min = 0, max = 0;
Locale locale = facescontext.getViewRoot ().getLocale ();
String mb = facescontext.getApplication ().getMessageBundle ();
ResourceBundle rb = ResourceBundle.getBundle (mb, locale);
Validator[] validator = ((UIInput) component).getValidators ();
for (int i=0; i < validator.length; i++)
if (validator[i] instanceof LongRangeValidator)
LongRangeValidator lv = (LongRangeValidator) validator;
long lvalue = Long.valueOf ((String)value.toString ());
min = lv.getMinimum ();
max = lv.getMaximum ();
if (lvalue < min || lvalue > max)
((UIInput) component).setValid (false);
*String message = rb.getString ("javax.faces.validator.NOT_IN_RANGE");*
*String messageDetail = rb.getString ("javax.faces.validator.NOT_IN_RANGE_detail");*
*facescontext.addMessage (component.getClientId (facescontext), new FacesMessage (FacesMessage.SEVERITY_ERROR,message,messageDetail));* }
What happen now is, at first i get the german message because of rb.getString........ so the locale is working
and then the englisch message follows in the message component.
Sorry that i take your time so long...
HJA

Similar Messages

  • Oracle Devs -  "Customizing a Standard Validator Message" tutorial moved?

    Guys and Gals,
    Page 366 of the Oracle JDeveloper 11g Handbook: A Guide to Oracle Fusion Web Development references a "Customizing a Standard Validator Message" tutorial on java.sun.com.
    It is nowhere to be found. Java.sun.com redirects to another oracle webpage, and the JDev tutorials do not seem to cover this material.
    I'm not looking to add my own custom validator, but rather modify the default JSF error message. i.e. Change standard validator text from "Too many objects match the primary key oracle.jbo.key[<mypart>]" to "Part <mypart> already exists.".
    Can anyone reference another tutorial for this topic?
    Thanks in advance.

    HaHa! Finally found something similar. Sweet sauce.
    http://netbeans.org/kb/docs/web/convert-validate.html#08

  • Customizing a Standard Validator Message

    Hi!
    Have anyone of you tried this tutorial ?
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/custommessage.html#05
    i think i'm doing everything like they say and it's not working i still get
    Validation Error: Value is required.
    hmmm.

    Any suggestions, highlights ?
    after all night i think i'll create my own validators based on staticText components. Blast!
    Message was edited by:
    dElay

  • Changing standard Validation Error Messages

    Hi All,
    Does anyone know how to change the standard SAP-messages
    like: Decimal value 100 is too large for totalDigits 4
    or: Accuracy 3 exceeds fractionDigits 2
    Thanks,
    Jeschael

    Hi Jeschael,
    I have exactly the same problem. I guess, I'll have to change the datatype to String and write my own  parsing functions for input.
    What have you done?
    Regards,
    Jon

  • Standard and Customer Tasks

    Hi Experts,
    What is the main Difference between standard and customer taks.
    Both are created using transaction PFTC.
    So what is the significance of Standard Tasks.
    Thanks,
    Points will be rewarded for all helps.

    SAP documentation states the following differences between standard and customer task
    Standard Task:
    Cross-client, any plan version, no validity period
    Customer Task:
    Client-specific, plan version-specific, validity period
    They have also mentioned
    "To implement your own requirements, use only standard tasks. There will no longer be functional enhancements for customer tasks."
    So preferable to use Standard tasks for all developments..
    Thanks & Regards,
    Prasath N

  • LOV selection fails when there are validation errors on the base page

    Hi
    I have lovs and some other required fields on a page . If there are any validation error on one of those text fields and if I open the LOV (not related to the text fields) and tries to select
    an item from the LOV search results, it doesn't do it until unless I go back to the base page and correct all the validation errors on the text fields eventhough those text fields have nothing to do with the LOV.
    Any suggestion is appreciated.
    Thanks
    Anwar

    I am on Anwar's team, and I've been dealing with the same problem, although on a different page.
    The JSPX for a contrived example is below. I can provide backing bean code, if needed.
    The form contains two LOVs. Both fields are required. If you leave both fields blank and click Continue, you get a red box around both fields and error messages are displayed. If you then click the magnifying glass to select from the first LOV, the LOV pop-up is rendered. However, you cannot make a selection, either by double-clicking a line item or by clicking OK (the OK button has no effect). All you can do is cancel.
    Interestingly, the act of clicking the magnifying glass on the first LOV gets rid of the red box around that field. So, once you cancel out, the second LOV actually does work. If there were more than two fields on the page, that wouldn't happen. The problem seems to be that the LOV doesn't work unless there are no validation errors on the page other than for the LOV which is being invoked.
    As you can see, immediate="true" is set on both LOVs. The behavior is the same whether this is true or not.
    I'm left thinking there must be something obvious that we're missing... but none of us can see it.
    Thanks,
    KEN
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document title="Add Item">
          <af:form>
            <af:panelGroupLayout>
                <af:panelHeader text="Header">
                    <af:panelFormLayout>
                        <af:inputListOfValues label="Id" searchDesc="Search" popupTitle="Supplier Id"
                                              simple="true" required="true" id="supplierId"
                                              model="#{viewScope.AddItemBackingBean.supplierIdListOfValuesModel}"
                                              value="#{viewScope.AddItemValuesBean.supplier.id}"
                                              autoSubmit="true" immediate="true"/>
                        <af:inputListOfValues label="Description" searchDesc="Search" popupTitle="Supplier Id"
                                              simple="true" required="true" id="supplierDescription"
                                              model="#{viewScope.AddItemBackingBean.supplierDescriptionListOfValuesModel}"
                                              value="#{viewScope.AddItemValuesBean.supplier.description}"
                                              autoSubmit="true" immediate="true"/>
                        <f:facet name="footer">
                            <af:panelGroupLayout layout="horizontal" halign="right" >
                              <af:commandButton text="Continue"
                                                actionListener="#{viewScope.AddItemBackingBean.continueAction}"
                                                id="continueButton" />
                            </af:panelGroupLayout>
                        </f:facet>
                    </af:panelFormLayout>
                </af:panelHeader>
            </af:panelGroupLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

  • How to render validation error messages with a specified language.

    in my jsf project, i want to display validation error messages in Turkish. But due to the performance considerations we keep our servers language setting in English.
    how can we manage..i will be very appreciated with your guiding.
    note: we have already tried the solutions with defining our local and supported local language on faces-config.xml . it did not work.

    there is only one difference. my development environments(my local server) local setting is Turkish. but the Application servers local settings is EnglishSounds like you defined application supported locales but no application default locale.
    If there is no match of requested locale and supported locale, application default locale will be used.
    If application default is also not available JVM default locale will be used.
    This would explain the differences.
    (Mojarra)

  • Report Still Runs When Validation Errors Occur

    Hello.
    I'm using Apex 4.2.1 against Oracle 11gR2 and Oracle App Server (mod_plsql).
    My Set-Up:
    I created an application containing a "classical" type report that is driven by a WHERE clause. I also have two date fields in an HTML region on this same page. These fields are used in the report WHERE clause. And the report is run by clicking a GO button on the page.
    Here's what the WHERE clause looks like:
    where table_date >= to_date(nvl(:P1_BEGIN_DATE, '01-jan-1900'), 'dd-mon-yyyy') and table_date <= to_date(nvl(:P1_END_DATE, '31-dec-2300'), 'dd-mon-yyyy')This is designed so that, if any of the date fields are NULL, then the minimum or maximum date will be used for the query.
    These date fields should always have a value when the report is run, and so, I created two after submit NOT NULL validations, one for each of the date fields. If any of these fields is NULL when the GO button is clicked, an error message appears in the notification area at the top of the page.
    Looking at all this, you might realize (as I do) that the nvl() functions in the above WHERE clause are redundant. After all, the validations are supposed to prevent these date fields from becoming NULL when the report is run. In any case, this set-up does work ok and points out a strange behavior with Apex.
    My Problem:
    If any of these validations throws an error message, the report still runs. In previous versions of Apex, if a validation (or, for that matter, any error) is thrown, the report remains static. The report region does not disappear and the report is not invoked until the user corrects the error.
    If both date fields are filled, I click the GO button and the report correctly returns, say, 100 rows. But when I empty both of the date fields and click GO, the validation errors appear and the report still runs, now returning the maximum number of rows, say, 1000.
    What I've Tried:
    I added a Branch-to-Page with condition "No Inline Validation Errors Displayed" so that the page branches back to itself only when no errors appear inline and I changed the validation error messages to appear inline. This has no effect.
    And if I remove the nvl() functions from the above WHERE clause, then, when validation errors are thrown, the report data is replaced with the "No data found" message. All very disconcerting to my users.
    Does anyone know why Apex reports are still run in presence of validation errors?
    And how do I get around this behavior?
    Thank you for any help.
    Elie

    Hi, Scott.
    Thank you for your help/suggestions.
    I like your first suggestion: creating a DA on the GO button that causes my report region to refresh only if both begin and end date fields are populated. And so, I tried doing this.
    My DA looks like:
    Event: Click
    Type: Button
    Button Name: P1_GO
    Condition: - No Condition -
    Action: Refresh
    Fire When Event Result Is: True
    Fire On Page Load: Checked
    Selection Type: Region
    Region Name: People Count
    Event Scope: Static
    Condition Type: PL/SQL Function Body Returning A Boolean
    My PLSQL Code in Expression 1:
    IF ( (:P1_BEGIN_DATE IS NOT NULL) AND (:P1_END_DATE IS NOT NULL) ) THEN
      RETURN TRUE;
    ELSE
      RETURN FALSE;
    END IF;My P1_GO button was automatically changed to "Controlled by Dynamic Action". And "Execute Validations" for this button is set to "Yes".
    Unfortunately, this DA does not work. When both date fields are filled, clicking the GO button does not cause the report (nor anything else) to refresh. However, if I navigate to another application tab and then return back to my report page, I notice that the report does refresh at that point. But clicking the GO button has no effect.
    And when either or both of the date fields is NULLed, clicking the GO button does not cause my validation error messages to appear.
    By the way, I do agree with your comment about the NVL() functions. As I had mentioned in my original post, I also realize that, with my WHERE clause, checking for NULLs in my date fields is not needed. Still, if users fail to fill these date fields, then it would be useful to remind users that these fields should be populated. This is why having the validation checks are still needed despite my WHERE clause.
    In any case, would you know what I am doing wrong here with this Dynamic Action?
    Also, with respect to my first question, why is Apex causing my report to refresh when validaion errors have occurred? This did not occur prior to version 4.2.
    Thank you very much for any further help/advice.
    Elie

  • Validation Error Message in OBPM 10GR3 Presentations

    Hi all,
    I have a presentation which has some fields as REQUIRED Fields... For e.g. the From Date field is required...
    I select "YES" for the Required option in the properties tab for that field in the presentation and also put a Validation Error Message which says " From Date Required".
    I thought that the Validation Error Message would show up when the date is no selected or filled..
    But instead the name of the variable used showed up.. i.e. TestObjectFromDate..
    Why is that so?
    How can I make the Validation Error Message show up instead?

    No this sounds odd, but you might find it's easier not to use the "Required" property for BPM Object presentation text fields.
    Try making the Submit button on the form invoke a method (instead of the default "submit" action). In the method, try this:
    if someField = null || someField = "" then
        // set the background of the field to red
        setBackgroundColor this
                  using componentId = "someFieldName",
                             color = "Red"
        focus("someFieldName")
        setVisible this
          using componentId = "errorTextField",
              visible = true,
              collapsed = false
        someErrorText = "Please enter a value in the field highlighted below"
    else
        submit("Submit")
    endThis would put your cursor in the offending field and make its background red. It also would make a text field visible on the presentation and set its value.
    This assumes that "someErrorText" is a String attribute of your BPM Object that is placed somewhere on the UI.
    Dan

  • 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

  • Validation error in JSF

    Hi,
    In my sample project the UI is powered by JSF, overall application architecture is J2EE.
    In a scenario,we have a page where we toggle between radio buttons and page reloads everytime we toggle, with different forms.
    In specific we have three radion buttons namely x ,y and z.
    When the default page loads, x is selected and when i shift my selection to y the page reloads with different forms and no error is seen.
    Next when i select z page reloads with different forms but error is displayed on the top of the page as below
    "Validation error:Value is not valid."
    Once the error is dispalyed on the page the error continues to remain eventhough we revert back the radio selection.
    In the above case jsp calls the js and the snippet of the same is as below
    JSP snippet:
    <TD><h:selectOneRadio styleClass="selectOneRadio" id="radio1"
    value="#{sessionScope.sameJam}"
    onclick=return jump_onclick(this,event);>
    <f:select itemValue="x"
    itemLabel="#{labels.label_x}" />
    <f:select itemValue="y"
    itemLabel="#{labels.label_y}" />
    <f:select itemValue="z"
    itemLabel="#{labels.label_z}" />
    </h:selectOneRadio></TD>
    JS snippet:
    function jump_onclick(thisObj,thisEvent){
    thisObj.form.submit();
    Java code:
    protected HtmlSelectOneRadio getRadio1() {
    if (radio1 == null) {
    radio1 = (HtmlSelectOneRadio) findComponentInRoot("radio1");
    return radio1;
    Thanks in advance.

    Re-wrote the below code in jsp
    <h:form rendered="#{sS.selectedItem =='x'}" styleClass="selectOneRadio" >
    <h:selectOneRadio rendered="#{sS.selectedItem =='x'}" >
    <f:selectItem itemValue="x" itemLabel="labelx" />
    <f:selectItem itemValue="y" itemLabel="labely" />
    <f:selectItem itemValue="z" itemLabel="labelz"/>
    </h:selectOneRadio>
    </h:form>
    <h:form rendered="#{sS.selectedItem =='y'}" styleClass="selectOneRadio" >
    <h:selectOneRadio rendered="#{sS.selectedItem =='y'}" >
    <f:selectItem itemValue="x" itemLabel="labelx" />
    <f:selectItem itemValue="y" itemLabel="labely" />
    <f:selectItem itemValue="z" itemLabel="labelz"/>
    </h:selectOneRadio>
    </h:form>
    <h:form rendered="#{sS.selectedItem =='z'}" styleClass="selectOneRadio" >
    <h:selectOneRadio rendered="#{sS.selectedItem =='z'}" >
    <f:selectItem itemValue="x" itemLabel="labelx" />
    <f:selectItem itemValue="y" itemLabel="labely" />
    <f:selectItem itemValue="z" itemLabel="labelz"/>
    </h:selectOneRadio>
    <h:commandButton value="submit" action="#{sS.action}" />
    </h:form>Below is my java code in SS class:
    package mypackage;
    public class SS {
        private String selectedItem;
    public SS(){
    String selectedItem = "x";
        public void action() {
            System.out.println("Selected item: " + selectedItem);
        public String getSelectedItem() {
            return selectedItem;
        public void setSelectedItem(String selectedItem) {
            this.selectedItem = selectedItem;
    }Result is:
    Instead of getting 3 radio buttons, i get a submit button my page.
    Please correct me if I am wrong somewhere.

  • Error Landed Cost - Customs rate not valid (SAP B1 9.0 PL10)

    Hello experts,
    We would like your advise on the following issue.
    We are currently using SAP Business One 9.0 (PL10) and we are trying to add a Landed Cost document, but the following error occurs:
    Customs rate not valid.  [Landed Costs - Rows - Duty Rate]
    The SAP Note: '1928862 - An Error occurs when adding Landed Costs', which describes the error, is listed in the References section of PL09 and PL10 upgrade. However, the error still occurs.
    Any advise on how to solve this issue?
    Kind Regards,
    Vassilis Korolis

    Hi,
    Is it happening for same scenario has mentioned in SAP note? If yes, raise ticket to SAP support.
    Thanks & Regards,
    Nagarajan

  • JSF select one menu keeps giving me summary=Validation Error: Value is not

    Hi all,
    I'm using five select menus in a JSP file.
    the other four are populated whenever the first menu changes its value (ValueChange event).
    after the menus are populated, i select a item in each menu and submit it.
    but when i submit the form i get the following error:
    E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=form2:menu61,summary=Validation Error: Value is not valid)
    [12/1/06 11:25:58:541 EST] 00000030 jsf           E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=form2:menu5,summary=Validation Error: Value is not valid)
    [12/1/06 11:25:58:557 EST] 00000030 jsf           E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=form2:menu6,summary=Validation Error: Value is not valid)where menu61, menu5, menu6 are the menus on the form.
    someone pls throw some light on this.
    -Seshu

    Hi,
    Since you are using a request scoped bean things work like this:
    1. You fetch your list, for example from a database, with a bean that is put in request scope.
    2. You populate your select component on the jsp page.
    3. You select an item in the select component and submits the form.
    4. When the form is submitted the selected value has to be validated against the list it was chosen from. Since you retrieved the list from a bean in request scope the list isn't available when you submit the form and the getter for the list probably returns an empty list which gives you the validation error.
    What you have to do is to get the list the item was selected from when submitting the form. This can be done in different ways. Either you keep your list in the session between the requests or you get the list from your data storage again. This is a horrible "feature" with JSF and from what I know it's impossible to turn this validation off.
    /klejs

  • Usage of ADF's validation and custom validation together ??

    Hello all..
    My apologize if this query already in place...
    Well, I've a situation where which I need a way to combine/club my application specific validation error messages with the ADF component's messages.
    For example:
    1) ADF's component validator:
    <af:selectInputDate label="#{msg.dob}" value="#{bean.DOB}" showRequired="true" >
    <f:convertDateTime type="date" pattern="yyyy-MM-dd"/>
    <af:validateDateTimeRange minimum="#{action.minDate}" maximum="#{action.todayDate}" notInRangeMessageDetail="#{msg.dateRange}" />
    </af:selectInputDate>
    2) Also, I've my business specific custom validations perfomed on click of action button on my form. Where I use ..
    public void addFacesMessage(Severity msgSeverityType, String message)
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msgSeverityType, message, message));
    for adding the error messages to context -
    As part of the life cycle, the validators in the form level is fired first and I don't have scope for the request processing/action in order to run thru my buisness method. So always my component's error messages are fired alone - This way my custom validations are not invoked. Is there a way that we can combine both set of error messages together and render them as a common error msg list using <af:messages> tag ?
    If so, please provide me the link to the article!!!
    Your help on this context will be very helpful....Thanks in advance!!!

    Hello all..
    My apologize if this query already in place...
    Well, I've a situation where which I need a way to combine/club my application specific validation error messages with the ADF component's messages.
    For example:
    1) ADF's component validator:
    <af:selectInputDate label="#{msg.dob}" value="#{bean.DOB}" showRequired="true" >
    <f:convertDateTime type="date" pattern="yyyy-MM-dd"/>
    <af:validateDateTimeRange minimum="#{action.minDate}" maximum="#{action.todayDate}" notInRangeMessageDetail="#{msg.dateRange}" />
    </af:selectInputDate>
    2) Also, I've my business specific custom validations perfomed on click of action button on my form. Where I use ..
    public void addFacesMessage(Severity msgSeverityType, String message)
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msgSeverityType, message, message));
    for adding the error messages to context -
    As part of the life cycle, the validators in the form level is fired first and I don't have scope for the request processing/action in order to run thru my buisness method. So always my component's error messages are fired alone - This way my custom validations are not invoked. Is there a way that we can combine both set of error messages together and render them as a common error msg list using <af:messages> tag ?
    If so, please provide me the link to the article!!!
    Your help on this context will be very helpful....Thanks in advance!!!

  • SelectOneListBox and validation error

    Hi,
    I have a validation error using a selectOneListbox. I read a lot of topics in this forum, but I still can't solve my pb.
    This is my JSP:
    <ice:selectOneListbox size="1" styleClass="totalWidth" value="#{controller.selectedCmsName}" >
        <f:selectItems value="#{controller.cmsListItem}"/>
    </ice:selectOneListbox>This is the getter/setter for cmsListItem:
    private List cmsListItem;
    public List getCmsListItem()
        cmsListItem = new ArrayList();
        try {
          cmsList = /* a method which returns an array */
          for (int i = 0; i < cmsList.length; i++) {
            cmsListItem.add(new SelectItem(cmsList.getName(), cmsList[i].getName() + " (" + cmsList[i].getUsername() + ")"));
    } catch (Exception e) {
    return cmsListItem;
    public void setCmsListItem(List cmsListItem)
    this.cmsListItem = cmsListItem;
    Same thing for selectedCmsName:
    private String selectedCmsName;
      public String getSelectedCmsName()
        return selectedCmsName;
      public void setSelectedCmsName(String selectedCmsName)
        this.selectedCmsName = selectedCmsName;
      }There is a <h:messages/> tag in my jsp which give the message:
    Validation ErrorI don't see anything wrong in my code.... An idea?
    Thanks,
    phil

    Does it work with a real basic example?
    test.jsp<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:view>
        <html>
        <head>
        <title>test</title>
        </head>
        <body>
        <h:form>
            <h:selectOneListbox value="#{myBean.selectedItem}">
                <f:selectItems value="#{myBean.selectItems}" />
            </h:selectOneListbox>
            <h:commandButton value="submit" action="#{myBean.action}" />
            <h:outputText value="#{myBean.selectedItem}" />
            <h:messages />
        </h:form>
        </body>
        </html>
    </f:view>MyBeanpackage mypackage;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class MyBean {
        private String selectedItem;
        private List<SelectItem> selectItems;
            selectItems = new ArrayList<SelectItem>();
            selectItems.add(new SelectItem("value1", "label1"));
            selectItems.add(new SelectItem("value2", "label2"));
            selectItems.add(new SelectItem("value3", "label3"));
        public void action() {
            System.out.println(selectedItem);
        public String getSelectedItem() {
            return selectedItem;
        public List<SelectItem> getSelectItems() {
            return selectItems;
        public void setSelectedItem(String selectedItem) {
            this.selectedItem = selectedItem;
    }Just copypaste it, add MyBean/myBean to the faces-config and execute it.

Maybe you are looking for

  • Excise Accounting document not generated

    Hi i am creating intracompany STO. The billing type JEX is proforma invoice not relevant for accounting. But Excise accounting docu,ment should generate. In my pricing procedure JEX2 is marked as statistical. But excise accounting is getting generate

  • Unable to see Dashboard over the internet Using Enterprise Portal

    Dear All, I have one issue here which is bit technical, I have made an Xcelsius Dashboard (Connection Type: Excel XML Maps (BW Queries)) and uploaded SWF file on to KM Repository in Portal. I have created Document iview and a role to published the da

  • Messages problem on MacBook Pro

    So after Messages was added on the MacBook Pro, I was receiving all texts on my computer and my iPhone (SMS and iMessages). Suddenly, about two weeks ago, I stopped getting just SMS messages, and all of my previous conversations with SMS messages tol

  • No "Auto Extend" option for tablespace files in sqldeveloper 4.0

    In Create Tablespace > File specification tab there is no "Auto Extend" option anymore in sql developer 4.0 (still present in 3.2). Maybe someone knows how to enable it if I missed something in configuration? Here is an illustration: http://i.piccy.i

  • Hp web cam drivers are not installed

    hey i got problem,in device manger my hp web cam drivers are not installed ...from where should i download the drivers of hp web cam..thank u