Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-28 Thread Leon Derks
; >> I just check the string for ; and set previousPage to null if is true. I've >> only experienced it to be true after the login page which is never part of >> the breadcrumb. >> Not the prettiest workaround but it works... >> We use Jetty so it isn't a

Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-28 Thread Leon Derks
and set previousPage to null if is true. I've >> only experienced it to be true after the login page which is never part of >> the breadcrumb. >> Not the prettiest workaround but it works... >> We use Jetty so it isn't a Tomcat issue per se. >> >> /

Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-28 Thread Leon Derks
do about it or if it has it's roots > deeper into the Tapestry code. > > Regards, > Joakim > > > On Fri, Oct 28, 2011 at 11:04 AM, Leon Derks > wrote: >> Hello >> >> Thank you all for your great support! >> >> I am using Tapestry 5.2

Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-28 Thread Leon Derks
t;> happily ignore it - which (after a quick check on my sites) it does >>> for T5.1 and T5.3 so I'm not sure where your error is coming from. >>> >>> Steve. >>> >>> >>> >>> On 28 October 2011 04:43, Muhammad Gelbana wrote: &g

Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-27 Thread Leon Derks
Hello I see this error message a lot. Almost always after my first login attempt... What is causing this error? Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid. regards, Leon --

jsessionid in URL results in RequestExceptionHandler

2011-10-22 Thread Leon Derks
Hello Every once in a while I get the error below after logging in. The jsessionid is then visible in my url. I don't understand why this happens and why this occurs sometimes. Does somebody of you know what is going wrong and what I can do to solve this? regards, Leon ERROR org.apache.tapest

Re: NumberFormatter

2011-10-12 Thread Leon Derks
.blogspot.com/2008/09/tapestry-5-ioc-introducing-service.html > http://jumpstart.doublenegative.com.au/jumpstart/examples/input/translators1 > http://jumpstart.doublenegative.com.au/jumpstart/examples/input/creatingtranslators1 > > > Then love tapestry even more :) > Good luck. > > On Wed, Oct

Re: NumberFormatter

2011-10-12 Thread Leon Derks
Hello Chris, Thank you. Yes I have already seen that page, but I couldn't find an example with a FieldTranslator. Does anyone have an example how to do this? regards, Leon On Oct 12, 2011, at 11:57 AM, derkoe wrote: > > Leon Derks wrote: >> >> I have a TextField th

NumberFormatter

2011-10-12 Thread Leon Derks
I have a TextField that shows a double value. But I want to format the value in the Textfield as a decimal with 4 decimals (i.e. 0.1234) In Tapestry there is a NumericFormatter and a BigDecimalNumericFormatter. But I can't find any documentation on how to use these on a TextField. Can someone g

Re: Showing Hiding Blocks based on Select

2011-10-12 Thread Leon Derks
Paula Figueiredo wrote: > On Tue, 11 Oct 2011 15:15:28 -0300, Leon Derks > wrote: > >> Hello > > Hi! > >> In my page I have a form with a select. (see below) Based on this select I >> want to show/hide different Blocks with elements. >> >> W

Showing Hiding Blocks based on Select

2011-10-11 Thread Leon Derks
Hello In my page I have a form with a select. (see below) Based on this select I want to show/hide different Blocks with elements. What is the best way to do this? I tried to use a zone, but the zone div is automatically moved to the top of the page and I don't want that. How can I show/hide

Re: [T5] 5.0.17 URLEncoderImpl.decode error

2008-12-11 Thread Leon Derks
ion if you want to encode from outside of Tapestry: org.apache.tapestry5.internal.services.URLEncoderImpl Martijn Brinkers On Wed, 2008-12-10 at 23:43 +0100, Leon Derks wrote: Hi Martijn, Thanks! Yes, http://localhost:8090/tapestry/test/user/user$0040company.com works, when I change the @ i

