Radio with compoundPropertyModel

2011-08-09 Thread Marco Aurélio Silva
Hi All I'm having problems to make a radio component work the way I need. I have a list of PhoneNumber objects: class PhoneNumber { String number; boolean default; } The list can have only one entry set as default value. I'm trying to make the radio button set the value of default in each

Re: Radio with compoundPropertyModel

2011-08-09 Thread Marco Aurélio Silva
) { CompoundPropertyModel model = new CompoundPropertyModel(phoneNumber); add(TextField(number), model.bind(number)); add(Radio(default, model.bind(default))); } Let me know if this works. Cheers, Rodrigo On Tue, Aug 9, 2011 at 6:48 PM, Marco Aurélio Silva marc...@gmail.com wrote: Hi All I'm having

Re: Radio with compoundPropertyModel

2011-08-09 Thread Marco Aurélio Silva
suggestion. On Tue, Aug 9, 2011 at 7:19 PM, Marco Aurélio Silva marc...@gmail.com wrote: Hi Rodrigo, Thanks for the fast response, but that approach didn't solve the problem. Actually, the problem is not the CompoundPropertyModel, if I use a PropertyModel instead it wouldn't work as well... in both

ReplaceWith don't works properly after call to AjaxTabbedPanel.setSelectedTab

2009-07-13 Thread Marco Aurélio Silva
Hi All I'm having a problem using replaceWith method on a panel. That panel is inside a tab on AjaxTabbedPanel, and everything works fine, except when I need to open the page with a tab selected (call to mypage.tabbedPanel.setSelectedTab), then the panel is replaced on the tab itself instead of be

Re: How to debug Back Button

