cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Message Pool In web Dynpro

Former Member
0 Kudos

Hi

I have created the InputForm application for error handling.... In that i have created the Message Pool. A class IMessage<ComponentName> has been genrated automatically. Inside this class whether i have to write the code for create CONSTANT keys or else it will automatically create ... Because i am not getting code inside... its generating empty class.....

like

public class IMessageSimpleErrorsForm{

}

but i have gone through one application which is already created and deployed.... In that I found the following class for creating CONSTANT keys

public interface IMessageSimpleErrors {

/**

  • ErrorMessage <code>"Please enter a valid date for field {0}. You entered , which is a date in the future and therefore not a valid date of birth."</code> using

  • key "DateIsInFuture".

*/

public static final IWDMessage DATE_IS_IN_FUTURE = new WDMessage( "com.sap.tc.webdynpro.tutorial.errorbehavior.IMessageSimpleErrors" , "DateIsInFuture", WDMessageType.ERROR);

/**

  • Warning <code>"You did not enter an e-mail address. Therefore, you will not be informed about product news and special offers."</code> using

  • key "DesiredEMail".

*/

public static final IWDMessage DESIRED_E_MAIL = new WDMessage( "com.sap.tc.webdynpro.tutorial.errorbehavior.IMessageSimpleErrors" , "DesiredEMail", WDMessageType.WARNING);

/**

  • ErrorMessage <code>": Entry of a valid is required for proceeding with the requested service."</code> using

  • key "MissingInput".

*/

public static final IWDMessage MISSING_INPUT = new WDMessage( "com.sap.tc.webdynpro.tutorial.errorbehavior.IMessageSimpleErrors" , "MissingInput", WDMessageType.ERROR);

}

please help me

Thanks & Reagards

Ravi Shankar B

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Ravi,

Pay attention that constant are generated only for messages types Standart, Warning and Error but not for Text.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

hi

i have created message types as "error" and "warning"

but i didnt get any code

thanks & reagards

ravi shankar b

former_member182372
Active Contributor
0 Kudos

Hi Ravi,

Delete everything under gen_wdp, right clicj on projecy, select "Reload", "Reload+rebuild"

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

hi,

i have done what u said but i am not getting the previous in built classes also

thanks & regards

Ravi shankar b