Hi Ramona,
On the server side in ULCSnippetHelper:
public static void setEnterToTab(ULCTable component) {
//getInstance().sendUI("setEnterToTab", component.getRef());
getInstance().invokeUI("setEnterToTab", new Object []
{component} );
}
On the client side in UISnippetHelper implement a method:
public void setEnterToTab(UITable uiTable) {
JComponent basicComponent =
(JComponent)uiTable.getBasicComponent();
KeyStroke tabKeyStroke =
KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
Object actionMapKey =
basicComponent.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUS
ED_COMPONENT).get(tabKeyStroke);
KeyStroke enterKeyStroke =
KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0);
basicComponent.getInputMap().put(enterKeyStr
oke,
actionMapKey);
}
In UISnippetHelper#handleRequest remove the part that handles
"setEnterToTab"
Please refer to section 3.4.4 Marshalling of ULC Extension Guide.
Thanks and regards,
Janak
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ramona Berinde
Sent: Wednesday, June 21, 2006 5:09 PM
To: [EMAIL PROTECTED]
Subject: [ULC-developer] Help needed in migrating components from ULC5.2.1
to ULC6.1
Hello,
could somebody help me migrate this component to ULC6.1?
http://lists.canoo.com/mailman/private/ulc-developer/2005/002410.html
I have read the documentation and it says that the method handleRequest is
deprecated and I should implement the ULCProxy.setStateUI(...),
ULCProxy.addStateUI(...) ULCProxy.removeStateUI(...) etc. methods on
server-side instead.
But then how do I access the basic component on the clientside?
Thanks,
Ramona.
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer