D2JC Checkbox label position
D2JC Checkbox label position
- Subject: D2JC Checkbox label position
- From: William Butler <email@hidden>
- Date: Tue, 14 Jan 2003 17:04:01 -0500
I am wading into the land of D2JC. I had tried but turned back on
prior releases because the documentation was inadequate and because the
thing had bugs--but this time I am making actual progress. The basic
idea of a rule driven system that generates XML to the client is,
indeed, brilliant.
In the various widgets the label gets placed to the left of the input
widget, except that it gets placed on the right in
EOCheckBoxController. I've tried setting labelComponentPosition to
"Left" in the rule system and in frozen XML, and also calling
setLabelComponentPosition(javax.swing.SwingConstants.LEFT) at various
places in objects that extend EOCheckBoxController. However, despite
the above the label position remains on the right. (By the way, the
documentation only states that setLabelComponentPosition takes an
integer argument but does not say which argument value means which
position. It is an assumption of mine that they intend the use of
javax.swing.SwingConstants. If this assumption is incorrect then it may
explain my problems).
The only way I've gotten the label to be on the left is by overriding
newWidget() in an class that extends EOCheckBoxController and setting
setHorizontalTextPosition(avax.swing.SwingConstants.LEFT) in the result
of super.newWidget(). But this is not satisfactory because the result
is not properly aligned with the other fields.
Is there someway I can do to get this to work to have labels shown on
the left of checkboxes?
Also, while I have your attention, does someone out there have a good
scheme for logging from the client to the server (beyond placing
invokeStatelessRemoteMethod calls in the client classes)?
Thanks,
Bill Butler
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.