I have faced problems before while updating components other than div, may be I was doing something wrong, anyway afaik this should work
<div jwcid="[EMAIL PROTECTED]"> <span jwcid="[EMAIL PROTECTED]" value="ognl:quote"></span> </div> I think this is what Josh was indicating too. -Chaitanya On 9/11/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
Josh, I really can't see how would that work... since I'm using @Any, where would the text be rendered? I gave it a try and it is not working... Any other ideas? Regards On 9/10/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > Also, just as an FYI a lot of the examples I've been seeing lately include > what appears to be a lot of redundant <div> enclosures around content you > want to update. > > I've worked very hard to make sure the component id logic is universally > correct, so you should be able to just reference a particular component > directly for updating.. > > The only time you need to enclose something is when it may not actually be > rendered yet (and therefore not have any html element to replace on an > update)..One example of this is a <span jwcid="@If" > type block. > > On 9/9/06, Josh Long <[EMAIL PROTECTED]> wrote: > > > > I'm not 100% sure, but try changing div id ="quoteDiv" to <div > > jwcid="[EMAIL PROTECTED]"> ... > > > > That way, builder.updateComponent wil update a tapestry component.. > > > > Peace, > > Josh > > > > On 9/8/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > > Hello there! Does EventListener + ResponseBuilder supports all > > > components? For instance, is it possible to update contents presented > > > by a @Insert? > > > I was trying a simple quote app and can't get it working: > > > > > > @EventListener(elements = "fetchQuotes", events="onmouseover") > > > public void getQuotes(IRequestCycle cycle){ > > > ResponseBuilder builder = cycle.getResponseBuilder(); > > > setQuote(getQuotesFromDB()); > > > builder.updateComponent("quoteDiv"); > > > > > > } > > > > > > <div id="fetchQuotes"><span jwcid="@Insert" value="ognl:now"/>Mouse > > > over here to get more quotes...</div><br><br> > > > > > > <div id="quoteDiv"><span jwcid="[EMAIL PROTECTED]" > > > value="ognl:quote"></span></div> > > > > > > What's the right way? > > > > > > > > > Regards > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com > > --------------------------------------------------------------------- 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]