Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Mystery of data controls / binding problem

16136Feb 28 2010 — edited Mar 1 2010
I do some litlle changes in my application and some logic doesn't work anymore. I don't understand why after checking the changes.

The original situation.

default activity-->view1(t1)-->view2(t2)-->view3(t3)-->view4(t4)

I created a train task flow with a default method call activity and four view activity.

The default method call create a row in a view. That still working fine.

The first view activity display a form to edit the content of the new created row. I have three buttons in that form. On to reinitialize the field content (resetButton). One to cancel everything. One to save the changes (bind to view execute method).

The second and third train stop have skip conditional expression. The still active or not depending on a attribute value in the view (attribute FsCardinality).

The fourth view activity display summarized data. It contains two buttons to confirm or cancel the transaction.

All was working fine until I changed the inputText that edited the FsCardinality attribute in a radioButton linked to a LOV defined in the view. The second and third train stop still desperately inactive.

When checking the code I saw that JDeveloper changed the name of the attribute FsCardinality to FsCardinality1 in the bindings for the editing form. I changed the conditional expression to reflect this change in the train stop also but it didn't solve the problem.

I added a summary page by dragging and dropping the view object and may able to see that the attribute was correctly setted. The pagedefinition for that form was using FsCardinality as binding attribute name.

So THE QUESTION IS what i have to use as binding attribute name in the task flow itself ? Do i need to do some binding manually ?

Does somebody have an idea what the problem ... l'm a little bit lost.

Thanks a lot

