XTiles is now included in the contrib library, so the first thing to try is to remove the XTile library you have obtained and use the contrib library (jwcid="@contrib:XTile")

Hope this helps,

Paul

Gertjan Assies <[EMAIL PROTECTED]> wrote:

Hi,

I'm trying to get XTile to work but i'm running into the following
error :

Unable to process client request: Incorrect component type: was class
$XTile_291 but must be interface org.apache.tapestry.contrib.ajax.IXTile

the code in XTileService class that throws this is the following :

      String componentId =
cycle.getParameter(ServiceConstants.COMPONENT);
if (!(component instanceof IXTile))
        throw new ApplicationRuntimeException("Incorrect component type: was "
+ component.getClass() + " but must be " + IXTile.class,
                        component, null, null);

If I understand correctly $XTile_291 is an instance of the XTile
component with tapestry adding the $ and an unique number
The XTile class implements IXTile so the instanceof _should_ return
true
anyone have a clue what i'm missing here.
Thanks,
Gertjan

some specs:

tapestry 4.0 beta 7, tomcat 5.5.9, Fedora Core 4

my definition in app.application :

        <component-type type="XTile"
specification-path="/org/mb/tapestry/xtile/XTile.jwc" />

in my Home.html it is this (basically the example from www.t-deli.com
inside a block component):

 <span jwcid="[EMAIL PROTECTED]">
Start typing the name of a country in the field below. <br>
The page will connect to the server and ask for possible completions.
   <form name="f">
   <table cellspacing="0" cellpadding="0">
       <tr>
           <td>Country: </td>
           <td><input type="text" style="width: 200px"
onkeyup="sendValue(this.value)"/></td>
       </tr>
       <tr>
           <td></td>
           <td><textarea name="comps" rows="10" style="width: 200px"
disabled="true"></textarea></td>
       </tr>
   </table>
   </form>

   <span jwcid="@XTile" listener="ognl:listeners.handleCallback"
       sendName="sendValue" receiveName="recvCompletions"/>

   <script>
       function recvCompletions(arr) {
        document.f.comps.value = arr.join("\n");
       }
   </script>
</span>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to