Hi Daniel,

On the client side, ULC sets value from the model on a renderer. Setting a
value on the renderer on the server side does not help.

Since you are returning CustomNumber in your getValueAt() method, your
CustomNumber object will be required on the client side and you will need a
Coder for that.

You can avoid the coder by returning String in getValueAt() instead of
returning CustomerNumber.

For the DevelopmentRunner you can provde the registry provider throgh
command line arg as follows:

protected static final String USAGE_TEXT = "Usage: java <main class>
[ -useGui ]\n"
           + "                         [ -applicationClass <application
class> ]\n"
           + "                         [ -connectionType ( UNLIMITED |
MODEM28K | MODEM56K |\n"
           + "                                             DSL256K | DSL512K
|\n"
           + "                                             LAN1M |
LAN10M ) ]\n"
           + "                         [ -logLevel       ( OFF | SEVERE |
WARNING | INFO | CONFIG |\n"
           + "                                             FINE | FINER |
FINEST | ALL ) ]\n"
           + "                         [ -reloadClasses ]\n"
           + "                         [ -data-stream-provider" + " <class
name> ]\n"
           + "                         [ -carrier-stream-provider" + "
<class name> ]\n"
           + "                         [ -client-coder-registry-provider" +
" <class name> ]\n"
           + "                         [ -server-coder-registry-provider" +
" <class name> ]\n"
           + "                         [ -initParameter <key>=<value> ]\n"
           + "                         [ -userParameter <key>=<value> ]";


I hope this helps.

Thanks and regards,

Janak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel Dilitz
Sent: Wednesday, June 21, 2006 8:17 PM
To: [EMAIL PROTECTED]
Subject: [ULC-developer] Custom classes - Coder needed !?


Hello,

I got a problem with my tableModel.

My getValue() method returns a custom class (lets call it CustomNumber)
which results in a "IllegalArgumentException: No coder registered for class
xxx" while ULC tries to pass the Object to the client.

Actually I don't need the CustomNumber on client side because I wrote a
Serverside-Renderer which takes my CustomNumber and renders it with no need
of CustomNumber on client side.

Nevertheless the CustomNumber object gets passed to the client.

I think writing a Coder for CustomNumber would solve the Problem. Is that
right? Or is there any possibility to stop ULCTable from sending the actual
Value from tablemodel to the client?

And if so, is there any possibility to register the coderregisty in the
actual java- code or only is it only possible to register them in the
deploy- description files? Because if I develop with DevelopmentRunner I don
't load any deploy- descriptions.

Thanks for your efforts

Daniel

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to