• 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: AjaxSubmitButton with directActionRequestHandler results in cryptical class reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxSubmitButton with directActionRequestHandler results in cryptical class reference


  • Subject: Re: AjaxSubmitButton with directActionRequestHandler results in cryptical class reference
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 16 Sep 2013 17:45:21 +0000
  • Thread-topic: AjaxSubmitButton with directActionRequestHandler results in cryptical class reference

I don't think your problem is in the Application constructor.  What are the bindings on your AjaxSubmitButton?

Chuck


On 13-09-16 7:56 AM, ""Dipl.-Ing. Jens Lünstedt"" wrote:

Hello All,
I'm not very familiar with Ajax and webobjects so I didn't understand what is wrong. I hope one can help me. I only found one comparing question in the internet but without an answer.
Here is my problem:

I have a webobjects application where in a modal window I like to search for something.
So there are some textfields and lists where the user can enter some search criteria. After that he should press a button to search. (This is the step before I will use live search).
When I use the normal Submitbutton it does a refresh of the whole page and the modal window disappears of course. So I like to use the AjaxSubmitButton in the hope that the values of the textfields are send to the server before the button action is run.
But when I use the AjaxSubmitButton I get an error that the class for example: Couldn't locate action class named 'jgtWMWA0AcZ4DtLCSIuQ20' is not found. On the other side the compiler found the correct method.
I found out that this has something to do with using the directAction class.

So as described in the Wonder documentation I use this code in the Application constructor
String directActionRequestHandlerKey = this.directActionRequestHandlerKey();
WORequestHandler directActionRequestHandler = this.requestHandlerForKey(directActionRequestHandlerKey);
this.setDefaultRequestHandler(directActionRequestHandler);

When I don't use this, the AjaxSubmitButton is working properly but the rest of my application doesn't work anymore.
I tried to use the AjaxRequestHandler for ComponentRequests but than the other Ajax functions are not working anymore.

So the question is:
How do I have the Application constructor to change so that both are working, the directActions and the AjaxSubmitButton?

Thank you very much

Jens


-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! 

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
 _______________________________________________
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

  • Prev by Date: Re: structure opinions
  • Next by Date: Re: AjaxSubmitButton with directActionRequestHandler results in cryptical class reference
  • Previous by thread: Re: JRebel 5.3.2
  • Next by thread: Re: AjaxSubmitButton with directActionRequestHandler results in cryptical class reference
  • Index(es):
    • Date
    • Thread