Back Forum Reply New

How to wire data from dataTable select

I'm using webflow 1.0.4 with JSF. I've studied the sample apps but I'm confused when as to how to tie things together when displaying a dataTable and selecting the data.

My dataTable:

Code:

lt;h:dataTable border=quot;2quot; frame=quot;borderquot; rowClasses=quot;list-row-odd,list-row-evenquot; id=quot;sysConfigListResultsquot; headerClass=quot;table-headerquot; value=quot;#{results}quot; var=quot;recordquot; binding=quot;#{sysconfig_Backing.data}quot;gt;
lt;h:columngt;   lt;f:facet name=quot;headerquot;gt;     lt;hutputText value=quot;#{resource.columnSysConfigCategory}quot; /gt;   lt;/f:facetgt;   lt;hutputText value=quot;#{record.category}quot; /gt; lt;/h:columngt;
.....
lt;h:columngt;   lt;h:commandLink value=quot;Selectquot; action=quot;#{sysconfig_Backing.editSysConfigAction}quot; immediate=quot;falsequot; id=quot;selectLinkquot;/gt; lt;/h:columngt;         
lt;/h:dataTablegt;
My Backing Bean:

Code: private UIData data = null;
public String editSysConfigAction() {   SysConfig selectedSysConfig = (SysConfig) getData().getRowData();
   FacesContext ctx = FacesContext.getCurrentInstance();
   // Store selected SysConfig Row accessible later as #{SelectedSysConfig}   ctx.getExternalContext().getSessionMap().put(quot;SelectedSysConfigquot;, selectedSysConfig);
   return quot;editSCquot;; }
My misunderstanding here is with the binding of the data while invoking the flow. The commandLink's action invokes my backing bean and will set the value in the SessionMap, but how do I invoke the flow? Do I need to implement an Action and have the flow invoke it rather than a method on my BackingBean?

Any guidance here is appreciated.

Thanks..
¥
Back Forum Reply New