You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Wong, Emmanuel (Sam)" <Wo...@SEC.GOV> on 2006/12/29 15:02:43 UTC

RE: tobago tab control

Hi:
	When I am on the 2nd tab with link command and click the link,
it will redisplay on the 1st tab.  No matter you were working on the
other tab, it will display the 1st tab.  Do you know how to redisplay it
back to the current tab that I am working on with the link command?  Am
I doing something wrong here?  thanks

<tc:tabGroup id="tabMainRadar" >

			<tc:tab label="#{radarProperty.menu_identify}"
				tip="#{radarProperty.tip_identify}">
				<jsp:include
page="/menu/riskIdentify.jsp" />
			</tc:tab>

			<tc:tab
label="#{radarProperty.menu_consolidate}"
				tip="#{radarProperty.tip_cosolidate}">
				
				<jsp:include
page="/menu/riskConsolidate.jsp" />
			</tc:tab>
		</tc:tabGroup>



The riskConsolidate.jsp is:
<f:subview id="risk_consolidate">
	<tc:panel>
		<f:facet name="layout">
			<tc:gridLayout />
		</f:facet>

		<jsp:include
page="/modules/consolidate/consolidateRiskList.jsp" />
		
		
		


	</tc:panel>
</f:subview>

The consolidateRiskList.jsp is :

<%@ taglib uri="http://myfaces.apache.org/tobago/component"
prefix="tc"%>
<%@ taglib uri="http://myfaces.apache.org/tobago/extension"
prefix="tx"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<f:subview id="consolidate_risk_list">
	<tc:panel>
		<f:facet name="layout">
			<tc:gridLayout />
		</f:facet>

		<tc:form id="consolidate_risk_list_form">
			<tc:box height="200px"
	
label="#{consolidateController.labelConsolidateStatus}">
				<f:facet name="layout">
					<tc:gridLayout />
				</f:facet>


				
				<%-- rows --%>
				<tc:cell >
					<tc:sheet id="consolidate_sheet"
	
value="#{consolidateController.currentConsolidteRiskArry}"
	
columns="70px;2*;1*;100px;1*;80px;80px" var="consolidateRiskList"
	
state="#{consolidateController.selectedRisk}">

						

						<tc:column
label="#{radarProperty.lbl_title}"
	
id="consolidateTitle" sortable="false" align="left">
							<tc:link
action="#{consolidateController.accept}"
	
tip="#{radarProperty.tip_edit_risk}" immediate="true">
								<tc:out
value="#{consolidateRiskList.riskIdentify.riskTitle}"
	
id="consolidate_risk_title" />
							</tc:link>
						</tc:column>

						

					</tc:sheet>
				</tc:cell>
			</tc:box>
		</tc:form>
	</tc:panel>


</f:subview>



RE: tobago tab control

Posted by "Wong, Emmanuel (Sam)" <Wo...@SEC.GOV>.
When I set immediate="false" on the tc:link, I will get error
Severity : Error
 Summary  : Validation Error
 Detail   : "_idJsp93": Value is not a valid option.


<tc:column label="#{radarProperty.lbl_title}"
	
id="consolidateTitle" sortable="false" align="left">
							<tc:link
action="#{consolidateController.displaySelectedRisk}"
	
tip="#{radarProperty.tip_edit_risk}" immediate="false">
								<tc:out
value="#{consolidateRiskList.riskIdentify.riskTitle}"
	
id="consolidate_risk_title" />
							</tc:link>
						</tc:column>


-----Original Message-----
From: Volker Weber [mailto:weber.volker@googlemail.com] 
Sent: Friday, December 29, 2006 9:34 AM
To: MyFaces Discussion
Subject: Re: tobago tab control

Hi,

this works if you add a state attribute to the tabgroup tag.
the expression for state should point to a Integer value.

Regards,
    volker

