• 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: Problem with nextPageDelegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with nextPageDelegate


  • Subject: Re: Problem with nextPageDelegate
  • From: Ramsey Gurley <email@hidden>
  • Date: Tue, 04 Sep 2012 10:12:03 -0700

Hi Antoine,

You almost had it. Use the entire class path and use the ERDDelayedObjectCreationAssignment instead of Assignment.  That will generate the object using the default constructor.

Be aware though... if you are working with embedded D2W pages with a bound action binding, you can't set the nextPageDelegate because it is already set.  In most cases, I don't use the nextPageDelegate. I use the pageController instead.

Ramsey


On Sep 4, 2012, at 9:54 AM, Antoine Berry wrote:

> Hello everybody,
>
> I'm working on a D2W application, and I'm trying to override most of the nextPage default behavior. I've created a delegate which reorient the user on an inspect page of his object after its creation (for exemple), and first i've set it in the code (through the navigationController), and it worked quite well.
> But I would want to do it directly in the rules, cause I don't have direct access on every pages, like the edit pages for exemple. So I tried to add a rule like "100 : pageConfiguration like 'CreateMyObject' => nextPageDelegate <= InspectAfterCreationDelegate". But there is a ClassCastException : "cannot cast from java.lang.String to com.webobjects.directtoweb.NextPageDelegate". And it's the same exception when I put the complete path of my class...
> I've tried different things, but I can't find a solution, and I don't know where to search. I'm new on the mailing list so I'm sorry if this subject has been discussed before (maybe somebody have an archive about a similar discussion).
>
> Antoine
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problem with nextPageDelegate
      • From: Antoine Berry <email@hidden>
References: 
 >Problem: ERXExtensions have not been initialized. (From: Ângelo Andrade Cirino <email@hidden>)
 >Problem with nextPageDelegate (From: Antoine Berry <email@hidden>)

  • Prev by Date: Re: Problem: ERXExtensions have not been initialized.
  • Next by Date: Re: com.webobjects.jdbcadaptor.JDBCAdaptorException: EvaluateExpression failed
  • Previous by thread: Problem with nextPageDelegate
  • Next by thread: Re: Problem with nextPageDelegate
  • Index(es):
    • Date
    • Thread