During investigation on this problem I was not able to save breakpoint settings in view activities.I would like to set beep, log breakpoint occurence with the expression that evalute fscardinality (#{bindings.FsCardinality1.inputValue). I was able to enter the values but they was not saved (I returned to the breakpoint to check it and nothing was present, in breakpoint view list also). Is it a bug ? Understood that a breakpoint group name has to be setted to save the values event only one occurence is necessary (not very clear in dialog and in the help).

task flow
{code}
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-definition id="task-flow-newFlexStandard-definition">
<default-activity id="__1">CreateInsertStandardFlexParameter</default-activity>
<transaction id="__41">
<requires-transaction/>
</transaction>
<data-control-scope id="__42">
<shared/>
</data-control-scope>
<task-flow-reentry id="__43">
<reentry-allowed/>
</task-flow-reentry>
<view id="createNewStandardFlexParameter">
<description id="__22">Saisir le code d'identification interne et les éléments descriptifs du nouveau paramètre standard.</description>
<display-name id="__21">Edition du nouveau paramètre</display-name>
<page>/pages/standardFlexParameter/createNewStandardFlexParameter.jsff</page>
<train-stop id="__2">
<display-name id="__19">Edition de nouveau paramètre standard</display-name>
</train-stop>
</view>
<view id="selectSingleFlexParameter">
<page>/pages/standardFlexParameter/selectSingleFlexParameter.jsff</page>
<train-stop id="__24">
<display-name id="__27">Sélection d'une occurence de paramètre</display-name>
<skip>#{bindings.FsCardinality1.inputValue != '1'}</skip>
</train-stop>
</view>
<view id="selectMultipleFlexParameter">
<page>/pages/standardFlexParameter/selectMultipleFlexParameter.jsff</page>
<train-stop id="__25">
<display-name id="__26">Sélection de plusieurs occurence de paramètre</display-name>
<skip>#{bindings.FsCardinality1.inputValue != '*'}</skip>
</train-stop>
</view>
<view id="summaryNewStandardFlexParameter">
<description id="__4">Présentation des éléments saisis ou modifiés. Confirmation ou annulation de l'opération.</description>
<display-name id="__3">Résumé des changements</display-name>
<page>/pages/standardFlexParameter/summaryNewStandardFlexParameter.jsff</page>
<train-stop id="__9">
<display-name id="__23">Résumé des changements et confirmation</display-name>
</train-stop>
</view>
<task-flow-return id="commitNewStandardFlexParameter">
<outcome id="__10">
<name>commitNewStandardFlexParameter</name>
<commit/>
</outcome>
</task-flow-return>
<task-flow-return id="rollbackNewStandardFlexParameter">
<outcome id="__11">
<name>rollbackNewStandardFlexParameter</name>
<rollback/>
</outcome>
</task-flow-return>
<method-call id="CreateInsertStandardFlexParameter">
<method>#{bindings.CreateInsert.execute}</method>
<outcome id="__48">
<fixed-outcome>createInsert</fixed-outcome>
</outcome>
</method-call>
<train/>
<control-flow-rule id="__12">
<from-activity-id id="__13">summaryNewStandardFlexParameter</from-activity-id>
<control-flow-case id="__15">
<from-outcome id="__16">commit</from-outcome>
<to-activity-id id="__14">commitNewStandardFlexParameter</to-activity-id>
</control-flow-case>
</control-flow-rule>
<control-flow-rule id="__49">
<from-activity-id id="__50">CreateInsertStandardFlexParameter</from-activity-id>
<control-flow-case id="__51">
<from-outcome id="__53">createInsert</from-outcome>
<to-activity-id id="__52">createNewStandardFlexParameter</to-activity-id>
</control-flow-case>
</control-flow-rule>
<control-flow-rule id="__6">
<from-activity-id id="__5">*</from-activity-id>
<control-flow-case id="__7">
<from-outcome id="__20">cancel</from-outcome>
<to-activity-id id="__8">rollbackNewStandardFlexParameter</to-activity-id>
</control-flow-case>
</control-flow-rule>
<use-page-fragments/>
</task-flow-definition>
</adfc-config>
Page definition of the editing form that contains the lov
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.55.36"
id="createNewStandardFlexParameterPageDef"
Package="iEducation_Fusion.flexParameterView.pageDefs">
<parameters/>
<executables>
<variableIterator id="variables"/>
<iterator Binds="FlexstandardView1" RangeSize="25"
DataControl="flexStandardAppModuleDataControl"
id="FlexstandardView1Iterator"/>
</executables>
<bindings>
<attributeValues IterBinding="FlexstandardView1Iterator"
id="FlexstandardId">
<AttrNames>
<Item Value="FlexstandardId"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="FlexstandardView1Iterator"
id="FsInternalcode">
<AttrNames>
<Item Value="FsInternalcode"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="FlexstandardView1Iterator" id="FsDescription">
<AttrNames>
<Item Value="FsDescription"/>
</AttrNames>
</attributeValues>
<action IterBinding="FlexstandardView1Iterator" id="Execute"
RequiresUpdateModel="true" Action="iteratorExecute"/>
<list IterBinding="FlexstandardView1Iterator" StaticList="false"
Uses="LOV_FsCardinality" id="FsCardinality1" DTSupportsMRU="false"/>
</bindings>
</pageDefinition>
radio button
<af:selectOneRadio value="#{bindings.FsCardinality1.inputValue}"
label="#{bindings.FsCardinality1.label}"
required="#{bindings.FsCardinality1.hints.mandatory}"
shortDesc="#{bindings.FsCardinality1.hints.tooltip}"
id="sor2" layout="horizontal">
<f:selectItems value="#{bindings.FsCardinality1.items}" id="si2"/>
</af:selectOneRadio>
button that confirm the editing
<af:commandButton text="Confirmer la saisie" id="cb2"
actionListener="#{bindings.Execute.execute}"
disabled="#{!bindings.Execute.enabled}"/>
summary page definition (see fsCardinality binding that render the value correctly)
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.55.36"
id="summaryNewStandardFlexParameterPageDef"
Package="pages.standardFlexParameter">
<parameters/>
<executables>
<variableIterator id="variables"/>
<iterator Binds="FlexstandardView1" RangeSize="25"
DataControl="flexStandardAppModuleDataControl"
id="FlexstandardView1Iterator"/>
</executables>
<bindings>
<attributeValues IterBinding="FlexstandardView1Iterator"
id="FlexstandardId">
<AttrNames>
<Item Value="FlexstandardId"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="FlexstandardView1Iterator"
id="FsInternalcode">
<AttrNames>
<Item Value="FsInternalcode"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="FlexstandardView1Iterator" id="FsDescription">
<AttrNames>
<Item Value="FsDescription"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="FlexstandardView1Iterator" id="FsCardinality">
<AttrNames>
<Item Value="FsCardinality"/>
</AttrNames>
</attributeValues>
</bindings>
</pageDefinition>
Edited by: micwic on Mar 1, 2010 7:30 AM

Edited by: micwic on Mar 1, 2010 7:46 AM

Edited by: micwic on Mar 1, 2010 9:16 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2010
Added on Feb 28 2010
0 comments
935 views