So, I'm copying many of the example programs and converting to WO54 style
bindings while I go.  I got the message:

com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Test:
21:4: Could not generate an element named: WOHyperlink
Could not generate an element named: WOHyperlink

When I substitute ERXHyperlink, my problem goes away.  Since I seem to be
batting less than .200 (US Baseball metaphor) I'll be a little bit more
circumspect, but this does seem like a bug.  (The Javadoc says don't use
ERXHyperlink directly.)

<wo:ZPage title ="Test" pagewidth="doc4" grid="yui-t7">
    <table width="200">
        <tr>
            <th colspan="2">Current Batch: <wo:WOString value="[
dg.currentBatchIndex]"/> of <wo:WOString value="[dg.batchCount]"/></th>
        </tr>
    </table>
    <table width="200" id = "tableRows">
        <wo:WORepetition list = "[dg.displayedObjects]" item = "[current]">
            <tr>
                <td><wo:AjaxInPlaceEditor value = "[current.name]"/></td>
                <td ><wo:AjaxInPlaceEditor value = "[current.value]"/></td>
            </tr>
        </wo:WORepetition>
    </table>

    <wo:AjaxInPlace id = "ExampleInPlaceManual" saveAction="[valueSaved]"
cancelAction="[valueCancelled]" manualControl="[true]">
        <wo:ERXWOTemplate templateName = "view">
            View: <wo:WOString value ="[manualValue]"/>
            <br/>
            <wo:WOHyperlink href="javascript:void(0)"
onclick="ExampleInPlaceManualEdit()">edit</wo:WOHyperlink>
        </wo:ERXWOTemplate>
        <wo:ERXWOTemplate templateName = "edit">
            Edit: <wo:WOTextField value="[manualValue]" size = "30"/>
            <br/>
            <wo:WOHyperlink href="javascript:void(0)"
onclick="ExampleInPlaceManualSave()">save</wo:WOHyperlink>
            <wo:WOHyperlink href="javascript:void(0)"
onclick="ExampleInPlaceManualCancel()">cancel</wo:WOHyperlink>
        </wo:ERXWOTemplate>
    </wo:AjaxInPlace>
    <br/>
    <wo:AjaxInPlace id = "fancy" manualEditControl="[true]">
        <wo:ERXWOTemplate templateName = "view">
            <div id = "fancyView">
                <h2>Personal Information</h2>
                <table>
                    <tr>
                        <th>First Name</th>
                        <td><wo:WOString value ="[firstName]"/></td>
                    </tr>

                    <tr>
                        <th>Last Name</th>
                        <td><wo:WOString value = "[lastName]"/></td>
                    </tr>

                    <tr>
                        <th>Phone Number</th>
                        <td><wo:WOString value = "[phoneNumber]"/></td>
                    </tr>
                </table>
                <p class = "clickToEdit">click anywhere to edit</p>
            </div>
        </wo:ERXWOTemplate>

        <wo:ERXWOTemplate templateName = "edit">
            <div id = "fancyEdit">
                <h2>Edit Personal Information</h2>
                <table>
                    <tr>
                        <th>First Name</th>
                        <td><wo:WOTextField value = "[firstName]"
size="30"/></td>
                    </tr>

                    <tr>
                        <th>Last Name</th>
                        <td><wo:WOTextField value="[lastName]" size =
"30"/></td>
                    </tr>

                    <tr>
                        <th>Phone Number</th>
                        <td><wo:WOTextField value="[phoneNumber]" size =
"30"/></td>
                    </tr>
                </table>
                <br/>
                <wo:AjaxSubmitButton value = "save" onClick="fancySave()"/>

                <wo:AjaxFunctionLink
onclick="fancyCancel()">cancel</wo:AjaxFunctionLink>
            </div>
        </wo:ERXWOTemplate>
    </wo:AjaxInPlace>
    <wo:AjaxBusyIndicator busyImage = "busyBigSpinner.gif"
busyImageFramework = "Ajax"/>
</wo:ZPage>


-- 
Les Vogel
808 870-0418
 _______________________________________________
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