• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOWidgetController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOWidgetController


  • Subject: Re: EOWidgetController
  • From: Rob Caljouw <email@hidden>
  • Date: Mon, 24 Mar 2003 15:19:26 -0500

Thanks Eric,

That worked.  I also had to associate my source file with both the
Application Server target and the Web Server target.

Thanks again,

On 3/24/03 3:03 PM, "Eric Hermanson" <email@hidden> wrote:

> The D2JC documentation is not complete, and it probably steered you the
> wrong way...
>
> Basically, there are two ways to install a custom D2JC widget:
>
> 1. The more complicated way to install a custom controller is to use
> RHS rule override that contains something similar to the following:
>
> widgetController = MyCustomController;
>
> If you choose this route, you must define a "MyCustomController.wo",
> the corresponding com.webobjects.eogeneration.rules.EORuleComponent
> subclass, and the com.webobjects.eogeneration.EOWidgetController
> subclass (i.e. MyCustomController).  This is because WO will replace
> it's entire widgetController XML definition AND WOComponent with your
> custom definition and WOComponent.  This gives you the highest level of
> control.  See the component definitions (.wo) in
> /System/Library/Frameworks/JavaEORuleSystem.framework for examples of
> how the WOComponents look.
>
> 2. The second (and easier) way to install a custom component is to use
> a RHS side rule similar to the following:
>
> className = com.my.company.MyCustomController;   (note: this is a
> subclass of EOWidgetController)
>
> This is all you need to do.  No need to define a custom .wo.
> WebObjects will use the appropriate component definition in
> /System/Library/Frameworks/JavaEORuleSystem.framework, and it will
> superimpose your custom EOWidgetController subclass over this
> definition.
>
> - Eric
>
>
>
> On Monday, March 24, 2003, at 11:19  AM, Rob Caljouw wrote:
>
>> Hi,
>>
>> Has anyone had any success with using custom widgets in D2J
>> applications in
>> WebObjects 5.2?
>>
>> I tried the example in Java Client Desktop Applications (P. 268) but
>> when
>> the rule fires I get the following error in the Console.
>>
>> Exception occurred during event dispatching:
>> java.lang.IllegalStateException: Server exception: Cannot find
>> component or
>> dynamic element named 'CustomController'
>>     at
>> com.webobjects.eodistribution.client.EODistributedObjectStore._checkRet
>> urnVa
>> luesForExceptions(EODistributedObjectStore.java:565)
>>     at
>> com.webobjects.eodistribution.client.EODistributedObjectStore.invokeSta
>> teles
>> sRemoteMethodWithKeyPath(EODistributedObjectStore.java:1098)
>>     at
>> com.webobjects.eogeneration.client._EORemoteXMLProvider._provideXML(_EO
>> Remot
>> eXMLProvider.java:19)
>>     at
>> com.webobjects.eogeneration.EOControllerFactory._concreteEvaluateRules(
>> EOCon
>> trollerFactory.java:391)
>>     at
>> com.webobjects.eogeneration.EOControllerFactory.evaluateRules(EOControl
>> lerFa
>> ctory.java:443)
>>     at
>> com.webobjects.eogeneration.EOControllerFactory._concreteControllerArch
>> iveWi
>> thSpecification(EOControllerFactory.java:1046)
>>     at
>> com.webobjects.eogeneration.EOControllerFactory._specificationDataIfAva
>> ilabl
>> e(EOControllerFactory.java:1131)
>>
>> ....
>>
>> I've tried various incantations of the rules, different package names.
>>  I've
>> checked the build directory and the class file is in the right place.
>>
>> Thanks,
>>
>> Rob Caljouw
>>
>>
>> _______________________________________________
>> WebObjects-dev mailing list
>> email@hidden
>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
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.

  • Follow-Ups:
    • EOWidgetController actions
      • From: Rob Caljouw <email@hidden>
References: 
 >Re: EOWidgetController (From: Eric Hermanson <email@hidden>)

  • Prev by Date: Re: EOWidgetController
  • Next by Date: Timestamp.java 's setNanos()
  • Previous by thread: Re: EOWidgetController
  • Next by thread: EOWidgetController actions
  • Index(es):
    • Date
    • Thread