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