[jboss-user] [JBoss Portal] - Jboss Portal Server caching render-view

Todd Brady do-not-reply at jboss.com
Wed Aug 18 08:39:26 EDT 2010


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100818/63f0655e/attachment.html 


More information about the jboss-user mailing list