Re: TextFilteredPropertyColumn feature?

2010-07-15 Thread Ivan Dudko
thank you! error is really here. 2010/7/15 vov : > > I thing that you can have a problem with your FilterCriterionInterface: > public String getComparedValue() >        { >          return filter.get("Name").toString(); >        } > ...it can throw NullPointerExcaption if you did not input name f

Re: TextFilteredPropertyColumn feature?

2010-07-15 Thread Ivan Dudko
I know, it works.. But only if i fill two inputs it starts filtering. If i miss one field - nothing heppens. public class MyDataProvider extends SortableDataProvider implements IFilterStateLocator{ private static final long serialVersionUID = 4127276061657391787L; DataSou

Re: TextFilteredPropertyColumn feature?

2010-07-14 Thread Ivan Dudko
MyDataProvider provider = new MyDataProvider(); List> cols = new ArrayList>(); cols.add(new PropertyColumn(new Model(getString("MyList.Id")), "ID", "ID")); cols.add(new TextFilteredPropertyColumn(new Model(getString("MyList.Name")), "Name", "Name")); cols.add(new PropertyColumn(new Model

TextFilteredPropertyColumn feature?

2010-07-14 Thread Ivan Dudko
Hello! I am using TextFilteredPropertyColumn in my DataTable and it works very well. But when i added second TextFilteredPropertyColumn to my table, i get some fun. Filtering works only when i fill all two inputs (in these TextFilteredPropertyColumn's). And if i fill only one input, it do not do

Re: Modal window and panels replacement

2010-04-28 Thread Ivan Dudko
Thank you a lot, Sven, for notice. Now all works! 2010/4/28 Sven Meier > > See ModalWindow javadoc: > > "If you want to use form in modal window component make sure that you put > the modal window itself in another form ..." > -- > View this message in context: > http://apache-wicket.1842946.n4.

Re: Modal window and panels replacement

2010-04-28 Thread Ivan Dudko
Yes, i want replace whole Modal content via AJAX. 2010/4/28 Ernesto Reinaldo Barreiro > I do not understand well what is you problem... Do you want to change > Modal contents without reloading whole Modal via AJAX? > > Ernesto > > On Wed, Apr 28, 2010 at 1:17 PM, Ivan Dudko

Modal window and panels replacement

2010-04-28 Thread Ivan Dudko
Hi all, I am trying to replace panels in modal window. I have two panels: 1) with datatable and link to second panel 2) with edit form and link to datatable Each panel have a feedback. For the first panel all is fine. But when i am replace first panel with second i see this difference through aj

DropDownChoice and Null value

2010-03-22 Thread Ivan Dudko
.add(ddcType.setType(Integer.class)); Thank you. Best regards, Ivan *Dudko*

DropDownChoice and Null value

2010-03-21 Thread Ivan Dudko
}); form.add(ddcType.setType(Integer.class)); Thank you. Best regards, Ivan Dudko

Re: validate

2010-03-02 Thread Ivan Dudko
Thanks a lot! 2010/3/2 Riyad Kalla : > If you have that string literally copy-pasted in some Java code somewhere, > you need to double escape the escape chars... > > \\b and so on. > > On Tue, Mar 2, 2010 at 8:32 AM, Ivan Dudko wrote: > >> For this expression >&

Re: validate

2010-03-02 Thread Ivan Dudko
> http://www.regular-expressions.info/regexbuddy/ipaccurate.html would > be better? > > Martijn > > On Tue, Mar 2, 2010 at 4:09 PM, Ivan Dudko wrote: >> Hello! >> >> I can't understand how can i validate ip address (e.g. 192.168.0.238) >> using

validate

2010-03-02 Thread Ivan Dudko
Hello! I can't understand how can i validate ip address (e.g. 192.168.0.238) using UrlValidator. Thank you for help. Ivan Dudko - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Re: Re: Re: jdbc

2010-02-16 Thread Ivan Dudko
Thank you all guys! I just do it with Map. Especially thanks to Leo.Erlandsson! 2010/2/15 : > Should be no different when using JDBC than using it when using Domain > Objects. > > Check out Wicket Phonebook Example that uses FilterToolbar: > http://wicketstuff.org/confluence/display/STUFFWIKI/w

Re: Re: jdbc

2010-02-15 Thread Ivan Dudko
Thank you! I just discovered this sample: http://www.brettdutton.com/blog/?p=4 What i can do.. if i want to use FilterToolbar with DataTable? 2010/2/15 : > If you want to use a Map and display it in a Datatable there's no > difference from using an Object in Wicket. > > You access the key/values

Re: jdbc

2010-02-15 Thread Ivan Dudko
create a reference from Honey to Milk, since you have a >> > "milkid" field there.  Then, you'd use a list of Honey objects and >> > you'd display these properties: >> > >> > id >> > milk.id >> > name >> > milk

