You have to know what the id is of the component to update. The id can come in the form
-) jwcid="[EMAIL PROTECTED]" -) id="myInformalComponentId" -) <component id="MyId" type="ComponentType"> Then.....the part that isn't always obvious is that the server doesn't actually know what is rendered. It can't or no one would ever be able to scale their web apps beyond simple in-house usages. So no, I can't tell what is rendered...But you can by doing a "view->source" on your rendered html page and seeing if you see any html elements with an id attribute matching (or starting with) the id that you are giving to updateComponents("id"); As another good example just look at the source of the demo page here : http://opencomponentry.com:8080/timetracker/Home.html You'll see javascript at the bottom doing things like "dojo.byId("Submit")" . ...That script works only because higher up in the page there is a rendered element looking like: <input type="submit" name="Submit" id="Submit" value="add" class="submitButton" /> So - if you can't see the element tapestry can't update it. On 5/6/07, Paul Stanton <[EMAIL PROTECTED]> wrote:
Not sure that helps .. you can see my html files so you should be able to tell what is rendered. my question is what other registration do I have to perform to be able to utilise the updateComponent method? How do I identify my node etc. Thanks in advance Jesse Kuhnert wrote: > I probably need to add a ResponseBuilder.insertComponents() call pretty > soon, but the basic reason why it's not updating is because the "counter" > and "B" elements probably don't exist on your rendered page already. > For it > to update them it needs an element that it can find with something simple > like this javascript: > > document.getElementById("counter") > > This is usually solved by doing something like: > > <span jwcid="[EMAIL PROTECTED]" > > <countercomponent here/> > </span> > > You also shouldn't need to specify which form to submit (in 4.1.2 at > least). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com