Announcement Announcement Module
Collapse
No announcement yet.
JSF - SWF-2.0-m2 - jscookmenu Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSF - SWF-2.0-m2 - jscookmenu

    <t:jscookmenu/> fails to render when in a flow when using SWF-2.0-M2.

    The following code fails to be inserted (only when in a flow)

    Code:
    <link rel="stylesheet" href="/x/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11979847/navmenu.jscookmenu.HtmlJSCookMenuRenderer/ThemeOffice/theme.css" type="text/css" />
    UPDATE

    This seems to be related to the RESTful urls, which result in the Extension Filter being ignored and therefore fails to insert important code.
    see http://myfaces.apache.org/tomahawk/e...onsFilter.html
    Last edited by jamesclinton; Dec 18th, 2007, 07:59 AM.

  • #2
    Fixed - by adding an additional filter mapping which is the same as your SpringWebServlet.
    *You still need the original MyFacesExtensionsFilter*

    Code:
    	<filter-mapping>
    		<filter-name>MyFacesExtensionsFilter</filter-name>
    		<url-pattern>/spring/*</url-pattern>
    	</filter-mapping>
    Hope that helps someone at some point.

    Comment


    • #3
      Thanks for the tip. I needed this tip.
      Did you get a flow started on the click of a menu? I am trying to do that. Any suggestions?

      Thanks
      Vinaya

      Comment


      • #4
        Yes worked fine, what's the problem, do you have a stack trace?

        Comment


        • #5
          Hi jamesclinton,

          I do not get any error, the flow does not start either.

          My menu code is as follows:

          Code:
          <t:navigationMenuItem id="navSearchMutliView" 
          				itemLabel="Stock"   action="#{menuNavigation.goStockSearch}" />
          my menuNavigation code is
          Code:
            public String goStockSearch() {
          	return "go_stock_search";
              }
          How should I connect this to my flow?
          My flow is
          Code:
          <?xml version="1.0" encoding="UTF-8"?>
          <flow xmlns="http://www.springframework.org/schema/webflow"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
          	
          	<var name="stockItemsVwHandler" class="com.converge.trade.view.bean.stock.stockitemsvw.StockItemsVwHandler" />
          
          	<view-state id="searchStock">
          		<transition on="searchRecords">
                      <evaluate expression="stockItemsVwHandler.searchRecords(stockItemsService)"  result="flowScope.stockItems" result-type="dataModel"/>
                  </transition>
          		<transition on="select" to="stockDetails" > 
          			<set name="flowScope.stockSelected" value="stockItems.selectedRow" />
                  </transition>
          	</view-state>
          	 
          	<view-state id="stockDetails" >		
          		<var name="stockItemsDetailBean" class="com.converge.trade.view.bean.stock.stockitemsvw.StockItemsDetailBean" />
          		<transition on="back" to="searchStock">            
                  </transition>
                  
          	</view-state>
          	
          	
          </flow>
          
          
          Thanks
          Vinaya

          Comment

          Working...
          X