• 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: WOHyperlink and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOHyperlink and bindings


  • Subject: Re: WOHyperlink and bindings
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 24 Apr 2006 10:37:35 -0700


On Apr 22, 2006, at 12:13 AM, Steve Sharman wrote:

Thanks Chuck - that worked fine (and having read up a little more, I think I even understand why what I was doing didn't work...)

In case you were still wondering... Hyperlinks don't submit the form so no form data goes to the server. With no form data present, WO skips the takeValues phase. And even if it didn't, there are no values to take. :-) The other option to using submit buttons is to have the hyperlink submit the form. However, with multiple hyperlinks and one form, WO has no way of knowing which link was clicked. You might be able to do this by using JavaScript to copy the link's URL into the form. This might even "just work" with no further action from you. The other alternative is to use JavaScript to set a hidden field when the link is clicked and before the form submitted. Like this, you will have to do some fancy work on page to translate this field into the equivalent of clicking on the hyperlink.



Chuck


On 22 Apr 2006, at 01:53, Chuck Hill wrote:

The easy solution is to wrap it all in a form and make the WOHyperlinks submit buttons.

Otherwise, you will need some JavaScript and trickery to get the form submitted and let WO know which link was clicked.

Chuck

On Apr 21, 2006, at 5:49 PM, Steve Sharman wrote:

Dear All,

I'm having a simple problem which I'm sure I can solve by RTFM - my problem is that at this point I'm not sure which part of the FM I should be reading...

I have a simple page that allows users to build up a list of organisations to be included in a mail-merge file, and then to carry out a few simple operations - create the merge file, log the merge being taken place and so on. I am using WOHyperlinks and associated action methods to carry out the operations - once the action has been taken, I am returning a null WOComponent in order to simply return to the same page when the actions are complete.

This works fine for what I want, but I'm encountering a problem which I think makes sense, but that doesn't help me! I've included a couple of simple text boxes on the page and bound them to String variables. What I want to be able to do is to be able to pick up the values that the users enter in these boxes, and use them in the action method called when my WOHyperlink is called - however doing a good old diagnostic print on them returns the values as being null. I'm guessing that I have a problem with binding synchronisation here - like it's not happening.. (which I'm sure is correct because I'm using a hyperlink to call a method rather than submitting the page, but how do I deal with it?).

I'm guessing that the answer here lies somewhere in the information provided in chapters 6 & 7 of Chuck and Sacha's book which I'm going to take away and read in a minute - but if anything can throw me a lifeline whilst I'm away from the Mac scratching my head and wishing I was cleverer, it would be most appreciated....

With best regards,

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


This email sent to email@hidden

--
Coming in late 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


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/products/ practical_webobjects






--
Coming in late 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


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/products/practical_webobjects




_______________________________________________ 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: WOHyperlink and bindings
      • From: David LeBer <email@hidden>
References: 
 >WOHyperlink and bindings (From: Steve Sharman <email@hidden>)
 >Re: WOHyperlink and bindings (From: Chuck Hill <email@hidden>)
 >Re: WOHyperlink and bindings (From: Steve Sharman <email@hidden>)

  • Prev by Date: Re: fetch loop
  • Next by Date: Re: WOHyperlink and bindings
  • Previous by thread: Re: WOHyperlink and bindings
  • Next by thread: Re: WOHyperlink and bindings
  • Index(es):
    • Date
    • Thread