Skip to Content
author's profile photo Former Member
Former Member

component controller implementation code is not saved

Hi

i developed table application and i am writing some code in controller controller implementattion tabl

but its not saving .

when i click save its undoing all the changes

so please let me know the reasion for that

and how to over come that.

regards

mmukesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 07:28 AM

    HI Mukesh,

    Where exactly you are adding the code.in web dynro you can add code in only certain predefined places.if you add anywhere else at the time of saving it will

    revert those chages

    With Regards

    Naidu

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      What everuser open your implementation tab of every controller or view read the top of the sentences.

      // This file has been generated partially by the Web Dynpro Code Generator.

      // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.

      // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.

      And any of userdefined code u need to add

      read the following

      /*

      • The following code section can be used for any Java code that is

      • not to be visible to other controllers/views or that contains constructs

      • currently not supported directly by Web Dynpro (such as inner classes or

      • member variables etc.). </p>

      *

      • Note: The content of this section is in no way managed/controlled

      • by the Web Dynpro Designtime or the Web Dynpro Runtime.

      */

      //@@begin others

      //@@end

      Thanks,

      Lohi.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 07:32 AM

    Hi Mukesh,

    Inorder to save the changes you need to use '<b>Save All Metadata'</b> option available under File menu.

    You are only allowed to write code between //@begin -- //@end. If still you are getting the same problem close the project, open it and then do the reload/rebuild.

    Regards,

    Jhansi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 08:19 AM

    Hi Mukesh,

    I once had the effect that anything I changed in the "Implementation" tab was gone after I switched to another tab and then back to "Implementation". This was due to some other error in my project (for instance, missing context mappings or similar).

    If this could be the case, then please have a look at the "Tasks" window to see whether there are any errors displayed.

    The other possibility, which was already stated, is of course that you write code into self-generating parts of the component controller. You are only allowed to write code into the lines between //@@begin:others and //@@:end. If you're creating additional methods, you should create these methods in the Methods tab. You then see the method frame in the Implementation tab and can add code there as well.

    Regards,

    Fabian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 03:35 PM

    Mukesh,

    1. As other suggested, make sure you are adding code only within custom code regions (between //@begin -- //@end or similar blocks)

    2. Make sure you are not edit generated *.java files but rather controller files *.wdcontroller in special editor that is opened from WebDynpro perspective.

    VS

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.