You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken in nashua <nh...@hotmail.com> on 2008/01/16 14:15:02 UTC
bidirectional dom interface
Hi Folks,
I am impressed with this interface.
@EventListener(events = { "onchange" }, targets = { "pagingSpanSelect" }, submitForm = "myForm", async = true)
public void pagingSpanListener(IRequestCycle cycle)
{
}
It provides a nice interface from DOM into server side.
But How do I talk to my dom javascript node from here?
Is there a way to reference the form and set a value of a dom node that models a tapestry widget ?
Why do I need this?
Well My tapestry widget is modeled to a dom node A.
But I actually used the @Block declaration to model another dom B node to the same widget...
When I change A, B stays the same.
I need to update the other dom node when one changes.
Thanks for any tips.
Best regards Ken in nashua
_________________________________________________________________
Get the power of Windows + Web with the new Windows Live.
http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008
Re: bidirectional dom interface
Posted by Kevin Menard <km...@servprise.com>.
Pai is correct. UpdateComponent() must be passed a component ID. An
arbitrary ID does not work.
--
Kevin
On 1/16/08 12:40 PM, in article 14886847.post@talk.nabble.com, "Pai911"
<ja...@gmail.com> wrote:
>
> Hi!
> Maybe you should make the division you want to update Tapestry components?
>
> <div id="headerSelect@Any">
> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
> </div>
> <div id="galleryContent@Any">
> <div jwcid="@RenderBlock" block="ognl:components.collectionContent" />
> </div>
> <div id="footerSelect@Any">
> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
> </div>
>
>
> nhhockeyplayer wrote:
>>
>>
>> Well I tried this in the page that contains the component...
>>
>> public void refresh()
>> {
>> getResponseBuilder().updateComponent("headerSelect");
>> getResponseBuilder().updateComponent("footerSelect");
>> }
>>
>> Since these are my dom references...
>> <div id="headerSelect">
>> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
>> </div>
>> <div id="galleryContent">
>> <div jwcid="@RenderBlock" block="ognl:components.collectionContent" />
>> </div>
>> <div id="footerSelect">
>> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
>> </div>
>>
>> and this does not cut it.
>>
>> I am looking at cometd sample in tacos and it looks like I need to
>> establish a scripting interface?
>>
>> Can anyone confirm? Is there an easier quicker way to update a dom
>> referring to a widget from the server side?
>> Thanks in advance...
>> Best regards Ken in nashua
>>
>>
>> From: nhhockeyplayer@hotmail.comTo: users@tapestry.apache.orgSubject:
>> bidirectional dom interfaceDate: Wed, 16 Jan 2008 08:15:02 -0500
>>
>>
>> Hi Folks, I am impressed with this interface.
>> @EventListener(events = { "onchange" }, targets = { "pagingSpanSelect" },
>> submitForm = "myForm", async = true)
>>
>> public void pagingSpanListener(IRequestCycle cycle)
>>
>> {} It provides a nice interface from DOM into server side. But How do I
>> talk to my dom javascript node from here? Is there a way to reference the
>> form and set a value of a dom node that models a tapestry widget ? Why do
>> I need this? Well My tapestry widget is modeled to a dom node A. But I
>> actually used the @Block declaration to model another dom B node to the
>> same widget... When I change A, B stays the same. I need to update the
>> other dom node when one changes. Thanks for any tips.Best regards Ken in
>> nashua
>>
>> Get the power of Windows + Web with the new Windows Live. Get it now!
>> _________________________________________________________________
>> Make distant family not so distant with Windows Vista® + Windows Live.
>> http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_
>> CPC_VideoChat_distantfamily_012008
>>
>> -----
>> Best regards
>> Ken in nashua
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: bidirectional dom interface
Posted by Pai911 <ja...@gmail.com>.
Hi!
Maybe you should make the division you want to update Tapestry components?
<div id="headerSelect@Any">
<div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
</div>
<div id="galleryContent@Any">
<div jwcid="@RenderBlock" block="ognl:components.collectionContent" />
</div>
<div id="footerSelect@Any">
<div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
</div>
nhhockeyplayer wrote:
>
>
> Well I tried this in the page that contains the component...
>
> public void refresh()
> {
> getResponseBuilder().updateComponent("headerSelect");
> getResponseBuilder().updateComponent("footerSelect");
> }
>
> Since these are my dom references...
> <div id="headerSelect">
> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
> </div>
> <div id="galleryContent">
> <div jwcid="@RenderBlock" block="ognl:components.collectionContent" />
> </div>
> <div id="footerSelect">
> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
> </div>
>
> and this does not cut it.
>
> I am looking at cometd sample in tacos and it looks like I need to
> establish a scripting interface?
>
> Can anyone confirm? Is there an easier quicker way to update a dom
> referring to a widget from the server side?
> Thanks in advance...
> Best regards Ken in nashua
>
>
> From: nhhockeyplayer@hotmail.comTo: users@tapestry.apache.orgSubject:
> bidirectional dom interfaceDate: Wed, 16 Jan 2008 08:15:02 -0500
>
>
> Hi Folks, I am impressed with this interface.
> @EventListener(events = { "onchange" }, targets = { "pagingSpanSelect" },
> submitForm = "myForm", async = true)
>
> public void pagingSpanListener(IRequestCycle cycle)
>
> {} It provides a nice interface from DOM into server side. But How do I
> talk to my dom javascript node from here? Is there a way to reference the
> form and set a value of a dom node that models a tapestry widget ? Why do
> I need this? Well My tapestry widget is modeled to a dom node A. But I
> actually used the @Block declaration to model another dom B node to the
> same widget... When I change A, B stays the same. I need to update the
> other dom node when one changes. Thanks for any tips.Best regards Ken in
> nashua
>
> Get the power of Windows + Web with the new Windows Live. Get it now!
> _________________________________________________________________
> Make distant family not so distant with Windows Vista® + Windows Live™.
> http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008
>
> -----
> Best regards
> Ken in nashua
>
--
View this message in context: http://www.nabble.com/bidirectional-dom-interface-tp14881716p14886847.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: bidirectional dom interface
Posted by DR_GLoPeL_BouCa <ta...@gmail.com>.
Thiago H de Paula Figueiredo-2 wrote:
>
> On Jan 17, 2008 12:12 PM, DR_GLoPeL_BouCa <mc...@gmail.com> wrote:
>
>>
>> Hello people, I've the similar problem, the browser not display the
>> response
>> of ajax submit, I've form with submit async="true" and
>> updateComponents="ognl:customerTable", when the ajax response come
>> browser
>> don't display any change, but in the fireBug bar, inspect de response and
>> is
>> in there, what's wrong..
>
>
> Try updateComponents="customerTable", without the ognl: prefix.
>
> Thiago
>
>
ok, try but don't work, try updateComponents="ognl:customerTable" or
updateComponents="customerTable" or
updateComponents="ognl:{'customerTable'} and nothing work.
--
View this message in context: http://www.nabble.com/bidirectional-dom-interface-tp14881716p14948083.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: bidirectional dom interface
Posted by Thiago HP <th...@gmail.com>.
On Jan 17, 2008 12:12 PM, DR_GLoPeL_BouCa <mc...@gmail.com> wrote:
>
> Hello people, I've the similar problem, the browser not display the
> response
> of ajax submit, I've form with submit async="true" and
> updateComponents="ognl:customerTable", when the ajax response come browser
> don't display any change, but in the fireBug bar, inspect de response and
> is
> in there, what's wrong..
Try updateComponents="customerTable", without the ognl: prefix.
Thiago
Re: bidirectional dom interface
Posted by DR_GLoPeL_BouCa <ta...@gmail.com>.
this part of my code
<form>
<input type="submit" jwcid="@Submit" class="boton" value="Aceptar"
tag="AgregarProveedor" selected="ognl:comando" async="true"
updateComponents="customerTable"/>
<div jwcid="customerTable@Any">
<table>
<tr jwcid="@For" source="ognl:customers" value="ognl:customer"
element="tr">
<td>
</td>
</tr>
</table>
</div
</form>
thanks for your time....
nirvdrum wrote:
>
> Is customerTable a Tapestry component or is it an ID you just attached to
> some element?
>
> --
> Kevin
>
>
> On 1/17/08 10:12 AM, in article 14921167.post@talk.nabble.com,
> "DR_GLoPeL_BouCa" <mc...@gmail.com> wrote:
>
>>
>> Hello people, I've the similar problem, the browser not display the
>> response
>> of ajax submit, I've form with submit async="true" and
>> updateComponents="ognl:customerTable", when the ajax response come
>> browser
>> don't display any change, but in the fireBug bar, inspect de response and
>> is
>> in there, what's wrong..
>> Sorry mi english, Thaws.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/bidirectional-dom-interface-tp14881716p14955237.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: bidirectional dom interface
Posted by Kevin Menard <km...@servprise.com>.
Is customerTable a Tapestry component or is it an ID you just attached to
some element?
--
Kevin
On 1/17/08 10:12 AM, in article 14921167.post@talk.nabble.com,
"DR_GLoPeL_BouCa" <mc...@gmail.com> wrote:
>
> Hello people, I've the similar problem, the browser not display the response
> of ajax submit, I've form with submit async="true" and
> updateComponents="ognl:customerTable", when the ajax response come browser
> don't display any change, but in the fireBug bar, inspect de response and is
> in there, what's wrong..
> Sorry mi english, Thaws.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: bidirectional dom interface
Posted by DR_GLoPeL_BouCa <mc...@gmail.com>.
Hello people, I've the similar problem, the browser not display the response
of ajax submit, I've form with submit async="true" and
updateComponents="ognl:customerTable", when the ajax response come browser
don't display any change, but in the fireBug bar, inspect de response and is
in there, what's wrong..
Sorry mi english, Thaws.
--
View this message in context: http://www.nabble.com/bidirectional-dom-interface-tp14881716p14921167.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: bidirectional dom interface
Posted by Pai911 <ja...@gmail.com>.
Hi!
What if you try
<div jwcid="headerSelect@Any">
/*Put the content you want to be displayed right here*/
/*Don't use render block */
</div>
nhhockeyplayer wrote:
>
>
> Well the fact that one definition refers to the same ognl instance being
> "ognl:components.autoPagingContent" commonsense tells me I shouldn't even
> should be mucking with this... it should update automatically.
>
> <div jwcid="headerSelect@Any">
> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
> </div>
>
> <div jwcid="footerSelect@Any">
> <div jwcid="@RenderBlock" block="ognl:components.autoPagingContent" />
> </div>
>
> The fact that this component's PropertySelect doesn't even survive a page
> refresh or post also tells me something isn't right.
>
> ?Best regards Ken in nashua
>
--
View this message in context: http://www.nabble.com/bidirectional-dom-interface-tp14881716p14912382.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org