Re: Check a checkbox when focus on a textbox

2008-11-21 Thread Swanthe Lindgren
You probably want to call your checker function on the onkeypressed event instead of the onfocus event. But none of this is the wicket way! With wicket you can use an AjaxFormComponentUpdatingBehavior(onkeypressed) on the text field which updates your model and rerender the checkbox.

Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-25 Thread Swanthe Lindgren
[X] - YES - I would like to see at least the most used Wicket Stuff projects structured so that they mirror Wicket, and a release is produced for each Wicket release. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RadioGroup, differences between FireFox and Internet Explorer?

2008-12-16 Thread Swanthe Lindgren
I have this wierd behavior where a RadioGroup works perfectly well with FireFox but not with IE7. Both IE and FF fires the event and the server side event handler is executed in both cases, but with IE the model is not updated when I try to retrieve it in the

Re: Support multiple views for different user

2009-01-11 Thread Swanthe Lindgren
Have a look at the sign in exampels at http://www.wicketstuff.org/wicket13/ //Swanthe itayh wrote: Hi, Currently in my server anyone that logged in can add and see all the data in the system (that he added or other people added) I need the ability to create different users and each user can

Re: Several Ajax features doesn't seem to work in Wicket 1.3.5 and Firefox 3.0.5

2009-01-13 Thread Swanthe Lindgren
Both examples work fine for me in ff 3.0.5. Have you perhaps disabled javascript in ff? //Swanthe Gohan wrote: If we take the Palette example in Firefox then nothing happens if I select a name and then press the right arrow. In Internet Explorer the name is moved from the Available to the

tinymce settings

2009-01-26 Thread Swanthe Lindgren
Hello to you all Im trying to use the tinymce behavior to get a nice editor. On one page I want a read-only tinymce, but how do I configure its settings? Is this anywhere near? TinyMCESettings mceSettings = new TinyMCESettings(Theme.simple); mceSettings.addCustomSetting(readonly:true);

Re: tinymce settings

2009-01-27 Thread Swanthe Lindgren
Ok, so things like mceSettings.addCustomSetting(skin : \o2k7\) work, but the readonly setting is in a newer version (3.1.1) when wicket tinymce is only 3.1.0. //Swanthe Hello to you all Im trying to use the tinymce behavior to get a nice editor. On one page I want a read-only tinymce, but

Re: Building and using TinyMCE in Wicket

2009-02-10 Thread Swanthe Lindgren
Try doing a mvn install on the tynimce subfolder. //Swanthe ashtek wrote: Hey all, I am trying to use TinyMCE, and I downloaded all the source from here - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/ This creates a folder called

Re: RadioGroup, differences between FireFox and Internet Explorer?

2009-02-17 Thread Swanthe Lindgren
I still have the same problem and as the project where it occurred is on ice I left it for what is is. I haven't even filed a JIRA, but please go ahead and do so since it still doesn't work in wicket-1.4-SNAPSHOT. //Swanthe metalotus wrote: I have the same issue. Some places in my

test page rendering

2009-03-10 Thread Swanthe Lindgren
Hi all I have begun unit testing my wicket pages and one of the most basic tests I want to do is to make sure each and every page can render properly. The WicketTester.assertRenderedPage() looks like a good approach but it doesnt seam to care about the HTML. If I remove a wicket:id from the

Re: test page rendering

2009-03-11 Thread Swanthe Lindgren
Is there a similar way to ensure that all wicket:message key resources exist? //Swanthe Igor Vaynberg wrote: if you want the removal of wicket:id to fail turn on component use check in debug settings. -igor On Tue, Mar 10, 2009 at 3:12 AM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote

Re: tomcat doesnt work with wicket

2008-10-17 Thread Swanthe Lindgren
Did you add the wicket application to you tomcat server instance in eclipse? Are you aware that eclipse by default does not deploy to your tomcat install folder but to a folder in your workspace (D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core) //Swanthe overseastars wrote: I

Re: Updating model for DropDownChoice

2008-10-24 Thread Swanthe Lindgren
If you combine setNullValid(true) with putting myComponent.nullValue=My null value in the properties file, you will always get a default null value with the title My null value. //Swanthe nanotech wrote: Hi, I have a search form which contains multiple search fields(as TextFields) and

Session timeout page

2008-10-29 Thread Swanthe Lindgren
How do I change the session timeout page? I want my application to display the actual home page on session timout instead of the default Return to homepage-link page. //Swanthe - To unsubscribe, e-mail: [EMAIL PROTECTED] For