2008-04-30 Thread Marco Aurélio Silva
] wrote: Just test the pagemap accessstack what exactly happens. Place a few breakpoints there, if you press the backbutton, then ie does a call to the server an ff doesnt? But that shouldnt be to much of a problem. That page just should be there. On 4/29/08, Marco Aurélio Silva [EMAIL

Re: How to debug Back Button

2008-04-29 Thread Marco Aurélio Silva
Move to 1.3 now is not an option :( On Mon, Apr 28, 2008 at 5:55 PM, Johan Compagner [EMAIL PROTECTED] wrote: Dont know why it is different in ie compared to ff, but do upgrade to 1.3 because then page expired are pretty much none excistent. On 4/28/08, Marco Aurélio Silva [EMAIL

Re: How to debug Back Button

2008-04-29 Thread Marco Aurélio Silva
(Integer.parseInt(id), versionNumber); the page returns null, that's why I got the page expired :/ Any suggestion? On Tue, Apr 29, 2008 at 9:35 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Move to 1.3 now is not an option :( On Mon, Apr 28, 2008 at 5:55 PM, Johan Compagner [EMAIL

How to debug Back Button

2008-04-28 Thread Marco Aurélio Silva
Hi All I'm using wicket 1.2.6 and I'm having problems with back button on IE. I can go back with back button of browser, but when I try to go forward, I get a Page Expired. The log is set to debug, but I can't find anything in log file to help me find out what is causing this. I don't know if

Re: Bug on modal window

2008-04-01 Thread Marco Aurélio Silva
/works any time/etc. Browsers are notorious for incompatible behavior for standards compliant markup. You just found out what happens with non-standards compliant markup. Martijn On 3/31/08, Marco Aurélio Silva [EMAIL PROTECTED] wrote: But it works fine on FF On Mon, Mar 31, 2008 at 5

Re: Bug on modal window

2008-03-31 Thread Marco Aurélio Silva
, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi all I found a bug in ModalWindow of wicket 1.2.6. If the markup of modalwindow is inside a tag p, the modal doesn't work on IE6 and IE7. I wrote a CMS componente where the user can insert links on the page. If user insert a link

Re: setEscapeModelStrings to false as default

2008-03-19 Thread Marco Aurélio Silva
will never contain the gt; -Matej On Wed, Mar 19, 2008 at 6:57 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi all Is there a way to set EscapeModelStrings to false in a global way (to all components)? I'm having problems with this. If the size of a column on database is 20

Formated integer in TextField

2008-02-13 Thread Marco Aurélio Silva
Hi All I'm having a problem with TextField on wicket 1.2.6. I must format the integer numbers, so, when the number is 123456780 it will be formated as 123,456,789 or 123.456.789 (according to user locale). The problem is that when I submit the form, the validation fails because 123,456,789 is

Re: Problems with ResourceModel and StringResourceModel

2008-02-07 Thread Marco Aurélio Silva
MyApplication()); -igor On Feb 6, 2008 9:11 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: How to make it use my application subclass? WicketTester.set(Application application) trow this exception: wicket.WicketRuntimeException: Use Application.init() method for configuring your

Problems with ResourceModel and StringResourceModel

2008-02-06 Thread Marco Aurélio Silva
Hi all I'm writing test cases for my wicket application (1.2.6), and I'm having problems with the ResourceModel and StringResourceModel. It seems like when loaded by a WicketTester (with startPage method) these components doesn't load the global resource file MyApplication.properties. If I put

Re: Problems with ResourceModel and StringResourceModel

2008-02-06 Thread Marco Aurélio Silva
) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) On Feb 6, 2008 1:55 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: you have to make wicket tester use _your_ application subclass -igor On Feb 6, 2008 8:50 AM, Marco Aurélio Silva [EMAIL

How to load application resource properties on Junit test

2008-02-01 Thread Marco Aurélio Silva
Hi all I'm writing some test cases for my wicket application, and I got the follow exception: Caused by: java.util.MissingResourceException: Unable to find resource: home for component: pathway:repeater:i_want_to:stepLink:stepColor at wicket.Localizer.getString(Localizer.java:262)

I18N - WicketMessageResolver is not looking on default language file

2008-01-17 Thread Marco Aurélio Silva
Hi All In my application I have 2 properties file: MKBApplication.properties and MKBApplication_nl.properties When the browser is set to other language than Dutch, everything is working fine. But, when the language is Dutch, wicket is not showing the labels that are not on MKBApplication_nl

Re: I18N - WicketMessageResolver is not looking on default language file

2008-01-17 Thread Marco Aurélio Silva
Sorry, I forgot this detail. I'm using version 1.2.6 Thank you On Jan 17, 2008 12:47 PM, Johan Compagner [EMAIL PROTECTED] wrote: Which version of wicket? On 1/17/08, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi All In my application I have 2 properties file

How to create a PDF file - NotSerializableException

2008-01-15 Thread Marco Aurélio Silva
Hi I'm trying to create a PDF file with Jasper inside a page with wicket 1.2.6, but I'm getting an exception: Root cause: java.io.NotSerializableException: org.apache.catalina.core.ApplicationContextFacade . . Complete stack: wicket.WicketRuntimeException: Internal error cloning object. Make

Date validation

2008-01-08 Thread Marco Aurélio Silva
Hi I'm having problems with validation on a date field. Is there a easy way to validate user input on date fields? If user types a invalid date like 32-01-2008 I got a ConversionException: wicket.util.convert.ConversionException: Cannot parse '32-01-2008' using format [EMAIL PROTECTED] at

Re: Date validation

2008-01-08 Thread Marco Aurélio Silva
On Jan 8, 2008 9:34 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I'm having problems with validation on a date field. Is there a easy way to validate user input on date fields? If user types a invalid date like 32-01-2008 I got a ConversionException

Re: Date validation

2008-01-08 Thread Marco Aurélio Silva
Simple solution... thank you! On Jan 8, 2008 12:38 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: You should set the type to Date by either using the appropriate constructor or by calling setType. Eelco On Jan 8, 2008 10:16 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Wicket 1.2.6

SubmitLink on Firefox

2007-12-26 Thread Marco Aurélio Silva
Hi I'm trying to use a SubmitLink to submit a form, but it is not working on Firefox. I get the follow message: f.submit is not a function Inspecting the code generated by wicket, I noticed that on firefox the call to line 9 ( f.submit() ) is calling the element e, because the instruction on

Re: SubmitLink on Firefox

2007-12-26 Thread Marco Aurélio Silva
The problem was on the submitLink ID. I was using the ID submit. Changing the id to submitButton solved the problem. Thank you Marco On Dec 26, 2007 10:21 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I'm trying to use a SubmitLink to submit a form, but it is not working on Firefox. I

HTML code inside language file

2007-12-12 Thread Marco Aurélio Silva
Hi I'm trying to use some HTML codes with internationalized page. For example, some texts have words in italic and I need to use the i tag. But when wicket renders the text the i tag is showed on screen instead make the word italic. Any suggestion? Thank you Marco

Re: HTML code inside language file

2007-12-12 Thread Marco Aurélio Silva
And is there a way to this without a label, houst with the wicket:message? On Dec 12, 2007 1:23 PM, Sébastien Piller [EMAIL PROTECTED] wrote: Marco Aurélio Silva a écrit : Hi I'm trying to use some HTML codes with internationalized page. For example, some texts have words in italic

Submit form and close Modal Window

2007-11-15 Thread Marco Aurélio Silva
Hi I'm having problems to close a modal window after submit the form. What I need to do is: do a search if search result is empty show a message in modal window else, close the modal window The problem is that to make the search I must submit the form to get the values, and to close the window

Re: Add fields Dynamically

2007-11-14 Thread Marco Aurélio Silva
answers. Then add such a panel repeatedly, perhaps with a ListView. - Scott On Nov 13, 2007 10:58 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I need to add fields to a page dynamically. I neet do build something like a survey where the questions and answers are stored

Add fields Dynamically

2007-11-13 Thread Marco Aurélio Silva
Hi I need to add fields to a page dynamically. I neet do build something like a survey where the questions and answers are stored on the database, so they can be changed by the administrator because this I can't create the HTML file with the fields Is there a way to do this? Thank you

Re: Add fields Dynamically

2007-11-13 Thread Marco Aurélio Silva
. On Nov 13, 2007 12:58 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I need to add fields to a page dynamically. I neet do build something like a survey where the questions and answers are stored on the database, so they can be changed by the administrator because this I

Re: Add fields Dynamically

2007-11-13 Thread Marco Aurélio Silva
. Then add such a panel repeatedly, perhaps with a ListView. - Scott On Nov 13, 2007 10:58 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I need to add fields to a page dynamically. I neet do build something like a survey where the questions and answers are stored

Form values from Panel

2007-11-08 Thread Marco Aurélio Silva
Hi all I have a Panel that is open with a ModalWindow, and when it is closed the main page is updated. The problem is that I can't get the values from dropDowns of panel, they are coming always null. Is there something I'm doing wrong? Is possible to use Form on Panel? Thanks in advance! Marco

Re: Make PageableListView row click

2007-11-06 Thread Marco Aurélio Silva
='red';this.style.cursor='pointer' onmouseout=this.style.background='white'; onclick=alert('bang') tdTest/td tdTest/td tdTest/td tdTest/td /tr /table (Source: http://radio.javaranch.com/pascarello/2004/12/30/1104419159000.html) Marco Aurélio Silva wrote: Hi all

Re: Make PageableListView row click

2007-11-06 Thread Marco Aurélio Silva
Is there a way to do it without javascript? Thanks On Nov 6, 2007 3:27 PM, Al Maw [EMAIL PROTECTED] wrote: Marco Aurélio Silva wrote: I'm using a PageableListView component and I want to make each row of the list clickable. I don't want to add a column with a label like details, I just