Re: tapestry5-highcharts available
for basic charts with MIT at GPL V2 licence, there is also http://www.jqplot.com/ see https://github.com/got5/tapestry5-jqPlot simple demo available at http://growing-cloud-5354.herokuapp.com/ 2012/10/14 bhorvat horvat.z.bo...@gmail.com: Muhammad Gelbana wrote I reckon highcharts license doesn't fit in commercial applications. Not really related to the problem here :) but yea the highchart should be paid depending on the requirements. The tapestry-highchart is just a wrapper to help you integrate you application and the highchart. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-highcharts-available-tp5606181p5716892.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry5-highcharts available
We will deploy a release version this week . 2012/10/14 bhorvat horvat.z.bo...@gmail.com: if the snapshot repository is not working does anyone have any idea when it will work as I need the snapshot version due to the fix it contains thanks for the assistance -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-highcharts-available-tp5606181p5716889.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry5-highcharts available
On Mon, Oct 15, 2012 at 11:41 AM, François Facon francois.fa...@atos.net wrote: We will deploy a release version this week . Well... http://d3js.org/ is worth a look. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry5-highcharts available
If you need charts than maybe http://nvd3.com which is a utils charting library based on d3. Cheers, Dragan Sahpaski On Mon, Oct 15, 2012 at 12:18 PM, Massimo Lusetti mluse...@gmail.com wrote: On Mon, Oct 15, 2012 at 11:41 AM, François Facon francois.fa...@atos.net wrote: We will deploy a release version this week . Well... http://d3js.org/ is worth a look. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: strange NPE, really making me nervous
On Fri, 12 Oct 2012 01:01:36 -0300, Ken in Nashua kcola...@live.com wrote: Here is Home.JAVA snippet public class Home { /** * Component */ @Property private Class collectiontype; @Property private Integer itemsPerPage = new Integer(50); Don't initialize fields in their declarations. Use some event handler method instead. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Generating dynamic Hypertext from a component
On Sat, 13 Oct 2012 12:25:13 -0300, Peter Wendorff wendo...@uni-paderborn.de wrote: Thanks, this seems to work basically. But is it possible to mix that with - optimal even dynamic - templates? Tapestry tempaltes structure is static. But you can use the OutputRaw component to generate markup on a Java class and output it in HTML. I miss something like insertTemplate(+myComponentAsConfigured+ type=\way\ id=\5\/); What's exactly your scenario here? To describe it another way: At runtime I have all informations to assemble a tml template, but these come from symbols which are configured by a config file. I tried 1) to use the MarkupWriter to write template markup - sure, this didn't work. 2) to find out how to instrumentalize the beforeRenderTemplate to add template code myself - but no idea how that could work (if). It does work, but only in handler methods of render phase methods. You haven't posted your code so we can check why it didn't work. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Help with URLRewriter and links
Hello Tapestry users, I 'm using T5.1 in my project, so I 'm using the URLRewriter method of rewriting urls. I 'm trying to develop a page who will show error messages for different situations, (e.g. 404, 503,... and when spring-security detects that you have no privileges for a page). This page is in a custom tapestry library which has a virtual name called mylib so as the page name is Error it's path is: /contextPath/mylib/error but, I 'd like the user didn't see mylib in the path, so I thought that URLRewriter would help me!. I 've configured my web.xml like this: error-page error-code404/error-code location/error/404/location /error-page and spring-security to redirect to /contextPath/error/forbidden whenever the user has no privileges to view a page. The Error page takes 404 and forbidden as an extra in the onActivate method so it can decide which message to show. URLRewriting seems to be working for me because whenever I access for example /contextPath/error/forbidden the correct Error page is shown. Here 's the problem, this Error page uses the same Layout as every other page in the site, this Layout includes an icon/link menu. Those links are somehow transformed (actually I never wanted to modify them!) and as a result of this unwanted transformation they are pointing to a path that doesn't include the context path so the user is stuck on that page because the links to get out are malformed (they got no context path). Please I would appreciate your help on this one, perhaps I could just live with showing the mylib virtual name on the path but I would prefer not to. cheers and thanks in advance. Nicolás.-
Re: hmac sample
Hi Howard, If your application requires session state to function, it would error out regardless. Perhaps the random approach is better for session-heavy applications and the fixed/stable approach is better for session-free applications? Thanks, mrg On Sun, Oct 14, 2012 at 1:39 PM, Howard Lewis Ship hls...@gmail.com wrote: On Sat, Oct 13, 2012 at 4:22 AM, Bob Harner bobhar...@gmail.com wrote: Use any long, random, private string of characters, just like you'd use for a secure password or pass phrase. From Wikipedia: The cryptographic strength of the HMAC depends upon the size of the secret key that is used. The most common attack against HMACs is brute force to uncover the secret key. If your app is is not clustered (or is clustered, but uses sticky sessions), you can just generate a random string: // Set a random HMAC key for form signing (not cluster safe) configuration.add(SymbolConstants.HMAC_PASSPHRASE, new BigInteger(130, new SecureRandom()).toString(32)); I would not advise this approach. If a page renders a form, it is using the hmac passphrase. If the server restarts before the form is submitted, you will see a server-side error about the HMAC being invalid when the form is submitted. The passphrase should be more stable; I would not change it very often, if at all, once created. Disclaimer: the assessment of the security implications of this are up to you. I claim no particular expertise here. On Fri, Oct 12, 2012 at 11:15 PM, angelochen angelochen...@yahoo.com.hk wrote: Hi, got this error when upgrading to 5.3.6, any sample to set this? ClientDataEncoder The symbol 'tapestry.hmac-passphrase' has not been configured. Thanks, -- View this message in context: http://tapestry.1045711.n5.nabble.com/hmac-sample-tp5716873.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Help with URLRewriter and links
Hi! Please post your URL rewriting code. On Mon, 15 Oct 2012 11:10:41 -0300, Nicolas Barrera nbarr...@gmail.com wrote: Hello Tapestry users, I 'm using T5.1 in my project, so I 'm using the URLRewriter method of rewriting urls. I 'm trying to develop a page who will show error messages for different situations, (e.g. 404, 503,... and when spring-security detects that you have no privileges for a page). This page is in a custom tapestry library which has a virtual name called mylib so as the page name is Error it's path is: /contextPath/mylib/error but, I 'd like the user didn't see mylib in the path, so I thought that URLRewriter would help me!. I 've configured my web.xml like this: error-page error-code404/error-code location/error/404/location /error-page and spring-security to redirect to /contextPath/error/forbidden whenever the user has no privileges to view a page. The Error page takes 404 and forbidden as an extra in the onActivate method so it can decide which message to show. URLRewriting seems to be working for me because whenever I access for example /contextPath/error/forbidden the correct Error page is shown. Here 's the problem, this Error page uses the same Layout as every other page in the site, this Layout includes an icon/link menu. Those links are somehow transformed (actually I never wanted to modify them!) and as a result of this unwanted transformation they are pointing to a path that doesn't include the context path so the user is stuck on that page because the links to get out are malformed (they got no context path). Please I would appreciate your help on this one, perhaps I could just live with showing the mylib virtual name on the path but I would prefer not to. cheers and thanks in advance. Nicolás.- -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
problem with actionlink and zone
Hello everybody, I'm new on this mailinglist, happy to see you ;-) After tried a lot of solutions found on internet, i write there my problem. I use Tapestry JQuery. I have an actionlink which refresh a zone windowZone. But the action link is in this same zone windowZone. !-- return the block to show -- t:zone t:id=windowZone id=windowZone t:delegate to=activeBlock/ /t:zone !-- PART 2 : Preview validation -- t:block t:id=preview div style=width: 1024px; height: 550px; [...] div id=previewDivBottomLeft style=position: absolute;bottom: 1em;left: 50%;width: 25%; t:actionlink t:id=validatePreview id=validatePreview zone=windowZone Valider /t:actionlink /div /div /t:block A first time I refresh the zone by javascript like this : -- An applet call this method : function uploadImage() { // read the value in applet var imageApplet = document.ScannerApplet.getBase64Image(); var data = { imageStringB64 : imageApplet }; // set the value on server jQuery.ajax({ url : digitalize.scannerpopup.sendimage, type : post, data: data, dataType : json, cache : false, async : false, fail : function() { alert(error uploadImage); }, success: function(data){ refreshWindowZone(data.content); } }); }; function refreshWindowZone(htmlCode){ $(#windowZone).empty().hide(); // put new data in zone $(#windowZone).html(htmlCode); // show new zone $('#windowZone').fadeIn(0); }; So i read value in the applet and send it to server, it's ok. I show the good things at screen in windowZone, but my actionLink isn't good, if I click on it to refresh the zone, nothing happened. My actionLink's id had changed. I tried what I found on internet but without success (get id from .java, static value or injectcomponent, ...). Can you help me ? Cordialy, Benoit Ps : my apologies if my english is not very good Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
Re: hmac sample
On Mon, Oct 15, 2012 at 8:11 AM, Michael Gentry mgen...@masslight.net wrote: Hi Howard, If your application requires session state to function, it would error out regardless. Perhaps the random approach is better for session-heavy applications and the fixed/stable approach is better for session-free applications? Especially in 5.4, it will be much more likely that all necessary state will be encoded into the form, as the f:formdata hidden field. A restart of the server (when the passphrase is randomly generated) will invalidate that hidden data, causing an ugly runtime exception, even if it is not dependent on server-side state. As a side note; in 5.4, a validation error on a form causes the page to be re-rendered immediately, as part of the same POST request. In 5.3 and earlier, a validation error on a form would cause a redirect back to the page. Because of this, the ValidationTracker object (which captures field inputs and errors) does not have to be stored in the session (to survive until the redirect), and that's the primary way that a session gets created. Thanks, mrg On Sun, Oct 14, 2012 at 1:39 PM, Howard Lewis Ship hls...@gmail.com wrote: On Sat, Oct 13, 2012 at 4:22 AM, Bob Harner bobhar...@gmail.com wrote: Use any long, random, private string of characters, just like you'd use for a secure password or pass phrase. From Wikipedia: The cryptographic strength of the HMAC depends upon the size of the secret key that is used. The most common attack against HMACs is brute force to uncover the secret key. If your app is is not clustered (or is clustered, but uses sticky sessions), you can just generate a random string: // Set a random HMAC key for form signing (not cluster safe) configuration.add(SymbolConstants.HMAC_PASSPHRASE, new BigInteger(130, new SecureRandom()).toString(32)); I would not advise this approach. If a page renders a form, it is using the hmac passphrase. If the server restarts before the form is submitted, you will see a server-side error about the HMAC being invalid when the form is submitted. The passphrase should be more stable; I would not change it very often, if at all, once created. Disclaimer: the assessment of the security implications of this are up to you. I claim no particular expertise here. On Fri, Oct 12, 2012 at 11:15 PM, angelochen angelochen...@yahoo.com.hk wrote: Hi, got this error when upgrading to 5.3.6, any sample to set this? ClientDataEncoder The symbol 'tapestry.hmac-passphrase' has not been configured. Thanks, -- View this message in context: http://tapestry.1045711.n5.nabble.com/hmac-sample-tp5716873.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Help with URLRewriter and links
Hi Thiago, here I attach my code thanks for your time :) @org.apache.tapestry5.annotations.Log public static void contributeURLRewriter(OrderedConfigurationURLRewriterRule configuration) { URLRewriterRule rule = new URLRewriterRule() { @Override public Request process(Request request, URLRewriteContext context) { String path = request.getPath(); if (path.startsWith(/error/)) // here i try to replace the first part which starts like /error/404 with /mylib/error/404 String newPath = path.replaceFirst(\\/error\\/, /mylib/error/); request = new SimpleRequestWrapper(request, newPath); } return request; } @Override public RewriteRuleApplicability applicability() { return RewriteRuleApplicability.INBOUND; } }; configuration.add(errorPageRule, rule); } Nicolás.- On Mon, Oct 15, 2012 at 12:12 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: Hi! Please post your URL rewriting code. On Mon, 15 Oct 2012 11:10:41 -0300, Nicolas Barrera nbarr...@gmail.com wrote: Hello Tapestry users, I 'm using T5.1 in my project, so I 'm using the URLRewriter method of rewriting urls. I 'm trying to develop a page who will show error messages for different situations, (e.g. 404, 503,... and when spring-security detects that you have no privileges for a page). This page is in a custom tapestry library which has a virtual name called mylib so as the page name is Error it's path is: /contextPath/mylib/error but, I 'd like the user didn't see mylib in the path, so I thought that URLRewriter would help me!. I 've configured my web.xml like this: error-page error-code404/error-code location/error/404/**location /error-page and spring-security to redirect to /contextPath/error/forbidden whenever the user has no privileges to view a page. The Error page takes 404 and forbidden as an extra in the onActivate method so it can decide which message to show. URLRewriting seems to be working for me because whenever I access for example /contextPath/error/forbidden the correct Error page is shown. Here 's the problem, this Error page uses the same Layout as every other page in the site, this Layout includes an icon/link menu. Those links are somehow transformed (actually I never wanted to modify them!) and as a result of this unwanted transformation they are pointing to a path that doesn't include the context path so the user is stuck on that page because the links to get out are malformed (they got no context path). Please I would appreciate your help on this one, perhaps I could just live with showing the mylib virtual name on the path but I would prefer not to. cheers and thanks in advance. Nicolás.- -- Thiago H. de Paula Figueiredo --**--**- To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.orgusers-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Help with URLRewriter and links
On Mon, 15 Oct 2012 13:40:28 -0300, Nicolas Barrera nbarr...@gmail.com wrote: Hi Thiago, here I attach my code thanks for your time :) Hi! Your code looks fine. I think you should also have a matching outbound rewrite rule (implemented or not in the same class) so the paths in the rewritten page remain correct. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry website down?
Is the tapestry.apache.org site down? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry website down?
Negative. Working fine here in Canada. On Mon, Oct 15, 2012 at 11:43 AM, Russell John-Baptistr rjb...@yahoo.comwrote: Is the tapestry.apache.org site down? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry website down?
online for me as well in austria On Mon, Oct 15, 2012 at 8:57 PM, Jon Williams williams.jonat...@gmail.com wrote: Negative. Working fine here in Canada. On Mon, Oct 15, 2012 at 11:43 AM, Russell John-Baptistr rjb...@yahoo.comwrote: Is the tapestry.apache.org site down? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry website down?
I think there was a brief hiccup. On Mon, Oct 15, 2012 at 12:03 PM, Kristian Marinkovic kristian.marinko...@gmail.com wrote: online for me as well in austria On Mon, Oct 15, 2012 at 8:57 PM, Jon Williams williams.jonat...@gmail.com wrote: Negative. Working fine here in Canada. On Mon, Oct 15, 2012 at 11:43 AM, Russell John-Baptistr rjb...@yahoo.comwrote: Is the tapestry.apache.org site down? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry5-highcharts available
François Facon-3 wrote We will deploy a release version this week . That is good to hear, please keep us posted. btw while I have your attention regarding the tapestry5-highchart can you please take look at this thread http://tapestry.1045711.n5.nabble.com/Generating-unique-tapestry-id-or-client-id-in-HighCharts-td5716693.html , maybe you can implement the feature from there for the next release. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-highcharts-available-tp5606181p5716915.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: EventLink parameters
t:parameters=prop:{'pageNum':'indexValue'} t:parameters=prop:{'pageNum':'${pageIndex}'} Lance, thats just the problem... I did just that and it doesnt work. indexValue and pageIndex are both from within the java
RE: EventLink parameters
Just write a getter (aka a property) public int getFoo() { // return some calculation using pageNum and index value } And call it in a template t:eventlink context=foo.../t:eventlink -- View this message in context: http://tapestry.1045711.n5.nabble.com/EventLink-parameters-tp5716874p5716918.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: EventLink parameters
Lance, this has specifically to do with the parameters construct failing on java methods I dont know what to do. I wrote the method as you specified. t:parameters=prop:{'pageNum':'indexValue'} t:parameters=prop:{'pageNum':'${pageIndex}'} parameters construct refuses to create the Map if I use a java method or try to dereference a java method kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: EventLink parameters Date: Mon, 15 Oct 2012 16:20:46 -0400 t:parameters=prop:{'pageNum':'indexValue'} t:parameters=prop:{'pageNum':'${pageIndex}'} Lance, thats just the problem... I did just that and it doesnt work. indexValue and pageIndex are both from within the java
Re: tapestry5-highcharts available
this library seems very interesting. it deserves a try. thank you for the link Regards François 2012/10/15 Dragan Sahpaski dragan.sahpa...@gmail.com: If you need charts than maybe http://nvd3.com which is a utils charting library based on d3. Cheers, Dragan Sahpaski On Mon, Oct 15, 2012 at 12:18 PM, Massimo Lusetti mluse...@gmail.com wrote: On Mon, Oct 15, 2012 at 11:41 AM, François Facon francois.fa...@atos.net wrote: We will deploy a release version this week . Well... http://d3js.org/ is worth a look. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry5-highcharts available
btw while I have your attention regarding the tapestry5-highchart can you please take look at this thread http://tapestry.1045711.n5.nabble.com/Generating-unique-tapestry-id-or-client-id-in-HighCharts-td5716693.html , maybe you can implement the feature from there for the next release. Please open an issue for that at https://github.com/got5/tapestry5-highcharts/issues?page=1state=open. For this release it is too late, but providing a sample could speed up the process for next release. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to remove query parmeter from url string
Hello everyone, I'm working on my new search page which uses tapestry query parameters. The query parameters are dynamically set from a select menu. So far it seems to be working, however I do not know how to clear the query parameter from the url when the select menu is set to blank. I end up getting a null pointer exception. Below is my code. btw, if anybody sees any room for performance modifications, feel free to comment. This is very new to me. Thanks html t:type=layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter pageTitle=Used Cars For Sale in region goes here br/br/br/br/ t:Form t:id=searchForm t:Select t:id=searchYear value=vehicleYear model=yearSearchModel/ t:Select t:id=searchMake value=vehicleMake model=makeSearchModel/ t:Select t:id=searchModel value=vehicleModel model=modelSearchModel/ t:Submit/ /t:Form t:Loop source=vehicles value=vehicle t:PageLink page=used_car_for_sale context=vehicle.id${vehicle.year} ${vehicle.make} ${vehicle.model} ${vehicle.trimLevel}/t:PageLinkbr/ /t:Loop /html public class UsedCarsForSale { @ActivationRequestParameter(value = year) private String year; @ActivationRequestParameter(value = make) private String make; @ActivationRequestParameter(value = model) private String model; @Property private VehicleYear vehicleYear; @Property private VehicleMake vehicleMake; @Property private VehicleModel vehicleModel; @Inject private YearDAO yearDAO; @Inject private MakeDAO makeDAO; @Inject private ModelDAO modelDAO; @Inject private SelectModelFactory selectModelFactory; @Property private Vehicle vehicle; @Inject private Session session; @Inject private PageRenderLinkSource pageRenderLinkSource; void onPrepareFromSearchForm() { System.out.println(year); if(this.year != null) { this.vehicleYear = this.yearDAO.find(year); } if(this.make != null) { this.vehicleMake = this.makeDAO.find(make); } if(this.model != null) { this.vehicleModel = this.modelDAO.find(model); } } Object onSuccess() { this.year = vehicleYear.getName(); this.make = vehicleMake.getName(); this.model = vehicleModel.getName(); return pageRenderLinkSource.createPageRenderLink(this.getClass()); } public ListVehicle getVehicles() { Criteria criteria = this.session.createCriteria(Vehicle.class); criteria.createAlias(vehicleYear, vehicleYear); criteria.createAlias(vehicleMake, vehicleMake); criteria.createAlias(vehicleModel, vehicleModel); if (year != null) { criteria.add(Restrictions.eq(vehicleYear.name, year)); } if (make != null) { criteria.add(Restrictions.eq(vehicleMake.name, make).ignoreCase()); } if (model != null) { criteria.add(Restrictions.eq(vehicleModel.name, model).ignoreCase()); } return criteria.list(); } public SelectModel getYearSearchModel() { return this.selectModelFactory.create(this.yearDAO.findAll(), name); } public SelectModel getMakeSearchModel() { return this.selectModelFactory.create(this.makeDAO.findAll(), name); } public SelectModel getModelSearchModel() { return this.selectModelFactory.create(this.modelDAO.findAll(), name); } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: EventLink parameters
alright lance... your context works... but it also states that there is a bug with parameters... you hadnt mentioned that kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: EventLink parameters Date: Mon, 15 Oct 2012 17:43:37 -0400 Lance, this has specifically to do with the parameters construct failing on java methods I dont know what to do. I wrote the method as you specified. t:parameters=prop:{'pageNum':'indexValue'} t:parameters=prop:{'pageNum':'${pageIndex}'} parameters construct refuses to create the Map if I use a java method or try to dereference a java method kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: EventLink parameters Date: Mon, 15 Oct 2012 16:20:46 -0400 t:parameters=prop:{'pageNum':'indexValue'} t:parameters=prop:{'pageNum':'${pageIndex}'} Lance, thats just the problem... I did just that and it doesnt work. indexValue and pageIndex are both from within the java