Re: [T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Leon Derks
kers wrote: The URL encoder has been changed. @ for example is now encoded as $0040 See https://issues.apache.org/jira/browse/TAP5-302 Search the archive for what and why things have changed http://tapestry.markmail.org Martijn Brinkers On Wed, 2008-12-10 at 23:19 +0100, Leon Derks wrote:

[T5] 5.0.17 URLEncoderImpl.decode error

2008-12-10 Thread Leon Derks
Hello This evening I tried tapestry 5.0.17 When I type in the following url in my application: http://localhost:8090/tapestry/test/user/[EMAIL PROTECTED] I do get an java.lang.IllegalArgumentException It says: "Input string '[EMAIL PROTECTED]' is not valid; the character '@' at position 5 is no

Re: What's the easiest way to implement two dependent select lists ?

2008-12-10 Thread Leon Derks
Indeed I agree with Hugo. I had this use case a couple of times and solved it in the same way as Hugo did. I also hoped there is an easier way to implement dependable selects, using zones... Also filling selects with objects is not really easy. I need to implement a selection model and a va

Include multiple css in @IncludeStylesheet

2008-09-25 Thread Leon Derks
Hello How can I add multiple stylesheets to the @includeSysheet annotation? In the documentation I read that one or more paths can be injected. But how can I do that? For example I want something like this: @IncludeStylesheet("context:css/page.css", "context:css/tapestry-custom.css") -

T4.0 PropertySelection + onChange

2008-09-03 Thread Leon Derks
Hello Is it possible to catch an onchange Event for the PropertySelection component? I don't want the form te be submitted, but want to update a section in my page. I use tapestry 4.0.2 with Java 1.4 Leon - To unsubscribe

T5: url localization

2008-08-18 Thread Leon Derks
I know that localization support is well integrated into Tapestry 5, but is it also possible to get localized urls? Example: english: http://www.someserver.com/cars/15 german: http://www.someserver.com/autos/15 If so, how can I do that?

T5: tapestry-test tutorial, sceencast?

2008-07-29 Thread Leon Derks
I want to use the tapestry-test module, but can't find much information about how to get started. Is there some kind of screencast or tutorial planned for how to use the tapestry-test module with all kind of examples? - To

Setup render for authentication check?

2008-05-22 Thread Leon Derks
Hello Is the SetupRender method the correct place to check if the user has the priviliges to view the page? For example something like this: @SetupRender boolean setupRender() { if(user has priviliges) { return true; } return false; } Leon

T5: get name of Start page

2008-05-21 Thread Leon Derks
Hello Is it possible to get the name of the (default) start page? Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

show page title in layout component

2008-05-21 Thread Leon Derks
Hello I use a layout component for all my pages, like below. But for some reason, the page title is not passed to the layout component. What am I doing wrong? Leon Page.tml http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; t:type="layout" title="${message:page-title}"> . Laout.tml

Re: T5: Exception Handling

2008-05-20 Thread Leon Derks
different things depending on the type of exception thrown, but haven't had the time nor need to do so yet. http://tapestry.apache.org/tapestry5/tapestry-ioc/strategy.html Anyhow, hope this helps - if not, you know where to ask. :) -Filip On 2008-05-16 17:37, Leon Derks wrote: Thanks Pete

Error serializing component action for component Gears:loop:

2008-05-19 Thread Leon Derks
Hello I did get the error :Error serializing component action for component Gears:loop: When I add "implements Serializable" to my Gear class everything works fine. But I have also other objects that I looped throught with a t:type="loop" but these objects didn't need an "implements Serializ

Re: T5: Exception Handling

2008-05-19 Thread Leon Derks
ibute a strategy filter before this one allowing to do different things depending on the type of exception thrown, but haven't had the time nor need to do so yet. http://tapestry.apache.org/tapestry5/tapestry-ioc/strategy.html Anyhow, hope this helps - if not, you know where to ask. :) -F

Re: T5: Exception Handling

2008-05-16 Thread Leon Derks
are incredibly powerful and easy to use. Hope this helps, Peter - Original Message - From: "Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5: Exception Handlin

T5: Exception Handling

2008-05-16 Thread Leon Derks
Hello What is the best way to handle exceptions in Tapestry 5? I want to show some kind of general error page, when an exception occurs. At the moment I have a onException method in my BasePage class. But for some reason the Error page is not returned. What is the way in T5 to handle exceptio

Re: Failure writing parameter 'value' of component characteristic/Edit:nominaltextfield:

2008-05-15 Thread Leon Derks
Hi Nicholas, Indeed, that was it. Thanks! Leon nicholas Krul wrote: ${X} is a one way output... it uses the prop: binding by default... remove the EL-style ${} and it should work. On Thu, May 15, 2008 at 2:24 PM, Leon Derks <[EMAIL PROTECTED]> wrote: I get this error: Failure w

Failure writing parameter 'value' of component characteristic/Edit:nominaltextfield:

2008-05-15 Thread Leon Derks
I get this error: Failure writing parameter 'value' of component characteristic/Edit:nominaltextfield: Binding [EMAIL PROTECTED] is read-only. I have the corresponding getter / setter for the property. What am I doing wrong? Java Page: private String nominalDescription; public String get

Re: T5 + JSON + key name

2008-05-15 Thread Leon Derks
. Do you have an explanation for this behaviour? Leon Leon Derks wrote: Thanks Chris, That worked. The only thing is that the order of groups in the select is gone. I know for sure I put them in the correct order in the java jsonObject. I think the var jsonObject = response.evalJSON(); or the

Re: T5 + JSON + key name

2008-05-15 Thread Leon Derks
Lewis wrote: Try: for (var i in object) {} Where object would be your json object. Leon Derks wrote: Hi Sven, I only see that they get the value by using the key name. For example this: |var data = '{ "name": "Violet", "occupation": "character"

Re: T5 + JSON + key name

2008-05-15 Thread Leon Derks
an't get the value. Is there a way to get the key names of a JSON Object? For example something like this: | data.keys; //returns {name, occupation}| | | Leon Sven Homburg wrote: http://www.prototypejs.org/learn/json 2008/5/15 Leon Derks <[EMAIL PROTECTED]>: Hello I have a J

T5 + JSON + key name

2008-05-15 Thread Leon Derks
Hello I have a JSON object like this: JSONObject obj = new JSONObject(); obj.put(entity.getId(), entity.getName()); But how can I get the value from my json object in javascript, if I don't know the key name? Is there a way to get the key name(s) from a json object in javascript? Leon --

Re: T5: JSONArray + fillling

2008-05-15 Thread Leon Derks
is set to "undefined" Leon Lance Java wrote: 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]>:

