0 Replies Latest reply on Nov 19, 2008 10:36 AM by vladimir.kovalyuk

    Request Parameters Propagation does not work with Richfaces

    vladimir.kovalyuk

      We have the following markup:



      <rich:tabPanel switchType="server">
        <rich:tab label="one" />
        <rich:tab label="two" />
      </rich:tabPanel>
      



      and myview.page.xml is as following:



      <?xml version="1.0" encoding="UTF-8"?>
      <page xmlns="http://jboss.com/products/seam/pages" action="#{backingBean.initPage}" conversation="natural conversation">
           <description>#{...}</description>
           <param name="natural conversation param" value="#{natural conversation value/>
      </page>
      



      When page is rendered for the first time url is ok (because that very url was requested).
      When user switches tabs the page is re-requested and rendered well. But url does not contain page parameter anymore.


      From the other hand Seam Reference states the following:




      The value is transparently propagated with any JSF form submission for the page with the given
      view id. (This means that view parameters behave like PAGE-scoped context variables for faces
      requests.

      It does not happen actually. There are some work around the problem for regular navigation rules. But it does not work for Richfaces components because they renders action url by invoking ViewHandler.getActionUrl(context, viewId) and SeamViewHandler does not include page parameters to the url.


      The solution seems obvious - implement adding parameters in SeamViewHandler.getActionUrl method.