FormFragment validates on the server even when not visible

2013-07-11 Thread Joost Schouten (ml)
Hi, I'm using a FormFragment triggered by two Radio's in a RadioGroup. This all works fine and validation works as expected. The hidden Fragment is ignored when the form is submitted. Except for one situation: when I load the Form and containing FormFragment's in a Zone and use the visible

Re: StreamResponse and inPlace Grid question

2011-09-04 Thread Joost Schouten (ml)
This sounds like a problem I had a while ago. Check out [1] and [2] A stream response will casue the pages onUnload to be called cleaning up all the zone managers (I believe). A quick fix is to add a target=_blank to your download link. But this will in most browsers cause an empty tab to be

Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Joost Schouten (ml)
Hi, I have an EventLink that triggers an event method on a component nested in a form (formA) and returns a Block with in it another form (formB) to update a zone which is outside formA. Tapestry still complains about formB being nested in formA. This is probably because of the fact that

Re: Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Joost Schouten (ml)
My appologies. Tapestry was not to blame, it was me who overlooked another little form stashed away in a dark corner of my application. Doh! Joost On 25/07/11 3:01 PM, Joost Schouten (ml) wrote: Hi, I have an EventLink that triggers an event method on a component nested in a form (formA

Re: Block response with form causes nested form exception where this is not the case

2011-07-25 Thread Joost Schouten (ml)
javascript based POST request. Perhaps we should also do that, in which case it will be a improvement. regards Taha On Mon, Jul 25, 2011 at 6:31 PM, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, I have an EventLink that triggers an event method on a component nested in a form (formA

JSONObject does not like javascript date constructor

2011-06-23 Thread Joost Schouten (ml)
Hi, I am not quite sure if this is a limitation of my javascript json knoledge or a tapestry one. But When I use google's visulisation package to create json representation of a DataTable JSONObject.add(jsonDataTable, dataTableJSONString) I get the follwing exception (full exception at

Re: URL used for localization seems to have locale in path?

2011-06-22 Thread Joost Schouten (ml)
You have done nothing wrong and this is the way it is supposed to work. I believe you can set the locale to be stored in a cookie as well in stead of the locale. Though for SEO the locale in de url is generally a good option. Have a look at [1] Are you including css directly in the page

Re: t5c-commons

2011-06-14 Thread Joost Schouten (ml)
On 14/06/11 5:06 PM, gs_tapestry wrote: Hi, I am trying to upgrade to Tapestr5.2.5. But the t5c-commons (5.0.18) component i am using is not compatible to 5.2.5. My application failed to start up due to java.lang.NoClassDefFoundError:

Re: File download breaks ajax zone manager

2011-05-31 Thread Joost Schouten (ml)
functioning page though. Cheers, Joost On 28/05/11 4:28 PM, Josh Canfield wrote: If I recall correctly this is because the browser calls the unload event so tapestry does some cleanup. There may already be an issue filed,but if there isn't there should be. On May 28, 2011 6:22 AM, Joost Schouten (ml

Importing multiple stacks in a formelement extending AbstractField causes a ghost processSubmission

2011-05-31 Thread Joost Schouten (ml)
Hi, I took the tapx datefield component as a base and altered it somewhat to my own needs. One of those was to add two javascript stacks I use @Import(stack = {CommonBaseStack.STACK_NAME, DateFieldStackV2.STACK_NAME}) It has taken me most of the day to figure out that this was the cause of

Re: Importing multiple stacks in a formelement extending AbstractField causes a ghost processSubmission

2011-05-31 Thread Joost Schouten (ml)
to this problem has been met ;-) Cheers, Joost On Tue, May 31, 2011 at 6:42 AM, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, I took the tapx datefield component as a base and altered it somewhat to my own needs. One of those was to add two javascript stacks I use @Import(stack

File download breaks ajax zone manager

2011-05-28 Thread Joost Schouten (ml)
Hi, When downloading a file from a tapestry page that gets saved to disk and not opened in the window, it seems to break the zonemanagers on the page. Any Ajax request after the file download and before the next pagerefresh fails. The response is correct, it is just not handled correctly.

Re: T5 Prevent user from multiple login

2011-05-28 Thread Joost Schouten (ml)
What do you mean? Multiple logins at the same time from different browsers/machines? If so, you could associate the user with the sessionId the user logged in with (in memory or persisted). If the same user now logs in with a different sessionId invalidate the first one or disalow login on

Re: File download breaks ajax zone manager

2011-05-28 Thread Joost Schouten (ml)
cleanup. There may already be an issue filed,but if there isn't there should be. On May 28, 2011 6:22 AM, Joost Schouten (ml)joost...@jsportal.com wrote: Hi, When downloading a file from a tapestry page that gets saved to disk and not opened in the window, it seems to break the zonemanagers

Re: [T5.2.5] Ajax redirectURL does not work when invoked though ComponentRequestFilter

2011-05-27 Thread Joost Schouten (ml)
My bad. My own code was generating this response from a dark little neglected corner. On 23/05/11 11:12 AM, Joost Schouten (ml) wrote: Hi, When an AJAX event handler method returns a Page the following response is generated which nicely redirects me to the page. { redirectURL

[T5.2.5] Ajax redirectURL does not work when invoked though ComponentRequestFilter

2011-05-23 Thread Joost Schouten (ml)
Hi, When an AJAX event handler method returns a Page the following response is generated which nicely redirects me to the page. { redirectURL : /jsportal-projectportal-client-tapestry/nl/secured/project/overview/3603 } When the same is generated though the process of the

Printing Grid table thead on empty source

2011-05-23 Thread Joost Schouten (ml)
Hi, It seems not to be possible to just print the Grid thead when the grid source is empty. Is this correct? And if so, can we not just introduce it as an option in the empty parameter as eg. block:thead Cheers, Joost - To

Re: Hyperlink not becoming hyperlink

2011-05-17 Thread Joost Schouten (ml)
There is no logical relationship between the link and the Grid. I guess you want to display a link in one of your tabel cells right? if so, you need to add this in your grid: table t:type=grid source=Urls row=url add=delete rowsPerPage=15 p:nameOfYourColumnPropertyCell

Re: Chenillekit Editor component doesn't work after upgrading from 5.1.0.5 to 5.1.0.8-SNAPSHOT

2011-05-09 Thread Joost Schouten (ml)
On 9/05/11 5:43 AM, Jeshurun Daniel wrote: Ok, I fiddled with this for two whole days, did a whole bunch of stuff, and couldn't figure it out. Finally after I had sent out this email, I was reading the 5.2 docs and had an idea when reading the section on securing assets from this page:

Re: Using iframe to include a T5 page

2011-05-09 Thread Joost Schouten (ml)
adding target=_top top your form will cause problems on form validation as also a failed submit will end up in _top. Sounds like you should return a block/page (http://localhost/A2/doneFormPageB/) that redirects the location of _top though javascript to http://localhost/A1/done/. Cheers,

Re: What would YOU like to see in a four day Tapestry training course?

2011-05-03 Thread Joost Schouten (ml)
In my early days I would have liked someone to have emphasized: - onActivate and onPassivate so I would have stuffed less into my sessions. - How components can interact with their containers and @Environmental services. I initially ended up building components that needed to know too much

Re: How to locate streamresponse of jasper in a page ?

2011-03-29 Thread Joost Schouten (ml)
If you want to do this well cross browser, generate an image from your pdf and display that in your web-app. IText [1] can help you achieve this. Good luck, Joost [1] http://sourceforge.net/projects/itext/ On 29/03/11 9:08 AM, ronizedsynch wrote: Thank ael, Does pdf display within new tab

Missing Asset causes Exception where 404 would be more appropriate

2011-03-16 Thread Joost Schouten (ml)
Hi, I have a bunch of robots crawling my assets folder and trying all sorts of requests to see if they can find holes in my app (example at [1]). Since the assets don't exist I get the following exception [2]. Would it not make more sence in this case to just return a 404 in stead? Would

Re: Missing Asset causes Exception where 404 would be more appropriate

2011-03-16 Thread Joost Schouten (ml)
/jira/browse/TAP5-1477 Cheers, Joost On 16.03.2011 09:02, Joost Schouten (ml) wrote: Hi, I have a bunch of robots crawling my assets folder and trying all sorts of requests to see if they can find holes in my app (example at [1]). Since the assets don't exist I get the following exception [2

Re: Access displayed rows of grid component in page

2011-02-21 Thread Joost Schouten (ml)
Hi, I assume that I can use Grid.getCurrentPage() and Grid.getRowsPerPage() for that. Correct, but even better would be to implement your own GridDataSource since then you can do all the data fetching and preperations in one go. Your own GridDataSource forms the source @Parameter for the

Re: Access displayed rows of grid component in page

2011-02-21 Thread Joost Schouten (ml)
of work. Is there really no better approach? Br, Timo Westkämper On 02/21/2011 11:35 AM, Joost Schouten (ml) wrote: Hi, I assume that I can use Grid.getCurrentPage() and Grid.getRowsPerPage() for that. Correct, but even better would be to implement your own GridDataSource since then you

Re: t5: clear cookie when browser closes

2011-02-11 Thread Joost Schouten (ml)
From the Cookie javadoc at http://download.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html#setMaxAge(int): setMaxAge public void*setMaxAge*(int expiry) Sets the maximum age in seconds for this Cookie. A positive value indicates that the cookie will expire after that

Re: Noticed another stackoverflow question on Tapestry 5, go vote

2011-02-09 Thread Joost Schouten (ml)
Same here. Using many Datasources. I even would say as much that tapestry caters really well for this as it allowed me through the use of a few simple custom services to inject my DAO's without ever having to worry about using the correct DS. I don't use tap-hibernate as I prefer to

Re: StackOverflowError due to unexpected default property binding to itself

2011-02-06 Thread Joost Schouten (ml)
On 6/02/11 1:55 PM, Igor Drobiazko wrote: We should definitely forbid to bind a parameter to itself. Can you pleas fill a JIRA issue? just added: https://issues.apache.org/jira/browse/TAP5-1430 cheers, Joost - To

Re: FCKEditor/ChenilleKit Editor and zoneupdate mixin

2011-01-26 Thread Joost Schouten (ml)
Hi, The issue was reported for version 1.2.0 but is still relevant. The patch works with 1.3.1-SNAPSHOT which is the current trunk, but has not been included in the trunk or release (yet). You would have to get the source [1], apply the patch and build yourself. Hope it helps, Joost [1]:

Re: FCKEditor/ChenilleKit Editor and zoneupdate mixin

2011-01-25 Thread Joost Schouten (ml)
Change events are only fired from form elements when they are changed (often onblur). FCKEditor is not a form element but updates the hidden form element it uses to store the actual content on form submit (I believe). On top of that, chenillekit Editor does not yet support AJAX and will not

Re: HTML Ajax components package for Tapestry

2011-01-21 Thread Joost Schouten (ml)
More examples at: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Joost On 21/01/11 9:54 AM, Taha Hafeez wrote: Hi You may find some here http://www.chenillekit.org/. Demo is http://www.chenillekit.org/demo/tapcomp regards Taha 2011/1/21 Gavin Lei gavingui2...@gmail.com Hi

Re: Create a component event link for another page

2011-01-21 Thread Joost Schouten (ml)
You can create a normal pagelink with PageRenderLinkSource and manually add the event name. Like so: Link link = pageRenderLinkSource.createPageRenderLink(YourOtherPage.class); return link.toRedirectURI() + :yourEventName; Add context is required return link.toRedirectURI() +

Re: Create a component event link for another page

2011-01-21 Thread Joost Schouten (ml)
oops: Add context *is* required should be Add context *if* required On 21/01/11 11:34 AM, Joost Schouten (ml) wrote: You can create a normal pagelink with PageRenderLinkSource and manually add the event name. Like so: Link link = pageRenderLinkSource.createPageRenderLink

Re: Create a component event link for another page

2011-01-21 Thread Joost Schouten (ml)
for me, cause Im using the portletbridge which creates a RenderUrl for pagelinks instead of ActionUrls. Original-Nachricht Datum: Fri, 21 Jan 2011 11:34:54 +0100 Von: Joost Schouten (ml)joost...@jsportal.com An: Tapestry usersusers@tapestry.apache.org Betreff: Re: Create

Re: CSS not applied on zone update in IE7

2011-01-19 Thread Joost Schouten (ml)
Ok, 2 days of testing later I think I know what's going on. The problems arise when there are a lot of css files loaded on page load. I have a complex page with lots of components which loads about 26 css files. On ajax zone update the new css files associated with the loaded content will be

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Joost Schouten (ml)
Haven't tested it but something like this will probably do the trick: @AfterRender private void afterRender(MarkupWriter writer) { Element foundIEMode = writer.getDocument().find(html/head/meta[@http-equiv='X-UA-Compatible']); Element head =

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Joost Schouten (ml)
to do the reordering after the css/js is added. I guess you can decorate the service which does this. Unfortunatly I don't know where this is done of the top of my head. Have a look at the source or maybe someone else can comment. Good luck, Joost On 18/01/11 9:50 AM, Joost Schouten (ml

Re: T5: zone in a grid

2011-01-13 Thread Joost Schouten (ml)
Make sure each zone has a unique DOM id. So something like: table t:type=grid source=messages model=model row=msg t:parameter name=idCell a t:type=actionlink t:id=review context=msg.id zone=prop:outputZoneId action div t:zone id=${outputZoneId}

Re: Clearing session data T 5.1.0.5

2011-01-13 Thread Joost Schouten (ml)
Go with the suggestion you already posted or try to invalidate the session on the setupRender of the login page in stead. Cheers, Joost On 13/01/11 2:50 PM, Richard Hill wrote: Hi All, I have an app that's stateful, a fair number of @Persist'd fields on various pages + an SSO with logged in

Re: Clearing session data T 5.1.0.5

2011-01-13 Thread Joost Schouten (ml)
it in setupRender as that will clear the session even if the logged-in user has accidently hit the back button - when he goes forward to the app the state will be cleared. So I'll loop over the objects and do it manually. Cheers On Thu, 2011-01-13 at 15:09 +0100, Joost Schouten (ml) wrote: Go

Re: t5: secure annotation

2011-01-10 Thread Joost Schouten (ml)
This [1] is my jetty plugin in my pom.xml where src/test/resources/jettykeystore.cert is my selfsigned certificate. Hope it is what you are looking for. Cheers, Joost [1] maven jetty plugin with SSL enabled plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId

Re: T5: archiving a page

2010-12-31 Thread Joost Schouten (ml)
hi, I use the maven dependencies as shown at [1]. [2] shows you a short version of my code generating a pdf from my tapestry page displaying an invoice (PrintInvoice.class). Note that I am building it as we speak so it might still be somewhat crude at places. Hope it helps, Joost [1]

Re: T5.2.4 Tomcat unable to find .tml files on classpath

2010-12-21 Thread Joost Schouten (ml)
Smells like a classpath problem where an old version of your app is (or parts thereoff are) still lingering around on tomcat's classpath. Try to run your app on a clean install of tomcat and see if it works. If it runs in jetty on eclipse there is no problem with your tml's. A quick way to

Re: Discussion

2010-12-21 Thread Joost Schouten (ml)
We run http://www.yanomo.com on tapestry 5. Features business critical project management and invoicing. Sounds serious enough to me ;-) I have also worked on a project using tap5 on clustered servers handling millions of requests a day. Having tried numurous frameworks I stuck with Tapetsry

Re: dynamic component id?

2010-12-03 Thread Joost Schouten (ml)
It sounds like you are confusing the t:id with the html dom id. I think you are looking for: t:container xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; t:loop source=startCals value=currentStartCal p t:id=yourComponentId id=${index}

Re: XML requests

2010-11-17 Thread Joost Schouten (ml)
More common is to deal with xml requests though a POST. In that case you can do something like below. Cheers, Joost @Inject private RequestGlobals requestGlobals; @OnEvent(value = EventConstants.ACTIVATE) private Object activate() throws Exception { HttpServletRequest

Re: Do a post with Tapestry and Link

2010-11-08 Thread Joost Schouten (ml)
If I read this correctly you are using an external java program to post to a tapestry page. Correct? The error you are refering to is usually associated with the required return type from an event method which you have not shown in your post. Can you post the page code handeling the POST

Re: How to display form success?

2010-09-15 Thread Joost Schouten (ml)
Use: @Persist(PersistenceConstants.FLASH) Cheers, Joost On 15/09/10 6:38 PM, Tim Koop wrote: Hi everyone. I hope this is a quick and easy question. I want to show a Form successfully submitted message, so in my Page object I have this: @Persist @Property private boolean

Testify and Tapestry 5.2

2010-08-10 Thread Joost Schouten (ml)
Hi, Does anyone know if there is a plan to upgrade the testify trunk to work with tapestry 5.2? Would be great. Thanks, Joost - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: A big thank you to Tapestry

2010-07-29 Thread Joost Schouten (ml)
Thiago H. de Paula Figueiredo wrote: I took a quick look at JSPortal and it seems very cool. Congratulations! Don't forget to add it to the list of Tapestry-powered projects: http://wiki.apache.org/tapestry/PoweredByTapestry. Thanks! And I have added jsportal.com to the PoweredByTapestry

A big thank you to Tapestry

2010-07-28 Thread Joost Schouten (ml)
Hi, A big thank you to all of you that make tapestry possible. We have just had our soft release of www.jsportal.com (beta) and this mailing list has contributed a lot toward making that possible. A few small bugs and some IE beautifications left, but other than that there is another T 5.2

Re: production html whitespace compression alters rendered markup

2010-07-15 Thread Joost Schouten (ml)
I agree Paul, I have been using configuration.add(SymbolConstants.COMPRESS_WHITESPACE, false); for a while as a quick fix. But I too believe the white space compression can be a bit more intelligent and leave one space between tags if there are any. My 2 cents, Joost Paul Stanton wrote:

blank gird column labels cause exception

2010-07-13 Thread Joost Schouten (ml)
Hi, I have the need for a blank label in my grid, but when I try: BeanModel.add(RelativePosition.BEFORE, secondCol, firstCol, null).label(); Tapetry compains about a blank label. I can fix this by an @AfterRender alteration of the generated DOM, but that is somewhat cumbersome. Am I

Re: [T5.2] Tapestry.remove() js function causes exception IE7

2010-07-08 Thread Joost Schouten (ml)
://issues.apache.org/jira/browse/TAP5-1192 Before I dive in too deep can anyone comment on the state of tapestry.js in the trunk? Has it been tested against IE7 and IE8? Thanks, Joost Joost Schouten (ml) wrote: Hi, Recently I started experiencing problems when clicking the remove button

[T5.2] Tapestry.remove() js function causes exception IE7

2010-07-07 Thread Joost Schouten (ml)
Hi, Recently I started experiencing problems when clicking the remove button in the AjaxFormLoop in IE7. I traced it down to something with: formLoopRemoveLink effect.options.afterFinish calling Tapestry.remove In the remove function the element is there, but I get a object not recognized

[T-5.2] t:submit bug when using image parameter

2010-07-01 Thread Joost Schouten (ml)
Hi, When I use t:submit without the image parameter the onSelectedFromMyButton method gets called. When using the image parameter it does not get called. When no image is used the post [1] includes the t:submit value. When an image is used [2] only the java component id is added as a

Render phase return type equivalent to void

2010-06-07 Thread Joost Schouten (ml)
Hi, I have build a RestrictedVisibility Mixin which shows or hides an entire component by returning true or false in the @SetupRender method [1]. This works well but I just realized there is one drawback. When I return true, setup render skips to the next step (@BeginRender) where I would

Re: Render phase return type equivalent to void

2010-06-07 Thread Joost Schouten (ml)
So simple, I could have guessed that ;-) Thanks, Joost Thiago H. de Paula Figueiredo wrote: On Mon, 07 Jun 2010 04:36:08 -0300, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, Hi! Render phase return type equivalent to void: null

Re: clientsidevalidate show only 1 error

2010-06-03 Thread Joost Schouten (ml)
If client side validation is not a requirement for you, you can turn off client side validation by adding t:clientValidation=false to your form and add the t:errors/ tag in the form. Like: t:form t:clientValidation=false t:errors/ your form fields ... /t:form I am not aware of any

Re: clientsidevalidate show only 1 error

2010-06-03 Thread Joost Schouten (ml)
Ah sorry, I assumed tapestry 5. I have no experiance with tapestry 4 so will have to leave this question to somebody else. Good luck, Joost asianCoolz wrote: nope, i do not want to turn off clientsidevalidation. i want to use it, but i only want to show 1 error at a time. i'm using tapestry4

Re: [tapx-yui] RichTextEditor: Unable to locate asset when in production mode

2010-05-30 Thread Joost Schouten (ml)
as for you. On Fri, May 28, 2010 at 9:16 AM, Howard Lewis Ship hls...@gmail.com wrote: Yep. Looks like yahoo-dom-event.js is always minimized. I'll check in a fix. On Fri, May 28, 2010 at 8:58 AM, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, I started using the RichTextEditor

[tapx-yui] RichTextEditor: Unable to locate asset when in production mode

2010-05-28 Thread Joost Schouten (ml)
Hi, I started using the RichTextEditor in the tapx-yui package (nice work btw!) which works fine when running under production-mode=false, but when in production-mode, I get the exception at [1]. I am not quite sure but it looks like there is a minified asset missing. Am I correct? cheers,

Re: [t5] Contribute multiple translators for one type no longer supported

2010-05-12 Thread Joost Schouten (ml)
Howard Lewis Ship wrote: Please read the documentation on TranslatorSource about how to accomplish what you want. On Tue, May 11, 2010 at 4:16 AM, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, I just updated to the latest snapshot of T5.2 and can no longer contribute two translators

[t5] Contribute multiple translators for one type no longer supported

2010-05-11 Thread Joost Schouten (ml)
Hi, I just updated to the latest snapshot of T5.2 and can no longer contribute two translators for the same type [1]. I get an exception due to the fact that the TranslatorSource now only accepts a MappedConfiguration which disallows two contributions on the same type [2]. Two translators

Re: How to use a grid with some null cells

2010-05-11 Thread Joost Schouten (ml)
Hi, What problem do you experience (exception/stacktrace)? You should just see an empty cell if your null value is of a type recognized by the BeanModel. You can override every cell by using this: p:yourPropertyNameCell !-- if no p namespace: t:parameter name=yourPropertyNameCell--

Re: GSOC 2010 - ACCEPTED

2010-05-01 Thread Joost Schouten (ml)
for all users can see. tks 2010/4/30 Joost Schouten (ml) joost...@jsportal.com Pablo, If interested we have created a full drag and drop calendar and select with auto-complete for our internal project. I could share some of our code to give you a head start. The product is not yet launched

Re: [T5] onActivate, onPassivate and actionlink

2010-04-30 Thread Joost Schouten (ml)
How have you defined the ActionLink? It sounds like you might have set the context parameter for it incorrectly. Can you paste your link definition here? cheers, Joost paha wrote: Hi, i am very new to tapestry and must be missing some important concept, need you help. i have a page (list of

Re: GSOC 2010 - ACCEPTED

2010-04-30 Thread Joost Schouten (ml)
Pablo, If interested we have created a full drag and drop calendar and select with auto-complete for our internal project. I could share some of our code to give you a head start. The product is not yet launched but these these features are partly shown in this video [1] Let me know if you

Re: CSS in Tapestry Component not used

2010-04-25 Thread Joost Schouten (ml)
Hi, This indicates there is a problem in your css file and is not related to tapestry. Sometimes a shift refresh fixes the problem. Copy and paste the asset url into your browser and have a look at it. Might be related to a file encoding problem. Cheers, Joost On 24 apr 2010, at 23:14,

Re: 404 from onActivate

2010-04-03 Thread Joost Schouten (ml)
/vfeoddnlptmuxf6e Regards, Christophe Cordenier. Developer of wo...@wookicentral.com 2010/3/25 Joost Schouten (ml) joost...@jsportal.com Hi Jan, Did you find a solution to this problem on tomcat? I am faced with exectly the same situation where the response.sendError(404, null); works great

[tapx-datefield] bug in dynarch calendar-nl.js

2010-03-24 Thread Joost Schouten (ml)
Hi, There seems to be a bug in the calendar-nl.js used in the tapx-datefield. It is teh same bug as described at [1] in the calendar-de.js file. I created an ticket and patch for it at github [2] but am unsure if this is used. Should I also create a ticket at

Re: [tapx-datefield] bug in dynarch calendar-nl.js

2010-03-24 Thread Joost Schouten (ml)
for a client right now. On Wed, Mar 24, 2010 at 2:25 PM, Joost Schouten (ml) joost...@jsportal.com wrote: Hi, There seems to be a bug in the calendar-nl.js used in the tapx-datefield. It is teh same bug as described at [1] in the calendar-de.js file. I created an ticket and patch for it at github [2

Re: 404 from onActivate

2010-03-24 Thread Joost Schouten (ml)
Hi Jan, Did you find a solution to this problem on tomcat? I am faced with exectly the same situation where the response.sendError(404, null); works great in jetty but not on tomcat. Cheers, Joost Jan Jirout wrote: Hi, thanks for replay. My situation is exactly as you wrote. After all

Re: Directory listing error

2010-03-18 Thread Joost Schouten (ml)
URI /Index.tml may not be accessed remotely. try http://localhost:8081/index, without the .tml Tapestry by default will look for a /Start page (configurable with [1]), it seems like you have one called index and hence tapestry can't map / to anything and shows you a directory listing.

Re: How to hook component into validation?

2010-03-17 Thread Joost Schouten (ml)
You can listen for the validation events on the individual form elements of your component. eg: @Enviromental private ValidationTracker validationTracker; @OnEvent(component = myFormField, value = EventConstants.VALIDATE) private void validateFormField(Object valueAboutToBeSet) { //do your

Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)

2010-03-15 Thread Joost Schouten (ml)
Hi, My Tapestry Testify tests stopped working when using the latest Tapestry trunk (5.2.0-SNAPSHOT). The stacktrace seems to be pointing to the deprecated method ClassTransformation.addMethod(TransformMethodSignature,String) which is called when handling the @ForComponents annotation (see

Re: Testify 1.0.2-SNAPSHOT using deprecated ClassTransformation.addMethod(TransformMethodSignature,String)

2010-03-15 Thread Joost Schouten (ml)
I will update Testify to work with Tapestry 5.2 but I was waiting until it gets relatively near a release so I didn't have to maintain multiple releases of Testify or track changes in T5.2. Paul Thanks, I will await these changes. Until then I'll use a Tapestry 5.2 revision from before

Re: [T5.2.0] two problems when extending Autocomplete

2010-03-07 Thread Joost Schouten (ml)
Thanks for fixing this so quickly. I'll try to dive into the problem of generateResponseMarkup(MarkupWriter writer, List matches)) no longer being called and report back on it. Cheers, Joost Howard Lewis Ship wrote: On Fri, Mar 5, 2010 at 7:39 PM, Joost Schouten (ml) joost...@jsportal.com

Re: [T5.2.0] two problems when extending Autocomplete

2010-03-07 Thread Joost Schouten (ml)
for you help, Joost PS: I am about to go live with yet another T5 app. Thank you to the whole community! Joost Schouten (ml) wrote: Thanks for fixing this so quickly. I'll try to dive into the problem of generateResponseMarkup(MarkupWriter writer, List matches)) no longer being called

Re: [T5.2.0] two problems when extending Autocomplete

2010-03-06 Thread Joost Schouten (ml)
wrote: Hi! Yes, in someway, it should be possible to change the automatically included JS when extending a component. Already encountred this problem too. Had to create and advice/decorator on asset source to fix the thing without forking the component. On Sat, Mar 6, 2010 at 4:39 AM, Joost Schouten

[T5.2.0] two problems when extending Autocomplete

2010-03-05 Thread Joost Schouten (ml)
Hi, I have found another problem when extending the Autocomplete Mixin which has been introduced by recent changes on the 5.2.0-SNAPSHOT version. - The @Override methods (eg. generateResponseMarkup(MarkupWriter writer, List matches)) are no longer called on the extending class On the dev

Re: [T5.1] Remembering Search Parameter during Changing Page in Grid

2010-02-16 Thread Joost Schouten (ml)
Use the code below. It will not use a session and encode the value in your urls. Cheers, Joost private String searchTerm; @OnEvent(value = EventConstants.ACTIVATE) private void activate(String searchTerm) { this.searchTerm = searchTerm; } @OnEvent(value = EventConstants.PASSIVATE) private

Re: T5: how to capture non existing component exceptions

2010-02-05 Thread Joost Schouten (ml)
Do you mean you want more details on the exception? You might have tapestry.production-mode set to true, Set this to false to have the full fledged exception report. As for the exception: it probably means you have a t:id=help in your component main.layout but have probably not defined the

[T5.2.0-SNAPSHOT] Block to String without MarkupWriter

2010-01-28 Thread Joost Schouten (ml)
Hi, I have Build a GridToCSVExport mixin. This all works great up to the stage where I try render the override parameter blocks like propertyNameCell. I can obtain the Block's, but can see no way to render the block to String without a MarkupWriter. Any pointers would be appreciated.

Re: Render Block markup without MarkupWriter

2010-01-28 Thread Joost Schouten (ml)
Appologies for the double post. It didn't go though immediately as I used an incorrect email address and thus tried again. Cheers, Joost JS Portal wrote: Hi, I have build a GridToCSVExporter mixin which works nicely. The one thing I can't quite get up and running is the printing of override

Re: AbstractSelectModel is not in a controlled package

2010-01-22 Thread Joost Schouten (ml)
Did you replace the mypackage with your actual package name? Lets say your AppModule lives in com.domain.services your AbstractSelectModel should be places in com.domain.base Hope it helps, Joost kamiseq wrote: hi all, I run into a strange problem, I was googling for this, but still have

Re: Updating a zone before the Ajax request

2010-01-15 Thread Joost Schouten (ml)
An easier solution would be to like Thiago sugested. Here's my code that does the trick. Cheers, Joost .js file: AjaxProgressTracker = { init: function() { Ajax.Responders.register({ onCreate: function() { // ajax request is sent

Re: SEO and duplicate content due to language prefix

2010-01-06 Thread Joost Schouten (ml)
I have solved most of this problem by adding a request filter [1] that sets the PersistentLocale on every request and thus adding the locale to every url throughout the application. Though /url and /en/url still have duplicate content, nothing in my app links to /url anymore so google won't

Re: SEO and duplicate content due to language prefix

2010-01-06 Thread Joost Schouten (ml)
Schouten (ml) joost...@jsportal.com wrote: I have solved most of this problem by adding a request filter [1] that sets the PersistentLocale on every request and thus adding the locale to every url throughout the application. Though /url and /en/url still have duplicate content, nothing in my app links

Re: Help with @Inject in onEvent Handler Object

2009-12-17 Thread Joost Schouten (ml)
Your DBConnect object is probably not in one of the tapestry controlled packages and thus inject doesn't work. You can inject the Session directly into your page, or turn your DBConnect object into a tapestry service by adding it to the services package, and changing the Session into a

Re: Affortable Hosting solutions for Tapestry WebApps

2009-12-17 Thread Joost Schouten (ml)
Though I'm still in a trial phase and have yet to go live with them, I am impressed with their service and understanding of JAVA so far. http://rimuhosting.com It is a new zealand based company with datacenters in the US, europe and Australia. just my 2 cents. Eldred Mullany wrote: Hi

Re: Tapestry 5.1.0.5 FCKEDITOR PROBLEM

2009-12-10 Thread Joost Schouten (ml)
I too had this problem and it was caused by the new (and very necessary) asset authorisation which prevents web access to your context root through your tapestry app. The default is fairly strict, and as it seems too strict for the FCKeditor in the chenillekit-tapestry package. I added the

Re: IOC Service Survey

2009-12-02 Thread Joost Schouten (ml)
We work with an application using multiple databases. So depending on the logged user a different datasource might be used. Tapestry IoC made it a breeze to hide this logic away from the pages and just @inject the services. We have a highly tier-ed application where all low lever logic is

Re: [T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-30 Thread Joost Schouten (ml)
able to reproduce it. Great investigative work :) Uli Am 30.11.2009 08:55 schrieb Joost Schouten (ml): Eureka! ;-) I figured it out (I think). The problem only exists when using any UrlRewriteRule, activation context and additional parameters. The t:ac seems to be added to the URL before

Re: [T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-29 Thread Joost Schouten (ml)
Joost Schouten (ml): I just tested it against 5.1.0.5 and it does *not* have the problem with the double printing of the question mark. There seems to be a problem on the snapshot. Has any work been done on it lately? Ulrich Stärk wrote: I tested it with 5.2.0-SNAPSHOT and 5.1.0.5, but to be 100

Re: [T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-28 Thread Joost Schouten (ml)
27.11.2009 15:21 schrieb Joost Schouten (ml): Ulrich, So in your case the add row url has appended the t:componentformid and t:formid to the parameter list in the url with the already available activation context param t:ac? And are you using the 5.2.0-SNAPSHOT? This only started happening recently

Re: [T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-27 Thread Joost Schouten (ml)
for you help, Joost Ulrich Stärk wrote: I'm unable to reproduce any of the behaviour you are experiencing. The URL for the Ajax update generated by tapestry is valid and I don't get any errors. Uli Am 26.11.2009 17:15 schrieb Joost Schouten (ml): Hi, It's not just passivate, its an activate

Re: [T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-27 Thread Joost Schouten (ml)
out my local maven repo and test again this evening. Uli Am 27.11.2009 15:21 schrieb Joost Schouten (ml): Ulrich, So in your case the add row url has appended the t:componentformid and t:formid to the parameter list in the url with the already available activation context param t:ac

Re: T5 loop sort

2009-11-27 Thread Joost Schouten (ml)
In your setupRender method of your page take the Set of beans add them in a List and sort acordingly. Pass the list as the source for the loop. Cheers, Joost Like: @SetupRender private void setup() { SetMyBean mySet = ... whereverItComesFrom; ListMyBean myList = new ArrayListMyBean();

  1   2   >