inMethod DataGrid initial selection

2009-10-02 Thread Swanthe Lindgren
Does anybody know how to get a row initially selected when the grid is first drawn? //Swanthe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: inMethod DataGrid initial selection

2009-10-02 Thread Swanthe Lindgren
, true); Any other suggestions? Martin Grigorov wrote: grid.selectItem(rowModel); El vie, 02-10-2009 a las 11:25 +0200, Swanthe Lindgren escribió: Does anybody know how to get a row initially selected when the grid is first drawn? //Swanthe

Re: how to get TextField value which belongs to the first tab when click on the button which belongs to tabbedpanel

2009-10-07 Thread Swanthe Lindgren
jerr...@sohu.com wrote: There are 3 tabs in a tabbedpanel, a TextField component is in the first tab, and several form components in the other tabs for user input. I added a save button in the tabbedpanel(instead add 3 buttons in each tab, because I just want to save all user inputs by one

Re: Feedback messages, input and label

2009-10-08 Thread Swanthe Lindgren
Well, if you combine putting inputPwd=Password in your property file and putting label for=pwdwicket:message key=inputPwdthis text here will be replaced by your propertyfile value/wicket:message/label in you markup, I thing you'll get what you'r looking for. //Swanthe Tomás Rossi wrote:

Re: Right justify in DataTable

2009-10-14 Thread Swanthe Lindgren
Try this (cut and pasted from the inmethod-grid-examples app) new PropertyColumn(new ResourceModel(NumberCol), NumberCol, NumberCol) { private static final long serialVersionUID = 1L; @Override public String getCellCssClass(IModel rowModel, int rowNum) {

inmethod grid acts strange on reorder

2009-10-14 Thread Swanthe Lindgren
Hi all My IDataSource delivers LDM models that uses the ReuseIfModelsEqualStrategy to my data grid and does it well when I enter the page containing the grid or when switching between pages in my grid. It also does a good job if I edit one of the rows in the grid, by only updating that

Re: Open Source projects using Wicket

2009-10-16 Thread Swanthe Lindgren
I dont really get what you mean by pushing and pulling models. Could you please give me an example? Is creating a component without providing a model, relying in the parent page/panel/component's default model pushing data? //Swanthe Jeremy Thomerson wrote: Sorry, that was an overly terse

Re: wicket:enclosure ( setting visible when hidden on render )

2009-10-23 Thread Swanthe Lindgren
Try setOutputMarkupPlaceholderTag(true) on the component withing the enclosure. //Swanthe Douglas Ferguson wrote: I have a component that is wrapped with a wicket enclosure. When the page is rendered I set the component visible(false) which make the entire wicket enclosure hidden. Then I

Re: making tinyMce TextArea readonly

2009-12-03 Thread Swanthe Lindgren
You have to download the source and repack it with new javascripts to make it work. http://old.nabble.com/making-tinymce-textarea-read-only-td23160313.html#a23170821 //Swanthe tubin gen wrote: I ma trying to make TextArea with TinyMce behaviour readonly , I added the following custom

Re: wicket bench in eclipse

2010-01-21 Thread Swanthe Lindgren
We are using Galileo and m2eclipse (Maven) with Wicket bench, no problem, but we are only using wicket bench when creating new pages and panels as a lazy way to get both the java and html file. //Swanthe On 2010-01-21 04:48, Lionel Port wrote: Hi Guys, Not strictly a wicket question, I

Re: wicket bench in eclipse

2010-01-24 Thread Swanthe Lindgren
and I should keep trying. BTW. What are you meant to get your wicket context set to in the project properties, is it /src/main/resources. On Fri, Jan 22, 2010 at 12:25 AM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: We are using Galileo and m2eclipse (Maven) with Wicket bench

Re: tinymce textarea

2009-04-21 Thread Swanthe Lindgren
Try add TinyMceAjaxSubmitModifier to your submit button //Swanthe tubin gen wrote: I am trying to make my text editor (text area ) to rich text eitors using timymce.First I tried wicket timymce behaviour , the problem is the tinymce java scriopt is repalce my textarea html with an iframe

Re: making tinymce textarea read only

2009-04-22 Thread Swanthe Lindgren
I solved the problem by downloading the tinymce source from the svn repository together with the javascript lib from tinymce.moxiecode.com and repacking it. The latest version of the scripts handles the readonly option correct. //Swanthe tubin gen wrote: I am trying to make teaxarea with

Re: tinymce textarea

2009-04-22 Thread Swanthe Lindgren
I suggest that you display the text in a read only tinymce text area. TinyMCESettings mceSettings = new TinyMCESettings(Theme.advanced); mceSettings.addCustomSetting(readonly:true); This only works if you update the tinymce javascripts as in

Re: Tools for Managing a Wicket Project

2009-05-20 Thread Swanthe Lindgren
We use Aptana plugin for eclipse as html editor. If you dont install the full suit its free. //Swanthe Eduardo Nunes wrote: I have just one problem with eclipse, I can't use the HTML formatter, that's very sucks. I tried tidy but it didn't work too. What do you use guys to format html code?

Re: TextField hosting an Integer

2010-03-22 Thread Swanthe Lindgren
And add RangeValidator. //Swanthe On 2010-03-22 17:00, James Carman wrote: Change your property to Integer and not int? That way, it can be null (which would show up as empty on the text field). On Mon, Mar 22, 2010 at 11:09 AM, Steven Haineslyg...@yahoo.com wrote: Hi, I'm creating a

Re: TypeNotPresentException

2010-03-25 Thread Swanthe Lindgren
Look more like a REST deserialization problem then a wicket. Could it be that se.**.core.domain.KmsUser only is available in your back end server? We use an environment very much like yours, with a back end which we send REST request to from our wicket layer, and we don't use the same classes

Re: inmethod grid / Delete/add a row?

2010-04-27 Thread Swanthe Lindgren
That is a part of the inmethod grid I find very hard, as its based solely on a list of models. I haven't even found a way to know which row is selected, even less which row is next to the selected row, which can be very useful information when you wish to insert a row or select the row

Re: inmethod grid / Delete/add a row?

2010-04-28 Thread Swanthe Lindgren
The row model is probably easily accessible from your proposed delete column, but I don't know how to rerender a single row. //Swanthe On 2010-04-27 17:48, nino martinez wael wrote: True... I am in the process of doing my own delete column, and expect to have it working by tomorrow. I just

Re: DropDownChoice problem

2010-04-28 Thread Swanthe Lindgren
I had the same problem you do. Solved it by doing lstNationality.setDefaultModel(new PropertyModelNationality(getDefaultModel(), nationality)); but I bet you that Igor is gonna jump right in an say how its supposed to be done and why. //Swanthe On 2010-04-28 16:20, Josh Kamau wrote: Hi

OutOfMemoryError with lots of unit tests

2010-06-28 Thread Swanthe Lindgren
Hello Has someone got any good tips about performing lots of render tests? We are using TestNG and maven/surefire test runner which results in OutOfMemoryError for our about 500 tests, where each test tries to render a page or panel. After a bit of redesigning our test classes and call

Re: OutOfMemoryError with lots of unit tests

2010-06-29 Thread Swanthe Lindgren
forkModeonce/forkMode argLine-Xmx512m -XX:MaxPermSize=256m/argLine /configuration /plugin maybe check out the perTest forkMode. Regards, Peter 2010-06-28 11:08 keltezéssel, Swanthe Lindgren írta: Hello Has someone got any good tips about performing lots of render tests? We

DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
Hello I have a text field with jQuery DatePickerBehavior. When the page is loaded and the field is initially visible, the behavior works just fine. But when toggling the visibility from hidden to visible, the client function is gone. The little date packer icon is gone and so is the click

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
via JavaScript you will have to manually recreate it when making it visible Ernesto On Fri, Jan 21, 2011 at 12:11 PM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: Hello I have a text field with jQuery DatePickerBehavior. When the page is loaded and the field is initially visible

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
wiquery? If so, can you show me your code or send me a simplified Panel showing this behavior? I use wiquery datepickers on my applications in combination with via AJAX replacements and do not have this issue. Ernesto On Fri, Jan 21, 2011 at 12:41 PM, Swanthe Lindgren swanthe.lindg...@megasol.se

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
-http://www.google.com/codesearch/p?hl=en#pdLMIUTpzpE/trunk/src/main/java/org/odlabs/wiquery/ui/datepicker/DatePicker.java Ernesto On Fri, Jan 21, 2011 at 12:55 PM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: I have just changed to jQuery DatePickerBehavior from wicket extensions YUI