myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Döring <>
Subject MyFaces and Trinidad and selectOneChoice-autoSubmit
Date Thu, 07 Sep 2006 16:19:12 GMT

I'm trying around with MyFaces 1.1.3 and Trinidad for some days.
I've implemented a small site with a panelPage, some facets for navigation,
ect. and everything works fine.

In the main area i have a selectOneChoice component and a button to change
the skin.
That's also working.

But if i remove the button and set the selectOneChoice component to
autoSubmit="true" it don't work. The page reloads so it looks like the
submit is done, but the skin don't change. If i reload the page manually
after that, the skin changes correctly, but not directly after i select it
in the choiceBox.

Here is some of my code:

<jsp:root xmlns:jsp="" version="2.0"
  < contentType="text/html;charset=utf-8" />
    <tr:document title="Test Trinidad application">
          <f:facet name="appAbout">
            <tr:outputText value="appAbout: This application is for Testing
the Trinidad JSF components." />

    <-- some more facet to fill the page .... -->

          <f:facet name="navigation1">
            <tr:outputText value="navigation1" />

          <f:facet name="navigation2">
            <tr:outputText value="navigation2" />

          <f:facet name="navigation3">
            <tr:outputText value="navigation3" />

          <f:facet name="navigationGlobal">
            <tr:outputText value="navigationGlobal" />

          <tr:selectOneChoice labelAndAccessKey="&amp;Skinfamily"
id="skinFamilyId" value="#{userPreferences.skinFamily}" autoSubmit="true">
            <f:selectItems value="#{availableSkinFamilies}" />
          <tr:commandButton text="Submit"></tr:commandButton>


availableSkinFamilies is a HashMap defined in the faces-config.xml
userPreferences is a managed-bean with one attribute: skinFamily with
session-scope to save the current selected skin

View this message in context:
Sent from the MyFaces - Users forum at

View raw message