Re: Help deciphering SocketException, (anchor problem)
Re: Help deciphering SocketException, (anchor problem)
- Subject: Re: Help deciphering SocketException, (anchor problem)
- From: Chuck Hill <email@hidden>
- Date: Fri, 9 Dec 2005 11:32:34 -0800
On Dec 9, 2005, at 11:28 AM, Baiss Eric Magnusson wrote:
Well, what do you mean by quotes, the <appendToResponse> line below
shows the partial URL, with the syntax of the anchor present.
Below is the actual URL in the browser.
<http://baissg5.local:64899/cgi-bin/WebObjects/FinancialWO.woa/wo/
9I6pMV3l2YEX5M0LA19d9M/3.#EditRow61>
The <WOGenericElement> that puts out the anchor has the binding.
AnchorOpenEdit: WOGenericElement {
elementName = "a";
name = buttonAnchor;
}
Where <buttonAnchor> is a String method returning the anchor text,
i.e. <#EditRow61>
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden