h:selectOneRadio problem

Hi every body ,
I have a serious problem in jsf <h:selectOneRadio> component.
I am using two different <h:selectOneRadio> component .When I am clicking the first radio button I can get data from the data base & showing in my jsf , same as in the second radio button .
My problem is , I want to un check the first radio when I am clicking the second one .
Here is my code .
<h:selectOneRadio layout="pageDirection"  immediate ="true"                                               valueChangeListener="#{multiSite.getValue1}" onclick="submit()">
     <f:selectItem id="item1" itemLabel="My value-1" itemValue="1" />
</h:selectOneRadio>
<h:outputText value="" />
<h:panelGrid width="100%" rendered="#{multiSite.renderValue1}">
     <h:selectOneRadio styleClass="radioButtonDataText" layout="pageDirection"  immediate ="true" >
          <f:selectItems value="#{multiSite.myMap1}"/>
     </h:selectOneRadio>
     <h:outputText value="" />
     <h:outputText value="" />
</h:panelGrid>
<h:selectOneRadio layout="pageDirection" immediate ="true"
valueChangeListener="#{multiSite.getValue2}" onclick="submit()" >
     <f:selectItem id="item2" itemLabel="My value-2" itemValue="2" />
</h:selectOneRadio>
<h:panelGrid width="100%" rendered="#{multiSite.renderValue2}">
     <h:selectOneRadio styleClass="radioButtonDataText" layout="pageDirection"  immediate ="true" >
          <f:selectItems value="#{multiSite.myMap2}"/>
     </h:selectOneRadio>
     <h:outputText value="" />
     <h:outputText value="" />
</h:panelGrid>Thanks ,
SB

Thanks for your reply .
Here I have implemented the valueChangeEvent.queue(), but it is not working properly.
Here is my jsf code :
<h:selectOneRadio id="radio1"  value="#{multiSite.radio1Val}"  layout="pageDirection" styleClass="boldText"
     immediate ="true" valueChangeListener="#{multiSite.getValue1}" >
     <f:selectItem id="item1" itemLabel="Value1" itemValue="1" />
     <a4j:support event="onchange" reRender="form" focus="radio1"/>
    </h:selectOneRadio>
<h:selectOneRadio id="radio2" layout="pageDirection" value="#{multiSite.radio2Val}"  immediate ="true" styleClass="boldText"
     valueChangeListener="#{multiSite.getValue2}" >
     <f:selectItem id="item2" itemLabel="Value2" itemValue="2" />
     <a4j:support event="onchange" reRender="form" focus="radio2"/>
</h:selectOneRadio>Here is my backing bean code :
private String radio1Val;
private String radio2Val;
         //For the first radio button event :
        public void getValue1(ValueChangeEvent valueChangeEvent) throws Exception
          if (valueChangeEvent.getPhaseId() == PhaseId.INVOKE_APPLICATION)
                        System.out.println(this.getRadio2Val());
                        if(getRadio2Val()!=null)
                             this.setRadio2Val(null);
                } else
                       valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                       valueChangeEvent.queue();
        //For the second radio button event :
        public void getValue2(ValueChangeEvent valueChangeEvent) throws Exception
                    if (event.getPhaseId() == PhaseId.INVOKE_APPLICATION)
                             //setting the value of first radio to null.
                            if(getRadio1Val!=null)
                                this.setRadio1Val(null);
                   } else
                            event.setPhaseId(PhaseId.INVOKE_APPLICATION);
                           event.queue();
