on 05-04-2007 9:23 AM
Hi All,
I am currently working on the Tutorial "Exporting Table data to Excel 2003".
There is a method toExcel which uses StringBuffer class.The compiler is throwing this exception
"The type AbstractStringBuilder is not visible".
Is it because of the reason that NWDS is using JDK 1.4
Should I install JDK 1.5 to fix the bug.
Regards
Nikhil Bansal
Hai Nikhil,
If you added any public parts in your DC -- Used DCs with dependcy Deploy.
Deploy that DC also. otherwise uncheck the Deploy Dependency.
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naga Raju,
Thanks for the inputs.
Can you please let me know how to do the stuff that you have mentioned "Deploy that DC also. otherwise uncheck the Deploy Dependency."
I did not create a DC rather I created a project with the name WD_ExcelExport. After that I unzipped the contents of WD_ExcelExport.zip in the WebDyn Pro project. Is this approach correct.
Please let me know.
Regards
Nikhil Bansal
Nikhil,
In component TableComp, goto Used Web Dynpro Components, check here if yu can see the ExcelExport Component, double click if it is there, check what is its LifeCycle, it should be CreateOnDemand.
Come to the component controller of TableComp, double click on it and check its properties, under Required Controller you should see ExcelExportComp and TableComp, if not click on ADD and take use of both of these.
rebuild application and deploy
regards
Hai nikhil,
See this <a href="https://eclipse.org/bugs/show_bug.cgi?id=51353">Bug Report</a>
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
StringBuilder is a class introduced with JDK 1.5. yeah error might be because JDK1.4. upgrade to 1.5
see this:
<b>i think you are short of some jars</b>
hope it helps
let me know if you face any problem
regards
(sorry, your reply to earlier post i saw today morning)
Message was edited by:
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhijeet,
I implemented a workaround for the problem by using the String class instead of StringBuffer.
However, when I am deploying the application then I am getting the foll. error
Failed to create delegate for component com.sap.tut.wd.tutwd_table.tablecomp.TableComp. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
Let me know what am I missing.
Regards
Nikhil Bansal
Nikhil,
there are 2 components in that project, so is anybody of them giving some build errors, do you see any red mark in implementation of views or component controller,
Check out the component TableComp, i think this is not built properly, remove any error if it has, and Rebuild your project, and then Deploy
hope it helps
regards
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.