Hi again

I'm determined to resolve this and I (like others) are finding gaps in the 
documentation.

I am using @tacos:PartialFor on my page (rightly or wrongly I don't know) 
however I went 
back to the documentation on this page;
http://tacos.sourceforge.net/components/PartialFor.html

The example code refers to stuff which isn't there and needs to be, for 
example, is the code:
<a jwcid="linkToggle" class="toggle">
supposed to reference a "@DirectLink" component or an "@tacos:AjaxDirectLink" 
or is the 
documentation correct as is and needs no entry in the .page file?

There are two other jwcid references: "flagImage" and "insertTime".  Neither of 
these are in 
the .page file example.  

I realise these might be straight forward to somebody who has been working with 
Tapestry / 
Tacos for 6 months or more but to the average Joe reading this documentation 
they are very 
frustrating.

PS  I will continue to struggle on finding a reason why my app isn't working...

Cheers
mc




On 16 Aug 2006 at 17:05, Murray Collingwood wrote:

> Hi Andy
> 
> This is the source from MyList.html:
> 
> <td><div jwcid="@Any" id="ognl:product.tacosid" 
>    ><img jwcid="@Any" src="ognl:product.urlname" border="1"/></div></td>
> 
> This is the rendered page excert: 
> 
> <td><div id="product_1"><img border="1" 
> src="/silver/extimages/small\2_moped2.jpg"></img></div></td>
> 
> In Firebug I can see the content of dojo.js.  Below are lines 2712 - 2720 
> (beta3).  In Firebug 
> the console view lists my "GET http://.....  dojo.js (line 2715)" this might 
> be valid but it seems 
> suspicious that it stops on the line "http.send(null);" 
> 
> 2712 http.open(_24f.method.toUpperCase(),_261,_25a);
> 2713 setHeaders(http,_24f);
> 2714 try{
> 2715   http.send(null);
> 2716 }
> 2717  catch(e){
> 2718    if(typeof http.abort=="function"){
> 2719      http.abort();
> 2720    }
> 
> Other things that maybe affecting the response.  I don't know if these have 
> any effect on the 
> way Tacos is operating but I'll mention them here for completeness.
> 
> * There may be a number of these images to update on a single page, although 
> at the 
> moment I'm only testing it with one
> 
> * Each image is served from an @tacos:PartialFor loop
> 
> * There is a Tapestry form that encompasses the entire loop.  eg It's a lot 
> like a shopping cart 
> where I have a Qty textfield and an 'Add to cart' button beside each image.
> 
> * The functionality I'm trying to generate is the ability to display a 
> thumbnail image for each 
> item listed but allow the user to click a link beside the image to view a 
> larger picture (where 
> the larger picture replaces the thumbnail on the page).
> 
> Does that spark any further ideas?
> 
> As mentioned earlier, if I replace the AjaxDirectLink with a DirectLink the 
> application works 
> perfectly but the entire page is being refreshed.
> 
> Cheers
> mc
> 
> 
> 
> On 16 Aug 2006 at 9:18, [EMAIL PROTECTED] wrote:
> 
> > Include dojo.js.uncompressed.js instead of dojo.js for the line
> > numbers of errors to make sense.
> > 
> > Also, do you have a 
> > <div jwcid="@Any" id="product_1">
> > anywhere in your code? Cause this is what you're currently 
> > trying to update / replace.
> > 
> > >From Murray Collingwood <[EMAIL PROTECTED]>:
> > 
> > > Hi Karthik
> > > 
> > > I set isDebug to true and went to the same form again.  
> > > 
> > > It took me a couple of goes to find all of the text at the end of the 
> > > page as
> > > I am using a dark 
> > > background.  Anyways, here it is.  As you will see it's returning two
> > > responses, a scriptblock 
> > > and jsincludes, and both of these seem to be handled correctly - still
> > > nothing for the <img> 
> > > tag I'm expecting to be sent.  Most of this data is part of the JSCookMenu
> > > system.
> > > 
> > > INFO:Response:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC 
> > > "-
> > > //W3C//DTD XHTML 1.0 Transitional//EN"
> > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > transitional.dtd" [ <!ENTITY nbsp '&#160;'> ]> <ajax-response><response
> > > type="element" 
> > > id="scriptblock"> <script> //<![CDATA[ function 
> > > tapestry_menu_draw_$Border_$JSCookMenu(){ var cmThemeData = { 
> > > mainFolderLeft:
> > > '', 
> > > mainFolderRight: '', mainItemLeft: '', mainItemRight: '', folderLeft: '',
> > > folderRight: '', itemLeft: '', 
> > > itemRight: '', mainSpacing: '0', subSpacing: '0', delay: '500' }; var 
> > > HSplit
> > > = [_cmNoClick, '<td 
> > > colspan="3" style="height: 3px; overflow: hidden"><div 
> > > class="ThemeMiniBlackMenuSplit"></div></td>']; var MainHSplit = 
> > > [_cmNoClick,
> > > '<td 
> > > colspan="3"><div class="ThemeMiniBlackMenuSplit"></div></td>']; var
> > > MainVSplit = 
> > > [_cmNoClick, '<div class="ThemeMiniBlackMenuVSplit"></div>']; var menuID 
> > > = [
> > > [null, 'null', 
> > > null , null, null ] , [null, 'null', null , null, null ] , [null, 'null',
> > > null , null, null ] , [null, 'null', null , null, 
> > > null ] , [null, 'null', null , null, null , [null, 'null', null , null, 
> > > null
> > > ], [null, 'null', null , null, null ], [null, 
> > > 'null', null , null, null ]] ]; cmDraw
> > > ('productMyList/$Border.$JSCookMenu/divId', menuID, 'hbr', 
> > > cmThemeData, 'ThemeMiniBlack', HSplit, MainHSplit, MainVSplit); } //]]>
> > > </script> <script> 
> > > //<![CDATA[ Tapestry.register_form('Form'); //]]> </script>
> > > </response><response 
> > > type="element" id="jsincludes"> <script> //<![CDATA[ 
> > >
> > tacos.loadScriptFromUrl("/silver/assets/9596338cdc4a3d4fe07e540d482babc4/TapestryJSC
> > > ookMenu.js"); //]]> </script> <script> //<![CDATA[ 
> > >
> > tacos.loadScriptFromUrl("/silver/assets/557f2081d45a7528f898e7e384717596/org/apache/ta
> > > pestry/form/Form.js"); //]]> </script> </response></ajax-response>
> > > DEBUG: preProcessScripts id:scriptblock
> > > DEBUG: preProcessScripts id:jsincludes
> > > DEBUG: sync script eval of: //<![CDATA[ 
> > >
> > tacos.loadScriptFromUrl("/silver/assets/9596338cdc4a3d4fe07e540d482babc4/TapestryJSC
> > > ookMenu.js"); //]]>
> > > DEBUG: sync script eval of: //<![CDATA[ 
> > >
> > tacos.loadScriptFromUrl("/silver/assets/557f2081d45a7528f898e7e384717596/org/apache/ta
> > > pestry/form/Form.js"); //]]>
> > > DEBUG: postProcessScripts id:scriptblock
> > > DEBUG: evaluating script: //<![CDATA[ function 
> > > tapestry_menu_draw_$Border_$JSCookMenu(){ var cmThemeData = { 
> > > mainFolderLeft:
> > > '', 
> > > mainFolderRight: '', mainItemLeft: '', mainItemRight: '', folderLeft: '',
> > > folderRight: '', itemLeft: '', 
> > > itemRight: '', mainSpacing: '0', subSpacing: '0', delay: '500' }; var 
> > > HSplit
> > > = [_cmNoClick, '<td 
> > > colspan="3" style="height: 3px; overflow: hidden"><div 
> > > class="ThemeMiniBlackMenuSplit"></div></td>']; var MainHSplit = 
> > > [_cmNoClick,
> > > '<td 
> > > colspan="3"><div class="ThemeMiniBlackMenuSplit"></div></td>']; var
> > > MainVSplit = 
> > > [_cmNoClick, '<div class="ThemeMiniBlackMenuVSplit"></div>']; var menuID 
> > > = [
> > > [null, 'null', 
> > > null , null, null ] , [null, 'null', null , null, null ] , [null, 'null',
> > > null , null, null ] , [null, 'null', null , null, 
> > > null ] , [null, 'null', null , null, null , [null, 'null', null , null, 
> > > null
> > > ], [null, 'null', null , null, null ], [null, 
> > > 'null', null , null, null ]] ]; cmDraw
> > > ('productMyList/$Border.$JSCookMenu/divId', menuID, 'hbr', 
> > > cmThemeData, 'ThemeMiniBlack', HSplit, MainHSplit, MainVSplit); } //]]>
> > > DEBUG: evaluating script: //<![CDATA[ Tapestry.register_form('Form'); 
> > > //]]> 
> > > 
> > > Do I need to try removing the menu Javascript?  Could there be some clash
> > > between these 
> > > two tools?
> > > 
> > > Cheers
> > > mc
> > > 
> > > 
> > > 
> > > On 16 Aug 2006 at 7:34, Karthik N wrote:
> > > 
> > > > 
> > > > can you turn on debug for tacos as was earlier suggested in this 
> > > > discussion
> > > and see if it gives you 
> > > > more insight?
> > > > 
> > > > On 8/16/06, Murray Collingwood < [EMAIL PROTECTED]> wrote:
> > > >     Help
> > > >     
> > > >     I've been following this discussion with interest as I'm 
> > > > experiencing
> > > the same problem.I 
> > > >     have even downloaded Firefox and Firebug in order to find out what 
> > > > is
> > > happening.
> > > >     
> > > >     Similarly to Kevin if I right click and open the AjaxDirectLink in a
> > > new window the correct
> > > >     information is displayed so I know all of my logic is correct and 
> > > > the
> > > link is doing what it is 
> > > >     supposed to, despite this I can't get the content to dynamically 
> > > > update
> > > on the current page.
> > > >     
> > > >     I tried changing <div jwcid="@Any" id="label"> to <div
> > > jwcid="[EMAIL PROTECTED]" id="label"> but 
> > > >     this 
> > > >     didn't make any difference.With the original format I am rendering 
> > > > <div
> > > id="label"> so I 
> > > >     don't
> > > >     think there is any problem in this respect.
> > > >     
> > > >     I have also been through my html checking for any invalid HTML - I 
> > > > did
> > > have a couple of 
> > > >     <br>
> > > >     tags however these were not in the component to be updated and 
> > > > didn't
> > > seem to be 
> > > >     causing
> > > >     any problem.However, I have corrected them and Firebug is not
> > > complaining about any
> > > >     HTML / XML errors that I can tell.
> > > >     
> > > >     What I do notice from Firebug is that the response from the server
> > > doesn't include the html
> > > >     I'm wanting to update.I get the "scriptblock" and "jsincludes" but
> > > nothing else.
> > > >     
> > > >     A couple of other things Firebug tells me and I'm not sure whether 
> > > > they
> > > are correct or not: 
> > > >     
> > > >     GET
> > > >    
> > >
> > http://localhost:8080/silver/ajaxdirect.svc?component=setUrllarge&page=productMyList&ra
> > > >     nd 
> > > >    
> > > =1590326010&session=T&sp=1&updatedirect=false&updateid=product_1&dojoRequest=tr
> > > >     ue
> > > >     
> > > > &processScripts=true&uuid=Wed%20Aug%2016%202006%2009%3A40%20GMT%2B100
> > > >     0
> > > >     &widgetids= dojo.js (line 2715)
> > > >     
> > > >     This mostly concurs with the .page file:
> > > >     
> > > >     <component id="setUrllarge" type="tacos:AjaxDirectLink">
> > > >     <binding name="listener" value="listener:setUrllarge"/>
> > > >     <binding name="title" value="ognl:product.fullsize.printsize"/>
> > > >     <binding name="parameters" value="product.id"/>
> > > >     <binding name="updateComponents" value="ognl:{'product_1'}"/>
> > > >     </component>
> > > >     
> > > >     However, that reference to "dojo.js (line 2715)" seems a little
> > > strange.When I click this it 
> > > >     opens 'dojo.js' to line 2715 which reads:
> > > >     
> > > >     http.send(null);
> > > >     
> > > >     Is this normal behaviour?Is this the problem?
> > > >     
> > > >     How should I go about solving it?
> > > >     
> > > >     Cheers
> > > >     mc
> > > >     
> > > >     
> > > >     
> > > >     
> > > >     On 14 Aug 2006 at 13:14, Frederic Barnabe wrote: 
> > > >     
> > > >     >
> > > >     > Hi Kevin,
> > > >     >
> > > >     > Try downloading the Firebug Firefox plugin. It's really great for
> > > debugging Ajax requests. 
> > > >     It would
> > > >     > have show you the <br> error right away.
> > > >     >
> > > >     > Fred 
> > > >     >
> > > >     >
> > > >     > On 8/14/06, Kevin Fightmaster <[EMAIL PROTECTED]> wrote:
> > > >     > My problem was a relaxed html coding style <br> works great for
> > > browsers... but xml 
> > > >     > expects there to be an open and close tag or a </>. Since ajax
> > > requests use xml it saw 
> > > >     the
> > > >     > <br> as an invalid tag since there was no closing tag.
> > > >     >
> > > >     > On 8/14/06, Karthik N < [EMAIL PROTECTED]> wrote:
> > > >     >
> > > >     > kevin,
> > > >     >
> > > >     > i'm also having some bizzare experiences related to multiple
> > > request-responses.
> > > >     >
> > > >     >
> > >
> > http://www.nabble.com/Tacos-Bug----AjaxSubmit-posts-all-the-AjaxLinkSubmits-before-
> > > >     it.-
> > > >     > tf2090076.html
> > > >     >
> > > >     > somehow the feeling i got was that the @If and such other
> > > conditionals, cause multiple 
> > > >     requests 
> > > >     > to be fired. i'm not able to pinpoint why this is going on ..
> > > >     >
> > > >     > are there other AjaxLinks/AjaxSubmits in your page?
> > > >     >
> > > >     >
> > > ------------------------------------------------------------------------- 
> > > >     > Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > >     > Get stuff done quickly with pre-integrated technology to make your
> > > job easier
> > > >     > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > > >     >
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >     >
> > > >     > _______________________________________________
> > > >     > Tacos-devel mailing list
> > > >     > [email protected]
> > > >     > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > >     >
> > > >     >
> > > >     >
> > > >     >
> > > >     >
> > > >     >
> > > -------------------------------------------------------------------------
> > > >     > Using Tomcat but need to do more? Need to support web services,
> > > security? 
> > > >     > Get stuff done quickly with pre-integrated technology to make your
> > > job easier
> > > >     > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > > >     >
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >     >
> > > >     > _______________________________________________
> > > >     > Tacos-devel mailing list
> > > >     > [email protected]
> > > >     > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > >     >
> > > >     >
> > > >     >
> > > >     >
> > > >     
> > > >     
> > > >     
> > > >     FOCUS Computing - web design
> > > >     Mob: 0415 24 26 24
> > > >     [EMAIL PROTECTED]
> > > >     http://www.focus-computing.com.au
> > > >     
> > > >     
> > > >     
> > > >     
> > > >     --
> > > >     No virus found in this outgoing message.
> > > >     Checked by AVG Free Edition.
> > > >     Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date:
> > > 15/08/2006
> > > >     
> > > >     
> > > >    
> > > ------------------------------------------------------------------------- 
> > > >     Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > >     Get stuff done quickly with pre-integrated technology to make your 
> > > > job
> > > easier
> > > >     Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo 
> > > >    
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > >     _______________________________________________ 
> > > >     Tacos-devel mailing list
> > > >     [email protected]
> > > >     https://lists.sourceforge.net/lists/listinfo/tacos-devel 
> > > > 
> > > > 
> > > > 
> > > > -- 
> > > > Thanks, Karthik 
> > > 
> > > 
> > > 
> > > FOCUS Computing - web design
> > > Mob: 0415 24 26 24
> > > [EMAIL PROTECTED]
> > > http://www.focus-computing.com.au
> > > 
> > > 
> > > 
> > > 
> > > -- 
> > > No virus found in this outgoing message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 
> > > 15/08/2006
> > > 
> > > 
> > > -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Tacos-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > 
> > 
> > 
> > -- 
> > 
> > 
> > 
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Tacos-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> 
> 
> 
> FOCUS Computing - web design
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
> 
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 15/08/2006
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel



FOCUS Computing - web design
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 16/08/2006


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to