Why my refrencing value of  selectOneMenu to HashMap bean cause error?

i use HashMap bean in my face-config xml to generate HashMap Bean and refrence it to my selectOneMenu , field "value" of selectedItems .
evry thing is true and my combo box fill with my hashmap.
but when i submit a form this error generate :
java.lang.IllegalArgumentException
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:124)
     javax.faces.component.UISelectOne.matchValue(UISelectOne.java:141)
     javax.faces.component.UISelectOne.validateValue(UISelectOne.java:114)
     javax.faces.component.UIInput.validate(UIInput.java:634)
     javax.faces.component.UIInput.executeValidate(UIInput.java:838)
     javax.faces.component.UIInput.processValidators(UIInput.java:412)
     javax.faces.component.UIForm.processValidators(UIForm.java:170)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:904)
     javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
     com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
     com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
my jsf file is have thise source :
<f:view>
     <f:loadBundle basename="lables" var="bundle"/>
     <f:loadBundle basename="global" var="global"/>
     <h:form id="forms2">      
                    <h:selectOneMenu id="lang" styleClass="textbox2" >
                                        <f:selectItems value="#{langs}" />
                    </h:selectOneMenu>
                    <h:commandButton value="ok" type="submit" />
               </h:form>
</f:view>
and my face-config has this config :
     <managed-bean>
          <display-name>langs</display-name>
          <managed-bean-name>langs</managed-bean-name>
          <managed-bean-class>java.util.HashMap</managed-bean-class>
          <managed-bean-scope>application</managed-bean-scope>
          <map-entries>
               <map-entry>
                    <key>fa</key>
                    <value>persian</value>
               </map-entry>
          </map-entries>
          <map-entries>
               <map-entry>
                    <key>en</key>
                    <value>english</value>
               </map-entry>
          </map-entries>
     </managed-bean>
can anybody help me ? i cann't solve this problem yet .
thanx a lot

Did you get this resolved? I've been working on this same problem. I haven't been able to get the HashMap to work, but using the selectItems (as mentioned above) DOES work!
I used this site as a reference:
http://jsf.iatp.org.ua/components/jsf_htmlselectmanylistbox.html
I'll post some of the code in case the link goes bad (future) and someone would still like to see it...
Static items .jsp page:
<f:view>
     <h:selectManyListbox value="#{staticPageBean.selectedItems}" size="5">
          <f:selectItem itemValue="firstName" itemLabel="First Name" />
          <f:selectItem itemValue="lastName" itemLabel="Last Name" />
          <f:selectItem itemValue="age" itemLabel="Age" />
          <f:selectItem itemValue="sex" itemLabel="Sex" />
     </h:selectManyListbox>
     <h:commandButton value="Show Selected" actionListener="#{staticPageBean.showSelected}" />
     <h:outputText binding="#{staticPageBean.selItemsOutput}" />