//setter & getter methods
      * @return the radio1Val
     public String getRadio1Val() {
          return radio1Val;
      * @param radio1Val the radio1Val to set
     public void setRadio1Val(String radio1Val) {
          this.radio1Val = radio1Val;
      * @return the radio2Val
     public String getRadio2Val() {
          return radio2Val;
      * @param radio2Val the radio2Val to set
     public void setRadio2Val(String radio2Val) {
          this.radio2Val = radio2Val;
     }When I am clicking the first radio button it is going to the server & executing the event & became un check the first radio button .
Same as for the second radio also.
One more thing when I am clicking the first radio button the value is not binding to the backing bean property .
Please help.
regards ,
SB

Similar Messages

  • Selectoneradio problem

    Hi,
    I've a problem with a selectoneradio in my jsf app.
    I have a jsp page where when the user click on a button a selectoneradio embedded in a fieldset get enabled.
    When the select one radio is enabled the user can chosse the radio he prefers.
    In the next page there is a back button. If the user press the back button, my apps come back to the page with selectoneradio.
    The sdelectone radio is disabled then my apps dont load value from bean properties.
    I tryied to avoid this putting in one inputhidden with the same properties of selectoneradio. But It dont work.
    Someone has a solution?
    I try with jstl, but the problem is that if I use usebean the page seems create a new bean.
    Any suggest?
    Thank Andrea

    Sapphire wrote:
    I am using Java EE with Hibernate, JSF and Seam.
    I have a bean with properties of type Integer. They used to be Boolean but I had to change them to Integer because I am using DB2 and DB2 doesnt accepts booleans.This is a failure on your part to properly configure Hibernate. It will do the translation for you.
    >
    Since selectBooleanCheckbox only works with Boolean types in the backing bean, I have decided to use selectOneRadio to serve the same purpose. Now, I have a problem with that. I dont know if its a validation issue or what but when I click the submit button to submit the form, nothing happens. I'm just learning EJB programming and this problem has completely stopped my progress.
    Here's my code:
    @Entity
    @Name("cheese")
    @Table(name="cheeses")
    public class Customer implements Serializable {
         private Integer isCheddar;
    public Integer getIsCheddar() {
              return isCheddar;
         public void setIsCheddar(Integer isCheddar) {
              this.isCheddar= isCheddar;
    cheese.xhtml
    <h:selectOneRadio id="radioCheeseType" value="#{cheese.isCheddar}" required="no" converter="javax.faces.Integer">
                                       <f:selectItem id="item1" itemLabel="" itemValue="1" />
                                       <s:convertEntity />
    </h:selectOneRadio> Can someone please help me with this and tell me what's wrong. I do not see any error messages on my console so I have no idea what the problem is. Thanks a lot!Have you added <h:messages/> to the page?

  • SelectOneRadio problem - Help!

    I am using selectOneRadio for the user to select a particular report they would like to run.
    When a radio button is selected though, certain fields may need to be disabled for that particular report, and other dropdowns need to be reset.
    I utilized a valueChangeListener="#{form.reportChanged}" on my radio buttons, but I have been unable to do 2 things:
    1. Reset some dropdowns by changing the "backing bean" value example ddvalue="";
    2. Disable other components (such as dropdown lists) by using a method for example
    disabled="#{form.quarterDisabled}"
    Which is the only way I know how to disable a component at this point.
    The form is submitted by using the onchange="submit();" Javascript.
    I have also noticed some strange behavior in that the radio button I clicked is not the radio button selected when the form returns....
    HELP!!!!!!!!

    I have additional information about why my other components are not being disabled. I have added logging and the log shows that the disable="#{method}" are being called before the value change on the radio button is executing.
    Here is a sample from the log.
    [#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.beans.SampleReportForm|_ThreadID=14;|quarterDisabled.|#]
    [#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.beans.SampleReportForm|_ThreadID=14;|yearDisabled.|#]
    [#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollFirstDisabled.|#]
    [#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollPreviousDisabled.|#]
    [#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollNextDisabled.|#]
    [#|2004-05-19T16:12:49.830-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.classes.ReportHandler|_ThreadID=14;|isScrollLastDisabled.|#]
    [#|2004-05-19T16:12:49.840-0500|SEVERE|sun-appserver-pe8.0|com.pepsico.fod.beans.SampleReportForm|_ThreadID=14;|reportChanged.|#]
    So how do I get the disable methods to execute after the reportChange Event?

  • Problem with h:selectOneRadio

    i would like to use selectOneRadio to change my log level in my application
    there are two problem:
    my operation modifierLevel is never called
    how to set a default value to my selectOneRadio (for example i would like to set a dfault value of my selectOneRadio to info)
    <h:selectOneRadio id="myRadio" valueChangeListener="#{servicesOperations.modifierLevel}"
                       value="#{servicesOperations.choixLogLevel}" >
                              <f:selectItem itemValue="debug" itemLabel="debug"/>
                            <f:selectItem itemValue="info" itemLabel="info"/>
                            <f:selectItem itemValue="warn" itemLabel="warn"/>
                            <f:selectItem itemValue="error" itemLabel="error"/>
                            <f:selectItem itemValue="fatal" itemLabel="fatal"/>
                      </h:selectOneRadio>
    public class ServicesOperations {
         private String choixLogLevel="info";
         public String getChoixLogLevel() {
              return choixLogLevel;
         public void setChoixLogLevel(String choixLogLevel) {
              this.choixLogLevel = choixLogLevel;
         public ServicesOperations() {
         public void modifierLevel(ValueChangeEvent evt)
              System.out.println("radio appelé");
         }

    Hi,
    To set a defalt value to your selecOne Radio you can set a default value to servicesOperations.choixLogLevel*
    if do you want that modifierLevel* get called once you click on the selectOneRadio yo can do as shown bellow :
    <h:selectOneRadio id="myRadio"  valueChangeListener="#{servicesOperations.modifierLevel}"
               onClick="submit()"  <!-- This is the attribute that will submit the form and then fire the change event -->
               value="#{servicesOperations.choixLogLevel}" >
                              <f:selectItem itemValue="debug" itemLabel="debug"/>
                            <f:selectItem itemValue="info" itemLabel="info"/>
                            <f:selectItem itemValue="warn" itemLabel="warn"/>
                            <f:selectItem itemValue="error" itemLabel="error"/>
                            <f:selectItem itemValue="fatal" itemLabel="fatal"/>
                      </h:selectOneRadio>

  • Problem in getting selectOneRadio value placed in dataTable

    I want to get Id bind with selected radio button, whn radio button is selected, the value of backing bean should be set.
    But the problem me facing is, If I check last radio button I get the value and if I get rest of radio buttons my bean value didnt set. Why it happen that only last radio button of data table row works fine.
    I hope I u ppl help me
    <h:dataTable value="#{depositMoneyPageBean.allCreditCardsOfUser}" var="creditCardData"
    >
    <h:column>
        <f:facet name="header">
           <f:verbatim>...</f:verbatim>
       </f:facet>
       <h:selectOneRadio id="selectRadio" value="#  {depositMoneyPageBean.selectedCreditCardId}"  onclick="selectOne(this.form , this)"  >
                                   <f:selectItem itemValue="#{creditCardData.cardId}" />                               </h:selectOneRadio>
      </h:column>
    <h:column>
                                  <f:facet name="header">
                                       <f:verbatim>Payment Method</f:verbatim>
                                  </f:facet>
                                       <h:outputText value="#{creditCardData.cardTypeName}" styleClass="tLabel" />
                             </h:column>
    </h:dataTable>

    Here is a comparable solution: http://balusc.xs4all.nl/srv/dev-jep-dat.html#SelectRowByRadioButton
    With a much better Javascript solution, it only clears out the involved radiobuttons, not the other radiobuttons in the same form, which can be dangerous if you've another radiobuttons for other purposes.

  • H:selectOneRadio display problem.

    Hi,
    I'm trying to use h:selectOneRadio but the display on IE is not correct. IE is not showing the label properly.

    jsf-facelets - 1.1.14
    jsf-api/jsf-impl - 1.2_08
    myfaces-api/impl - 1.1.5
    richfaces - 3.2.0.GA
    I'm usinf weblogic 9.2.
    Code snippet
    <h:panelGrid columns="2" style="width: 868px;" bgcolor="#D8D8D8">
    <h:panelGrid columns="2" style="width: 410px;">
    <h:outputText styleClass="nowrap" value="#{msg.col_debit_date}" escape="false" />
    <rich:calendar id="collectionDate" value="#{CollectionDetailController.refundData.collectionDate}" binding="#{CollectionDetailController.refundData.inputDate}"
    datePattern="#{DateTimeConstants.dateTimePattern}" converter="LocalDateConverter" />
    <h:outputText value=" " rendered="#{CollectionDetailController.refundData.collectionDateError}" />
    <h:outputText value="#{msg.collection_date_error}" styleClass="error" rendered="#{CollectionDetailController.refundData.collectionDateError}" />
    <h:outputText value=" " rendered="#{CollectionDetailController.refundData.compensationAmountError}" />
    <h:outputText value="#{msg.compensation_amount_error}" styleClass="error" rendered="#{CollectionDetailController.refundData.compensationAmountError}"/>
    </h:panelGrid>
    <h:panelGrid columns="1" style="width: 548px;">
    <h:selectOneRadio value="#{CollectionDetailController.refundData.authorised}" styleClass="nowrap" layout="lineDirection">
    <f:selectItem itemValue="AUTHORISED" itemLabel="#{msg.collection_authorised}"/>
    <f:selectItem itemValue="UNAUTHORISED" itemLabel="#{msg.collection_unauthorised}"/>
    </h:selectOneRadio>
    </h:panelGrid>
    </h:panelGrid>
    Generated HTML code
    <table style="width: 548px;">
    <tbody>
    <tr>
    <td><table class="nowrap">
         <tr>
    <td>
    <input type="radio" checked="checked" name="commandForm:j_id111" id="commandForm:j_id111:0" value="AUTHORISED" /><label for="commandForm:j_id111:0"> Authorised</label></td>
    <td>
    <input type="radio" name="commandForm:j_id111" id="commandForm:j_id111:1" value="UNAUTHORISED" /><label for="commandForm:j_id111:1"> Unauthorised</label></td>
         </tr>
    </table></td>
    </tr>
    </tbody>
    </table>
    The label(Authorised/Unauthorised) is not shown correctly.

  • h:selectOneRadio selecting  multi values problem

    HI,
    I have array List values from there I am reading values
    for <h:selectOneRadio, here my code
    <h:selectOneRadio value="#{row.one}" >
    <f:selectItem itemValue="#{innerRow.Key}"
    itemLabel="#{innerRow.Text}" />
    </h:selectOneRadio>
    any one can help me how to avoid this.
    thanks
    siva

    Ah, it is in a datatable.
    Get through http://balusc.xs4all.nl/srv/dev-jep-dat.html
    It contains a section about using selectOneRadio in a datatable.

  • Some problems with af:table (new rows with presetting and autosubmit)

    Hi, I'm working with an af:table, but I'm having some troubles.
    Background:
    Jdev 11.1.1.5.0
    Firefox 6.0.2
    In the Bounded Task flow:
    ExecuteWithParams -> fragment < commit/rollback
    ExecuteWithParams: Set a bind variable with a value from bpm payload for get only rows with that value.
    In the fragment:
    An af:table with a button CreateInsert (the new rows need to use the value of the payload in the hidden column, i don't know how do this, assign the value to the #{row.bindings.IdDistribution.inputValue}) [First problem]
    The inputText of the af:table has the autoSubmit in true. The first time that I fill the cells I got this error in each entered value, after press the tab key.
    ADF-FACES- 60097... ADF_FACES-60096:Server Exception during PPR, #n (where n is 1,2,3,4 for each cell). [Second problem]
    When I press the Commit Button, all values from cells dissapears. And I got the message from validator that cells can't be null. [Third problem]
    If I fill cells again, all work right. Validations, no errors ADF_FACES-60096 and a successful commit.
    How I can solve these problems?
    Thanks in advance.

    Hi,
    you need to bind the value property of the selectOneRadio to the row variable. Say the button updates an attribute "q1" then the value property should point to #{row.bindings.q1.inputValue} assuming you use ADF and ADF BC. The question svary I assume., so you need to query thequestion for each row. For this reference a managed bean doe the f:selectItems and in the managed bean use the #{row} attribute to get a hold of the current rendered row (instance of JUCtrlHierNodeBinding if ADF is used. This has a method getRow() to obtain the Row object). The list then returns the answers to select from
    Frank

  • ADF - use of selectOneRadio to programmatically display or hide other comps

    Hi guys, I am totally new to ADF and will appreciate any help that you can give me. This has to do with the selectOneRadio component and then some.
    I currently have an ADF jsp form with values that are bound to the underlying entity. The page also has a backing bean. I tried to change one of the components to the selectOneRadio component by deleting the text component on the form, then selecting the text component from the data control palette and dropping it on the form as a selectOneRadio component that's automatically bound to the underlying database column in an attempt to create a static list. However, when I try to run the form, it is not rendered and I get the following error message:
    500 Internal Server Error
    javax.faces.el.PropertyNotFoundException: Error testing property 'inputValue' in bean of type null
         at com.sun.faces.el.PropertyResolverImpl.isReadOnly(PropertyResolverImpl.java:274)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.isReadOnly(FacesPropertyResolver.java:124)
         at com.sun.faces.el.impl.ArraySuffix.isReadOnly(ArraySuffix.java:236)
         at com.sun.faces.el.impl.ComplexValue.isReadOnly(ComplexValue.java:209)
         at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:266)
    I am using JDeveloper 10.1.3. Could you please help out.
    Additionaly, how do you default the selection in a radio button group? There are 3 radio buttons in this radio button group and I would like the first
    one to be automatically selected when the user enters the form. And based on the selected radio button, I would like to hide and display certain fields
    on the form as well. For example, if radio button A is selected, display field A (hide fields B and C). If radio button B is selected, display field B
    (hide fields A and C) and if radio button C is selected, display field C (hide fields A and B).
    I would really appreciate your help on this
    Thanks a lot

    Thanks for your response Shay. I already came across that tutorial and I followed all of the steps to create the radio group but it still will not render. However, I noticed that if I create a new project and just drop the collection from the data control on to the form, delete the text item, create a selectOneRadio from the collection that is bound to that database column, the form is rendered when I run it. I wondering if trying to create the select one radio after adding a backing bean for the page is the problem.
    To by pass this, I deleted the selectOneRadio that is bound and causing the problem, created an unbound selectOneRadio from the components palette. Now the form is rendered when I run it. However, my next hurdle would be to pass the value selected in the selectOneRadio back to the model layer so that the targeted column is updated accordingly. Can somebody help me out here please??
    The second link seems to do what I have in mind except that it disables the items instead of not displaying them. I still have no idea how he does that. Has somebody come across any tutorial that explains step by step how to create a selectOneRadio and conditionally display other components based on the radio button selected? I would really appreciate some pointers here. Or is somebody kind enough to explain step by step how to accomplish this?
    Any help is really appreciated.
    Thanks guys!

  • Radiobuttons not visible in firefox using h:selectoneradio

    Hi ,
    We are facing certain issues regarding rendering radio buttons in firefox.
    It works fine in IE but doesnot work in Firefox
    Please find the below block of code.
    In the code shown below,there are two panels for displaying radio buttons.
    Last piece of code which displays commandlink is visible ,but the radiobuttons which needs to be shown on pageload is not visible.
    When we click on commandlink , the flag showMoreValues turns true and only on click of this link the radiobuttons in second part of the code is visible.
    Can you please help me out regarding this issue?
    <a4j:form id="subscriptionForm"
                                       ajaxSubmit="true">
                             <f:loadBundle basename="dk.tdc.resources.Messages" var="msgs" />
                                       <h:panelGrid columns="1">
                                            <h:panelGroup rendered="#{subscriptionCard.showValues}"
                                                 id="ValuesList">
                                                 <h:panelGrid columns="4"
                                                      columnClasses="address_col1,address_col1,address_col1,address_col1">                                                       
                                                           <c:forEach var="privateProducts" items="#{subscriptionCard.Values}">
                                                                <h:selectOneRadio id="#{privateProducts.description}"
                                                                     valueChangeListener="#{subscriptionCard.productChanged}"
                                                                     value="#{subscriptionCard.selectedProductCode}">                                                                 
                                                                     <a4j:support event="onclick"
                                                                          reRender="convertingForm,privateParamCard,businessParamCard,errorDetailsSubs,facilitiesCard,numberSelectCard,npPanel,paymentFormCard" />
                                                                          <f:selectItem itemLabel="#{privateProducts.label}"     itemValue="#{privateProducts.value}" />
                                                                </h:selectOneRadio>
                                                           </c:forEach>
                                                 </h:panelGrid>
                                            </h:panelGroup>
                                            <h:panelGroup rendered="#{subscriptionCard.showMoreValues}"
                                                 id="moreValues">
                                                 <h:panelGrid columns="4"
                                                      columnClasses="address_col1,address_col1,address_col1,address_col1">
                                                           <c:forEach var="privateAllProducts"
                                                                items="#{subscriptionCard.showMoreValues}">
                                                                <h:panelGroup>
                                                                     <h:selectOneRadio id="#{privateAllProducts.description}"
                                                                          valueChangeListener="#{subscriptionCard.productChanged}" value="#{subscriptionCard.selectedProductCode}">
                                                                          <a4j:support event="onclick"
                                                                               reRender="convertingForm,privateParamCard,businessParamCard,errorDetailsSubs,facilitiesCard,numberSelectCard,npPanel,paymentFormCard" />
                                                                          <f:selectItem itemLabel="#{privateAllProducts.label}"
                                                                               itemValue="#{privateAllProducts.value}" />
                                                                     </h:selectOneRadio>
                                                                </h:panelGroup>
                                                           </c:forEach>
                                                 </h:panelGrid>
                                            </h:panelGroup>
    <h:panelGroup style="float:right;"
                                                 rendered="#{subscriptionCard.showValues}">
                                                 <h:panelGroup style="float:right;"
                                                      rendered="#{subscriptionCard.ValuesLinkVisible}">
                                                      <a4j:commandLink id="index"
                                                           action="#{subscriptionCard.retrieveMoreValuess}"
                                                           reRender="moreValues"
                                                           value="#{msgs.subscriptioncard_link_more_Values}"></a4j:commandLink>
                                                 </h:panelGroup>
                                            </h:panelGroup>

    You should probably install Firebug into your Firefox browser. That might help isolate the problem. Also, there's been a recent update to Firefox. Have you installed it? If not, I'd recommend doing that next.
    If that doesn't solve it, try removing the components form the page, then adding them back one at a time. You might have a small syntax error on the page that's difficult to see when it's filled with code. Some browsers cope with syntax problems better than others, so what works fine in one browser might not work at all in another.

  • Problem identified jsf component and problem of checkboxs

    hello,
    i have 2 questions:
    - 1
    I have a js function that show/don't show a tab when we chose yes/no on a SelectOneRadio:
    function display(fieldRadio,tabtohide)
    div = document.getElementById(tabtohide);
    if(fieldradio.value=='false')
    div.className='hide';
    else div.className='';
    I call this function in the radio component, like this:
    onclick="display(this,'tabid');" and it works very well.
    The problem is that i would like to replace 'this' by the id of the component (to call this function at another place).
    I'v tried the document.getElementById(JsfTagId); but it doesn't work with jsf tag.
    - 2
    I use a selectmanycheckbox like this:
    <h:selectManyCheckbox value="#{BeanDemandeur.type}" required="false">
    <f:selectItem itemValue="Nouvelleinstallation" itemLabel="Nouvelle installation"/>
    <f:selectItem itemValue="Mise�jour" itemLabel="Mise � jour"/>
    <f:attribute name="fieldRef" value="Type de demande"/>
    </h:selectManyCheckbox>
    In the bean, i use the variable type like this:
    private String[] type = new String[2];
    public String[] getType(){return type;}
    public void setType(String[] rr){type[0]=rr[0];type[1]=rr[1];}
    And finally, in th faces-config.xml:
    <managed-property>
    <property-name>type</property-name>
    <property-class>java.lang.String[]</property-class>
    <value/>
    </managed-property>
    But an error occured: Can't set managed bean property:'type';
    thx u for your help

    r u getting any connversion error !
    what is the error ru getting when u run the code

  • SOS Problem with navigation rules

    Hello,
    I have been stuck for some time with a navigation problem: It seems my faces DD is read but the navigations rules are not. Unfortunately it does not give me any exception. The only thing that occurs is that the home page reloads itself instead of redirecting to the second page.
    Here is my DD:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    <faces-config>
         <!-- ==============================  Application  ============================== -->
         <application>
              <locale-config>
                   <default-locale>en</default-locale>
              </locale-config>
         </application>
         <!-- ==============================  Managed Beans ============================== -->
         <managed-bean>
              <managed-bean-name>GuideSearchManagedBean</managed-bean-name>
              <managed-bean-class>com.softwareag.test_guide.web.temp.PGSearchManagedBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <!-- ==============================   Navigation rules ============================== -->
         <navigation-rule>
              <from-view-id>/home.jsp</from-view-id>
              <navigation-case>
              <from-action>#{GuideSearchManagedBean.newSearchAction}</from-action>
              <from-outcome>displayResults</from-outcome>
              <to-view-id>/errorOccured.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    </faces-config>Here is my jsf:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view>
    <html>
    <head>
    <title>home</title>
    </head>
    <body>
    <h:form id="guide_form">
    category
    <h:selectOneMenu id="category" value="#{GuideSearchManagedBean.category}" required="true">
    <f:selectItem itemValue="2" itemLabel="resto"/>
    <f:selectItem itemValue="1" itemLabel="bar"/>
    <f:selectItem itemValue="3" itemLabel="disco"/>
    </h:selectOneMenu>
    <br /><br />
    postcode<br /><br />
    <h:selectManyListbox id="postcodes" value="#{GuideSearchManagedBean.postcodes}" required="true">
    <f:selectItem itemValue="75001" itemLabel="75001"/>
    <f:selectItem itemValue="75002" itemLabel="75002"/>
    <f:selectItem itemValue="75003" itemLabel="75003"/>
    <f:selectItem itemValue="75004" itemLabel="75004"/>
    <f:selectItem itemValue="75005" itemLabel="75005"/>
    <f:selectItem itemValue="75006" itemLabel="75006"/>
    </h:selectManyListbox>
    <br /><br />
    name
    <h:inputText id="name" value="#{GuideSearchManagedBean.name}"/>
    <br /><br />
    with comments
    <h:selectBooleanCheckbox id="commentsExist" value="#{GuideSearchManagedBean.commentsExist}"/>
    <br /><br />
    order by
    <h:selectOneRadio id="sortOrderCriterion" value="#{GuideSearchManagedBean.sortOrderCriterion}" layout="pageDirection">
      <f:selectItem itemValue="GRADES" itemLabel="note"/>
      <f:selectItem itemValue="DB_ESTABLISHMENT_NAME" itemLabel="name"/>
      <f:selectItem itemValue="DB_POSTCODE" itemLabel="postcode"/>
    </h:selectOneRadio>
    <br /><br />
    minimum note
    <h:selectOneMenu id="minimumNote" value="#{GuideSearchManagedBean.minimumNote}">
    <f:selectItem itemValue="1" itemLabel="1"/>
    <f:selectItem itemValue="2" itemLabel="2"/>
    <f:selectItem itemValue="3" itemLabel="3"/>
    <f:selectItem itemValue="4" itemLabel="4"/>
    <f:selectItem itemValue="5" itemLabel="5"/>
    </h:selectOneMenu>
    <br /><br />
    <h:commandButton id="submit" action="#{GuideSearchManagedBean.newSearchAction}" value="Submit" />
    </h:form>
    </body>
    </html>
    </f:view>Here is my Managed bean:
    package com.softwareag.test_guide.web.temp;
    import java.rmi.RemoteException;
    import java.util.List;
    import com.softwareag.test_guide.web.util.PGFactory;
    * @author Julien Martin
    public class PGSearchManagedBean {
         private String category;
         private List postcodes;
         private String name;
         private boolean commentsExist;
         private String sortOrderCriterion;
         private int minimumNote;
         public String newSearchAction(){
              System.out.println("----------within new search action--------------");//this line never gets printed
              return "displayResults";
         public String nextAction() throws RemoteException { //TODO: Remove that
              PGSearch search = PGFactory.getSearchInstance();
              String issue = search.next();
              return issue;
         public String previousAction() throws RemoteException { //TODO: Remove that
              PGSearch search = PGFactory.getSearchInstance();
              String issue = search.previous();
              return issue;
         public String getCategory() {
              return category;
         public boolean getCommentsExist() {
              return commentsExist;
         public int getMinimumNote() {
              return minimumNote;
         public String getName() {
              return name;
         public List getPostcodes() {
              return postcodes;
         public String getSortOrderCriterion() {
              return sortOrderCriterion;
         public void setCategory(String string) {
              category = string;
         public void setCommentsExist(boolean bool) {
              commentsExist = bool;
         public void setMinimumNote(int i) {
              minimumNote = i;
         public void setName(String string) {
              name = string;
         public void setPostcodes(List list) {
              postcodes = list;
         public void setSortOrderCriterion(String string) {
              sortOrderCriterion = string;
    }Can anyone help? I am really stuck. :-)
    Julien Martin.

    Hi,
    I added a messages component to your home.jsp page and saw that the page produced validation errors (often the cause for failed navigation).
    The problem is that the beans property minimumNote expects an int but gets a String. When you change the the type in the bean to String it works.
    You will probably want to add a converter to the uicomponent to get the correct type. I'd be happy to tell you how, but I'm just starting with jsf ;-).

  • Would tomahawk selectOneRadio work in html  table tag

    hey guys,
    i want to use the tomahawk tag in a html table in JSF pages, but it seen unwork, my example is shown below
    <f:view>
    <h:form>
    <table>
    <!-- include from the other pages called LIC3320.jsp -->
    <x:selectOneRadio id="select" layout="spread" forceId="true" forceIdIndex="false" value="#{LIC3320.currentSelect}">
    <f:selectItem itemValue="dog" itemLabel="Dog"/>
    <f:selectItem itemValue="cat" itemLabel="Cat"/>
    <f:selectItem itemValue="fish" itemLabel="Fish"/>
    </x:selectOneRadio>
    <f:verbatim>
    <tr><td align="center" colspan="4">
    </f:verbatim>
    <x:radio for="select" index="0"></x:radio>
    <f:verbatim>
    </td></tr>
    </f:verbatim>
    <!-- include from the other pages called LIC3320.jsp -->
    </table>
    </h:form>
    <f:view>
    the main problem is the radio isn't in the table, it came before the table and show at the top of the table. Is if i use tomahawk tag, i must use datetable in JSF?
    Thanks
    emmy

    We have successfully used the Tomahawk radio component within a plain table using JSF 1.1 (MyFaces 1.1.5) and JSF 1.2 (the Sun RI 1.2_04). We also use facelets however and so did not use the verbatim tag.
    Did you try looking at the component tree to see if it is in the correct order?
    What implementation and version of JSF are you using?
    Which version of Tomahawk?
    Did you check the generated HTML to see if it is what you expect?

  • T:selectOneRadio requiredMessage tag is not foune in tomahawk lib

    Hello,
    I want to give custom required message for radio button when user do not select one. But i didn't get any tag like JSF has "requiredMessage".
    Can anyone suggest me how to implement this functionality.
    code for select one radio is follow:
                  <t:selectOneRadio id="sor" value="SI" layout="pageDirection"
                   required="true" >
                   <f:selectItem id="si1" itemLabel="" itemValue="sa"/>
                   <f:selectItem id="si2" itemLabel="" itemValue="lo" />
                   <f:selectItem id="si3" itemLabel="" itemValue="lg" />
                   <f:selectItem id="si4" itemLabel="" itemValue="bq" />
              </t:selectOneRadio>What i need is to give requiredMessage like in JSF, we can give as follows:
                  <h:selectOneRadio id="sor" value="SI" requiredMessage="Please Select Radio" id="radio" required="true">
                   <f:selectItem id="si1" itemLabel="" itemValue="sa"/>
                   <f:selectItem id="si2" itemLabel="" itemValue="lo" />
                   <f:selectItem id="si3" itemLabel="" itemValue="lg" />
                   <f:selectItem id="si4" itemLabel="" itemValue="bq" />
              </h:selectOneRadio>But i didn't find any tag like requiredMessage in tomawak.
    Can anyone help me on this?
    Thank you,
    Bipin Sutariya

    The Tomahawk components are (Java) extensions of the standard components, so since the property is on the standard component, it will be on the Tomahawk component. If you are using Facelets, then no problem, just use the property and it ought to work. If you are using JSP, you need to hope that the tag implementation includes the property.

  • Problem with panelTabbedPane

    My application requires two tabs to be displayed in a single page. Using Tabbed pane am acheiving the same.
    But the problem is that the entire page is getting divided in to two and first tab is displaying in first part and second tab is getting displayed in the second part. The page layout is getting changed when we go for the next tab. And i dont want this to happen i want the two tabs to be side by side. How can we achieve it.
    Here is my code can you please check it.
    <t:panelTabbedPane bgcolor="#FFFFCC" width="50%" align="bottom" border="1" cellspacing="0" cellpadding="0">
    <t:panelTab id="tab1" label="Process 1" rendered="true">
    <h:selectBooleanCheckbox id="testCheckBox"/>
    <h:outputLabel for="testCheckBox" value="A checkbox"/>
    <f:verbatim>
    </f:verbatim>
    <h:inputText id="inp1"/><f:verbatim><br></f:verbatim>
    <h:inputText id="inp2" required="true" />
    <h:inputText id="first"/>
    <h:inputText id="second"/>
    <h:inputText id="third"/>
    <h:message for="inp2" showSummary="false" showDetail="true" />
    </t:panelTab>
    <t:panelTab id="tab3" label="Process 2" rendered="true">
    <t:selectOneRadio id="selectOne">
    <f:selectItem itemValue="0" itemLabel="First Choice" />
    <f:selectItem itemValue="1" itemLabel="Second Choice" />
    </t:selectOneRadio>
    <f:verbatim>
    </f:verbatim>
    <f:verbatim>
    </f:verbatim>
    <h:inputText id="inp3"/><f:verbatim>
    </f:verbatim>
    </t:panelTab>
    <h:commandButton value="Submit" />
    </t:panelTabbedPane>

    Ah well .. I misunderstood "imbricated form errors".
    Sorry, I don't have practical experience with this specific component. But such a construction just works with IBM's odc:tabbedPanel.
    You might try to look for another components. I know, IceFaces also have a tabbedpanel component.

Maybe you are looking for

  • Issue with Multiple LTS for a fact table and filters

    Hello, I am facing an issue with obiee 10g. In my model, I have a huge FACT table F1 (partitioned and indexed). The average response time for the queries, which targeted it, was ~30-60 seconds, which was not really convincing our end user. So, we dec

  • Fatal Error on Mac Pro

    Can somebody explain to me the cause of this error? And what is the fix? This has been happening on a fairly frequent basis, say 2-3 per week for months. I have included the latest panic report below. Machine specs at bottom of panic report. 2007 mod

  • Deployment hangs - South Central US datacenter

    My cloud service has been running for almost a year now.  I successfully deployed an update last night.  I tried to deploy again today (minor changes) and have been unsuccessful over 5 times now.  It just hangs on "starting virtual machine." My cloud

  • Bridge as Image Viewer

    Is it possible to use Bridge as a general image viewer? Can I make it, in Windows-speak, the default image viewer for various types of image formats? If I cannot now, I would like to recommend this capability. Often now I find myself needing to view

  • Migration assistant won't work via thunderbolt in Mavericks

    I've followed exactly the instructions for doing a migration assistant data transfer via thunderbolt, per this document: http://support.apple.com/kb/HT5872?viewlocale=en_US My target computer will not see my source computer via thunderbolt. If I turn