Question regarding new inline style
Question regarding new inline style
- Subject: Question regarding new inline style
- From: Guido Neitzer <email@hidden>
- Date: Sat, 2 Feb 2008 22:30:40 -0700
Hi.
Something is not really clear to me with the 5.4 component parser:
The documentation [1] states:
"Keys prefixed with the Q character are analogous to prefixing ? in
the original .wod file in a WOComponent bundle and are used for
appending formValue content."
And even gives an example:
Hyperlink1: WOHyperlink {
?movieID = movieID;
directActionName = "DisplayMovie";
}
should be converted to:
<wo:wohyperlink QmovieID="[movieID]" directActionName="DisplayMovie" />
First off all, that example is pretty stupid as the hyperlink will not
show up on a page without at least a "string" binding set or
surrounding something.
Next: if used that way, it will throw an exception (this is from my
own app, therefore the different action):
com.webobjects.appserver.parser.woml.WOMLTemplateParserException:
Main: 6:68: wo:wohyperlink {null={action=[sort],
Qkey=inventoryNumber}} has no WOElement
This is because the syntax is wrong, you have to use "WOHyperlink"
instead of "wohyperlink" to get this working. Next:
the "Q" parameters don't work. This definition in the code:
<wo:WOHyperlink action = "[sort]" Qkey = "inventoryNumber">#</
wo:WOHyperlink>
results in this:
<a qkey="inventoryNumber" href="/cgi-bin/WebObjects/BigCD.woa/wo/
h32G0uhqDFIQtYKTXKfyLg/0.0.5.3">#</a>
So, how is that thing supposed to be used? Bugs in the documentation?
Bugs in the implementation? Understanding problem on my side?
Thanks for clarification!
cug
[1] http://developer.apple.com/documentation/InternetWeb/Reference/WO_BundleReference/Articles/WOComponentHTML.html
_______________________________________________
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