Re: Tapestry at my company

2008-03-18 Thread Lance Java
For trolls such as yourself... I'd suggest you adopt struts 1 to ensure maximum pain. On 18/03/2008, Rob Smeets <[EMAIL PROTECTED]> wrote: > > Hi All, > > Tomorrow is our last day of debate at my work about which framework to > choose for our upcoming huge project. > Its seems Wicket is winning th

Re: T5 regExp problem

2008-04-15 Thread Lance Java
Since your regex is defined in a property file, you don't need to escape your backslashes as you do with a java string. try \-*\d*\.*\d* Cheers, Lance. On 15/04/2008, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > > That's odd, it works for me alright... Tapestry doesn't do anything > special wrt

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-02 Thread Lance Java
Does anyone on this list have the nouse to find out where Rob Smeets lives? I want to go round to his house and rough this little troll up a bit. 2008/5/2 Rob Smeets <[EMAIL PROTECTED]>: > Hi guys, > > I don't mean to cause any depression or controversy but I saw this > research > results and tho

Can struts 1 and tapestry 5 play together nicely?

2008-05-13 Thread Lance Java
We are about to add a new section to an existing struts1 application and I was hoping that I could implement the new section using tapestry 5 with a view to migrating some of the existing pages to tapestry 5 in the future. The existing application has a couple of servlets for generating images (gra

Re: T5: JSONArray + fillling

2008-05-14 Thread Lance Java
You want a JSONObject not a JSONArray http://tapestry.formos.com/nightly/tapestry5/apidocs/index.html Cheers, Lance. 2008/5/14 Leon Derks <[EMAIL PROTECTED]>: > Hello > > I found this example: > > new JSONArray("[['a', 'value a'], ['b', 'value b'], ['c', 'value c'], ['d', > 'value d']]")); > > T

Re: T5: JSONArray + fillling

2008-05-14 Thread Lance Java
JSONArray options = new JSONArray(); for(Group group : List groups) { JSONObject obj = new JSONObject(); obj.put(group.getId, group.getName()); options.put(obj); } Cheers, Lance. 2008/5/14 Leon Derks <[EMAIL PROTECTED]>: > Can you give me an example of that? > > Leon &

Re: Repost: T3: Stop back button view of a form

2008-06-02 Thread Lance Java
Not really possible I'm sorry, when a user hits the back button, the page they are viewing is in their browser cache (ie not a serverside hit). Probably the best solution is to set a flag (persistant property or in the db) on first form submit then fail any subsequent submits by redirecting to an e

Re: Repost: T3: Stop back button view of a form

2008-06-02 Thread Lance Java
l be an ajax request. Cheers, Lance. 2008/6/2 Lance Java <[EMAIL PROTECTED]>: > Not really possible I'm sorry, when a user hits the back button, the page > they are viewing is in their browser cache (ie not a serverside hit). > Probably the best solution is to set a flag (persistan

Re: T5 ajax zone changing

2008-06-06 Thread Lance Java
I've always thought it would be nice to return a Map with the key being the zone id so I can specify the zone(s) to update. On 05/06/2008, Janko Muzykant <[EMAIL PROTECTED]> wrote: > > > Thiago H. de Paula Figueiredo wrote on 05 Jun 2008 15:26:58 MET: > > > On Thu, 05 Jun 2008 11:18:53 -0300, Jank

T5: Using tapestry components in a JSP

2008-06-09 Thread Lance Java
Hi, I'm a tapestry newbie and want to use tapestry5 for a new set of pages. There is a requirement that some of the new components can be re-used on some existing struts/JSP based pages. I was hoping that I could write a jsp tag library which would initialize t5 components, include their javascript

Re: T5: Using tapestry components in a JSP

2008-06-09 Thread Lance Java
de you > provide is instrumented heavily at runtime. > > > On Mon, Jun 9, 2008 at 7:17 AM, Lance Java <[EMAIL PROTECTED]> > wrote: > > Hi, I'm a tapestry newbie and want to use tapestry5 for a new set of > pages. > > There is a requirement that some of the ne

Re: T5: Using tapestry components in a JSP

2008-06-09 Thread Lance Java
p, move some of > your boilerplate inclusions (header/footer stuff) into a layout component, > and then make a custom component to drive your jsps. That would be a killer > transition tool. > > Christian. > > > On 9-Jun-08, at 15:30 , Lance Java wrote: > > Bummer... I though

Re: T5: Using tapestry components in a JSP

2008-06-09 Thread Lance Java
I realise the differences... thanks marcus. I was hoping for a hybrid where the struts action / jsp context acts as (or delegates to) a tapestry page. Thus keeping my existing application as is but adding new functionality as tapestry components. 2008/6/9 Marcus <[EMAIL PROTECTED]>: > Hi lance, >

Re: Urgent setting focus on @submit buttons

2008-06-10 Thread Lance Java
You oculd do it with javascript: Event.observe(window, 'load', function() { $('buttonId').focus(); } ); 2008/6/10 Kameswari <[EMAIL PROTECTED]>: > > I have a form with 2 @Submit buttons. > By default while rendering the 1st button is set to focus. > But i need the 2nd button to be in focus.

iGoogle style drag and drop components

2008-06-10 Thread Lance Java
Hi guys, has anyone written a set of components to support an iGoogle like interface? Where draggable components can be moved around the page and the surrounding components re-order automatically. Cheers, Lance.

Re: Urgent setting focus on @submit buttons

2008-06-11 Thread Lance Java
ed Cheers, Lance. 2008/6/11 Kameswari <[EMAIL PROTECTED]>: > > Is there any othe solution? > > Lance Java wrote: > > > > You oculd do it with javascript: > > > > Event.observe(window, 'load', > > function() { $('b

Creating a mixin on a component that is not a field

2008-06-12 Thread Lance Java
I'm trying to create a SortableTarget mixin on my own component but am not having any luck as yet. I have created a MixinAny component that implements ClientElement so I can attach mixins to an Any style component and get the client id. I have not been able to find any examples of attaching a mixi

Component is null in mixin

2008-06-13 Thread Lance Java
My last post did not get a response so perhaps including some code might help. I have a mixin which I attach to a custom component but the component is null in the afterRender method of my mixin It appears that @InjectContainer is not working... is there something I need to add to my component? (M

Re: [T5] Using a Mixin on a Label component

2008-06-17 Thread Lance Java
If you read the next sentence: "Alternately, you may prefix the name of the parameter with the *unqualified * name of the Mixin class; this eliminates the ambiguity." So you can use I haven't tried this tho :) On 17/06/2008, SergeEby <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am trying to use a

Re: Putting templates together with the java

2008-06-19 Thread Lance Java
Are you using eclipse? ctrl + shift + R is great (use * as wildcard) Or you can use this plugin http://code.google.com/p/loom-t5/ Otherwise you can bundle your source anyhow you like, as long as your build makes the war correctly at the end of the day. The maven folder structure is only a (good, tr

t5: No ClassLoaders found for: org.apache.tapestry5.internal.services.ClientBehaviorSupport

2008-06-24 Thread Lance Java
I am a tapestry newbie, I and I'm playing around with tapestry 5.0.13. When I have a page that contains only my components, tapestry is working as expected. When I put a core tapestry component (actionlink, zone, etc.) on the page I get an exception Page: package mytapestrybasepackage.pages; pu

Re: t5: No ClassLoaders found for: org.apache.tapestry5.internal.services.ClientBehaviorSupport

2008-06-24 Thread Lance Java
Ok, have solved the issue thanks to this blog http://blog.progs.be/?p=52 Desc.useContextClassLoader = true; Cheers, Lance. 2008/6/24 Lance Java <[EMAIL PROTECTED]>: > I am a tapestry newbie, I and I'm playing around with tapestry 5.0.13. > When I have a page that

t5: Returning block works in Firefox but not in IE

2008-06-24 Thread Lance Java
I have an actionlink that returns a block and populates a zone in my page FundGraph.tml edit ... FundGraph.java @Inject private Block editorBlock; @OnEvent(value="action", component="edit") protected Object onActionFromEdit() { return editorBlock; }

Re: t5: Returning block works in Firefox but not in IE

2008-06-24 Thread Lance Java
t;zoneToUpdate"]]}); > }); > // --> > > > > > If these scripts are not, you can have this problem., and you can solve it > obtaining a valid xhtml like result. > > I hope can help you > > & > DiPegotDeis > > > > > Lance Java wrote: >

Re: [T5] How to use enums in .tml files

2008-06-24 Thread Lance Java
I'm a newbie but I notice tapestry has a StringToEnumCoercion. What hapens if you do this? ... onActionFromSomelink(EnumType enum) { // i'm expecting auto coercion to do it's job here } Where EnumType is the type of your enum. Cheers, Lance. 2008/6/24 9902468 <[EMAIL PROTECTED]>: > > Hi, >

Re: t5: Returning block works in Firefox but not in IE

2008-06-24 Thread Lance Java
full graceful degradation, you can inject the Request object can > check its isXHR() method, then decide on an appropriate return value > (typically, a Block or null). > > On Tue, Jun 24, 2008 at 9:24 AM, Lance Java <[EMAIL PROTECTED]> > wrote: > > I have solved the issue,

Re: t5: Returning block works in Firefox but not in IE

2008-06-25 Thread Lance Java
block = null; > } > > That wouldn't break anything? > > -99 > > > Lance Java wrote: > > > > Could returning null be built in as default behaviour? Since returning a > > block from a non-xhr request is an error case, it would save putting > >

T5: Dynamic zone id

2008-06-26 Thread Lance Java
Consider the following example: Page: FundGraph: edit ... ... I have a page with a few fund graphs and an editZone. Each graph has an edit lin

Re: t5: Returning block works in Firefox but not in IE

2008-06-30 Thread Lance Java
nks in advance. > Weisu. > > Lance Java wrote: > > > > Yep, that's what I meant > > > > 2008/6/25 9902468 <[EMAIL PROTECTED]>: > > > >> > >> Better yet: > >> > >> Tapestry could be so smart that it would retu

Re: Creating new components on the fly in T5 using AJAX/JSON

2008-06-30 Thread Lance Java
I only know how how to populate zones with form submits or event links. I'm sure you can take a look at the eventlink component and copy / paste. Then all you need to do specify the zone to populate and return: - A class object for your component - The name (String) of the component - A component

Re: T5: form zone parameter not taken into account

2008-07-03 Thread Lance Java
How are you returning the AccountManagement? Do you use @InjectComponent or new AccountManagement() ? The latter will not work. 2008/7/3 Stephane Decleire <[EMAIL PROTECTED]>: > Thanks Josh, > > But i've tested my page with several navigators (IE 7.0, Firefox 2.0 & 3.0) > with javascript enabled

Re: Displaying image on T5 page

2008-07-10 Thread Lance Java
This should help http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage 2008/7/10 Yeeswara Nadapana (HCL Financial Services) < [EMAIL PROTECTED]>: > > Hi, > > > > I am new to Tapestry. Using Tapestry 5.0.10 with my application. I need > to display a chart image on my application usi

Re: dynamically disable field

2008-07-29 Thread Lance Java
java: class MyPage { @Property private String value; @Property private boolean disabled; } tml: On 29/07/2008, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hi all, > > i'm newbie in tapestry. May i know is there any dynamically way to > code it in java to control over tml

Re: help with self developed imagemap component

2008-08-08 Thread Lance Java
@see http://wiki.apache.org/tapestry/Tapestry5HowToCreateASimpleGraphComponent Where a link is created for the "chart" event and handeled by onChart() On 08/08/2008, Gregor Burger <[EMAIL PROTECTED]> wrote: > > hi, > > I would like to develop a component which renders an imagemap > produced by gr

Re: 答复: T5: Select component + onchange()

2008-08-15 Thread Lance Java
getBytes() will use the default encoding [System.getProperty("file.encoding");] if the default encoding is not UTF-8 in your example, you are trying to construct a utf-8 string from a non utf-8 byte array. Try this: utfStr=new String("滕训华".getBytes("UTF-8"),"UTF-8"); Using chinese characters dire

Re: Multiple file upload

2008-08-28 Thread Lance Java
The html file object only supports 1 file at a time, it's also locked down by browser security so you can't set the value via javascript. To upload multiple files you can either use multiple file objects with some user friendly javascript or use an applet or a flash component. I've seen some open

Re: T5: Serverpush functionality?

2008-10-06 Thread Lance Java
Use dwr's reverse ajax... it's great! http://directwebremoting.org/dwr/reverse-ajax If you download the sample war it has examples including a chat application. Dwr3.0 is soon to be released with a whole lot of reverse-ajax niceness. 2008/10/6 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> >

Re: [Spam Rating:3.40] Re: T5: Ajax components

2008-11-04 Thread Lance Java
I find this page useful http://wiki.apache.org/tapestry/Tapestry5HowTos 2008/11/4 James Sherwood <[EMAIL PROTECTED]> > Hello, > > I am just in the process of learning T5 so the 'easy' part is not so 'easy' > right now. > > Is there any good tutorials on how to make components like I listed by > c

Re: T5: Using an annotation to define which is the page activation context / onActivate method ?

2008-11-11 Thread Lance Java
You could use pageAttached http://tapestry.apache.org/tapestry5/tapestry-core/guide/lifecycle.html 2008/11/8 Joel Halbert <[EMAIL PROTECTED]> > just realised that the order of invocation of onActivate methods is the > other way around to that which i thought it was: > http://markmail.org/message

[OT] Hot deploy with JBoss

2009-01-06 Thread Lance Java
Hi guys, this is slightly off topic but I know this problem has been solved with tapestry so I'm sure there's some expertise in this forum. I am attempting to add hot deploy functionality to an application which is deployed to JBoss and uses spring mvc (sorry). I was hoping to be able to hot deplo

Re: Push event using AJAX from server to client

2009-01-06 Thread Lance Java
DWR provides reverse ajax which will do what you want. See the reverse ajax clock or chat examples in the war which can be downloaded from http://directwebremoting.org/dwr/download Cheers, Lance. 2009/1/5 Peter Stavrinides > Hi everyone, Happy New Year! > > Has anyone played with AJAX push even

Re: Not working example for BeanDisplay

2009-08-19 Thread Lance Java
${bean.lastname.toUpperCase()} Should read ${user.lastname.toUpperCase()} 2009/8/19 Andrey Larionov > Example from of parametrizing BeanDisplay component > ( > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/component

Re: [T5.1] Serialization and IoC?

2009-08-21 Thread Lance Java
You might need to split your cart into two classes... Cart (serializable) which contains the items in a cart and CartService (not-serializable) which encapsulates the functions to perform on Cart instances. 2009/8/21 xfile80303 > > Hi Christian, > > Well, it's kind of complex, but let me give yo

Re: Boolean Property Expression

2009-10-13 Thread Lance Java
The java beans spec only states that "is" can be used for boolean, it does not mention java.lang.Boolean. https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/viewproductdetail-start?productref=7224-javabeans-1.01-fr-spec-oth-js...@cds-cds_developer 2009/10/13 Benny

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread Lance Java
> Wouldn't the JAR in my lib supercede the one provided by the container? The default classloader implementation (ie java.lang.Classloader) is to attempt to resolve the class in the parent classloader before trying the current classloader. Different containers provide different configuration option

Re: Ajax fileupload

2009-10-19 Thread Lance Java
As mentioned on previous threads, you can use dwr to upload files in an ajax style fashion which uses a hidden iframe. There is an example of using fileupload in the demo war file http://directwebremoting.org/dwr/download.html 2009/10/18 Argo Vilberg > hi > Is in tapestry such component like GMA

Re: Blackbird getting in the way of troubleshooting javascript errors in ChenilleKit components

2009-11-03 Thread Lance Java
You can proxy through to the following functions to populate the firebug log: console.log(), console.debug(), console.info(), console.warn(), console.error(), console.trace() Obviously these functions should test: if(console) 2009/11/3 Dave Greggory > I'm trying to upgrade to 5.1, and everythin

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
You might like to take this discussion onto the dwr user's list. I think it might involve writing a TapestryCreator which is able to look up services from the tapestry registry. Please download the dwr source and have a look at the SpringCreator for inspiration. Cheers, Lance. 2009/12/21 Ashwanth

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
x27;s functionality but not all. For example injecting the request / response / session and creating a hibernate session. If you come up with a working solution, please post it back to the DWR user's list and we'll include it in the project. Cheers, Lance. 2009/12/22 Lance Java > You

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
One more thing to note is that DWR supports ajax filters which are basically interceptors on DWR services. You may want to duplicate some of the TapestryFilter's functionality in an AjaxFilter. http://directwebremoting.org/dwr/server/dwrxml/filters.html 2009/12/22 Lance Java > For a

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
Ah... great. The TapestryCreator can access the servlet context using: org.directwebremoting.WebContextFactory.get().getServletContext(); http://directwebremoting.org/dwr/server/javaapi.html 2009/12/22 Thiago H. de Paula Figueiredo > Em Tue, 22 Dec 2009 09:27:26 -0200, Lance Java > es

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
ite! > > - Ashwanth Kumar > > On Tue, Dec 22, 2009 at 5:10 PM, Lance Java >wrote: > > > Ah... great. > > > > The TapestryCreator can access the servlet context using: > > org.directwebremoting.WebContextFactory.get().getServletContext(); > > >

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
No probs. To verify that the TapestryFilter is doing it's job, try to @Inject RequestGlobals into your bean. Cheers, Lance. 2009/12/22 Ashwanth Kumar > Sure, > > Thanks a lot! I'll post my code, once i get it working! > > - Ashwanth Kumar > > On Tue, Dec

Re: New Tapestry Website - http://www.seesaw.com/

2010-01-29 Thread Lance Java
Hi... just to give you a heads up... the css is not working as expected in IE6 (screenshot attached) Your response to this may well be "get a better browser" which I totally understand. Cheers, Lance. On 29 January 2010 10:18, Ben Gidley wrote: > Hi, > > We have just launched http://www.seesaw.c

Re: Get the referring page

2009-01-23 Thread Lance Java
1 more suggestion: A hidden "returnPage" field on each of referring pages and the referring pages POST to the multiple entry page. 2009/1/23 Peter Stavrinides > Hi everyone, > > I have a page with multiple entry points, when a user is done editing I > want to return them to their previous page,

Re: How to get a page's html to send it as an email?

2009-03-16 Thread Lance Java
DWR does this by forwarding to the URL passing a response object that writes to a local stringbuffer. See the attached files, the method is DefaultWebContext.forwardToString(); Cheers, Lance. 2009/3/16 Andreas Pardeike > Hi, > > I build it so my users can customize their tapestry pages. Now I >

Re: How to get a page's html to send it as an email?

2009-03-17 Thread Lance Java
Sorry... forgot to mention that this is a very general approach and there is probably a tapestry way to do it. 2009/3/17 Andreas Pardeike > On 16 mar 2009, at 16.34, Lance Java wrote: > > DWR does this by forwarding to the URL passing a response object that >> writes to a loc

Re: T5: tapestry-upload, allowing user to remove filename from textfield

2009-03-19 Thread Lance Java
The file object is pretty locked down by the browser and is impossible to manipulate using javascript because of potential hacking implications. You may have to settle for a x button next to it which creates a new file object and drops the original. 2009/3/19 leechj > > I feel foolish for not be

Re: Using JSP taglibs in T5?

2009-06-10 Thread Lance Java
I have seen this sort of functionality used in DWR. The response is wrapped in a class that writes to a local buffer instead of the response output stream. 2009/6/10 Andreas Andreou > I think i remember a Tapestry component in the wiki (not sure if it > was T4 or T5) that would include a jsp > i

Re: [T5] JPF-Plugins (or any other plugin-framework) to add page content?

2009-07-27 Thread Lance Java
Tapestry OSGI may help you http://groups.google.com/group/tapestry-osgi/ 2009/7/27 Tobias Wehrum > Hello everyone, > > I need to write an application where multiple page contents should be added > in later via plugins - for example different ways to output things, other > payment modi, or statis

Re: [T4]. multiple file upload. Help.

2009-08-04 Thread Lance Java
This is not exactly true... you can use a hidden form. This may require a bit of javascript to move the file objects to the hidden form, post the the form then move them back to their visible location. DWR uses this trick. Browser security is such that you can not set the value of a file object wit

Re: [T4]. multiple file upload. Help.

2009-08-04 Thread Lance Java
> form? Do u have any examples? > > On Tue, Aug 4, 2009 at 3:01 PM, Lance Java > wrote: > > This is not exactly true... you can use a hidden form. This may require a > > bit of javascript to move the file objects to the hidden form, post the > the > > form then m

Re: [T4]. multiple file upload. Help.

2009-08-04 Thread Lance Java
blem last month and this may helped me improve the > messy js i have for my the iframe handling. > > Thanks again! > > On Tue, Aug 4, 2009 at 3:20 PM, Lance Java > wrote: > > Yes.. your correct... you can't do it with XHR... you need a form and an > > iframe. It give

Re: T5.1 Parsing Errors

2009-08-10 Thread Lance Java
should work 2009/8/10 Michael Gentry > Thanks Thiago. I was trying to do something quick and dirty, but I > guess I'll do it the right way. :-) > > mrg > > > On Mon, Aug 10, 2009 at 11:39 AM, Thiago H. de Paula > Figueiredo wrote: > > Em Mon, 10 Aug 2009 12:23:24 -0300, Michael Gentry < > mge

Re: DynamicTemplate issue

2013-10-26 Thread Lance Java
Have you seen the code I provided on the "jack of all trades page" thread? I've pretty much solved the problem there. Tapestry uses bindings to read and write values during rendering. Eg the prop: binding.

Re: Trying to create a custom mixin which will update zone.

2013-10-31 Thread Lance Java
Take a look at the onEvent mixin in tapestry-stitch http://tapestry-stitch.uklance.cloudbees.net/oneventdemo On 31 October 2013 19:44, George Christman wrote: > I was semi able to get it to work using the following code, but it looks as > if the onDocument method doesn't have a blur event hand

Re: Trying to create a custom mixin which will update zone.

2013-11-02 Thread Lance Java
Nice, I'm not too familiar with 5.4 so the data attributes + dom stuff is all new to me. NB jquery has built in support for data attributes so $field.attr("data-update-zone", spec.zone) can be written as $field.data("update-zone", spec.zone)

Re: T5.3: per page context session storage?

2013-11-06 Thread Lance Java
Any time someone wants to use the session, I always ask why. I avoid session usage wherever possible. If there's no real need for it, I suggest you keep your app stateless and use the page activation context / event context to pass parameters.

Re: Tree, jumpstart tree from database and zone demo

2013-11-06 Thread Lance Java
FYI you might be interested in this: http://tapestry-stitch.uklance.cloudbees.net/databasetreedemo

Re: T5.3: per page context session storage?

2013-11-07 Thread Lance Java
ou have to edit object with several > pages/screens before finally committing it? > > > On Thu, Nov 7, 2013 at 2:03 AM, Thiago H de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Wed, 06 Nov 2013 18:37:24 -0200, Lance Java < > lance.j...@googlemail.com>

Re: Grid Pagination and Performance

2013-11-13 Thread Lance Java
The grid needs the rowcount to know how many pages there are in total (eg page 1 of N). HibernateGridDataSource and JpaGridDataSource execute 2 types of queries. 1 to get the rowcount and another to get a single page at a time. In my opinion this is a scalable approach.

Re: Grid Pagination and Performance

2013-11-13 Thread Lance Java
The Grid should only ever send a single page of data at a time. Let's get things clear... Are you using @Persist or java.util.List with your large dataset? To maintain scalability you should never coerce GridDataSource to List. Perhaps it's just your choice of language (persist & list) that was

Render component markup to HTML string for use in javascript etc.

2013-11-16 Thread Lance Java
I've seen the following question asked countless times in this forum: "How do I render the HTML for my component into a string for use in javascript" I've added a 'capture' component to tapestry stitch and a demo which demonstrates capturing markup during page render and ajax update. Demo here: h

Re: Pre select Tree with zone update

2013-11-17 Thread Lance Java
Jumpstart fires it's own custom "leafSelected" event when you select a leaf. So you'll need to make sure you mimic this action. From what I can see, that means you'll need to initialise selectedClassification with a value.

Re: Web frameworks

2013-11-18 Thread Lance Java
I'm not sure why... but for some reason a random user comes on this tapestry list about once a year spreading FUD with a message similar to this one. I've never really understood why... Please ignore this thread. On 18 November 2013 19:12, Emmanuel Sowah wrote: > Hi guys, > > There is a great r

Re: The Rise and Fall of Tapestry

2013-11-22 Thread Lance Java
> 7. Why Howard finally embraced Wicket and started using it in his clients' projects. Drink a shot! > 8. When Tapestry became Wicketstry Drink a shot! > or Tapwickstry. ... and another!

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
Probably best to see some code before calling it a bug. Perhaps you are initializing a variable in its declaration (instead of @SetupRender) or possibly a @Persist issue?

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
Why is your encoder calling person.getPhones().add(phone)??? That looks totally dodgy!

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
I didn't take the time to fully understand your code but a ValueEncoder's role is solely to serialize between clientside string and serverside object. Nothing more.

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
I'm assuming you know that the encoder is fired every time a conversion between clientside id and serverside object is done. This includes your delete action etc.

Re: 5.4 Bug with select nested inside form loop.

2013-11-22 Thread Lance Java
As I said... I haven't taken the time to fully understand the code. That being said, I'd be willing to bet you a fiver that it's causing the issue :)

Re: 5.4 Bug with select nested inside form loop.

2013-11-23 Thread Lance Java
lect option > being selected in the select menu. I tried clearing my browser cache as > well, no change. Should I file a bug report with JIRA? > > > On Fri, Nov 22, 2013 at 3:24 PM, Lance Java >wrote: > > > As I said... I haven't taken the time to fully underst

Re: 5.4 Bug with select nested inside form loop.

2013-11-24 Thread Lance Java
rns new Phone() for ***i-am-new*** in toValue() Option 3: @Persist your phones in the session. Your ValueEncoder then converts between object and string using the array index On 23 November 2013 23:06, George Christman wrote: > On Sat, Nov 23, 2013 at 4:48 AM, Lance Java >wrote: > >

Re: grid is showing this column -> _persistence Should Refresh Fetch Group

2013-11-27 Thread Lance Java
I'm guessing some ejb class transformation has added a _persistence property to your bean. Try On 28 Nov 2013 02:53, "Chris Mylonas" wrote: > Hi Tapsters, > > Can anyone shed any light on the above? > I usually use my own home grown hand rolled tables but chucked a grid into > my template for

Re: grid is showing this column -> _persistence Should Refresh Fetch Group

2013-11-27 Thread Lance Java
Oops. I meant exclude not ignore. On 28 Nov 2013 07:17, "Lance Java" wrote: > I'm guessing some ejb class transformation has added a _persistence > property to your bean. > > Try > > On 28 Nov 2013 02:53, "Chris Mylonas" wrote: > >> Hi Ta

Re: grid is showing this column -> _persistence Should Refresh Fetch Group

2013-11-28 Thread Lance Java
If you want to handle this globally, you could override / decorate BeanModelSource and call BeanModel.exclude(...) based on some logic.

Re: AW: switch Modal Box

2013-11-28 Thread Lance Java
Create a page for your pdf that can return a StreamResponse from onActivate(...). If the pdf can't be rendered, you show an error. You can either pagelink to the pdf page or return an instance of the pdf page in onSuccess() from a form on another page. On 27 Nov 2013 18:53, "Vasili Petrenko" w

Re: grid is showing this column -> _persistence Should Refresh Fetch Group

2013-11-28 Thread Lance Java
pply it to all the grids through a worker. > > > On Thu, Nov 28, 2013 at 10:56 AM, Lance Java >wrote: > > > If you want to handle this globally, you could override / decorate > > BeanModelSource and call BeanModel.exclude(...) based on some logic. > > >

Re: Strange behavior with JUnit and MVN test in Eclipse

2013-11-29 Thread Lance Java
Taking an educated stab in the dark here but maybe your using the m2e plugin in eclipse and it's resolving one of your dependencies to another project in eclipse At the command line it's resolving the same dependency from your maven repo. On 29 Nov 2013 17:52, "Alessio Gambi" wrote: > Hi list !

[ANN] tapestry-graphael

2013-11-30 Thread Lance Java
I've just created a little component library for generating gRaphaël SVG charts. Currently only pie charts and line charts are supported I'll probably only add other chart types as I need them myself. Demo: http://tapestry-graphael.uklance.cloudbees.net/ Source: https://github.com/uklance/tape

Re: [ANN] tapestry-graphael

2013-11-30 Thread Lance Java
Hi François, Sencha is not free, it's a commercial product which uses gRaphaël for charting.

Re: How does Tapestry SelectModelFactory pick the id

2013-12-02 Thread Lance Java
If you provide an "encoder" to your loop, select will use that. Otherwise it will ask the ValueEncoderFactory for a ValueEncoder for the type. Note that tapestry-hibernate will provide a ValueEncoder for each of your entities. Note also that ValueEncoderFactory will call the TypeCoercer as a las

Re: Passing blocks as component parameters

2013-12-02 Thread Lance Java
As Kristian has said, this can normally be managed with block & delegate. Another way is to declare (or TypeCoerce) your block as a RenderCommand. You can return a RenderCommand from any render phase method. A RenderCommand can delegate to other RenderCommands. Note that rendering mimics tail rec

Re: component paramter frustrations

2013-12-02 Thread Lance Java
I avoid session usage at all costs (with the exception to the rule being the logged in userId) Why not pass the parameter values in your events so the app is stateless? Also, remember that page. onActivate(...) is called for page render and ajax events so sometimes it's better to initialise here

Re: component paramter frustrations

2013-12-02 Thread Lance Java
As I said, you just pass the parameters in the event context of you events.

Loving the eclipse-tapestry5-plugin

2013-12-02 Thread Lance Java
I've just started using the new(ish) eclipse-tapestry5-plugin and I must say it's great!! The killer feature for me is the '+' button to create a .tml, .css, .js file from a java class in a maven friendly location pre-filled with useful templates. Kudos to Dmitry Gusev for a great plugin. If you

Re: Passing blocks as component parameters

2013-12-02 Thread Lance Java
ass this parameter to > the delegate? (I will try this hope it works :)) > > > On Mon, Dec 2, 2013 at 9:50 AM, Lance Java >wrote: > > > As Kristian has said, this can normally be managed with block & delegate. > > > > Another way is to declare (or TypeC

Re: How does Tapestry SelectModelFactory pick the id

2013-12-02 Thread Lance Java
Hmm... not sure why I said loop. If you provide an "encoder" to your loop, select will use that Should be If you provide an "encoder" to your select, it will use that. If company is in the basepackage.entities package, then tapestry-hibernate will auto-register a ValueEncoder for it. On 2 Dece

Re: Can you get URL context values within a component.

2013-12-04 Thread Lance Java
Components should have knowledge of page activation context. Pass the selected tab as a component parameter. The parameter can be mapped to the page activation context in the page. See the demo here http://tapestry-stitch.uklance.cloudbees.net/tabgroupdemo

Re: Can you get URL context values within a component.

2013-12-04 Thread Lance Java
Oops, smartphone typing. I meant to say Components should never have knowledge of page activation context. On 4 Dec 2013 23:07, "Lance Java" wrote: > Components should have knowledge of page activation context. Pass the > selected tab as a component parameter. The parameter

  1   2   3   4   5   6   7   8   9   10   >