Not at all sure what you are doing / intending to do but...

On Dec 9, 2005, at 3:16 PM, Baiss Eric Magnusson wrote:

Very good, progress is being made, but:

appendToResponse in SC is doing anchor->/cgi-bin/WebObjects/ FinancialWO.woa/wo/XJ99ARpA7RzVJmyQbRzsT0/3.#EditRow89

That is at least one of the roots of your problems. This should be generating HTML like this:

<a href="#EditRow89">Edit Row 89</a>

note the binding on the WOHyperlink needs to be:
href = "#EditRow89";

The /3.#EditRow89 is making it to back to your app.


[2005-12-09 12:10:46 PST] <WorkerThread2> <WOWorkerThread id=2 socket=Socket[addr=/fe80:0:0:0:20a: 95ff:fed8:60f6,port=65188,localport=65113]> Exception while sending response: java.net.SocketException: Broken pipe

still occurs, here's the new generated HTML using WOGenericContainer

        <td>...<a name="#EditRow89"></a></td>

And assuming this is where the above link is to end up, should be:

<a name="EditRow89"></a>

Note _no_ #.

and the broken pipe occurs every time the anchor is appended, as I somewhat forced the situation and got from Safari:

""Too many redirects occurred trying to open
http://baissg5.local:65113/cgi-bin/WebObjects/FinancialWO.woa/wo/ XJ99ARpA7RzVJmyQbRzsT0/19.#EditRow89”"

This might occur if you open a page that is redirected to open another page which then is redirected to open the original page


It is often most helpful to get the HTML working on a static page, then work in WO to get it to generate HTML that you know works. It looks to me like you are battling both WO and a misapprehension of the anchor tag syntax.

Chuck


On Dec 9, 2005, at 11:32 AM, Chuck Hill wrote:

Most curious to me is that there is no terminating <\a> being generated, either that is an error in WOGenericElement or the trailing <\a> is unnecessary.

There is your answer! There is bad HTML. Fix that and the problem should be fixed.

The error is yours. You are using WOGenericElement and you should be using WOGenericContainer: "WOGenericContainer supports development of reusable components that closely model the behavior of common HTML elements. For example, along with WOComponentContent, you can use WOGenericContainer to implement your own hyperlink element as a reusable component. WOGenericContainer has attributes that support the takeValuesFromRequest and invokeAction phases of the component- action request-response loop."

WOGenericElement is for tags that have no closing tag like br and hr. WOGenericContainer is for tags that open and close like a, tr, div, span, etc.


Chuck

On Dec 8, 2005, at 3:56 PM, Chuck Hill wrote:

Check the page source for bad HTML. Are you sure there are quotes around the #EditRow61? Broken pipe means the woadaptor or browser hung up on the app before receiving a response.

Chuck

On Dec 8, 2005, at 11:23 AM, Baiss Eric Magnusson wrote:

appendToResponse in SC is doing anchor-> /cgi-bin/WebObjects/ FinancialWO.woa/wo/k8WVAyg92z01tf00bK4b7M/3.1.15#EditRow61

[2005-12-07 14:41:16 PST] <WorkerThread4> <WOWorkerThread id=4 socket=Socket[addr=/fe80:0:0:0:20a: 95ff:fed8:60f6,port=61780,localport=61700]> Exception while sending response: java.net.SocketException: Broken pipe

--
Coming in 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

----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>




--
Coming in 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to