[jboss-user] [JBoss Seam] - Re: @DataModel vs. EL
mykey
do-not-reply at jboss.com
Mon Feb 4 10:21:36 EST 2008
Naa. That didn't solve it (T_T) Still the same - wrong - status message. Furtheremore, the @In is needed, because the new state has to be entered to the database.
This is the JSF that is shown after inscription.startEdit():
|
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.org/rich"
| template="layout/template.xhtml">
|
| <ui:define name="body">
|
| <h:messages />
| <h:form>
| <s:validateAll>
| <fieldset>
| <legend><h:outputText value="Persoenliche Daten"/></legend>
| <h:panelGrid columns="2">
| <h:outputText value="Vorname:"/><h:inputText value="#{inscribben.givenName}" required="true"/>
| <h:outputText value="Nachname:"/><h:inputText value="#{inscribben.familyName}" required="true"/>
| <h:outputText value="Geburtsdatum:"/><rich:calendar value="#{inscribben.dateOfBirth}" datePattern="MM-dd-yyyy"/>
| <h:outputText value="Freiwillige Angaben" style="font-weight: bold" /><h:outputText value="" />
| <h:outputText value="Name des Kindergartens:"/><h:inputText value="#{inscribben.kindergarten}" />
| </h:panelGrid>
| </fieldset>
| <fieldset>
| <legend><h:outputText value="Daten des Repraesentanten" /></legend>
| <h:panelGrid columns="2">
| <h:outputText value="Vorname:" /><h:inputText value="#{inscribben.representative.givenName}" required="true"/>
| <h:outputText value="Nachname:" /><h:inputText value="#{inscribben.representative.familyName}" required="true"/>
| <h:outputText value="Hauptstrasse:" /><h:inputText value="#{inscribben.representative.homeAdr.mainStreet}" required="true"/>
| <h:outputText value="Querstrasse:" /><h:inputText value="#{inscribben.representative.homeAdr.transvStreet}" required="true"/>
| <h:outputText value="Hausnummer:" /><h:inputText value="#{inscribben.representative.homeAdr.houseNo}" required="true"/>
| <h:outputText value="Stadt:" /><h:inputText value="#{inscribben.representative.homeAdr.city}" required="true"/>
| <h:outputText value="Freiwillige Angaben" style="font-weight: bold" /><h:outputText value="" />
| <h:outputText value="Telefonnummer:" /><h:inputText value="#{inscribben.representative.telephone}" />
| <h:outputText value="Mobiltelefonnummer:" /><h:inputText value="#{inscribben.representative.cellphone}" />
| </h:panelGrid>
| </fieldset>
| <fieldset>
| <legend><h:outputText value="Ueberwachen der Einschreibung" /></legend>
| <h:panelGrid columns="2">
| <h:outputText value="Benehmen" /><h:selectBooleanCheckbox value="#{inscribben.behavior}" required="true"/>
| <h:outputText value="Auslastung" /><h:selectBooleanCheckbox value="#{inscribben.utilization}" required="true"/>
| <h:outputText value="Sprache" /><h:selectBooleanCheckbox value="#{inscribben.language}" required="true"/>
| <h:outputText value="Materialien" /><h:selectBooleanCheckbox value="#{inscribben.materials}" required="true"/>
| </h:panelGrid>
| </fieldset>
| <fieldset>
| <legend><h:outputText value="Evaluation" /></legend>
| <h:panelGrid columns="6">
| <h:outputText value="Prozent" style="font-weight: bold" />
| <h:outputText value="Perzentil" style="font-weight: bold" />
| <h:outputText value="Rang" style="font-weight: bold" />
| <h:outputText value="Durchschnitt" style="font-weight: bold" />
| <h:outputText value="Aequivalenz" style="font-weight: bold" />
| <h:outputText value="Ergebnis" style="font-weight: bold" />
|
| <h:inputText value="#{inscribben.percentage}" />
| <h:inputText value="#{inscribben.percentil}" />
| <h:inputText value="#{inscribben.rank}" />
| <h:inputText value="#{inscribben.mean}" />
|
| <h:selectOneListbox value="#{inscribben.equivalence}" size="1">
| <f:selectItem itemLabel="" itemValue="" />
| <f:selectItem itemLabel="buena" itemValue="buena" />
| <f:selectItem itemLabel="regular" itemValue="regular" />
| </h:selectOneListbox>
| <h:outputText value="-" rendered="#{inscribben.percentage eq null or inscribben.percentil eq null or inscribben.rank eq null or inscribben.mean eq null or inscribben.equivalence eq null}" />
| </h:panelGrid>
| </fieldset>
| </s:validateAll>
| <h:commandButton action="#{inscription.finishEdit}" value="OK" />
| <s:button action="home" value="back" />
|
| </ui:define>
| </ui:composition>
|
|
It just displays input-boxes for all properties of the EntityBean. But, to me, it doesn't look like the problem lies in the JSF.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126214#4126214
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126214
More information about the jboss-user
mailing list