[T5] Passing page state with AJAX request

2008-09-27 Thread Alexey Hanin
Hello, Recently I started to examine AJAX features in T5 and I already have a lot of question of course, but I'd like to go through the each very deeply. The question is: how can I send an AJAX request from within the control and also include component (page) state? I've created a mixin similar to

[T5] RadioGroup and Radio holding enum values

2008-10-08 Thread Alexey Hanin
Hello, I'm trying to use RadioGroup with Enum values and getting ClassCastException: java.lang.String cannot be cast to java.lang.Enum. My page is as follows: public class Page { private EnumValueEncoder enumTypeEncoder = new EnumValueEncoder(EnumType.class); private EnumType enumType;

Re: [T5] RadioGroup and Radio holding enum values

2008-10-08 Thread Alexey Hanin
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Radio.html > > HTH, > > Uli > > Am Mi, 8.10.2008, 15:10, schrieb Alexey Hanin: >> Hello, >> >> I'm trying to use RadioGroup with Enum values and getting >> ClassC

T5: Scrambled unicode localized message

2007-05-25 Thread Alexey Hanin
Hi! I am using Tapestry 5.0.4 and trying to display cyrillic unicode characters within a simple template (Login.html): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> : Here are contents of my Login_ru.properties: username-label=Юзернэйм submit-label=Сабмит In result i have scrambl

Accessing autoconnect-parameter by reference, not by value

2009-11-07 Thread Alexey Hanin
Hello, Recently I found that autoconnect-parameters are being copied instead of being set as reference to parent parameter. What I want is to implement various editor-components containing BeanEditForm accessing parent property. class Page { @Property private EntityObject entity; void on

Accessing autoconnect-parameter by reference, not by value

2009-11-07 Thread Alexey Hanin
Hello, Recently I found that autoconnect-parameters are being copied instead of being set as reference to parent parameter. What I want is to implement various editor-components containing BeanEditForm accessing parent property. class Page { @Property private EntityObject entity; void onSuc

Re: Accessing autoconnect-parameter by reference, not by value

2009-11-07 Thread Alexey Hanin
Hmm... Seems like autoconnect does not work for me as I expect. I checked in setupRender() inside EditorComponent and found that 'entity' is null, while Page.setupRender() assigns new value to its same named property. What am I doing wrong? On Sat, Nov 7, 2009 at 7:50 PM, Alexey Ha

Re: Accessing autoconnect-parameter by reference, not by value

2009-11-09 Thread Alexey Hanin
Seriously, guys? Anyone? On Sun, Nov 8, 2009 at 8:55 AM, Alexey Hanin wrote: > Hmm... Seems like autoconnect does not work for me as I expect. > > I checked in setupRender() inside EditorComponent and found that > 'entity' is null, while Page.setupRender() assigns new val

Re: t5: Link s addParameter and null

2009-11-09 Thread Alexey Hanin
Just make it empty string when it's null: lnk.addParameter("country", country == null ? "" : country); On Mon, Nov 9, 2009 at 3:24 PM, Angelo Chen wrote: > > Hi, > > I have a query string that I need to append to a  Link object, the query > string is: > > ?gender=M&country= > > I got two questio

Re: t5: Link s addParameter and null

2009-11-09 Thread Alexey Hanin
gt;        if (parameters == null) >            parameters = CollectionFactory.newMap(); > >        parameters.put(parameterName, value); >    } > > it is making sure the value is not blank, but I believe query string having > blank value is often. > > > Alexey Hani

Re: Accessing autoconnect-parameter by reference, not by value

2009-11-09 Thread Alexey Hanin
Oh, I finally found what I was doing wrong :) Just misread the documentation. The parameter bound to the property which is named exactly as component. In fact only one property can be bound. On Mon, Nov 9, 2009 at 2:14 PM, Alexey Hanin wrote: > Seriously, guys? Anyone? > > On Sun, Nov 8