Re: SV: ajax - navigate to new location

2009-09-04 Thread Leo . Erlandsson
This seems to work fine: new AjaxLink(ajaxlink) { public void onClick(AjaxRequestTarget target) { getRequestCycle().setRequestTarget(new RedirectRequestTarget(http://www.google.com;)); } }); Wilhelmsen Tor Iver toriv...@arrive.no

Re: WhiteSpaces in PasswordTextField

2009-10-25 Thread Leo Erlandsson
protected boolean shouldTrimInput() Determines whether or not this component should trim its input prior to processing it. The default value is true Returns: True if the input should be trimmed. seems like a good candidate. -- View this message in context:

Reading localization properties from Page Subclass .properties file

2009-11-05 Thread Leo . Erlandsson
Hi, We are in the process of moving our applications from JSP to Wicket. Right now we're writing a framework with BasePages and base components to build on and are learning Wicket on the fly. The BasePage contains a HeaderPanel which renders the Headline of the page: !-- BasePage.java --

Reading localization properties from Subclass .properties file

2009-11-06 Thread Leo . Erlandsson
Hi, We are in the process of moving our applications from JSP to Wicket. Right now we're writing a framework with BasePages and base components to build on and are learning Wicket on the fly. The BasePage contains a HeaderPanel which renders the Headline of the page: !-- BasePage.java --

Ang. Reading localization properties from Subclass .properties file

2009-11-06 Thread Leo . Erlandsson
Sorry for the inconvenience, Wicket is handling this beautifully and loads the correct resourceKey value from the Page subclass .properties file. I don't dare admit what the problem was Thanks for a great framework!

Re: Wicket datepicker disable weekdays

2009-11-20 Thread Leo Erlandsson
This is certainly possible. You need to use YUI Calendar Renderers. They are documented in the YUI Cal2 API Doc. You can find an example of what you are trying to achieve here (thanks Google): http://www.stephaniebender.de/extras/yui/examples/calendar/render/1.html Basically, you'll want to do

Re: Help with Wicket Adoption Numbers

2010-01-08 Thread Leo . Erlandsson
that several large privately held companies in Sweden are using Wicket, as well as large Government Agencies (e.g. the Swedish Immigration Office). Sincerely yours Leo Erlandsson Lester Chua cicowic...@gmail.com 2010-01-08 01:43 Sänd svar till users@wicket.apache.org Till users@wicket.apache.org

Re: Several entities and DataTable

2010-01-10 Thread Leo Erlandsson
. Also, note that your code has several Security Vulnerabilities as it is susceptible to SQL Injection Attacks (!) if you let the user specify the Filter String: String tmp = filter.getName(); sql = where name like '% + tmp + %'; - --- Leo Erlandsson, M. Sc. -- View this message

Re: Help with Wicket Adoption Numbers

2010-01-11 Thread Leo . Erlandsson
As my English is not my mother's tongue, even though I do speak it pretty good, what is the meaning of pointy haired bosses? I think I can understand it, but hey, I want to know if these are the kinds of bosses I encountered too often.. It's from the Dilbert Comic Strip :) Wikipedia:

Re: Regarding editable datagrid

2010-02-03 Thread Leo . Erlandsson
I am kasi. I am developing POC (Proof of concept) on editable datagrid using apache wicket framework to implement in one of the project. I am using 'Apache Wicket 1.4.5 Release'. I have a question that whether editable datagrid features are available in the 'Apache Wicket 1.4.5' version or not?

Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
now problem is not accessing object fields.. problem is transform resultset to these objects.. You could just work with Maps in Wicket instead of Domain Objects. The transformation from ResultSet to a Map containing the Column name as Key and the data as Value should be trivial (if not; reply

Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
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 using PropertyColumn as usual (i.e. you don't really need to make any changes to your code). For Objects you use e. g. name for the getName() method. When

Re: Re: Re: jdbc

2010-02-15 Thread Leo . Erlandsson
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/wicket-phonebook Source Code Example:

Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread Leo . Erlandsson
? table); in NavigationToolbar / AjaxNavigationToolbar and provide your own MyPagingNavigator there. Med vänlig hälsning / Sincerely yours Leo Erlandsson Tyringekonsult AB Phone: +46-(0)451- 594 54 Email: leo.erlands...@tyringe.com Website: www.tyringe.com saravana kumar shav...@gmail.com

Re: Re: How to add Images in wicket Navigator instead of ?

2010-02-15 Thread Leo . Erlandsson
thank u for your reply.I didn't understand. please send code or link. Unfortunately I can't include code from our project. However, if you search this mailing list you'll find several examples and other solutions to your problem:

Re: [OT] Apache con 2010 europe, when?

2010-02-25 Thread Leo . Erlandsson
SDC2010 - Scandinavian Developer Conference in Gothenburg, Sweden. There is even a lecture on Wicket! :) http://www.scandevconf.se/2010/conference/speakers/andrew-lombardi/?backlnk=dptgday=togglewrap1 nino martinez wael nino.martinez.w...@gmail.com 2010-02-25 14:45 Sänd svar till

Re: Re: FormTester and Select component?

2010-03-02 Thread Leo . Erlandsson
You could easily extend WicketTester and FormTester to support selecting in org.apache.wicket.extensions.markup.html.form.select.Select. Take a look at the public void select(String formComponentId, int index) method in FormTester and public FormTester newFormTester(String path, boolean

Re: Regarding TreeTable Horizontal Scrollbar

2010-03-15 Thread Leo . Erlandsson
You can solve this by using CSS. E.g. table trtd div style=width:100%;overflow:auto;white-space:nowrap [content] /div /td/tr /table The trick is overflow:auto that will add scrollbars when needed. overflow-y: scroll;

Re: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-15 Thread Leo . Erlandsson
If you want the entire table to be scrollable horizontally you should probably place the CSS attributes on the top CSS class (wicket-tree-table). Search the net for CSS horizontal scoll. There should be loads of examples on how to do this using CSS. http://lmgtfy.com/?q=css horizontal scoll

Re: RE: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-18 Thread Leo . Erlandsson
Anyone knows how to get the TreeTable Horizontal Scrollbar? If possible share the code snippet. Regards Vikash Didn't you find any CSS Examples using Google? This really is not a Wicket question, but a CSS question. However, I did a CSS Example for you. Is this what you're looking for

Re: RE: RE: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-25 Thread Leo . Erlandsson
Hi, Still a CSS issue, not a Wicket one ;) I used Google to search for css table locked column scroll First result was a good StackOverflow-question: http://stackoverflow.com/questions/296020/how-can-i-lock-the-first-row-and-first-column-of-a-table-when-scrolling-possibly Try the Horizontal

Re: DatePicker and visibility of the parent component

2010-03-26 Thread Leo . Erlandsson
We had the same problem. It probably can be solved in a better way (but that would require a RFE and changes to Wicket), but we used a quick and easy solution (tm). Instead of actually setting isVisible() on the Date Picker, we just hide it using CSS. I don't know if this is applicable in your

Re: Re: RE: RE: RE: Regarding TreeTable Horizontal Scrollbar

2010-03-26 Thread Leo . Erlandsson
Take a look at http://www.wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/tree/table/ColumnLocation.html Specifying fixed size column should be no harder than adding them as LEFT or RIGHT columns instead of MIDDLE Column. MIDDLE column cannot have a fixed width.

Re: type safe field references

2010-04-28 Thread Leo . Erlandsson
Hi, Perhaps this is what you're looking for? http://code.google.com/p/bindgen-wicket/ add(new Label(state, new PropertyModel(person, address.state.code))); becomes add(new Label(state, new PropertyModel(person, new PersonBinding().address().state().code().getPath(; Type safe and refactor