[jboss-user] [JBoss Portal] - JSF command button with partial_refresh_enabled - Portal

shimonl97 do-not-reply at jboss.com
Tue Apr 8 12:36:23 EDT 2008


I am trying a simple jsf with 2 action buttons in the portal. (jsf in jsp not facletes). It works fine when partial_refresh_enabled = false. when partial_refresh_enabled = true, submit is performed but it always takes the action for the first button, so if I have 2 back bean methods it always perform the first command.

code example:
<f:view>
<f:loadBundle basename="travelist.bo.i18n.filters" var="rs" />
<h:form id="filter">
<rich:panel>
<h:panelGrid columns="5">
<h:outputLabel value="From: " for="from" />
<rich:calendar value="#{rf.fromDate}" id="from" popup="true" />
<h:outputLabel value="To: " for="to" />
<rich:calendar value="#{rf.toDate}" id="to" popup="true" />
</h:panelGrid>
<h:outputText id="pentaho" escape="false" 	value="#pentaho.reportContent}" />
<h:panelGrid columns="2">
<h:commandButton id="montlyReport" value="Show Monthly Report"
action="#{pentaho.activateSecondReport}"/>
<h:commandButton id="showReport"  value="Show Report" action="#{pentaho.activateGraph}" />
</h:panelGrid>
</rich:panel>
</h:form>
</f:view>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142440#4142440

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142440



More information about the jboss-user mailing list