Unsolved

This post is more than 5 years old

5 Posts

702

July 22nd, 2009 03:00

how to pass argument in a xml and retrive value in class file

we have used oninit method to retrive vale but it is returning null value.plase look into the matter as soon as possible and reply soon.

3.4K Posts

July 22nd, 2009 05:00

Please refrain from making multiple posts about the same issue - its harder to track responses if answers are spread across multiple posts. Please post your onInit code.

5 Posts

July 22nd, 2009 21:00

I have a action.xml as:







helloworld
dialogcontainer





and the oninit() code :
public void onInit(ArgumentList arg)
{
System.out.println("*** onInit method of HelloWorldComponent called ");
String logType= arg.get("contracts");
System.out.println("****** = "+logType);
super.onInit(arg);
}

It is returning "null".

3.4K Posts

July 23rd, 2009 10:00

What happens if you move

super.onInit(arg);

before the first system.out
No Events found!

Top