Nevermind, just realized that xtile has moved to contrib for tapestry 4.
works now :)

On 1/15/06, Inge Solvoll <[EMAIL PROTECTED]> wrote:
>
> I have problems getting xtile to call my listener after installing the new
> tapestry4-xtile. Nothing happens, and Firefox js-log shows this:
>
> Error: response.responseXML has no properties
> Source File: http://localhost/moby/SurveyMultiSourceParticipants.html
> Line: 620
>
> I have built a jar from the xtile4 source on t-deli.com, to use with my
> tapestry4. xtile has previously worked for me with the same code on
> tapestry3. I'm using the standard friendly urls setup recommended in the
> user guide.
>
> The url generated looks like this:
>
> var url = 
> "/moby/SurveyMultiSourceParticipants.html?component=saveRespondentCom&page=SurveyMultiSourceParticipants&service=xtile";
>
> My listener method looks like this:
>
>   /**
>
>    * AJAX auto save functionality, saves mailtext every 30 seconds (if 
> changed) using XTile.
>    *
>    * @param cycle
>    */
>   public void saveText(IRequestCycle cycle) {
>     log.debug("Entered saveText method");
>
>     String[] ret = new String[1];
>     String mailText = (String) cycle.getListenerParameters()[0];
>     long participantId = getRequestingUserId();
>     try {
>       EvaluationAPI.saveInvitationMessage(getRequestingUserId(), 
> getSurveyId().longValue(), participantId, mailText);
>
>     }
>     catch (Exception e) {
>       log.error("Error while auto saving mail text", e);
>       ret[0] = "";
>     }
>
>     String currentTime = Populator.getDate(new Date(System.currentTimeMillis
> ()), "HH:mm");
>     String timeMessage = format("autosave.time", currentTime);
>     ret[0] = timeMessage;
>     cycle.setListenerParameters(ret);
>   }
>
>
> Any ideas?
>
> Inge
>

Reply via email to