Todd Brady [http://community.jboss.org/people/todd123] created the discussion

"Jboss Portal Server caching render-view"

To view the discussion, visit: http://community.jboss.org/message/557899#557899

--------------------------------------------------------------
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

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/557899#557899]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to