Re: tapestry 4 radio group

2011-01-21 Thread Dariusz Majewski
Richard is right. It would have to be more like this: Also if values assigned to radio components are 'activeServer.id', let's assume it's Long, then 'selected' parameter of your activeServerRadioGroup component should be of type Long as well, so maybe you need another property

Re: JIRA TAP5_103 provide access to component parameters from within mixins

2010-08-19 Thread Dariusz Majewski
Hi, You have to use @BindParameter annotation described here: http://tapestry.apache.org/tapestry5.2-dev/guide/mixins.html Regards, Darek On Thu, Aug 19, 2010 at 10:31 PM, Shing Hing Man wrote: > JIRA TAP5_103 is marked as fixed in Tap 5.2.0. > https://issues.apache.org/jira/browse/TAP5-103 >

[T5] debugging in eclipse

2010-05-25 Thread Dariusz Majewski
Hi All, I'm having problems debugging my tapestry application. I'm using Eclipse 3.5.0 and tapestry 5.2-SNAPSHOT. I have a custom component with parameter @Parameter(value="120") private int maxWidth; which is then set during my component invocation inside page now I have a ev

Re: @For how to check last element?

2010-03-20 Thread Dariusz Majewski
Hi, You just have to use 'index' parameter of @For component. < jwcid="@For" source="ognl:theList" value="elem" index="loopIndex"> < jwcid="@If" condition="ognl:loopIndex == (theList.size()-1)"> last element :] Cheers, Dariusz On Fri, Mar 19, 2010 at 5:09 AM, asianCoolz wrote: > when

Re: How to create absolute URL?

2010-03-17 Thread Dariusz Majewski
Hi, Not sure that this is the best way, but I did it like this: @Inject private Request request; @Inject private RequestGlobals requestGlobals; public String getHostUrl(){ if(hostUrl == null){ hostUrl = getRequestGlobals().getHTTPServletRequest().getS

Re: Render large page

2010-03-15 Thread Dariusz Majewski
Hi, Actually Dmitry is right that javascript variables are invalid. They cannot contain '-' character and error that is shown when they do is exactly "SyntaxError: missing ; before statement". I've happend to have similiar issue. This is because tapestry adds '-' + random number to generated cl

Re: tapestry 5 - How to call peekUniqueId?

2010-01-07 Thread Dariusz Majewski
Ship wrote: > Generally, you should wait until after a component has rendered, then > invoke getClientId() on it. > > On Wed, Jan 6, 2010 at 4:00 PM, Dariusz Majewski > wrote: > > Hi All, > > > >In tapestry4, IRequestCycle has a peekUniqueId method > >

tapestry 5 - How to call peekUniqueId?

2010-01-06 Thread Dariusz Majewski
Hi All, In tapestry4, IRequestCycle has a peekUniqueId method (link). How to achieve that in tapestry5 ? Thanks, Dariusz