RE: Tapestry 4.1....
Hi Feeling a bit adventurous yesterday, I threw the latest 4.1.1 SNAPSHOT at one of my 4.0 apps. I had only 2 hrs or so to spend on this, so I've surely missed something. What I found was: - API's stable - as promised, good - number validation doesn't work. I spent a fair amount of time to get it working - no luck. The results are so "funny" that I'd need more time give a useful error report. I hope I'll be able to do that later. - Datepicker (still our old friend) pops up on "random" places. - The dojo-widget for showing validation errors must be styled via css - requiring a fair amount of fiddling. I didn't manage to move the "ok" button from lower left to lower right, for example. So, for me it's a promising alpha. regards, Marcus > -Original Message- > From: Patrick Moore [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 15, 2006 7:49 PM > To: Tapestry users > Subject: Tapestry 4.1 > > Hi there -- > > is there any sense of how stable this release is right now? > alpha, beta, release candidate, etc.? I would like to start > using the dojo features and adding my own. > But right know in my project I can't spend a lot of time > figuring out tapestry issues. > > -Pat > > - > 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]
Re: DynamicSelectionList and ArrayIndexOutOfBoundsException
Hi Waimin. > The BikeMaker example above uses StringPropertySelectionModel and > String[] objects for the drop-down selection lists. However, I modified > my program to use custom PropertySelectionModel(s) and custom objects > as value objects in the models. There are two versions of the demo and one of them uses custom models, *not* StringPropertySelectionModel: http://lombok.demon.co.uk/tapestryDemo/welcome?service=page/TestDSLComponent2 http://lombok.demon.co.uk/tapestryDemo/welcome?service=page/TestDSLComponent2Source You should look carefully at that example. If you still can't find the problem please post your .page file and perhaps the child model code. Cheers, Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tapernate question
I tried to put something like try { getSession.update(message); } catch (Throwable e) { System.out.println("Catch it."); } under the MessageDaoImpl.update(Message), but it seems not doing anything. How to hook with ExceptionPresenter? Xiaoshu > -Original Message- > From: James Carman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 15, 2006 9:09 PM > To: 'Tapestry users' > Subject: RE: tapernate question > > You can put in a hook into the ExceptionPresenter or wrap > your call with a try/catch block. The HibernateService class > can be found at: > > http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk/src /main/java/com > /javaforge/hivemind/util/HiveMindService.java > > The username/password is anonymous/anon. > > > -Original Message- > From: Xiaoshu Wang [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 15, 2006 9:03 PM > To: users@tapestry.apache.org > Subject: tapernate question > > Hi, I am playing around Tapernate, which I have a question to > ask. It seems that the exception thrown by a database query > would not be able to be catched at the application level. > For isnstance, I justed added a unique constraints on the > Message.value property. If I ever try to created a message > that has a duplicated value with an existing Message, it > break the application. I didn't find a way to catch the > exception. Is this expected behavior or not? > > Also, where I can find the source code for the HibernateService? > > Thanks, > > XW > > > - > 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] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tapernate question
You can put in a hook into the ExceptionPresenter or wrap your call with a try/catch block. The HibernateService class can be found at: http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk/src/main/java/com /javaforge/hivemind/util/HiveMindService.java The username/password is anonymous/anon. -Original Message- From: Xiaoshu Wang [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 9:03 PM To: users@tapestry.apache.org Subject: tapernate question Hi, I am playing around Tapernate, which I have a question to ask. It seems that the exception thrown by a database query would not be able to be catched at the application level. For isnstance, I justed added a unique constraints on the Message.value property. If I ever try to created a message that has a duplicated value with an existing Message, it break the application. I didn't find a way to catch the exception. Is this expected behavior or not? Also, where I can find the source code for the HibernateService? Thanks, XW - 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]
tapernate question
Hi, I am playing around Tapernate, which I have a question to ask. It seems that the exception thrown by a database query would not be able to be catched at the application level. For isnstance, I justed added a unique constraints on the Message.value property. If I ever try to created a message that has a duplicated value with an existing Message, it break the application. I didn't find a way to catch the exception. Is this expected behavior or not? Also, where I can find the source code for the HibernateService? Thanks, XW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: scripts from a .jar
Further to this, I have no trouble if I create a tiny wrapper component in the same .jar as the script, and whose template does nothing but include the script. A verbose workaround, but it works. _ From: Michael Prescott Sent: August 15, 2006 6:56 PM To: 'Tapestry users' Subject: scripts from a .jar I'm trying to use the @Script component to load a script from a .jar file in my WEB-INF/lib directory, and not having much success. I keep getting ApplicationRuntimeException, caused by a DocumentParseException: Unable to find resource. I'm looking at the hivemind code, but between the indirection and my having forgotten classloader voodoo, I can't tell whether it only looks up resources coming from the same classloader. There are a few avenues for me to investigate, but if anyone knows off hand whether this is not a supported usage, it would be helpful. Thanks, Michael Prescott
Re: what we need: tutorials like this
m-woelm schreef: Hey folks, this is my first mail, so I shortly present my self. I am a student from germany and my job is to evaluate Tapestry for my professorship. Therefore, I have to write a simple application (small web-shop). Welcome :o) Especially, how can I handle form-values of any input type and data type and how can I validate them. And perhaps in a further step make them persistent with entity beans. Have you looked at 'Enjoying Web Development with Tapestry' by Kent Tong? The first four chapters of his book are freely available at http://www.agileskills2.org/EWDT/ Chapter 2 covers Using forms and Chapter 3 covers validating input. As a matter of fact, Chapter 4 covers creating a (very) simple e-shop :o) How can I combine multiple html-templates together to one big html with tapestry? It would be nice if there would be tutorial which explains this and only these separate single topics. At least for beginners, it is at least a little bit difficult to look through tutorials with more complexity like the workbench tutorial. A page uses just 1 big template for generating its content. But on that page you can have components, which can render their own content based on their own templates. So you could easily create a component that renders the header or footer of a page for example. I would really start with reading the free chapters of 'Enjoying Web Development with Tapestry'. It's a real nice intro that will ease you into using Tapestry. Regards, Onno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scripts from a .jar
I'm trying to use the @Script component to load a script from a .jar file in my WEB-INF/lib directory, and not having much success. I keep getting ApplicationRuntimeException, caused by a DocumentParseException: Unable to find resource. I'm looking at the hivemind code, but between the indirection and my having forgotten classloader voodoo, I can't tell whether it only looks up resources coming from the same classloader. There are a few avenues for me to investigate, but if anyone knows off hand whether this is not a supported usage, it would be helpful. Thanks, Michael Prescott
@Script script/scriptPath
The @Script documentation refers to a 'scriptPath' parameter. This doesn't seem to exist; the parameter is actually called 'script'. There's a scriptPath property, but that seems to be purely internal. Am I on crack here? Michael Prescott
Re: how can i solve this problem
>From zqzuk <[EMAIL PROTECTED]>: > > however it doesnt work and i got exception error: > > No listener method named 'onClick' suitable for no listener parameters found > in [EMAIL PROTECTED] That's because tutor is evaluated at render time when it's null. If the form was submitted, it would have the correct value. If you don't want the form submitted try this trick: use and add an onchange in your dropdown that looks like: function changeUrl() { // keep the initial url stored if (!document.initialUrl) document.initialUrl = teacherLink.href; // fix the link url teacherLink.href = document.initialUrl.replace("REPLACEME", escape(teacherDropDown.value)); } Don't know what others think about this, but i would even like this provided by the framework. Or perhaps a javascript equivalent of some ILink.getURL implementations. Then one would do: teacherLink.href = tapestry.links.setParameter(0, escape(teacherDropDown.value)); and also stuff like: teacherLink.href = tapestry.links.createPageLink("Home"); tapestry.links.createExternalLink("Home", [params]); I think i've written such thoughts in tacos mailing list. I'll try to find then and add some JIRA issues... > > maybe the forum has to be submitted before getting the value of the > selection, or maybe the acceesor " value="tutor"/>" is wrong? -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can i solve this problem
thank you all! yes i tried passing parameters using directlink, its not working either. in my page file i have and i defined the direct link component as i revised my code as public abstract String getTutor(); abstract public void setTutor(String s); public IPropertySelection getAvailableTutors (){ . . } public IPage onClick(String t){ Rota page = getRotaPage(); page.setSelectedTeacher("The selected value is " + t);// a text field for example } however it doesnt work and i got exception error: No listener method named 'onClick' suitable for no listener parameters found in [EMAIL PROTECTED] maybe the forum has to be submitted before getting the value of the selection, or maybe the acceesor "" is wrong? seems tapestry 4.1 has a solution for this with some ajax features... but is there any possible solutions with tapestry 4.0? thanks for your input! -- View this message in context: http://www.nabble.com/how-can-i-solve-this-problem-tf2110818.html#a5821273 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: what we need: tutorials like this
Hey folks, this is my first mail, so I shortly present my self. I am a student from germany and my job is to evaluate Tapestry for my professorship. Therefore, I have to write a simple application (small web-shop). The tutorials I have seen are either very simple or even a little bit more (too?) complex. For beginners I would not combine new tutorials with other tools/api like AJAX or anything else. It would be nice to see tutorials only to see a little more complexity but on a simple base. Especially, how can I handle form-values of any input type and data type and how can I validate them. And perhaps in a further step make them persistent with entity beans. And another problem that I actually have: How can I combine multiple html-templates together to one big html with tapestry? It would be nice if there would be tutorial which explains this and only these separate single topics. At least for beginners, it is at least a little bit difficult to look through tutorials with more complexity like the workbench tutorial. If there are tutorials available for these topics, it would be nice, if anybody could send me a link to this tutorial. Regards, Michael Wölm P.S.: I hope my English is not as bad I often think it is... ;) -Ursprüngliche Nachricht- Von: Josh Long [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 15. August 2006 20:15 An: Tapestry users Betreff: Re: what we need: tutorials like this I wouldnt mind contributing esp. with 4.11 so prominently poised... this stuff is just so cool to work with.. dojo has a book-by-wiki that theyre writing. the dotnet tutorials could be pretty easily reworked on top of a wiki, and the wiki would facilitate a colloborative effort. Howards already written a few free tutorials on which to build. Maybe those could be reworked as 3 (much expanded-upon) chapters... By the end maybe we could build the canonical blog app or something using the new ajax features, spring/hibernate 3/bean form, a crazy border component, tapfx's Cache component (for caching, after all, is a feature built right into rails), client side persistance, bookmarkable links, etc. and then we can build it.. the uber-widget... with dojo/ajax/tapestry... you know what im talking about.. the much vaunted widget you will tell your children about... ::ahem:: or maybe not on that one.. but we could at least expand the timettracker into a full fledged app youd be happy to have sitting in a browser window somewhere! Peace, Josh On 8/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I agree, some more free tutorials would be great! > > Who's going to write them? ;) (I'm a little busy at the moment) > > On 8/15/06, Karthik N <[EMAIL PROTECTED]> wrote: > > > > the first four chapters of his book are free, and pretty decent to get you > > started on the right track > > > > On 8/15/06, James Carman <[EMAIL PROTECTED]> wrote: > > > > > > Notice that the previous .Net-based example was *free* and Kent Tong's > > > book > > > is not. Don't get me wrong, I've got Kent's book and I love it. But, I > > > did > > > have to pay for it. It would be nice if there were free resources out > > > there > > > that folks could use to get started (and get hooked) using Tapestry. > > > > > > -Original Message- > > > From: Karthik N [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, August 15, 2006 1:06 PM > > > To: Tapestry users > > > Subject: Re: what we need: tutorials like this > > > > > > get yourself a copy of Enjoying Web Development with Tapestry by Kent > > > Tong. It's got the tutorial approach to tapestry. > > > > > > On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > We need an equivalent set of tutorials very simiar to the asp.net > > > > quicjkstarts tutorial, but with tapestry. Step by step, building on > > > simple > > > > examples to more complex ones: > > > > > > > > http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx > > > > > > > > This would make tapestry easier to work with and gain more popularity! > > > > > > > > Cheers > > > > -- > > > > View this message in context: > > > > > > > > > > > > http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a58 > > > 17876 > > > > Sent from the Tapestry - User forum at Nabble.com. > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > Thanks, Karthik > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Thanks, Karthik > > > > > > > -- > Jesse Kuhnert > Tapestry/Dojo/(and a dash of TestNG), team member/developer > > Open source based consulting work centered around > dojo/tapestry/tacos/hivemind. > > --
Re: what we need: tutorials like this
You have to also take into account that the people behind ASP.NET are housed in one of the largest software companies in the world... We do what we can but need more community help until we find a way to trick IBM into installing tapestry on all their servers for a nominal fee. ;) On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: Absolutely, i already have it. but it just doesn't cover things 100% like this. As I said it needs to be step by step - take a look at the dotnet tutorials, escpecially on stuff like rewinding/post-back/data binding. Believe me, I'd rather be doing Tapestry that ASP.NET !! karthik.nar wrote: > > get yourself a copy of Enjoying Web Development with Tapestry by Kent > Tong. It's got the tutorial approach to tapestry. > > On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: >> >> >> We need an equivalent set of tutorials very simiar to the asp.net >> quicjkstarts tutorial, but with tapestry. Step by step, building on >> simple >> examples to more complex ones: >> >> http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx >> >> This would make tapestry easier to work with and gain more popularity! >> >> Cheers >> -- >> View this message in context: >> http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5817876 >> Sent from the Tapestry - User forum at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Thanks, Karthik > > -- View this message in context: http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5820401 Sent from the Tapestry - User forum at Nabble.com. - 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.
Re: Tapestry 4.1....Jesse, dojo release?
No, the version is somewhere around 0.3.1. I plan on upgrading soon. ...I want to get a few refactoring changes into dojo first though That's what I've been waiting on. I'm still not sure how we should be managing the dojo versions...I know definitely that we will do all upgrade work for new dojo versions within the tapestry api to make it mostly seemless...But... On 8/15/06, Patrick Moore <[EMAIL PROTECTED]> wrote: Thanks, Mark is the dojo version in tapestry 4.1 the latest version of the dojo snapshot as well? (wondering if I need to spend any energy on keeping up with two snapshots?) -Pat --- Mark Reynolds < [EMAIL PROTECTED]> wrote: > My opinion is that it's beta quality, or better. Jesse is fixing > everything that comes up super fast and putting out new snapshots all > the time. The great thing is if you build your project with Maven 2 > and stay on the snapshots, you get the latest/greatest automatically. > > -- Mark R > > On 8/15/06, Patrick Moore wrote: > > Hi there -- > > > > is there any sense of how stable this release is right now? alpha, beta, > > release candidate, etc.? I would like to start using the dojo features and > > adding my own. > > But right know in my project I can't spend a lot of time figuring out > tapestry > > issues. > > > > -Pat > > > > - > > 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] > > - 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.
Re: how can i solve this problem
He could always opt for more beta functionality, a solution to his particular problem is outlined here: http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html On 8/15/06, James Carman <[EMAIL PROTECTED]> wrote: But, the parameter is based on a form field (a drop-down). So, wouldn't he have to submit the form to get the currently selected value? -Original Message- From: Chris Chiappone [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 3:13 PM To: Tapestry users Subject: Re: how can i solve this problem If its a DirectLink or something similiar you need to pass parameters instead of using getTutor. For example your onClick() method would look like this: pubilc IPage onClick(String tutor){ etc... } On 8/15/06, zqzuk <[EMAIL PROTECTED]> wrote: > > > Helllo, i have two pages, suppose Teacher.html and Rota.html. > > on Teacher.html, theres a dropdownlist where i can select a teacher's > name, > and a link which on click, needs to open up another window and pass the > selected value to the page Rota.html. i tried something like the followin > to > test whether it works, and it doesnt > > in Teacher.java > > public abstract String getTutor(); > abstract public void setTutor(String s); > public IPropertySelection (){ > . > . > } > > public IPage onClick(){ > Rota page = getRotaPage(); > page.setSelectedTeacher("The selected value is " + getTutor()); > > } > > and no matter what i select the value is always NULL. how comes the > selected > value is not passed over? what is the right way to do this please? thanks! > > -- > View this message in context: > http://www.nabble.com/how-can-i-solve-this-problem-tf2110818.html#a5819804 > Sent from the Tapestry - User forum at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ~chris - 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.
Re: what we need: tutorials like this
Absolutely, i already have it. but it just doesn't cover things 100% like this. As I said it needs to be step by step - take a look at the dotnet tutorials, escpecially on stuff like rewinding/post-back/data binding. Believe me, I'd rather be doing Tapestry that ASP.NET !! karthik.nar wrote: > > get yourself a copy of Enjoying Web Development with Tapestry by Kent > Tong. It's got the tutorial approach to tapestry. > > On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: >> >> >> We need an equivalent set of tutorials very simiar to the asp.net >> quicjkstarts tutorial, but with tapestry. Step by step, building on >> simple >> examples to more complex ones: >> >> http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx >> >> This would make tapestry easier to work with and gain more popularity! >> >> Cheers >> -- >> View this message in context: >> http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5817876 >> Sent from the Tapestry - User forum at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Thanks, Karthik > > -- View this message in context: http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5820401 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 4.1....Jesse, dojo release?
Thanks, Mark is the dojo version in tapestry 4.1 the latest version of the dojo snapshot as well? (wondering if I need to spend any energy on keeping up with two snapshots?) -Pat --- Mark Reynolds <[EMAIL PROTECTED]> wrote: > My opinion is that it's beta quality, or better. Jesse is fixing > everything that comes up super fast and putting out new snapshots all > the time. The great thing is if you build your project with Maven 2 > and stay on the snapshots, you get the latest/greatest automatically. > > -- Mark R > > On 8/15/06, Patrick Moore wrote: > > Hi there -- > > > > is there any sense of how stable this release is right now? alpha, beta, > > release candidate, etc.? I would like to start using the dojo features and > > adding my own. > > But right know in my project I can't spend a lot of time figuring out > tapestry > > issues. > > > > -Pat > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can i solve this problem
But, the parameter is based on a form field (a drop-down). So, wouldn't he have to submit the form to get the currently selected value? -Original Message- From: Chris Chiappone [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 3:13 PM To: Tapestry users Subject: Re: how can i solve this problem If its a DirectLink or something similiar you need to pass parameters instead of using getTutor. For example your onClick() method would look like this: pubilc IPage onClick(String tutor){ etc... } On 8/15/06, zqzuk <[EMAIL PROTECTED]> wrote: > > > Helllo, i have two pages, suppose Teacher.html and Rota.html. > > on Teacher.html, theres a dropdownlist where i can select a teacher's > name, > and a link which on click, needs to open up another window and pass the > selected value to the page Rota.html. i tried something like the followin > to > test whether it works, and it doesnt > > in Teacher.java > > public abstract String getTutor(); > abstract public void setTutor(String s); > public IPropertySelection (){ > . > . > } > > public IPage onClick(){ > Rota page = getRotaPage(); > page.setSelectedTeacher("The selected value is " + getTutor()); > > } > > and no matter what i select the value is always NULL. how comes the > selected > value is not passed over? what is the right way to do this please? thanks! > > -- > View this message in context: > http://www.nabble.com/how-can-i-solve-this-problem-tf2110818.html#a5819804 > Sent from the Tapestry - User forum at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can i solve this problem
If its a DirectLink or something similiar you need to pass parameters instead of using getTutor. For example your onClick() method would look like this: pubilc IPage onClick(String tutor){ etc... } On 8/15/06, zqzuk <[EMAIL PROTECTED]> wrote: Helllo, i have two pages, suppose Teacher.html and Rota.html. on Teacher.html, theres a dropdownlist where i can select a teacher's name, and a link which on click, needs to open up another window and pass the selected value to the page Rota.html. i tried something like the followin to test whether it works, and it doesnt in Teacher.java public abstract String getTutor(); abstract public void setTutor(String s); public IPropertySelection (){ . . } public IPage onClick(){ Rota page = getRotaPage(); page.setSelectedTeacher("The selected value is " + getTutor()); } and no matter what i select the value is always NULL. how comes the selected value is not passed over? what is the right way to do this please? thanks! -- View this message in context: http://www.nabble.com/how-can-i-solve-this-problem-tf2110818.html#a5819804 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ~chris
how can i solve this problem
Helllo, i have two pages, suppose Teacher.html and Rota.html. on Teacher.html, theres a dropdownlist where i can select a teacher's name, and a link which on click, needs to open up another window and pass the selected value to the page Rota.html. i tried something like the followin to test whether it works, and it doesnt in Teacher.java public abstract String getTutor(); abstract public void setTutor(String s); public IPropertySelection (){ . . } public IPage onClick(){ Rota page = getRotaPage(); page.setSelectedTeacher("The selected value is " + getTutor()); } and no matter what i select the value is always NULL. how comes the selected value is not passed over? what is the right way to do this please? thanks! -- View this message in context: http://www.nabble.com/how-can-i-solve-this-problem-tf2110818.html#a5819804 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 4.1....
My opinion is that it's beta quality, or better. Jesse is fixing everything that comes up super fast and putting out new snapshots all the time. The great thing is if you build your project with Maven 2 and stay on the snapshots, you get the latest/greatest automatically. -- Mark R On 8/15/06, Patrick Moore wrote: Hi there -- is there any sense of how stable this release is right now? alpha, beta, release candidate, etc.? I would like to start using the dojo features and adding my own. But right know in my project I can't spend a lot of time figuring out tapestry issues. -Pat - 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]
Re: what we need: tutorials like this
I wouldnt mind contributing esp. with 4.11 so prominently poised... this stuff is just so cool to work with.. dojo has a book-by-wiki that theyre writing. the dotnet tutorials could be pretty easily reworked on top of a wiki, and the wiki would facilitate a colloborative effort. Howards already written a few free tutorials on which to build. Maybe those could be reworked as 3 (much expanded-upon) chapters... By the end maybe we could build the canonical blog app or something using the new ajax features, spring/hibernate 3/bean form, a crazy border component, tapfx's Cache component (for caching, after all, is a feature built right into rails), client side persistance, bookmarkable links, etc. and then we can build it.. the uber-widget... with dojo/ajax/tapestry... you know what im talking about.. the much vaunted widget you will tell your children about... ::ahem:: or maybe not on that one.. but we could at least expand the timettracker into a full fledged app youd be happy to have sitting in a browser window somewhere! Peace, Josh On 8/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I agree, some more free tutorials would be great! Who's going to write them? ;) (I'm a little busy at the moment) On 8/15/06, Karthik N <[EMAIL PROTECTED]> wrote: > > the first four chapters of his book are free, and pretty decent to get you > started on the right track > > On 8/15/06, James Carman <[EMAIL PROTECTED]> wrote: > > > > Notice that the previous .Net-based example was *free* and Kent Tong's > > book > > is not. Don't get me wrong, I've got Kent's book and I love it. But, I > > did > > have to pay for it. It would be nice if there were free resources out > > there > > that folks could use to get started (and get hooked) using Tapestry. > > > > -Original Message- > > From: Karthik N [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 15, 2006 1:06 PM > > To: Tapestry users > > Subject: Re: what we need: tutorials like this > > > > get yourself a copy of Enjoying Web Development with Tapestry by Kent > > Tong. It's got the tutorial approach to tapestry. > > > > On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: > > > > > > > > > We need an equivalent set of tutorials very simiar to the asp.net > > > quicjkstarts tutorial, but with tapestry. Step by step, building on > > simple > > > examples to more complex ones: > > > > > > http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx > > > > > > This would make tapestry easier to work with and gain more popularity! > > > > > > Cheers > > > -- > > > View this message in context: > > > > > > > > http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a58 > > 17876 > > > Sent from the Tapestry - User forum at Nabble.com. > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Thanks, Karthik > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks, Karthik > > -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry 4.1....
Hi there -- is there any sense of how stable this release is right now? alpha, beta, release candidate, etc.? I would like to start using the dojo features and adding my own. But right know in my project I can't spend a lot of time figuring out tapestry issues. -Pat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: what we need: tutorials like this
I agree, some more free tutorials would be great! Who's going to write them? ;) (I'm a little busy at the moment) On 8/15/06, Karthik N <[EMAIL PROTECTED]> wrote: the first four chapters of his book are free, and pretty decent to get you started on the right track On 8/15/06, James Carman <[EMAIL PROTECTED]> wrote: > > Notice that the previous .Net-based example was *free* and Kent Tong's > book > is not. Don't get me wrong, I've got Kent's book and I love it. But, I > did > have to pay for it. It would be nice if there were free resources out > there > that folks could use to get started (and get hooked) using Tapestry. > > -Original Message- > From: Karthik N [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 15, 2006 1:06 PM > To: Tapestry users > Subject: Re: what we need: tutorials like this > > get yourself a copy of Enjoying Web Development with Tapestry by Kent > Tong. It's got the tutorial approach to tapestry. > > On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: > > > > > > We need an equivalent set of tutorials very simiar to the asp.net > > quicjkstarts tutorial, but with tapestry. Step by step, building on > simple > > examples to more complex ones: > > > > http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx > > > > This would make tapestry easier to work with and gain more popularity! > > > > Cheers > > -- > > View this message in context: > > > > http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a58 > 17876 > > Sent from the Tapestry - User forum at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks, Karthik > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks, Karthik -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind.
Re: what we need: tutorials like this
the first four chapters of his book are free, and pretty decent to get you started on the right track On 8/15/06, James Carman <[EMAIL PROTECTED]> wrote: Notice that the previous .Net-based example was *free* and Kent Tong's book is not. Don't get me wrong, I've got Kent's book and I love it. But, I did have to pay for it. It would be nice if there were free resources out there that folks could use to get started (and get hooked) using Tapestry. -Original Message- From: Karthik N [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 1:06 PM To: Tapestry users Subject: Re: what we need: tutorials like this get yourself a copy of Enjoying Web Development with Tapestry by Kent Tong. It's got the tutorial approach to tapestry. On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: > > > We need an equivalent set of tutorials very simiar to the asp.net > quicjkstarts tutorial, but with tapestry. Step by step, building on simple > examples to more complex ones: > > http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx > > This would make tapestry easier to work with and gain more popularity! > > Cheers > -- > View this message in context: > http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a58 17876 > Sent from the Tapestry - User forum at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Karthik
RE: what we need: tutorials like this
Notice that the previous .Net-based example was *free* and Kent Tong's book is not. Don't get me wrong, I've got Kent's book and I love it. But, I did have to pay for it. It would be nice if there were free resources out there that folks could use to get started (and get hooked) using Tapestry. -Original Message- From: Karthik N [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 1:06 PM To: Tapestry users Subject: Re: what we need: tutorials like this get yourself a copy of Enjoying Web Development with Tapestry by Kent Tong. It's got the tutorial approach to tapestry. On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: > > > We need an equivalent set of tutorials very simiar to the asp.net > quicjkstarts tutorial, but with tapestry. Step by step, building on simple > examples to more complex ones: > > http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx > > This would make tapestry easier to work with and gain more popularity! > > Cheers > -- > View this message in context: > http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a58 17876 > Sent from the Tapestry - User forum at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: what we need: tutorials like this
get yourself a copy of Enjoying Web Development with Tapestry by Kent Tong. It's got the tutorial approach to tapestry. On 8/15/06, Gurps <[EMAIL PROTECTED]> wrote: We need an equivalent set of tutorials very simiar to the asp.net quicjkstarts tutorial, but with tapestry. Step by step, building on simple examples to more complex ones: http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx This would make tapestry easier to work with and gain more popularity! Cheers -- View this message in context: http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5817876 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Karthik
what we need: tutorials like this
We need an equivalent set of tutorials very simiar to the asp.net quicjkstarts tutorial, but with tapestry. Step by step, building on simple examples to more complex ones: http://www.dotnetjunkies.com/quickstart/aspplus/doc/quickstart.aspx This would make tapestry easier to work with and gain more popularity! Cheers -- View this message in context: http://www.nabble.com/what-we-need%3A-tutorials-like-this-tf2110281.html#a5817876 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IAutocompleteModel and DefaultAutocompleteModel
http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/index.html On 8/15/06, Erik Johansson <[EMAIL PROTECTED]> wrote: I cannot seem to find the org.apache.tapestry.dojo.form.DefaultAutocompleteModel org.apache.tapestry.dojo.form.IAutocompleteModel class and interface used in the TimeTracker demo. I downloaded the latest tapestry 4.1 release yesterday. Have they been moved or what do I have to do to get them? regards -Erik - 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.
Re: EventListener follow up event
I think someone else has requested the ability to add a parameters="" sort of syntax.. Can you add this to JIRA? On 8/15/06, Dom Couldwell <[EMAIL PROTECTED]> wrote: Hi, I'm trying to implement a pretty simple menu structure that supposed to update the menu tree when a given link is clicked and also update the content of the page. I've got it working but only for the first click... First time I click on one of the given links the tree expands to show the sub menu and the content div (main_content) updates to display the name of the link that the user has selected. Problem is when I then click on another link nothing happens. If I refresh the page then I can click on another link again. Any ideas as to what I'm doing wrong? Also for the EventListeners is there a neater way of working out which link has been clicked rather than adding in all the elements to the EventListener annotation? It's not really a sustainable solution once the menu structure gets bigger. Ideally I'd want to pass through a parameter link you do with a regular listener (e.g. the parameters definition on a DirectLink) but I can't see where I could define this. Relevant parts of html, page and java files are attached. I'm using the 4.1.1 snapshot on Tomcat 5.0.1.9 with Firefox. Thanks, Dom Home.html Home.page Home.java @Persist("session") public abstract List getMenuItems(); public abstract void setMenuItems(List items); @Persist("session") public abstract String getSelectedPage(); public abstract void setSelectedPage(String page); @EventListener(events="onclick", elements={"introduction", "research", "biographies"}, async=true) public void menuSelect(BrowserEvent event){ String menu = (String)event.getTarget().get("id"); setSelectedPage(menu); List items = getMenuItems(); for (Iterator iter = items.iterator(); iter.hasNext();) { MenuItem element = (MenuItem) iter.next(); if(element.getId().equals(menu)){ element.setExpanded(true); } else { element.setExpanded(false); } } getRequestCycle().getResponseBuilder().updateComponent("main_menu"); getRequestCycle().getResponseBuilder().updateComponent("main_content"); } @EventListener(events="onclick", targets = "article_1, article_2, article_3", async=true) public void subMenuSelect(BrowserEvent event){ setSelectedPage((String)event.getTarget().get("id")); getRequestCycle().getResponseBuilder().updateComponent("main_content"); } -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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.
RE: Instancing a page inside a BaseComponent
Aha, I've found out I can just call getPage().getRequestCycle().getPage("PageName"); Thanks, Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 11:00 AM To: users@tapestry.apache.org Subject: Instancing a page inside a BaseComponent I'd like to make an instance of a Page inside a BaseComponent. Is there any ways to do this without a Cycle object available? Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DynamicSelectionList and ArrayIndexOutOfBoundsException
I am using the DynamicSelectionList (Tap 3) component managed at the Tassel site http://equalitylearning.org/Tassel/app?service=direct/1/ Search/viewComponent&sp=SmatmshDynamicSelectionList I followed the BikeMaker demo with source code at http:// lombok.demon.co.uk/tapestryDemo/welcome The BikeMaker example above uses StringPropertySelectionModel and String[] objects for the drop-down selection lists. However, I modified my program to use custom PropertySelectionModel(s) and custom objects as value objects in the models. On the first render of the page, the DynamicSelectionList component works exactly what I want to achieve. The options and their labels are displayed correctly in the selection lists, and selecting an option in the parent list reflects the correct items in the child list. The problem is there is an ArrayIndexOutOfBoundsException while trying the submit the form. Following the trace and component source tells me that it is trying to retrieve an object at -1 position. I am not sure why. Has anyone encountered this problem before using custom objects for the DynamicSelectionList component (Tap 3)? I have attached the source code of the page and also the stack trace. Please let me know if there's anything you need to figure out this problem. Thanks. -waimun /* start of source */ public abstract class AddReferral extends BasePage implements PageRenderListener { public abstract UserDepartmentDao getUserDepartmentDao(); public abstract IPropertySelectionModel getDepartmentSelectionModel(); public abstract void setDepartmentSelectionModel( IPropertySelectionModel selectionModel); public abstract UserAccountDao getUserAccountDao(); public abstract List getUsersByDepartmentList(); public abstract void setUsersByDepartmentList(List users); public void pageBeginRender(PageEvent event) { List allDepartments = getUserDepartmentDao().findAll(); if (getDepartmentSelectionModel() == null) { setDepartmentSelectionModel(new DepartmentSelectionModel( allDepartments)); } // get users by department from the department selection model. DepartmentSelectionModel deptModel = (DepartmentSelectionModel) getDepartmentSelectionModel(); for (Iterator it = deptModel.getDepartmentList().iterator(); it .hasNext();) { List usersByDepartment = null; UserDepartment d = (UserDepartment) it.next(); usersByDepartment = getUserAccountDao().findByDepartment(d); getUsersByDepartmentList().add( new UsersByDepartmentSelectionModel(usersByDepartment)); } } } /* end of source */ /* Stack Trace: * java.util.ArrayList.get(ArrayList.java:323) * man.library.components.dynamicSelectionList.DynamicSelectionList.getChil dModel(DynamicSelectionList.java:309) * man.library.components.dynamicSelectionList.DynamicSelectionList.updateV alue(DynamicSelectionList.java:189) * man.library.components.dynamicSelectionList.DynamicSelectionList.renderC omponent(DynamicSelectionList.java:126) * org.apache.tapestry.AbstractComponent.render (AbstractComponent.java:857) * org.apache.tapestry.AbstractComponent.renderBody (AbstractComponent.java:624) * org.apache.tapestry.form.Form.renderComponent(Form.java:362) * org.apache.tapestry.AbstractComponent.render (AbstractComponent.java:857) * org.apache.tapestry.form.Form.rewind(Form.java:568) * org.apache.tapestry.engine.RequestCycle.rewindForm (RequestCycle.java:432) * org.apache.tapestry.form.Form.trigger(Form.java:582) * org.apache.tapestry.engine.DirectService.service (DirectService.java:169) * org.apache.tapestry.engine.AbstractEngine.service (AbstractEngine.java:889) * org.apache.tapestry.ApplicationServlet.doService (ApplicationServlet.java:198) * org.apache.tapestry.ApplicationServlet.doPost (ApplicationServlet.java:327) * javax.servlet.http.HttpServlet.service(HttpServlet.java:154) * javax.servlet.http.HttpServlet.service(HttpServlet.java:92) * com.caucho.server.dispatch.ServletFilterChain.doFilter (ServletFilterChain.java:99) * com.caucho.server.webapp.WebAppFilterChain.doFilter (WebAppFilterChain.java:163) * com.caucho.server.dispatch.ServletInvocation.service (ServletInvocation.java:208) * com.caucho.server.http.HttpRequest.handleRequest (HttpRequest.java:259) * com.caucho.server.port.TcpConnection.run(TcpConnection.java:363) * com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) * com.caucho.util.ThreadPool.run(ThreadPool.java:423) * java.lang.Thread.run(Thread.java:613) */ --
Instancing a page inside a BaseComponent
I'd like to make an instance of a Page inside a BaseComponent. Is there any ways to do this without a Cycle object available? Thanks, Greg
Re: tapdoc
Download the demo project, its pom.xml contains a sample configuration of the ant task. Regards, Norbi Dan Adams wrote: Hey, thanks. looks great. is there some docs on the ant plugin at all? i want to use it to generate docs to include with the maven site. On Tue, 2006-08-15 at 15:56 +0200, Norbert Sándor wrote: Hello, I have converted Tapdoc to Maven2, so it now has a standard website at: http://www.erinors.com/developer/project/tapdoc/ The jar and the source code is available from our maven2 repository. You can download a Maven2-based demo application from the website as well. (Please note: - the Maven2 integration is partial, currently the ant-plugin is used to integrate tapdoc to maven-based projects - the source code needs further cleanup) Regards, Norbert Sándor - 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]
Re: tapdoc
Hey, thanks. looks great. is there some docs on the ant plugin at all? i want to use it to generate docs to include with the maven site. On Tue, 2006-08-15 at 15:56 +0200, Norbert Sándor wrote: > Hello, > > I have converted Tapdoc to Maven2, so it now has a standard website at: > http://www.erinors.com/developer/project/tapdoc/ > The jar and the source code is available from our maven2 repository. > You can download a Maven2-based demo application from the website as well. > > (Please note: > - the Maven2 integration is partial, currently the ant-plugin is used to > integrate tapdoc to maven-based projects > - the source code needs further cleanup) > > Regards, > Norbert Sándor > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JumpStart v0.6 is now available
Tapestry JumpStart is a way to learn Tapestry + EJB3 by example. Suggestions for improvements are very welcome. The latest bugs and enhancements list can be viewed at http:// files.doublenegative.com.au/jumpstart/bugs_enhancements.html . Cheers, Geoff Callender - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EventListener follow up event
Hi, I'm trying to implement a pretty simple menu structure that supposed to update the menu tree when a given link is clicked and also update the content of the page. I've got it working but only for the first click... First time I click on one of the given links the tree expands to show the sub menu and the content div (main_content) updates to display the name of the link that the user has selected. Problem is when I then click on another link nothing happens. If I refresh the page then I can click on another link again. Any ideas as to what I'm doing wrong? Also for the EventListeners is there a neater way of working out which link has been clicked rather than adding in all the elements to the EventListener annotation? It's not really a sustainable solution once the menu structure gets bigger. Ideally I'd want to pass through a parameter link you do with a regular listener (e.g. the parameters definition on a DirectLink) but I can't see where I could define this. Relevant parts of html, page and java files are attached. I'm using the 4.1.1 snapshot on Tomcat 5.0.1.9 with Firefox. Thanks, Dom Home.html Home.page Home.java @Persist("session") public abstract List getMenuItems(); public abstract void setMenuItems(List items); @Persist("session") public abstract String getSelectedPage(); public abstract void setSelectedPage(String page); @EventListener(events="onclick", elements={"introduction", "research", "biographies"}, async=true) public void menuSelect(BrowserEvent event){ String menu = (String)event.getTarget().get("id"); setSelectedPage(menu); List items = getMenuItems(); for (Iterator iter = items.iterator(); iter.hasNext();) { MenuItem element = (MenuItem) iter.next(); if(element.getId().equals(menu)){ element.setExpanded(true); } else { element.setExpanded(false); } } getRequestCycle().getResponseBuilder().updateComponent("main_menu"); getRequestCycle().getResponseBuilder().updateComponent("main_content"); } @EventListener(events="onclick", targets = "article_1, article_2, article_3", async=true) public void subMenuSelect(BrowserEvent event){ setSelectedPage((String)event.getTarget().get("id")); getRequestCycle().getResponseBuilder().updateComponent("main_content"); } -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapdoc
Hello, I have converted Tapdoc to Maven2, so it now has a standard website at: http://www.erinors.com/developer/project/tapdoc/ The jar and the source code is available from our maven2 repository. You can download a Maven2-based demo application from the website as well. (Please note: - the Maven2 integration is partial, currently the ant-plugin is used to integrate tapdoc to maven-based projects - the source code needs further cleanup) Regards, Norbert Sándor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tips on creating component library documentation?
The two versions on the page are older, I have recently converted it to be useable from maven2. It is currently somewhat complicated, because there is no custom maven plugin for it, instead the ant plugin is used. (I had some serious classloading problems but now it seems to work OK.) Regards, Norbi Jesse Kuhnert wrote: I would stay away from xdoc if at all possible, I only used it because Howard had created an xsl stylesheet to convert the old forrest docs over. APT is much better. There is always http://www.erinors.com/product/tapdoc/, but I've not heard any updates lately about possible maven2 support. On 8/14/06, Dan Adams <[EMAIL PROTECTED]> wrote: I have a component library that I produced for internal use here at the company (~30-40 components) and I need to document it so that other people can use it easily. Other than hand formatting a lot of apt or xdoc pages, is there an easy way to create component documentation using maven2? I noticed that the tapestry docs are pretty much all xdoc. I'm expecting to have to do some writing obviously, but does anyone have any suggestions? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 2006.08.15. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible to make any page your homepage?
We have designed a robust platform that lets them select any page they have created as their homepage. Currently the way we do it is the homepage is simply a javascript redirect to the page they choose. The problem is, when we do it this way thier hompage has a www.theirurl.com?service=vpage/1 style url. Is there any way around this to make the url just www.theirurl.com when they first hit thier homepage? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JWCID changing the look & feel of the Static HTML mocks.
Check that your CSS isn't affected by the extra div/spans used for Tapestry flow control. "Rahat Khan" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Dear All, >I am using Tapestry4 for my project. My problem is after adding JWCID > in the HTML mocks,The > view of some of the mocks have been changed.That means the Static view of > the mocks is now different from > the application view.But I want that the JWCID will not effect the > original look and feel of the static > html mocks. > > To be more specific with the problem, > > I used the "Block" component to ignore a block of HTML code in the > running application. But > this codes are viewable in static HTML. I want something just > opposite.That is, a block of > HTML code will be visible in the Application but not in the static mocks. > > Thanks in Advance. > > Rahat. > > > > - > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call > rates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IAutocompleteModel and DefaultAutocompleteModel
I cannot seem to find the org.apache.tapestry.dojo.form.DefaultAutocompleteModel org.apache.tapestry.dojo.form.IAutocompleteModel class and interface used in the TimeTracker demo. I downloaded the latest tapestry 4.1 release yesterday. Have they been moved or what do I have to do to get them? regards -Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 4.1: dojo everywhere?
Jesse Kuhnert gmail.com> writes: > > Just as an update on this thread, it looks like they've been working on > build size and I'm currently able to create a 23kb file for dojo..So, I hope > that will speed things up a little bit. > Great, what a progress! Reducing the size of the "dojo.js" is always a good idea. Reducing the dependency of Tapestry on dojo is even better: If the developer's intention is to work without dojo then the web-app built with Tapestry should not include the "dojo.js". Hence, the goal is to integrate dojo into Tapestry in a non- invasive way. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]