Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8293723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:55:41+00:00 2026-06-08T13:55:41+00:00

I’m trying to figure out how to update a tapestry zone using a dynamic,

  • 0

I’m trying to figure out how to update a tapestry zone using a dynamic, client-side-driven “context”. I’m fairly new to tapestry, and I’m stuck with 5.0 for now.

The main reason to do this is to reuse another tapestry component as a child of a jquery dialog, without having to rewrite the tapestry component.

One hitch is that the zone, and any elements controlling it, end up inside a jquery dialog. $jquery(…).dailog() tends to cut/paste an element’s html to another location, which might be breaking something. However, I haven’t been able to get things working even outside of a jquery dialog.

Here’s what I have tried, that didn’t seem to work (perhaps I did it wrong):

  • Create an eventlink bound to the zone, and modify the href. Tapestry seems to use a variable stored somewhere instead sigh.
  • Create a t:form bound to the zone. When I try to update it, I can tell that a server-side event is occurring, but the tapestry zone doesn’t change or update as it should. The zone is located outside and separate from the form. I don’t even see the typical yellow flash when a zone is updated.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:55:43+00:00Added an answer on June 8, 2026 at 1:55 pm

    I found some example code that pretty much solves my problem; it hadn’t been working, but as I typed the question here on SO, I saw what was wrong. Since it’s likely someone else has run into this problem as well, I post an answer here:

            var zoneId = "itemZone"; // tml was <t:zone id="itemZone"...>
            var zoneObject = Tapestry.findZoneManagerForZone(zoneId);
            zoneObject.updateFromURL(url);
    

    To solve the problem with jquery .dialog() moving html, I also have to copy and preserve the zone manager like this: (where $J(…) is my abbreviation for jquery, to avoid prototype conflicts)

        prototypeStorageObj = $T("itemZone");
        zoneManager = prototypeStorageObj.zoneManager;
        // jquery stuff that kills the prototype data storage.
        emailForm = $J("#myDialog");
        emailForm.dialog({ autoOpen: false, modal:true });
        emailForm.dialog('open');
        // restore the zone manager so the zone works again:
        $T("itemZone").zoneManager = zoneManager;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.