Hello,

I use the paneltabbedPane to create a new order. There is a common submit
button to store the data entered in the different tabs and to go back to the
main site.
The problem is:

1) When placing the commandbutton inside a panelTabbedPane the specified
action of the backing bean is not executed, no navigation is performed.
Instead, the current page is redisplayed.
  
  <h:form>
    <t:panelTabbedPane>
      <t:panelTab>
      ...
      </t:panelTab>
      <t:commandButton action="#{myBean.save}"
         value="Save" />
    </t:panelTabbedPane>
  </h:form>

2) So i place the commandbutton outside the panelTabbedPane in an own form.
  
  <h:form>
    <t:panelTabbedPane styleClass="tabbed_pane">
      ...
    </t:panelTabbedPane>
  </h:form>
  <h:form>
    <t:commandButton action="#{myBean.save}"
       value="Save" />
  </h:form>

In this case the action method is called, but the model values of myBean are
not updated according to the values in the tabs when saving.

I also tried to omit the <h:form> around the panelTabbedPane, but then it's
again as in 1), the page is just redisplayed.

When I omit all <h:form> tags (just as in the myfaces example), the
ServletException: "Component ... must be embedded in an form" is thrown.

Maybe someone has a similar constellation and can tell if/how it works for
him or can see my fault...

Jan

MyFaces and tomahawk version is 1.1.3.
I use myfaces-tiles.
Tab switch: client side.
-- 
View this message in context: 
http://www.nabble.com/CommandButton-in-panelTab-doesn%27t-work-for-me-tf2004165.html#a5504375
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to