Re: jdbc

2010-02-15 Thread Ivan Dudko
27;d display these properties: > > id > milk.id > name > milk.name > > > > > On Fri, Feb 12, 2010 at 3:58 AM, Ivan Dudko wrote: >> For example.. >> class Honey { >> int id; >> int milkid; >> String name; >> // getters and setters &g

Re: jdbc

2010-02-12 Thread Ivan Dudko
dvanced/web/story3/page/Home.java >>> >>> At the bottom, there's a data provider which talks to a "repository" >>> to get its data. >>> >>> >>> >>> On Thu, Feb 11, 2010 at 10:11 AM, Giambalvo, Christian >>> wrote: &g

Re: jdbc

2010-02-11 Thread Ivan Dudko
ta. > > > > On Thu, Feb 11, 2010 at 10:11 AM, Giambalvo, Christian > wrote: >> http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html >> >> -Ursprüngliche Nachricht- >> Von: Ivan Dudko [mailto:ivan.du...@gmail.com] >> Gesendet: Donners

Re: jdbc

2010-02-11 Thread Ivan Dudko
d then implement the interface. > > On Thu, Feb 11, 2010 at 8:26 AM, Ivan Dudko wrote: >> Hello! >> >> I can't understand how to populate data from a resultset object into >> datatable. >> Anyone have an example? >> >> Thank you! >> >

jdbc

2010-02-11 Thread Ivan Dudko
Hello! I can't understand how to populate data from a resultset object into datatable. Anyone have an example? Thank you! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@

wicket table and resultset

2010-02-10 Thread Ivan Dudko
On Fri, Feb 22, 2008 at 8:54 AM, Igor Vaynberg wrote: while wicket has first class support for editing beans, it is by no means the only way. it is quiet trivial to create a ColumnModel that is like a property model but reads data from a resultset object and populates a prepared statement object..

Re: Several entities and DataTable

2010-01-10 Thread Ivan Dudko
nested property expression (like "honey.hiveName" or > whatever). > > On Sun, Jan 10, 2010 at 9:51 AM, Ivan Dudko wrote: >> I have two Pojo classes. For example, Milk and Honey. >> And also database tables with same structure. I am do not use ORM mapping. >> >>

Re: Several entities and DataTable

2010-01-10 Thread Ivan Dudko
I have two Pojo classes. For example, Milk and Honey. And also database tables with same structure. I am do not use ORM mapping. I write DAO class for class Milk that fetches data from the tables milk and honey at once. But i am in trouble how i can display this result set. I think that writing t

Re: Several entities and DataTable

2010-01-10 Thread Ivan Dudko
2010/1/10 Leo Erlandsson : > > I would use an SQL Join in the iterator(int first, int count) method to get > data from the associated table and return the data in the returned Domain > Objects. > > You could also do an SQL Query for each result in your iterator() method, > but that would give you 1

Re: Several entities and DataTable

2010-01-09 Thread Ivan Dudko
This is DataProvider and ListPage. All is fine where i work with only one entity. My DAO returns data from table assotiated with this entity and another table. How i can provide access to this data from my DataTable? public class MyDomainDataProvider extends SortableDataProvider implements IFilte

Several entities and DataTable

2010-01-08 Thread Ivan Dudko
Hello! I am not using JPA and Spring. Write all with plain JDBC. I am write page which displays data with DataTable using SortableDataProvider. How i can display fields from another table (entity)? Wicket says that no get method found. Thank you!

Re: wicket + jdbc template app

2009-11-23 Thread Ivan Dudko
Thank you! I have just implement it! I am using c3p0 and SQL DAO without Spring or any Persistent framework. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.o

Re: wicket + jdbc template app

2009-11-19 Thread Ivan Dudko
Hello, guys! I am still could not implement wicket application without any persistence framework and also spring-jdbc. I want to use only connection pooling with dbcp or c3p0. May you provide example for this kind of app. Thank you for answer!

Re: wicket + jdbc template app

2009-11-02 Thread Ivan Dudko
thank you guys!

wicket + jdbc template app

2009-11-01 Thread Ivan Dudko
Hello, guys! I want to use wicket with plain jdbc without any persistence framework. Where i can find template application for this type of data source? Thank you for answer!

Re: crud app with wicket

2009-08-17 Thread Ivan Dudko
Thank you guys! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

crud app with wicket

2009-08-09 Thread Ivan Dudko
Hi all! I am new to java. I am trying to write crud app and using Wicket,Spring,Hibernate and PostgreSQL. But speed is very slow. May be i am do it in not right way. Where i can see the right way of integration of these components? Thank you! Ivan Dudko