hello all,
 i am currently try to use jscookmenu along with my JSF app which uses tiles.

jscookmenu should redirect to a page in which there is another form to be submitted.
I followed advices on the list to embed jscookmenu and my other data under the same
form..

for example, heres' my base layout

******* tiles layout ********
<HTML>
  <HEAD>
    <%-- <link rel=stylesheet href="" type="text/css"> --%>
    <title><tiles:getAsString name="title"/></title>
    <link rel="stylesheet" href="" />
  
   
  </HEAD>

<body bgcolor="#ffffff" text="#000000" link="#023264" alink="#023264" vlink="#023264">
<table border="0" width="100%" cellspacing="5">
<tr>
  <td colspan="2"><tiles:insert attribute="header" /></td>
</tr>
 
<tr>
     <tiles:insert attribute='body'/>
 </tr> 
 
</tr>
<tr>
  <td colspan="2">
    <tiles:insert attribute="footer" />
  </td>
</tr>
</table>
</body>
</html>

******** end of tile layout *******

my jsp is then like this

******jsp ******
<tiles:insert definition="budgetLayout">
   <tiles:put name="title" value="Insert Entry"/>
   <tiles:put name="body" value="/insertBody.jsp"/>
</tiles:insert>
****************

and my insertBody is

****** insertBody *********
<f:view>
  <h:form id="insertForm">
     
  <f:loadBundle basename="resources.MessageResources" var="msgs"/>
          
     
    <h:panelGrid  id="body_container_grid" style="vertical-align:top"
                      border="0" cellpadding="0" cellspacing="1" columns="2">
        <f:subview id="body_horizontal_menu_bar">
                  <jsp:include page="/common/jscookmenu.jsp"/>
         </f:subview>
     
        <f:subview id="body_content">
               <f:subview id="msg">
                     <jsp:include page="statusMsg.jsp"/>
               </f:subview>
             
               <h:panelGrid columns="3" style="vertical-align:center">
                <h:outputLabel value="#{msgs.date}" for="">            <t:inputCalendar id="date"  monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
                        currentDayCellClass="currentDayCell" value="#{entryBean.entry.date}" renderAsPopup="true"
                        renderPopupButtonAsImage="true" popupDateFormat="dd-MMM-yyyy"  />   
                   <h:message for="">              
            <h:outputLabel value="#{msgs.description}" for="">            <h:inputText id="description" value="#{ entryBean.entry.description}" required="true"/>
              <h:message for="">       
       
            <h:outputText value="#{msgs.type}"/>
            <h:selectOneMenu id="type"
             value="#{entryBean.entry.type}" required="true">
                 <f:selectItems
                   value="#{applicationBean.expenseTypes }" />
                      <f:converter converterId="javax.faces.Integer"/>
            </h:selectOneMenu>
                <h:message for="">       
                <h:outputLabel value="#{ msgs.amount}" for="">            <h:inputText id="amount" value="#{entryBean.entry.amount}" required="true"/>
              <h:message for=""
       
      
              </h:panelGrid>       

         <h:panelGroup>
        <h:commandButton id="submitInsert" action="" value="Insert"/>
              </h:panelGroup>
 
         </f:subview>
     
      </h:panelGrid>
   </h:form>
</f:view>   

** end of insertBody *****

Problem is that somehow even if in different pages i use a new form id, it looks like it is being
cached and being instead like the form above..

ha sanyone had any issues with jscookmenu and forms ?

thanks in advanc and regards
 marco

PS i got jscookmenu from nightly built of last week... i am not aware if there are some changes...




Reply via email to