0 Replies Latest reply on Aug 18, 2010 8:38 AM by todd123

    Jboss Portal Server caching render-view

    todd123

      Hi -

       

      I am using jboss portal 2.7.0, seam 2.2.1, and richfaces 3.3.3.  If I go to a page from the tabs on the top with required='true' on a widget and click save.  The page says 'Field is required'  That works perfectly.  But if I click another tab and click back to that tab, the validation errors are still present.  I was wondering if there was a way for me to force a new view when they click on that tab everytime?

       

      If I create a link inside the xhtml file and redcirect it works:
      profile.xhtml

        <s:link id="configureUser" action="#{profileAction.configureUser}" >
               <h:graphicImage value="#{sessionManager.imagePath}/wrench.png" />
        </s:link>

       

      ProfileAction.java
      @Begin (join = true)
              public String configureUser() {
                      return "/myProfile.xhtml";
              }

       

      This gets me a new view with no validation errors. But I want to be able to click on a tab from the portal and accomplish this too. From the default tabs.jsp in the jboss portal server:
      <ul>
               <%
                  for (Iterator j = tmp.iterator(); j.hasNext();)
                  {
                     PortalNode childChild = (PortalNode)j.next();
               %>
               <li><a href='<%= childChild.createURL(context) %>'><%= childChild.getDisplayName(locale) %>
               </a></li>
               <%
                  }
               %>
           </ul>

       

      Has anyone tried to do this before? The link in the tab is: /portal/auth/user/profile and I want that to create a new view.If I create a link inside the xhtml file and redcirect it works:
      profile.xhtml