-
1. Re: rich:tab "Value" Name attribute is missing in the RF 4.5.13??
michpetrov Feb 15, 2016 4:07 AM (in response to sivaprasad9394)Please shorten the example, don't show components if they're not important (http://sscce.org). You can also use syntax highlighting if you switch to the advanced editor (top right corner of the reply window). Secondly nested forms are not valid, get rid of them.
Now, the value attribute is inherited from UICommand, the class behind h:commandButton (where value = text on the button), it's not used on rich:tab. Could you explain what you're trying to do?
-
2. Re: rich:tab "Value" Name attribute is missing in the RF 4.5.13??
sivaprasad9394 Feb 15, 2016 4:41 AM (in response to michpetrov)Hello Petrov,
I am trying to select the Second Tab Recursive Reporting Tab via DataTable Column Row via Rich:context menu CommandLink click.This is not happening even after rendering the @form.
1.For selection of the Second tab in Earlier version of the RF has <rich:tab>,where i can set the value from back end bean.
2.Even now i have
<rich:tabPanel id="results" switchType="client"
activeItem="#{reporting.selectedTab}">
3.After clicking the context menu link from data table ,It should select the second tab automatically.This is not happening.
Thank you.
-
3. Re: rich:tab "Value" Name attribute is missing in the RF 4.5.13??
michpetrov Feb 15, 2016 4:59 AM (in response to sivaprasad9394)You just need to set the @activeItem to the correct value (i.e. @name of the rich:tab you want to switch to), if you're not doing any AJAX updates you can switch with JavaScript - RichFaces.component("form:tabPanel").switchToItem("tabName")
-
4. Re: rich:tab "Value" Name attribute is missing in the RF 4.5.13??
sivaprasad9394 Feb 16, 2016 5:58 AM (in response to michpetrov)I have resolved the issue by implementing the oncomplete as like below in commandLink,
xhtml page:
<rich:menuItem>
<a4j:commandLink id="siReportButton2"
action="#{reporting.setRb_countername(_data.counterName.counterName)}"
value="#{messages.gotobreadcrumb}" data="#{_data.counterName.shortid.shortid}"
actionListener="#{reporting.setFocusedShortIdActionListener}"
oncomplete="selectshortIdSearch();"
render="results" limitRender="true" execute="@form">
<f:setPropertyActionListener value="breadCrumbSearch" for="siReportButton2"
target="#{reporting.selectedTab}" />
</a4j:commandLink>
</rich:menuItem>
JavaScript:
function selectshortIdSearch() {
RichFaces.component("results").switchToItem("breadCrumbSearch");
}
Thank you.
-
5. Re: rich:tab "Value" Name attribute is missing in the RF 4.5.13??
michpetrov Feb 16, 2016 6:24 AM (in response to sivaprasad9394)Glad you got it working, I'm looking into why it doesn't work by changing the bean property directly (it works you call resetValue() on the UITabPanel but that shouldn't be necessary)