testing borders with WicketTester

2008-10-31 Thread dlipski
Hi Is it possible (if not why?) to test Border components in a way similar to testing Panels ? -WicketTester.startPanel(TestPanelSource) ? Its strange but I cant find corresponding method for Borders. Thanks in advance. Daniel Lipski -- View this message in context: http://www.nabble.com/te

Re: DataTable cell link

2008-10-29 Thread dlipski
item implements ilinklistener { > > protected oncomponenttag(tag) { >super > > tag.put("onclick","window.location='"+urlfor(ilinklistenerinterface.interface)+"';"); > } > > } > > thats about all it takes > > -igor

Re: DataTable cell link

2008-10-29 Thread dlipski
My colegue point out that for Ajax requests AjaxEventBehavior can be used, and it works fine. so now I need only solution for normal (non Ajax) requests. dlipski wrote: > > Because I havent found better solution then adding 'onclick' handler to > cellItem I have to do it y

Re: DataTable cell link

2008-10-29 Thread dlipski
t; DataTable is for a very specific purpose, and it is often easier to roll > your own than make DT fit your purpose. > > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > On Tue, Oct 28, 2008 at 2:05 PM, dlipski <[EMAIL PROTECTED]> > wrote:

Re: DataTable cell link

2008-10-29 Thread dlipski
using CSS, something like: > > TD A { > display: block; > } > > This is much better because the anchor will fill the box (fixing your > problem), and you are more compatible (if JS is off, etc). > > > -- > Jeremy Thomerson > http://www.wickettraining.com >

Re: DataTable cell link

2008-10-28 Thread dlipski
ld be if table could have any component as row or cell element not only Item object. But I know that this is a big change in DataTable class (or one of its child component class) . jwcarman wrote: > > On Tue, Oct 28, 2008 at 3:05 PM, dlipski <[EMAIL PROTECTED]> > wrote: >>

Re: few (not only) AutoCompleteTextField questions

2008-10-28 Thread dlipski
s so I think its bug either in OnChangeAjaxBehavior class or AutocompleteTextField class. Correct me if I'm wrong. Regards Daniel igor.vaynberg wrote: > > probably because textfields do not receive onchange event, or > something else was hijacking it. > > -igor > > On Tue, Oct

Re: DataTable cell link

2008-10-28 Thread dlipski
gt;> >> where xyz is code generated by Wicket (like in Link component class) >> >> If I misundestood you could you give me some more details hot to make >> cell >> itself a link ? (not adding a link to the cell) ? >> >> Regards >> Daniel >>

Re: DataTable cell link

2008-10-28 Thread dlipski
Here's an example where I put a remove link in a DefaultDataTable cell: > > https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/example/src/main/java/org/wicketopia/example/web/page/HomePage.java > > > On Tue, Oct 28, 2008 at 6:33 AM, dlipski <[EMAIL PROTECTED]&

Re: few (not only) AutoCompleteTextField questions

2008-10-28 Thread dlipski
dlipski wrote: > > Hi, > > First, problem description: > Recently I was asked to change DropDownChoice field into > AutoCompleteTextField. > Everything was ok untill I noticed that old DropDownChoice field has > attached OnChangeAjaxBehavior. > Ofcourse what wor

DataTable cell link

2008-10-28 Thread dlipski
Hi I have one short question: How to make entire cell in a DataTable a link ? I've read that Link component can be attached not only to tags but also to any other html elements (like and ) but I dont know how to use it with DataTable API. Regards Daniel -- View this message in context: h

few (not only) AutoCompleteTextField questions

2008-10-23 Thread dlipski
Hi, First, problem description: Recently I was asked to change DropDownChoice field into AutoCompleteTextField. Everything was ok untill I noticed that old DropDownChoice field has attached OnChangeAjaxBehavior. Ofcourse what works well with DropDownChoice doesnt work as I want with AutoComplete

Re: PropertyModel type of key map

2008-10-01 Thread dlipski
like this into it it will get bloated. it is pretty easy > to roll your own implementing imodel directly. > > -igor > > On Tue, Sep 30, 2008 at 10:53 AM, dlipski <[EMAIL PROTECTED]> > wrote: >> >> If there is no option to force (why? I can imagine setMapKeyClass meth

Re: PropertyModel type of key map

2008-09-30 Thread dlipski
igor.vaynberg wrote: > > dont use a property model, roll your own > > -igor > > On Tue, Sep 30, 2008 at 8:31 AM, dlipski <[EMAIL PROTECTED]> > wrote: >> >> Hi >> >> Im trying to 'force' PropertyModel to put into map key different then &g

PropertyModel type of key map

2008-09-30 Thread dlipski
Hi Im trying to 'force' PropertyModel to put into map key different then String but after few trials I have no idea how to do this. Example: I have field myMap in my page initialized as follows: Map myMap = new HashMap(); then I create property model for my page(this == page containing myMap

Re: newbie problem witch wicket...

2008-09-10 Thread dlipski
elates that token, an expiration, and the user it works > for. This could easily be adapted for that. > > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > On Tue, Sep 9, 2008 at 2:43 PM, dlipski <[EMAIL PROTECTED]> > wrote: > >> >

Re: newbie problem witch wicket...

2008-09-09 Thread dlipski
nForm" method="post"> > > > Then you need to just to POST the username and password parameters to the > above URL , and it'll log you in. > > I not sure how you set to us GET in wicket which would be more easy for > you. > But I''m sur

Re: newbie problem with wicket...

2008-09-09 Thread dlipski
for > login and login if there is that data in the request? > > On 9/8/08, dlipski <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> Im developing with Wicket for short time so forgive me if I misanderstood >> some Wicket concepts. >> Recently I

newbie problem with wicket...

2008-09-08 Thread dlipski
Hi Im developing with Wicket for short time so forgive me if I misanderstood some Wicket concepts. Recently I was asked for develop SSO-like feature for Wicket powered web application. Application uses wicket-auth-roles + Acegi for securing wicket pages. What I have to do is to let authenticat

newbie problem witch wicket...

2008-09-08 Thread dlipski
Hi Im developing with Wicket for short time so forgive me if I misanderstood some Wicket concepts. Recently I was asked for develop SSO-like feature for Wicket powered web application. Application uses wicket-auth-roles + Acegi for securing wicket pages. What I have to do is to let authenticat