Hi again.
I've done some debugging and found interesting results.
In my update-form, I have these input-controls (they're templated, but you get the
point)
| <ui:decorate template="/templates/t_form_text_entry.xhtml">
| <ui:param name="id" value="newSpaceName" />
| <ui:param name="label" value="#{messages['name']}"
/>
| <ui:param name="value"
value="#{selectedSpaceInstance.entityData.name}" />
| <ui:param name="width" value="300px" />
| <ui:param name="required" value="true" />
| <ui:param name="validatorBean" value="#{spaceManager}" />
| <ui:param name="validatorAction" value="validateSpaceName"
/>
| </ui:decorate>
|
| <ui:decorate template="/templates/t_form_entry.xhtml">
| <ui:param name="id" value="newSpaceCompany" />
| <ui:param name="label" value="#{messages['company']}"
/>
| <ui:param name="required" value="true" />
|
| <h:selectOneMenu id="newSpaceCompany"
value="#{selectedSpaceInstance.entityData.company}" styleClass="input"
style="width: 200px;"
| required="true" rendered="#{not empty
companyManager.possibleSpaceCompanies}">
| <s:selectItems value="#{companyManager.possibleSpaceCompanies}"
var="company" label="#{company.name}" />
| <s:convertEntity />
| </h:selectOneMenu>
| </ui:decorate>
|
They're both validated: the input box is required, and it's name is also checked
for existence (#{spaceManager.validateSpaceName}). The combobox is only required.
When I submit my form like this (long-running conversation, TransactionSeamPhaseListener),
the data-model is updated, even when the transaction rolls back. This must be caused by
the validation of the combobox, because it acts as expected when I delete the
combobox-input and let the inputbox-field untouched.
Could this be a bug, where <s:convertEntity/> (or <s:selectItems/> ?) updates
the model, even when the transaction rolls back?
b.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052908#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...