on ‎2004 May 20 3:35 PM
Hi all,
As my jsp page is becoming a long file, due to 64kb method limit the jsp page is giving java.lang.VerifyError during jsp compilation. Due to this reason i have split the jsp page into 3 seperate jsp pages and included them using action tags. All these three page will be having their own <hbj:content id="a1PageContext" ><hbj:form id="form1" >... hbj:content id="a2PageContext" ><hbj:form id="form2" >...hbj:content id="a3PageContext" ><hbj:form id="form3" >.
Now when i click a button in the 3rd jsp page , in the pageprocessor, i could able to access the controls within the current(3rd) jsp page only using method
InputField inputFld = (InputField)this.getComponentForId("input1");
It is giving null for controls of jsp page1 & 2.
How cxan i access these controls data in the jspGynpage.
Your help is highly appreciable.
Thanks & Regards
Markandeya
Request clarification before answering.
The id you give a htmlb element, is not the same which it uses in the create html. Therefore javascripts wont work.
See http://devnetmedia.sap.com/html/submitted_docs/htmlbManuals/javascriptapi_dev.html for more info.
One of the things taking up alot of space is the htmlb layout elements. If this is the reason you have such a big file you should considere using tables instead
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for giving such helpful link. This link certainly helpful to me while client side access.
Now my problem is how to access all these controls in the server(Processor). I am able to access controls within the same form/jsp page from which event(button click) is generated.
I am not using htmlb layouts, page contains tabstrips, tableviews.
Now my problem is how to access all these controls in the server(Processor).
Thanks
Markandeya
Well, when you are using using multiple forms on a page, then only one of them will be posted.
Therfore, you cannot access all of the elements on the page from your server component.
You could "hack-it-up" by adding hidden inputfields to all forms which keep the information from the other forms (and their value is updated by javascripting). But this is not a good solution.
Think you need to redesign the screen flow, or find some new way of having several jsp's on one page
Thank you,
The hidden fields concept seems to be good idea. But i am having lot of fields and tracking them using javascript on each event may be tedious.
From the http request/ any other way to access all fields..
Instead of jsp action includes, if i use jsp static includes then also the 64 kb problem is coming.
If no solution, then i need to redisgn the screen
Thanks & Regards
Markandeya
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.