</f:view>
The bean for that page
public class StaticPageBean {
     //array of values of selected items
     private String[] selectedItems;
     private HtmlOutputText selItemsOutput;
     public void setSelectedItems(String[] items) {
          this.selectedItems = items;
     public String[] getSelectedItems() {
          return selectedItems;
     public void setSelItemsOutput(HtmlOutputText component) {
          selItemsOutput = component;
     public HtmlOutputText getSelItemsOutput() {
          return selItemsOutput;
     public void showSelected(ActionEvent actionEvent) {
          String str = "";
          int length = selectedItems.length;
          for(int i=0; i<length; i++) {
               str += selectedItems[ i ]+"   ";
          selItemsOutput.setValue(str);
To dynamically populate the select Items
<h:selectManyListbox value="#{dynamicPageBean.selectedItems}" size="5">
     <f:selectItems value="#{dynamicPageBean.items}" />
</h:selectManyListbox>
Code behind that
public class DynamicPageBean {
     //List of SelectItem instances
     private List items;
     public DynamicPageBean() {
          items = new ArrayList();
          SelectItem item = new SelectItem("firstName", "First Name");
          items.add(item);
          item = new SelectItem("lastName", "Last Name");
          items.add(item);
          item = new SelectItem("sex", "Sex");
          items.add(item);
          item = new SelectItem("ssn", "SSN");
          items.add(item);
     public void setItems(List items) {
          this.items = items;
     public List getItems() {
          return items;
}

Similar Messages

  • How to get the selected value in SelectOneMenu in backing bean

    Hello all,
    I need your help. I want to have 2 select menus with the second menu's items list are populated based on the selection in the first menu. I don't know how to get the selected value in the backing bean so that I can based on that select menu to populate the second menu's item list. Basically I need to access to the UI Component of the first select Menu and retrieve its selected value.
    Could you help me out?
    Thank you very much in advance,
    Lngo

    Hi Lingo,
    There r two ways of getting the values into the list. First one is hardcoding the values and the second one is use the list and get the values into the list by firing a query in the database.
    Inorder to display the values in the second menu based on the first onces selection we need to add an attribute to the first selectonemenu known as valueChangeListener and we need to sumit the page.
    Here is the sample code
    <h:selectOneMenu id="catalogue"
                                  binding="#{urbean.catalogue}" onchange="submit()"
                                  valueChangeListener="#{urbean.categoryValueChange}"
                                  <f:selectItem itemLabel="Select Catalogue" itemValue="" />
                                  <f:selectItems value="#{urbean.catalogueList}" />
    </h:selectOneMenu>
    <h:selectOneMenu id="category"
                                  binding="#{urbean.category}">     <f:selectItem itemLabel="Select Category" itemValue="" />
                                  <f:selectItems value="#{urbean.categoryList}" />
                                  <                         </h:selectOneMenu>
    now in method called by valuechangelistener we need to write the similar code
    public void categoryValueChange(ValueChangeEvent event) {
    String rfnum = (String) event.getNewValue();
    List categoryList = new ArrayList();
    List tempList = new TablenameDAO().getActiveCatByCatalogueID(rfnum);
              for (int i = 0; i < tempList.size(); i++) {
                   Tablename tablename = (Tablename ) tempList.get(i);
                   String value = "" + tablename .getrfnum();
    String label = tablename .getname();
         if (label == null) {
                   label = "";
                   SelectItem item = new SelectItem(value, label);
                   categoryList.add(item);
              bean.setCategoryList(categoryList);
    ///getActiveCatByCatalogueID (rfnum) should bring the records which r based on the rfnum
    if u follow this process i am damsure that u will get the values in to the secondlist based upon the first list
    Thanks & Regards
    Manidhar

  • Why the default value is not the Oracle recommended?

    Why the default value is not the Oracle recommended?
    In Oracle 10g, the default alocated unit of Oracle ASM is 1MB. But the Oracle ducumentation states that "To ensure a higher probability of one
    logical I/O resulting in no more than one physical I/O, the minimum stripe depth should be at least twice the Oracle block size". ---See Performance Tuniing Guide (10g10.2 Page8-3.
    It's inconsistent. What is right way?

    >
    Why the default value is not the Oracle recommended?
    In Oracle 10g, the default alocated unit of Oracle ASM is 1MB. But the Oracle ducumentation states that "To ensure a higher probability of one
    logical I/O resulting in no more than one physical I/O, the minimum stripe depth should be at least twice the Oracle block size". ---See Performance Tuniing Guide (10g10.2 Page8-3.
    It's inconsistent. What is right way?
    The default database blocksize of 10g is 8k.
    >
    8 * 128 = 1024
    128 >= 2
    At least twice the size does not mean exactly the doubled size.
    There is no contradiction between the documentation and your observation in this case.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Why two FLOAT values are stored differently?

    Curious as to why two FLOAT values are stored differently. Inserting
    two FLOAT values one with value of 99E9 and the other with 12E-9.
    Value for 99E9 was stored in the database as 99000000000 and 12E-9
    was stored in the database as 1.2E-8. Why were they stored in
    different formats? I am using Oracle9i

    Please don't cross post between the Database - General and PL/SQL forums.
    Please check the other thread at Re: FLOAT Value Doubt
    Cheers,
    Colin

  • Validation error while trying to change a value in a request scope bean

    - JBoss 4.2.3.GA
    - JSF 1.2_09-b01-BETA1 (Mojarra)
    - Java 5 Update 17
    Hello, everybody!
    I'm having the following problem in my JSF web application:
    I have a request scope backing bean. The first time this bean is loaded (I check
    this with the ResponseStateManager.isPostBack() method) I fill a list of SelectItem
    instances that are to be displayed in the JSF page in a +<h:selectOneMenu>+ component.
    The list goes, of course, to the +<h:selectOneMenu>+'s +<f:selectItems>+ facet child
    component. In the constructor I also define the value that goes to the value property
    of the +<h:selectOneMenu>+ component. This value is a property in the backing bean, as
    is the list of SelectItem instances. Until now we have something like this:
    The backing bean declaration in faces-config.xml:
    <managed-bean>
        <managed-bean-name>solicitacaoGeral</managed-bean-name>
        <managed-bean-class>br.urca.solicitacoes.web.PaginaSolicitacaoGeral</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    The relevant parts of the JSF page:
    <h:form id="form">
        <h:selectOneMenu value="#{solicitacaoGeral.setorOrigem}" id="foco">
            <f:selectItems value="#{solicitacaoGeral.setoresOrigem}" />
        </h:selectOneMenu>
    </h:form>
    The relevant parts of the backing bean class:
    public class PaginaSolicitacaoGeral
        private final List<SelectItem> fSetoresOrigem = new ArrayList<SelectItem>();
        private Setor fSetorOrigem;
        public PaginaSolicitacaoGeral()
            if (primeiraExibicao()) // First load (!ResponseStateManager.isPostBack())
                // Fill fSetoresOrigem...
                fSetorOrigem = ...
            else // Page submitted
                // Read below...
        public List<SelectItem> getSetoresOrigem()
            return fSetoresOrigem;
        public Setor getSetorOrigem()
            return fSetorOrigem;
        public void setSetorOrigem(Setor setorOrigem)
            fSetorOrigem = setorOrigem;
        private boolean primeiraExibicao()
            String idFerramentaExibicao =
                FacesContext.getCurrentInstance().getViewRoot().getRenderKitId();
            ResponseStateManager gerenciadorEstadoResposta =
                RenderKitUtils.getResponseStateManager(
                FacesContext.getCurrentInstance(), idFerramentaExibicao);
            return !gerenciadorEstadoResposta.isPostback(
                FacesContext.getCurrentInstance());
    }But when the user submits the form and the bean constructor is called again
    (this time the method ResponseStateManager.isPostBack() returns true ),
    in the else block in the constructor above, I need to fill fSetoresOrigem with
    other values and also the fSetorOrigem field because, of course, the fSetorOrigem
    field has to be a valid value that exists in the new fSetoresOrigem list.
    JSF is not complaining about the change to the list items, but it is complaining
    to the change to the fSetorOrigem field (the list value), even though it is a
    valid value present in the list. So I'm getting this error message:
    08:23:54,312 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
    sourceId=form:foco[severity=(ERROR 2), summary=(form:foco: Validation Error: Value is not valid), detail=(form:foco: Validation Error: Value is not valid)]I suppose that JSF is comparing the new value of the field fSetorOrigem with the value
    it has in the view state. As the value is different it is raising the error. That's
    what I suppose. But am I not able the change the value in the postback? I've already
    checked and the value is valid. It corresponds to a value that exists in the list.
    I really need a solution to this problem as I'm stuck with this and can't proceed until
    I find a solution to this. What I am doing wrong and how can I solve this?
    Thank you very much.
    Marcos

    BalusC wrote:
    It is comparing the selected value against the List<SelectItem> returned by getSetoresOrigem() as it is during the apply request values phase of the form submit request.Ok. That's what I supposed JSF was doing.
    BalusC wrote:
    If the selected value isn't in there, then you will get this error.I can understand this, but is this right? As I said, the old value isn't really there because I changed the list values to new ones. But the new value (the value of fSetorOrigem ) corresponds to a value that exist in the new list items, so a valid value. So JSF is not considering that I also changed the list, not just the value. It is comparing the new value with the old list, not the new one. Acting like this JSF is making the page looks like a static HTML page, not a dynamic one. If I can't change the list and the value, what's the point of that? In my point of view I'm not doing anything wrong, I'm not violating any JSF rules.
    Marcos

  • Why sys_extract_utc(sysdate) never causes error in pl/sql block?

    Oracle 11.2
    I cannot use
    SELECT sys_extract_utc(sysdate) FROM DUAL But I can use
    v := sys_extract_utc(sysdate)in a procedure or a trigger without causing any compile or run-time error.
    In my opinion, the return value of function sysdate doesn't contain any timezone info, so it should not be able to be used as the parameter of function sys_extract_utc, because it needs timezone info to do the conversion.
    Any clues?
    Thanks in advance.

    Kiran wrote:
    use systimestamp it will contain timezone.I know, what I don't know is why sys_extract_utc(sysdate) can be used in procedure without causing any error. It should cause error, right?

  • I have an iMac(mid2010) running Pages v5.5.1 on OS X 10.10. Why can I not save or share documents. The error message is You can't save the file "TEST.pages" because the volume is read only.

    I have an iMac(mid2010) running Pages v5.5.1 on OS X 10.10. Why can I not save or share documents. The error message is You can’t save the file “TEST.pages” because the volume is read only.
    I get the same message when using Numbers so I presume it is a OS problem

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data before proceeding.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button
    Select
               ▹ Restart
    from the menu bar.

  • I need to validate Input List Of Values Field when Inserted From Bean

    I've two view object EmployeeView and DepartmentsView
    In Employee View I've changed Department_Id to Input List OF Values
    I've created a bean to inset data into Employee Table
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }I know that ADF validate Input list of values when inserting new value on it
    when I've enabled the debugger I've found that
    <ViewObjectImpl><buildQuery> [604] SELECT DepartmentsEO.DEPARTMENT_ID,         DepartmentsEO.DEPARTMENT_NAME,         DepartmentsEO.MANAGER_ID,         DepartmentsEO.LOCATION_ID,         DepartmentsEO.ISDELETED FROM DEPARTMENTS DepartmentsEO WHERE ( ( (DepartmentsEO.DEPARTMENT_ID = :vc_temp_1 ) ) )
    <ViewObjectImpl><bindParametersForCollection> [605] Bind params for ViewObject: [com.test.model.views.DepartmentsEOView]AppModule.__LOCAL_VIEW_USAGE_com_test_model_views_EmployeesEOView_DepartmentsView_findByVC_12_LOV_DepartmentId_lov__filterlist__vcr___
    <OracleSQLBuilderImpl><bindParamValue> [606] Binding param "vc_temp_1": 999
    <ViewObjectImpl><processViewCriteriaForRowMatch> [607] VCs converted to RowMatch:  ( (DepartmentId = :vc_temp_1 ) )
    <ViewRowImpl><handleListBindingMismatch> [608] No matching row found for list binding:LOV_DepartmentId for ViewRow:oracle.jbo.Key[34235 ]
    <ViewRowImpl><handleListBindingMismatch> [609] --- filterList ValueMap key:DepartmentId, value:999
    <DCBindingContainer><internalRefreshControl> [610] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <JUCtrlHierNodeBinding><release> [611] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <JUCtrlHierNodeBinding><release> [612] released: ROOT node binding:noCtrl_oracle_adfinternal_view_faces_model_binding_FacesCtrlHierNodeBinding_2, value:EmployeesViewIterator
    <DCIteratorBinding><releaseDataInternal> [613] Releasing iterator binding:EmployeesViewIterator
    <ApplicationPoolMessageHandler><doPoolMessage> [614] **** PoolMessage REQ ATTACH LWS
    <ApplicationPoolMessageHandler><doPoolMessage> [615] **** PoolMessage REQ DETACH LWS
    <DCJboDataControl><initializeApplicationModule> [616] (oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode = Immediate
    <DCBindingContainer><internalRefreshControl> [617] **** refreshControl() for BindingContainer :com_test_view_testInsertPageDef
    <DCBindingContainerState><validateToken> [618] Process BindingContainer state token(decompressed state):BCST:=0%V%=NEmployeesViewIterator=-D-,
    <this means that ADF tries to validate the input list of values "Department_Id" and didn't found any match
    I need to through exception when I try to set Department_ID with invalid value "value not on range" like
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));I don't want to validate it manually as I've a lot of fields.
    I need to through exception when try to
    newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));

    Thanks Timo
    this is the code that I use
          ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
          ViewObject importedVO = am.findViewObject("EmployeesView");
          EmployeesEOViewRowImpl newEmp = (EmployeesEOViewRowImpl)importedVO .createRow();
          importedVO .insertRow(newEmp);
    try {
                newEmp.setEmployeeId(new Number("3424));
                newEmp.setFirstName("Test Fname");
                newEmp.setLastName("Test Lname");
                newEmp.setEmail("[email protected]");
                newEmp.setPhoneNumber("4643131345");
                newEmp.setJobId("AD_VP");
                newEmp.setDepartmentId(new oracle.jbo.domain.Number(999));
                 } catch (Exception e) {
                // TODO: Add catch code
                System.out.println("inside Catch");
                e.printStackTrace();
            }

  • Column value '        ' too long - must stop', probably configuration error

    Hi Experts,
    I have a Proxy to File Scenario when I execute it I get this error in RWB. Can you please help me on this:
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '        ' too long - must stop', probably configuration error in file adapter (XML parser error)''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '        ' too long - must stop', probably configuration error in file adapter (XML parser error)'
    Thanks
    Srikanth E

    Hi,
    if there is any empty tag coming from source then target structure tag will not be created and because of which ur payload structure and FCC configuration is not matching.
    To use map with default between source and target strcture so in case source tag dont have value target structure will be created because of mapwithdegfault fuction and ur FCC will not fail.
    Open SXMB_MONI output payload and compare the structre with Data type u will se for no source value target tag is not created at all and FCC is failed.
    please refer below thread,
    0 byte txt file using receiver File Adapter
    regards,
    ganesh.

  • Why can't i log in facetime on mac? error reads,server encoutered problem why registering?

    why can't i log in facetime on mac? error reads,server encoutered problem why registering?

    Two useful KB articles:
    http://support.apple.com/kb/HT4534
    http://support.apple.com/kb/HT4319
    The second says iOS but it actually tells how to use FaceTime from a Mac in addition to iOS devices.

  • Why is it when I try to download music an error message pops up and will not let me buy the music?

    Why is it when I try to download music an error message pops up and will not let me buy the music?

    Same happens to me......

  • I've been getting this message all day long, WHY? "Oops! This link appears broken. DNS error occurred. Server cannot be found.

    I've been getting this message all day long, WHY?
    "Oops! This link appears broken.
    DNS error occurred. Server cannot be found.

    I've been getting this message all day long, WHY?
    "Oops! This link appears broken.
    DNS error occurred. Server cannot be found.

  • Generate value for f:selectItems in bean

    Hello, i use Jdev 10g
    values for f:selectItems in bean i'm get from DB and set to list
                 list = new ArrayList<SelectItem>();
                    ViewObject vo = am.findViewObject("CountryView");
                    while (vo.hasNext()) {
                        CountryViewRowImpl row = (CountryViewRowImpl)vo.next();
                        SelectItem item = new SelectItem();
                        item.setValue(row.getCountryCode().stringValue());
                        item.setLabel(row.getCountryName());
                        list.add(item);
    <af:iterator value="#{informClient_bean.fields}" var="row"
                                   rows="40">
                        <af:switcher id="sw1" facetName="#{row.type}"
                                     defaultFacet="Text">
                          <f:facet name="9">
                            <af:selectOneChoice value="#{row.value}"
                                                requiredMessageDetail="обязательное поле не заполнено"
                                                autoSubmit="#{row.autoSubmit}"
                                                immediate="#{row.immediate}"
                                                label="#{row.label}"
                                                 required="#{row.requared}"
                                                readOnly="#{row.readOnly}"
                                                onmouseup="validMask();"
                                                shortDesc="#{row.shortDesc}">
                              <f:selectItems value="#{row.list}"/>
                            </af:selectOneChoice>
                          </f:facet>
                      </af:switcher>
                      </af:iterator>when working with a form, select a value from the code we get the selected value .... but sometimes (for example, if the field is read-only true) then the selected value is not the same.
    value label
    1 a
    4 b
    5 c
    If I choose "b" when working on the shape of the code will be 4
    if I open the form and read only true in the bean I get a code 1 and the value of "a"

    solved the problem as follows
    list = new ArrayList<SelectItem>();
           IdentityCardTypeViewImpl vo = (IdentityCardTypeViewImpl)am.findViewObject("IdentityCardTypeView");
                    vo.executeQuery();
                    Row[] icTypes = vo.getAllRowsArray();
                    for(int i=0; i<icTypes.length; i++) {
                        IdentityCardTypeViewRowImpl row = (IdentityCardTypeViewRowImpl)icTypes;
    SelectItem item = new SelectItem();
    item.setValue(row.getIdentityCardTypeId().stringValue());
    item.setLabel(row.getIctShortName());
    list.add(item);

  • Why does my FaceTime say "the server has encountered an error processing your registration"? it happens every time i try to verify my email address.

    Why does my FaceTime say "the server has encountered an error processing your registration"? it happens every time i try to verify my email address.

    While we all have MacBooks in this forum not all of us use FaceTime. There's a FaceTime Support Community where everybody uses FaceTime. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/mac_app_store/facetime_for_mac

  • Why there are overloaded create methods in Statful bean?

    Hi all,
    I have a question ...!
    Why there are overloaded create methods for Statefule beans? and why not for Stateless bean?
    because any way these create methods are for giving referneces of EJB objects.hence, what is use of overloaded methods in stateful bean?
    Thanks in advance.
    Regards,
    Rahul

    Hi Rahul,
    Each stateful session bean is tied to a particular client. That means whatever state is passed in during create() is guaranteed
    to be available on subsequent invocations. Allowing multiple create methods is a convenience.
    For stateless session beans there is no prescribed relationship between the caller and which bean instance is used to handle
    an invocation. It wouldn't make sense to allow creation parameters since there would be no guarantee that a subsequent
    invocation is handled by an instance containing that particular initialization state.
    All of this only applies to the EJB 2.1 and earlier API. Starting in EJB 3.0, there are no longer explicit create() methods.
    As you've seen there isn't any benefit to having them in the stateless case. For stateful session beans in EJB 3.0, the
    developer can perform initialization by just declaring a particular business method and calling that after first acquiring a
    new stateful session bean reference.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for