This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
3 Replies Last post: Jul 23, 2007 6:02 PM by Tatyana Matveyeva  
Shai   13 posts since
Jul 12, 2007
Currently Being Moderated

Jul 22, 2007 5:29 PM

problem with t:selectOneMenu and h:selectOneMenu

Hi,

 

I encountered a problem using client side validation in IE 6 & 7.

When using the <t:selectOneMenu> tag and configuring it as required i am getting i gibberish value selected as default.

If i am removing the required value, the gibberish massage is not displayed.

 

i am using the "onDemand" and the q_validateById function.

 

here is my code:

 

<t:selectOneMenu id="genBirthCountry"

                        styleClass="input_210"

                        required="#"

                        value="#{ivController.data.genBirthCountry}">

          <f:selectItem itemValue="" itemLabel="[Select a country]" />

          <t:selectItems value="#{ivController.countryList}" var="country"

 

            itemLabel="#{country.countryDesc}"

            itemValue="#{country.countryCode}" />

</t:selectOneMenu>

 

please view the screen snap to see what is presented inside the select box.

 

thanks in advanced,

Shai

Attachments:
Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
1. Jul 23, 2007 12:08 PM in response to: Shai
Re: problem with t:selectOneMenu and h:selectOneMenu

Hello Shai,

 

This issue is already fixed and will be available in QuipuKit 1.2.

 

However, there is a workaround. Are you using Ajax4jsf framework? If so, please set the filter's "forceparser" parameter to false. As a result, the filter will look like this:

 


<filter>
  <display-name>Ajax4jsf Filter</display-name>
  <filter-name>ajax4jsf</filter-name>
  <filter-class>org.ajax4jsf.Filter</filter-class>
  <init-param>
    <param-name>forceparser</param-name>
    <param-value>false</param-value>
  </init-param>
</filter>

 

It should fix this problem.

 

Regards,

Tatyana

Tatyana Matveyeva   873 posts since
Aug 16, 2006
Currently Being Moderated
3. Jul 23, 2007 6:02 PM in response to: Shai
Re: problem with t:selectOneMenu and h:selectOneMenu

Shai,

 

Can you please describe your environment, so we can reproduce your problem:

 

- JSF implementation and version

- Application server

- Sate saving method (client or server)

- Are you using Facelets? What version?

- Are you using Ajax4jsf? What version?

- Any other specific configurations

 

Regards,

Tatyana

More Like This

  • Retrieving data ...