Re: Page activation context question

2008-03-23 Thread Yura Tkachenko
And how I can pass more than one parameter? Or did you mean I cannot pass more than one parameter? Thanks, Yura. On Sat, Mar 22, 2008 at 10:46 PM, SergeEby [EMAIL PROTECTED] wrote: Hi, You can pass more than one parameter. /Serge Yura Tkachenko wrote: Hi All, I've been reading

Re: Page activation context question

2008-03-23 Thread Anton Litvinenko
To pass more than parameter, a) from onPassivate method you should return an object array: Object[] onPassivate() { return new Object[] {getProductId(), some string, true}; } b) Then you either define onActivate method as void onActivate(long productId, String xxx, Boolean yyy) {

t5: creation of session

2008-03-23 Thread Angelo Chen
Hi, under what situation t5 will trigger sessionCreated of HttpSessionListener? I notice that: 1) when a page has a @persist 2) when a page has a form? what else? -- View this message in context: http://www.nabble.com/t5%3A-creation-of-session-tp16232654p16232654.html Sent from the Tapestry

Re: t5: creation of session

2008-03-23 Thread Adam Zimowski
When you use @ApplicationStateObject On Sun, Mar 23, 2008 at 4:05 AM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, under what situation t5 will trigger sessionCreated of HttpSessionListener? I notice that: 1) when a page has a @persist 2) when a page has a form? what else? --

Tapestry 5.0.11 and extending components

2008-03-23 Thread Anton Litvinenko
Hello! Sometime ago i needed to override default behavior of GridRows component used inside the Grid (i needed to display more than one table row for each grid row). For that sake i couldn't find anything more elegant than extend both Grid and GridRows components (by extending i mean extending

t5:id-blanklabel not working

2008-03-23 Thread Angelo Chen
Hi, i have this in my app.properties id-blanklabel=select then in the form: input t:type=select name=country t:id=country model=maps.countryMapx t:value=country/input I can see a blank, but it was not displayed as 'select', why? thanks A.C. -- View this message in context:

T5: LayoutCmpnt and inherit: prefix

2008-03-23 Thread petros
I have a UserAddUpdate page with a property called readOnly. This property is used to enable/disable components to simulate edit/read mode on the page. The embedded AddressCmpnt template uses inherit:readOnly to enable/disable its components. I am now refactored the UserAddUpdate page and

Re: t5:id-blanklabel not working

2008-03-23 Thread Angelo Chen
ok, fixed, should have been country-blanklabel not id-blanklabel. Angelo Chen wrote: Hi, i have this in my app.properties id-blanklabel=select then in the form: input t:type=select name=country t:id=country model=maps.countryMapx t:value=country/input I can see a blank, but it

Re: Hide menu items

2008-03-23 Thread petros
Thanks for this Davor, I basically copied the code for ListBinding and overwrote the public Object get() method and everything works great. Petros Davor Hrg wrote: such construct is not yet possible, OGNL is not used, checkout http://wiki.apache.org/tapestry/Tapestry5HowTos for code

Re: Page activation context question

2008-03-23 Thread Bill Holloway
Your onActivate method can also take varargs, as in void onActivate (String... args) { _firstObj = restoreFirstObj(args[0]); if (args[1] != null) _secondObj = restoreSecondObj(args[1]); ... } String[] onPassivate () { ListString args = new ArrayListString(); args.add

Re: Tapestry 5.0.11 and extending components

2008-03-23 Thread Adam Zimowski
I submitted issue for this a while back and Howard fixed this. You will be able to access row again in 5.0.12. https://issues.apache.org/jira/browse/TAPESTRY-2271 On Sun, Mar 23, 2008 at 7:22 AM, Anton Litvinenko [EMAIL PROTECTED] wrote: Hello! Sometime ago i needed to override default

Re: Page activation context question

2008-03-23 Thread Howard Lewis Ship
Actually, the conversion of parameters is based on ValueEncoders. For example, using tapestry-hibernate, Hibernate entities are expressed in URLs as their primary key (usually a number). They are converted back from strings to numbers to entities when the event handler method is invoked. The

Re: T5: LayoutCmpnt and inherit: prefix

2008-03-23 Thread Howard Lewis Ship
Looks like a bug. PageLoaderProcessor.java:249 is: // This may return null if the parameter is not bound in the loading component. Binding existing = loadingComponentBindingMap.get(loadingParameterName); It looks like loadingComponentBindingMap may be null when the loading

Re: T5: LayoutCmpnt and inherit: prefix

2008-03-23 Thread petros
The readOnly parameter belogs to the AddUpdateLayoutCmpnt and is declared like this @Property private boolean readOnly; I then use the AddUpdateLayoutCmpnt as the layout of this div t:type=AddUpdateLayoutCmpnt xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; input

Javascript error in datefield component

2008-03-23 Thread Yura Tkachenko
Hi, I'm getting Javascript error when trying to use datefield component on my form. This component works properly in Firefox but it doesn't work with IE7. I'm getting js error: Object doesn't support this property or method on the line 87 in file: /assets/tapestry/corelib/components/datefield.js

LayoutCmpnt and Form submition

2008-03-23 Thread petros
I have a LayoutCmpnt called AddUpdateLayout the contains the following form AddUpdateLayout.tml form t:id=addUpdateForm clientValidation=true /form AddUpdateLayout.java .. @Component(id=addUpdateForm) private Form addUpdateForm; .. Then I use this Layout for

Migration of Tapestry 4.0.2 to 4.1.5. Please help!!!

2008-03-23 Thread Rohan Kalyan
Hi all, we are working on migration of tapestry4.0.2 to 4.1.5 We are using Tapesrtry 4.1.5 jars(tapestry-annotations-4.1.5.jar , tapestry-contrib-4.1.5.jar, tapestry-framework-4.1.5.jar, tapestry-portlet-4.1.5.jar) and ognl-2.7.2.jar we've changed 1. Ajax directlink to