Re: Binding of Boolean parameter

2009-03-24 Thread Lukasz Jazgar
2009/3/24 Ville Virtanen : > > Also the line > > writer.write(""+value); > > could be to blame? > > try something like > > if(value == null) { >  writer.write("null"); > } else if (value.booleanValue() == true) { >  writer.write("true"); > } else { >  writer.write("false"); > } > Your code gives th

Re: Binding of Boolean parameter

2009-03-24 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 24, 2009 at 5:27 AM, Ville Virtanen wrote: > Also the line > writer.write(""+value); What about writer.write(String.valueOf(value))? Anyway, conversions from almost any type to String are best handled by String.valueOf(). -- Thiago -

Re: Binding of Boolean parameter

2009-03-24 Thread Ville Virtanen
e, that so base functionality is buggy in stable release >>> (5.0.18) and nobody noticed it before? Neither unit tests? I can't >>> belive. I still think it's my fault and my lack of understanding. >>> >>> >>> Łukasz >>> >>

Re: Binding of Boolean parameter

2009-03-24 Thread Lukasz Jazgar
--------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > > -- > View this message in context: > http://www.

Re: Binding of Boolean parameter

2009-03-24 Thread Ville Virtanen
ither unit tests? I can't > belive. I still think it's my fault and my lack of understanding. > > > Łukasz > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tap

Re: Binding of Boolean parameter

2009-03-24 Thread Lukasz Jazgar
2009/3/24 Ville Virtanen : > > Hi, > > double check that the boolean is not primitive _anywhere_, as then assigning > null to it would coerse the value to false witch is the default in Java if > it is unknown. I checked it 10 times before. Parameter of component and property of page are not primit

Re: Binding of Boolean parameter

2009-03-23 Thread Ville Virtanen
ards > Lukasz > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: h

Binding of Boolean parameter

2009-03-23 Thread Łukasz Jazgar
Hi all, I am a newbie in Tapestry. Please, help me to understand, how binding of parameters works. I'll show my problem on very simplified example. There is a component: public class BooleanComponent { @Parameter private Boolean value; boolean beginRender(MarkupWriter writer) {