After I moved the form tag up, I am getting this jsf validation error:
*"Value is not a valid option"*
for a selectOneNenu even if i select some option.

code:
<h:panelGroup rendered="#{reportsBean.renderContainerType}">
  <x:outputLabel for="containerfilter" value="#{
msgBundle.EPCMgr_ContainerLbl}:" styleClass="standard_text_bold"/>
  <f:verbatim><br/></f:verbatim>
  <h:selectOneMenu id="containerfilter" value="#{reportsBean.containerType}"
immediate="true" disabled="#{reportsBean.optionDisabled}"
styleClass="standard_input">
   <f:selectItem itemValue="" itemLabel=" " />
   <f:selectItems value="#{reportsBean.containerTypeList}"/>
  </h:selectOneMenu>
 </h:panelGroup>

Can anybody tell me why it is happening?

regards
srinivas

On 2/20/07, Adrian Mitev <[EMAIL PROTECTED]> wrote:

In order to work propertly the jscookmenu should be nested in form.

2007/2/20, Srinivas V <[EMAIL PROTECTED]>:
>
> Hi All,
> CAn anybody help me with jscook menu issue??
>
> I have installed JSF 1.1.5-SNAPSHOT,Tomahawk1.1.5- SNAPSHOT and
> tomahawk-sandbox-1.1.5-SNAPSHOT.
>
> I am getting the error : org.apache.jasper.JasperException: jscook menu
> is not embedded in a form.
> *Do we have to put the jscook menu in the form only??*
>
>
> I have a header page which is included in all my other jsps before form
> tag.
>
> page_header.jsp:
>
> <SCRIPT LANGUAGE="JavaScript"
> SRC="/EPCManager/scripts/JSCookMenu.js"></SCRIPT>
> <SCRIPT LANGUAGE="JavaScript"
> SRC="/EPCManager/scripts/MyFacesHack.js"></SCRIPT>
> <LINK REL="stylesheet" HREF="/EPCManager/scripts/ThemeOffice/theme.css"
> TYPE="text/css">
> <SCRIPT LANGUAGE="JavaScript"
> SRC="/EPCManager/scripts/ThemeOffice/theme.js"></SCRIPT>
> <[EMAIL PROTECTED] <[EMAIL PROTECTED]> file="../inc/taglibs.jsp"%>
> <div style="background-color: Navy; width: 100%">
> <t:jscookMenu layout="hbr" theme="ThemeOffice" >
>  <t:navigationMenuItems value="#{menuBean.navItems}" />
> </t:jscookMenu>
> </div>
>
>  Main page:
>
> <body marginheight="4" topmargin="4" vspace="4" onLoad="
> document.getElementById('mScreen:linkAggregate').focus();">
>
> <!-- Header -->
> <[EMAIL PROTECTED] <[EMAIL PROTECTED]> file="../inc/page_header.jsp "%>
>
> <x:outputText styleClass="pageheader" value="#{
> msgBundle.EPCMGR_MainPage_PageTitle}" visibleOnUserRole="floor"/>
> <f:verbatim><br></f:verbatim>
>
> <h:form id="mScreen">......<h:/form>
>


Reply via email to