|
Hi Aaron, One way to accomplish this, would be to bind DataTable tag to a property in your backing bean, which could be some sort of a DataModel for the DataTable. In the getter for that property you would need to write code that retrieves data from your data queue and initializes your DataModel (only if DataModel is empty). Subsequently, your action listener will update the DataModel object based on what comes back from the RPG application. Hence, you don't even need to bind your data table to an HtmlDataTable component, just its value. I have some code that does something similar. I can post snippets, if you'd like. Hope this is of help, Vadim. Internet: berestet@xxxxxxxxxx "Bartell, Aaron L. (TC)" <ALBartell@taylor To corp.com> "Websphere Development Studio Sent by: Client for iSeries" wdsci-l-bounces@m <wdsci-l@xxxxxxxxxxxx> idrange.com cc Subject 10/26/2004 05:08 [WDSCI-L] JSF - Fill table with a PM data set Please respond to Websphere Development Studio Client for iSeries I am diving head first into JSF and have found it to be nice (and challenging to learn). The hardest part to deal with is that I am not controlling the different stages, but instead the JSF life cycle handles it for me. I have figured out how to create my own validator, my own action listener, and now I want to display a result set or data set back to the browser. I am assuming that I should create a faces component like Data Table, and I am assuming that I should fill this Data Table in my action listener. There in lies the problem - how do I display a result set back to the user, filling in a predefined JSF Data Table? I have tried some simple things like changing the background color of the table without success. See below for what I have tried. HtmlDataTable table1 = (HtmlDataTable) PageCodeBase.findComponentInRoot("table1"); table1.setBgcolor("black"); Note that I am not using WDO (SDO) but rather am getting my data from data queues being filled by RPG. So somewhere in the JSF cycle I need to go and get the result set by calling existing Java/RPG logic. Hope I made sense in what I am trying to do. Thoughts? Aaron Bartell _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.