Simple short program : Richfaces 4 action attribute weird behaviour (??)
yapkm01 Jun 10, 2011 2:25 PMI find the action attribute in richfaces behave weirdly (maybe i'm wrong)
Here's the summary:
===================================================================================
a. Index.xhtml (welcome file)
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<title>MView Analytics Reporting</title>
<h:outputStylesheet library="css" name="styles.css" />
</h:head>
<h:body>
<h:form>
<rich:panel>
<f:facet name="header"><center>MView Modules</center></f:facet>
<rich:panelMenu id="MView" topGroupExpandedRightIcon="triangleDown"
topGroupCollapsedRightIcon="triangle"
groupExpandedLeftIcon="triangleDown"
groupCollapsedLeftIcon="triangle"
itemLeftIcon="grid"
expandSingle="false">
<rich:panelMenuGroup label="Enquiry Mgmt">
<rich:panelMenuItem label="Security Holdings">
<a4j:commandButton action="/sections/securityHoldings.xhtml"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
</rich:panel>
</h:form>
</h:body>
</html>
===========================================================================================
b. securityHoldings.xhtml
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<title>MView Analytics Reporting</title>
<h:outputScript library="javascript" name="realTimeClock.js"/>
<h:outputStylesheet library="css" name="styles.css" />
</h:head>
<h:body>
<h:form>
<rich:panel/>
<rich:panel>
<rich:tabPanel>
<rich:tab header="abc">abc</rich:tab>
</rich:tabPanel>
</rich:panel>
<rich:panel/>
</h:form>
</h:body>
</html>
===============================================================================================
I have attached the document which shows screen shot in simple self-explanatory form.
Would appreciate any help as i've been stuck here for couple of weeks.
-
actionAttribute.doc 183.0 KB