Hello Helmut,
I add all pending changes to tabGroup.
Can you test the tabGroup, please.
Please add a comment to
https://issues.apache.org/jira/browse/TOBAGO-237
Regards
Bernd
Bernd Bohmann wrote:
Hello Helmut,
I forgot to unified activeIndex and state they point to the same
feature. I add a simple fix for this until I'm finished.
I start the nigthly build.
Regards
Bernd
H. Swaczinna wrote:
Hello Bernd,
there's nothing going wrong in the page. I can provide a simple
example to you, where reloadPage doesn't work.
test.jsp:
<%@ taglib uri="http://myfaces.apache.org/tobago/component"
prefix="tc" %><%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"
%><%@ page contentType="text/html;charset=UTF-8" language="java" %><%@
page pageEncoding="UTF-8"
<f:view
><tc:page label="Test" width="200px" height="100px">
<tc:tabGroup switchType="reloadPage"
state="#{mainController.selectedTab}">
<tc:tab label="Tab1"> <tc:out value="Tab1"/>
</tc:tab> <tc:tab label="Tab2"> <tc:out
value="Tab2"/>
</tc:tab> <tc:tab label="Tab3"> <tc:out
value="Tab3"/>
</tc:tab> </tc:tabGroup>
</tc:page>
</f:view>
MainContoller.java:
public int getSelectedTab() {
getLog().debug("getSelectedTab: " + selectedTab);
return selectedTab;
}
public void setSelectedTab(int selectedTab) {
getLog().debug("setSelectedTab: " + selectedTab);
this.selectedTab = selectedTab;
}
The log:
2007-01-08 22:43:08 http-8080-Processor25 DEBUG -
de.wlps.ndr.workflow.gena.webapp.web.MainController:342 -
setSelectedTab: 0
2007-01-08 22:43:08 http-8080-Processor25 DEBUG -
de.wlps.ndr.workflow.gena.webapp.web.MainController:337 -
getSelectedTab: 0
When I remove the state attribute from the tabGroup
(state="#{mainController.selectedTab}"), switching tabs is possible.
Regards
Helmut
Hello Helmut,
I move switching the tab to the INVOKE_APPLICATION phase instead of
the UPDATE_MODEL_VALUES phase. Looks like something on the page goes
wrong in the UPDATE_MODEL_VALUES phase.
Can you verify this, please.
Regards
Bernd
H. Swaczinna wrote:
Hello Bernd,
thank you for fixing this bug. But there's a new bug now:
switchType="reloadPage" doesn't work anymore. Switching tabs
is not possible at all.
Regards
Helmut
Hello Helmut,
i think this is a bug. Can you add a jira issue please?
Thanks
Bernd
H. Swaczinna wrote:
Hello,
I've got a problem with input validation in a tabGroup with
switchType="reloadTab". When I enter an invalid value in an input
field
on a tab, I can switch to another tab. The validation of the field is
excuted and failes, but switching tabs is not blocked. When I switch
back to the tab with the invalid field, the field is not marked as
invalid.
With switchType="reloadPage", I cannot the switch to another tab
and the
field is marked as invalid. This is, what I'm expecting.
I'm using the current 1.0.10 snapshot.
Regards
Helmut