If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Problem to render Sun JSF Table data <webuijsf:....>

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-09, 06:34
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
Problem to render Sun JSF Table data <webuijsf:....>

Hi All,

We have a Web Application which is developed by using Sun JSF libraries with IDE as Rational Software Architect and Backend as DB2. This application initially developed with NetBeans, MySQL and Sun JSF, Tomcat environment. We migrated the entire project after facing lot of problems we can get resolve some problems to work on WebSphere Applicaiton Server. Still we have a problem on rendering the CachedRowSetDataProvider (multiple results) to JSF table with 7 columns, we used tag as <webuijsf:Table></webuijsf:Table>

Below I am pasting my sample code, please have a look and let me know if we need any changes on the below code, its bit urgent.

From Managed Bean:
private CachedRowSetDataProvider requestDataProvider = new CachedRowSetDataProvider();

private void _init() throws Exception {
requestDataProvider.setCachedRowSet((javax.sql.row set.CachedRowSet) getValue("#{SessiontBean1.requestRowSet}"));
}

From SessionBean1:

private void _init() throws Exception {

requestRowSet.setDataSourceName("jdbc/mydsname");
requestRowSet.setCommand("SELECT ALL request.requestid, request.userid, request.assetid, request.rdescription, request.requestdate FROM Administrator.request WHERE request.activityid = ? AND action_taken = \'0\'");
requestRowSet.setTableName("request");
}

From JSP :
<webuijsf:table augmentTitle="false" binding="#{AdminRequest.table1}" id="table1"
style="height: 149px; left: 48px; top: 264px; position: absolute; width: 768px" title="REQUESTS" width="768">
<webuijsf:tableRowGroup binding="#{AdminRequest.tableRowGroup1}" id="tableRowGroup1" rows="10"
sourceData="#{AdminRequest.requestDataProvider}" sourceVar="currentRow">
<hutputText value="#{currentRow.value['requestid']}"></hutputText>
<webuijsf:tableColumn align="center" headerText="REQUEST ID" id="tableColumn1" sort="requestid" width="20">
<webuijsf:staticText binding="#{AdminRequest.staticText1}" id="staticText1" text="#{currentRow.value['request.requestid']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn align="center" headerText="USER ID" id="tableColumn2" sort="userid" width="104">
<webuijsf:staticText binding="#{AdminRequest.staticText2}" id="staticText2" text="#{currentRow.value['request.userid']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn align="center" headerText="ASSET ID" height="29" id="tableColumn3" sort="assetid" width="20">
<webuijsf:staticText binding="#{AdminRequest.staticText3}" id="staticText3" text="#{currentRow.value['request.assetid']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn align="justify" headerText="DESCRIPTION" id="tableColumn4" sort="rdescription" width="144">
<webuijsf:staticText binding="#{AdminRequest.staticText4}" id="staticText4" text="#{currentRow.value['request.rdescription']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn align="center" headerText="DATE" id="tableColumn5" sort="requestdate" width="20">
<webuijsf:staticText binding="#{AdminRequest.staticText5}" id="staticText5" text="#{currentRow.value['request.requestdate']}"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn align="center" id="tableColumn6" width="10">
<webuijsf:button actionExpression="#{AdminRequest.button1_action}" id="button1" text="Accept"/>
</webuijsf:tableColumn>
<webuijsf:tableColumn align="center" id="tableColumn8" width="10">
<webuijsf:button actionExpression="#{AdminRequest.button2_action}" id="button2" text="Decline"/>
</webuijsf:tableColumn>
</webuijsf:tableRowGroup>
</webuijsf:table>
Any body reply with solution will be appreciate it:
Reply With Quote
  #2 (permalink)  
Old 11-02-09, 05:03
ramesh.ibm ramesh.ibm is offline
Registered User
 
Join Date: Oct 2009
Posts: 16
hi

it is bit urgent .. any kind of suggestion will be greatful

thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On