T5: editing textfields values from a collection

2008-05-15 Thread Leon Derks
I have an object which contains a collection with a maximum of 3 descriptions. I want to be able to edit the descriptions on the same page. At the moment I loop through the collection and print the descriptions in its own textfield on the screen. But I also want to be able to edit the textfi

Re: T5: select + enum

2008-05-14 Thread Leon Derks
Okay I will try that. Toby Hobson wrote: You might want to look at Java's EnumSet.range() method for this. Toby - Original Message From: Leon Derks <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, 14 May, 2008 4:33:58 PM Subject: T5: select + enum Hello, Is it

T5: select + enum

2008-05-14 Thread Leon Derks
Hello, Is it possible to show a limited list of my enum values in the select box? For example, my enum contains 10 objects, is it possible to show only 5 of them in the select? Leon - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: T5: JSONArray + fillling

2008-05-14 Thread Leon Derks
Can you give me an example of that? Leon Lance Java wrote: 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&#

T5: JSONArray + fillling

2008-05-14 Thread Leon Derks
Hello I found this example: new JSONArray("[['a', 'value a'], ['b', 'value b'], ['c', 'value c'], ['d', 'value d']]")); The JSONArray contains information for my select box, with a value - label pair. But in my case, I want to make a new JSONArray filled with properties from my List of Gr

Re: update select based on first select

2008-05-13 Thread Leon Derks
). This exact use case was discussed recently - see: http://markmail.org/search/?q=ajax-based+data+retrieval+list%3Aorg.apache.tapestry.users#query:ajax-based%20data%20retrieval%20list%3Aorg.apache.tapestry.users+page:1+mid:5srufbsi5jsrdmu2+state:results chris Leon Derks wrote: I want to update a selec

Re: T5 + DWR integration

2008-05-13 Thread Leon Derks
r-side you want to access from DWR? If you will answer this question then you can just start a DWR servlet in your web application and try to get the objects of interest. Renat 2008/5/13 Leon Derks <[EMAIL PROTECTED]>: How easy is it to integrate T5 with DWR? Are there examples of how

update select based on first select

2008-05-13 Thread Leon Derks
I want to update a select, based on a value from another select. I have tried the OnEvent mixin from the t5components, but only the first selected value is printed to the screen. When I select another value after that, it always prints the first selected value. How can I do this with Tapestry

T5 + DWR integration

2008-05-13 Thread Leon Derks
How easy is it to integrate T5 with DWR? Are there examples of how to do this? How do I need to configure the dwr.xml file? Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Simple date format question

2008-05-09 Thread Leon Derks
Hi Marcus, I couldn't find the jira issue. Do you have it? I will vote! I found this example on :http://www.packtpub.com/article/tapestry-5-advanced-component t:format="%d/%m/%y"/> But this seems to be outdated, because it doesn't work. Leon Marcus wrote: Leon, No, you can't, :) it's on

