• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WO54 Wonder Ajax - WOHyperlink possibly not getting replaced by ERXHyperlink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WO54 Wonder Ajax - WOHyperlink possibly not getting replaced by ERXHyperlink


  • Subject: WO54 Wonder Ajax - WOHyperlink possibly not getting replaced by ERXHyperlink
  • From: "Les Vogel" <email@hidden>
  • Date: Tue, 27 Nov 2007 14:49:19 -1000

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=""
        </wo:ERXWOTemplate>
        <wo:ERXWOTemplate templateName = "edit">
            Edit: <wo:WOTextField value="[manualValue]" size = "30"/>
            <br/>
            <wo:WOHyperlink href="" >            <wo:WOHyperlink href=""
        </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"
                <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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Object with globalID could not be found in the database, when it is there ??
  • Next by Date: Re: Object with globalID could not be found in the database, when it is there ??
  • Previous by thread: Re: Webservices and arrays deserializer and WO 5.4
  • Next by thread: Wonder AjaxInPlace within a WORepetition?
  • Index(es):
    • Date
    • Thread