2006/12/29, Wong, Emmanuel (Sam) <Wo...@sec.gov>:
> Hi:
>         When I am on the 2nd tab with link command and click the link,
> it will redisplay on the 1st tab.  No matter you were working on the
> other tab, it will display the 1st tab.  Do you know how to redisplay
it
> back to the current tab that I am working on with the link command?
Am
> I doing something wrong here?  thanks
>
> <tc:tabGroup id="tabMainRadar" >
>
>                         <tc:tab label="#{radarProperty.menu_identify}"
>                                 tip="#{radarProperty.tip_identify}">
>                                 <jsp:include
> page="/menu/riskIdentify.jsp" />
>                         </tc:tab>
>
>                         <tc:tab
> label="#{radarProperty.menu_consolidate}"
>                                 tip="#{radarProperty.tip_cosolidate}">
>
>                                 <jsp:include
> page="/menu/riskConsolidate.jsp" />
>                         </tc:tab>
>                 </tc:tabGroup>
>
>
>
> The riskConsolidate.jsp is:
> <f:subview id="risk_consolidate">
>         <tc:panel>
>                 <f:facet name="layout">
>                         <tc:gridLayout />
>                 </f:facet>
>
>                 <jsp:include
> page="/modules/consolidate/consolidateRiskList.jsp" />
>
>
>
>
>
>         </tc:panel>
> </f:subview>
>
> The consolidateRiskList.jsp is :
>
> <%@ taglib uri="http://myfaces.apache.org/tobago/component"
> prefix="tc"%>
> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"
> prefix="tx"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
>
> <f:subview id="consolidate_risk_list">
>         <tc:panel>
>                 <f:facet name="layout">
>                         <tc:gridLayout />
>                 </f:facet>
>
>                 <tc:form id="consolidate_risk_list_form">
>                         <tc:box height="200px"
>
> label="#{consolidateController.labelConsolidateStatus}">
>                                 <f:facet name="layout">
>                                         <tc:gridLayout />
>                                 </f:facet>
>
>
>
>                                 <%-- rows --%>
>                                 <tc:cell >
>                                         <tc:sheet
id="consolidate_sheet"
>
> value="#{consolidateController.currentConsolidteRiskArry}"
>
> columns="70px;2*;1*;100px;1*;80px;80px" var="consolidateRiskList"
>
> state="#{consolidateController.selectedRisk}">
>
>
>
>                                                 <tc:column
> label="#{radarProperty.lbl_title}"
>
> id="consolidateTitle" sortable="false" align="left">
>                                                         <tc:link
> action="#{consolidateController.accept}"
>
> tip="#{radarProperty.tip_edit_risk}" immediate="true">
>
<tc:out
> value="#{consolidateRiskList.riskIdentify.riskTitle}"
>
> id="consolidate_risk_title" />
>                                                         </tc:link>
>                                                 </tc:column>
>
>
>
>                                         </tc:sheet>
>                                 </tc:cell>
>                         </tc:box>
>                 </tc:form>
>         </tc:panel>
>
>
> </f:subview>
>
>
>

Re: tobago tab control

Posted by Volker Weber <we...@googlemail.com>.
Hi,

this works if you add a state attribute to the tabgroup tag.
the expression for state should point to a Integer value.

Regards,
    volker

2006/12/29, Wong, Emmanuel (Sam) <Wo...@sec.gov>:
> Hi:
>         When I am on the 2nd tab with link command and click the link,
> it will redisplay on the 1st tab.  No matter you were working on the
> other tab, it will display the 1st tab.  Do you know how to redisplay it
> back to the current tab that I am working on with the link command?  Am
> I doing something wrong here?  thanks
>
> <tc:tabGroup id="tabMainRadar" >
>
>                         <tc:tab label="#{radarProperty.menu_identify}"
>                                 tip="#{radarProperty.tip_identify}">
>                                 <jsp:include
> page="/menu/riskIdentify.jsp" />
>                         </tc:tab>
>
>                         <tc:tab
> label="#{radarProperty.menu_consolidate}"
>                                 tip="#{radarProperty.tip_cosolidate}">
>
>                                 <jsp:include
> page="/menu/riskConsolidate.jsp" />
>                         </tc:tab>
>                 </tc:tabGroup>
>
>
>
> The riskConsolidate.jsp is:
> <f:subview id="risk_consolidate">
>         <tc:panel>
>                 <f:facet name="layout">
>                         <tc:gridLayout />
>                 </f:facet>
>
>                 <jsp:include
> page="/modules/consolidate/consolidateRiskList.jsp" />
>
>
>
>
>
>         </tc:panel>
> </f:subview>
>
> The consolidateRiskList.jsp is :
>
> <%@ taglib uri="http://myfaces.apache.org/tobago/component"
> prefix="tc"%>
> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"
> prefix="tx"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
>
> <f:subview id="consolidate_risk_list">
>         <tc:panel>
>                 <f:facet name="layout">
>                         <tc:gridLayout />
>                 </f:facet>
>
>                 <tc:form id="consolidate_risk_list_form">
>                         <tc:box height="200px"
>
> label="#{consolidateController.labelConsolidateStatus}">
>                                 <f:facet name="layout">
>                                         <tc:gridLayout />
>                                 </f:facet>
>
>
>
>                                 <%-- rows --%>
>                                 <tc:cell >
>                                         <tc:sheet id="consolidate_sheet"
>
> value="#{consolidateController.currentConsolidteRiskArry}"
>
> columns="70px;2*;1*;100px;1*;80px;80px" var="consolidateRiskList"
>
> state="#{consolidateController.selectedRisk}">
>
>
>
>                                                 <tc:column
> label="#{radarProperty.lbl_title}"
>
> id="consolidateTitle" sortable="false" align="left">
>                                                         <tc:link
> action="#{consolidateController.accept}"
>
> tip="#{radarProperty.tip_edit_risk}" immediate="true">
>                                                                 <tc:out
> value="#{consolidateRiskList.riskIdentify.riskTitle}"
>
> id="consolidate_risk_title" />
>                                                         </tc:link>
>                                                 </tc:column>
>
>
>
>                                         </tc:sheet>
>                                 </tc:cell>
>                         </tc:box>
>                 </tc:form>
>         </tc:panel>
>
>
> </f:subview>
>
>
>