Re: Simple date format question

2008-05-09 Thread Leon Derks
Okay, I use Tapestry 5. But can I use the OutputLocale component also on a DateField? Leon Marcus wrote: Hi Leon, There is a JIRA about format parameter for DateField, vote! To format a date output you can use OutputLocale component ( http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNu

Simple date format question

2008-05-09 Thread Leon Derks
How can I format my date in a date field I want to use the format (dd/MM/). Does tapestry have some build in functionality for this? And how can I format a date printing it to the screen like this: ${person.birthday} Leon ---

overwrite first element in select

2008-05-08 Thread Leon Derks
Hello Is it possible to overwrite the first element in a select box? At the moment this is an empty value, but can I for example overwrite this with "All" Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

@Persist("flash") question

2008-05-08 Thread Leon Derks
In my page I have a the following function that is executed when I click on the search button in my page. @Persist("flash") private List importRequests = new ArrayList(); @OnEvent(component = "searchForm", value = "submit") public void doSearch() { importRequests = importDAO.findImpor

Re: Autocomplete mixin + select event

2008-04-29 Thread Leon Derks
ield that the autocomplete is populating. Something like: $('mytextfield').observe('change', function(theEvent) { /* update other fields */}); Hope that helps, Josh On Tue, Apr 29, 2008 at 4:47 AM, Leon Derks <[EMAIL PROTECTED]> wrote: Does the autocomplete mixin fire so

T5: Page + render parts based on previous action

2008-04-29 Thread Leon Derks
Hello I want to render different parts in my page, based on an action in my previous page. For example I have an "edit" section and an "add" section. Based on the button I clicked in the previous page (edit or add button) I want to render the page with the corresponding section. What is th

Autocomplete providecompletions + extra parameter

2008-04-29 Thread Leon Derks
Hello Is it possible to add an extra context parameter to the providecompletions method? For example like this: List onProvideCompletionsFromAccountName(Long categoryId, String partial) { List matches = productDAO.findByPartialNameInCategory(partial, categoryId); ... } How

Autocomplete mixin + select event

2008-04-29 Thread Leon Derks
Does the autocomplete mixin fire some kind of event, after I have selected an item from the autocomplete-menu? Because I want to update other fields, based on the value that I selected. How can I do this? - To unsubscribe, e-

multiple context values

2008-04-28 Thread Leon Derks
How can I add multiple context values to an actionlink? For example a productId and a categoryId? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5: JPA EntityManager + Tapestry Injection

2008-04-28 Thread Leon Derks
I have added an JPA entity manager to my AppModule, in the same way this is done for an HibernateSessionManager/Session in the tapestry-hibernate project. See the code below for some details. I inject this entity manager with the @Inject into my DAO object. @Inject private EntityManager entityM

T5: Select component + onchange()

2008-04-24 Thread Leon Derks
Hello Is it possible to catch the onChange event from a select component in the java page? I would expect something like: onChangeFromSelect(long id) {} Because I want to update information on my page, based on the value that is selected. How can I do that? Leon ---

Re: T5: onActivate() called twice

2008-04-21 Thread Leon Derks
vate method will not be called more than once in normal circumastances, but overriding onActivate from a base class I belive can cause this ... some code would be useful. Davor Hrg On Mon, Apr 21, 2008 at 12:41 PM, Leon Derks <[EMAIL PROTECTED]> wrote: Hi, I noticed that my onActi

T5: onActivate() called twice

2008-04-21 Thread Leon Derks
Hi, I noticed that my onActivate() is called twice. I solved the problem by changing onActivate() into onActivate(Object[] parameters). Now it is only called once. But is this the way to do this or is there a better way? greetings, Leon --

RE: T5: onchange event from a select

2007-09-24 Thread Leon Derks
I want to be able to update a second select, based on the value in the first select box. So I want to process it on the server-side, or with AJAX. Is there a way to catch the onchange event in my java page? JP > Date: Sun, 23 Sep 2007 23:37:52 -0700 > From: [EMAIL PROTECTED] > To: users@tapes

t:type="loop" problem

2007-09-16 Thread Leon Derks
I have a problem with the t:type="loop" component in my Menu Component Every link that is generated gets the id of the first Category. So the html source looks like this: CategoryA | 1 CategoryB | 70 CategoryC | 110 Every categoryId is 1. (an