how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread SantiagoA
I have a TextField with some input. If a user deletes the input and submit the setter sets the value to NULL. How can i avoid this behavior and force an empty String to bet set? Thanks for any help! Santiago -- View this message in context:

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread SantiagoA
of the one you are using now? Best Ernesto On Wed, Feb 25, 2009 at 9:21 AM, SantiagoA s.auc...@gmx.de wrote: I have a TextField with some input. If a user deletes the input and submit the setter sets the value to NULL. How can i avoid this behavior and force an empty String to bet set

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread SantiagoA
A null value won´t work for me, because I have to Map these values via Castor to XML and as result null values were deleted in Castor. At this point I need an empty String to make sure the value is mapped in Castor. Thanks for the proposal anyway, the solution above (Ernestos proposal) works

AjaxUpdate broken after showing feedback in ModalWindow

2008-11-19 Thread SantiagoA
Hi all, I have a ModalWindow with some radios in it. Everytime a Radio is selected, an AjaxEventBehavior(onclick) is called which updates a special RadioGroup in that page. Everything works fine, as long as there are no errors and no feedback is shown. If I produce an Error, in that case it´s a

How to change the representation of a Date in a DateField

2008-09-24 Thread SantiagoA
I have a Problem with the representation of a Date in a DateField. the years is shown as YY, how can i change this to ? Problem is, if the year of the Date is 1941 it is represented as 41. if a user puts in a date like 1.1.41 (means 1941) it would be computed as 2041. To avoid that i want

Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread SantiagoA
On the site that holds the ModalWindow I have something like that: modalWindow.setContent(new modalWindowPanel(modalWindow.getContentId(), new ModalWindow.CloseButtonCallback(){ private static final long serialVersionUID = 4622180781771170962L; public boolean

Re: Ajax Feedback Problem in 1.3

2008-02-07 Thread SantiagoA
Done. https://issues.apache.org/jira/browse/WICKET-1325 -- View this message in context: http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p15331770.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Ajax Feedback Problem in 1.3

2008-02-06 Thread SantiagoA
Okay. I made a jira issue and attach one zipfile with both examples. JIRA-Issue WICKET-1325 Hope that works. Never worked with jira before. - rename your foo.zip to foo.iamzip and attach it to the email. -igor -- View this message in context:

Re: Ajax Feedback Problem in 1.3

2008-02-05 Thread SantiagoA
http://www.nabble.com/file/p15306186/ValidationTest1.iamzip ValidationTest1.iamzip http://www.nabble.com/file/p15306186/ValidationTest2.iamzip ValidationTest2.iamzip Sorry, have to make two zips, ´cause packed to one file was too big to upload. Ok. ValidationTest1 runs with wicket 1.3.0

Re: Ajax Feedback Problem in 1.3

2008-02-04 Thread SantiagoA
Hi again, I made a little example project with eclipse where you could take a look at the problem, because maybe my english is not good enough to explain right. Is there a possibility that I can send you the example as a zip-file? I made to little examples, one running with the 1.3.0 final

Re: Ajax enabled radiogroup

2008-01-14 Thread SantiagoA
Hi, what javascript method do you use? onclick, onMouseDown, onMouseUp? I add AjaxFormComponentUpdatingBehaviour(onchange) to Textfields and it works fine. Using Radios in radioGroup i had to use radio.add(new AjaxEventBehavior(onchange){ private static final long

Re: Ajax Feedback Problem in 1.3

2007-12-20 Thread SantiagoA
, cleaner way. Thanks for sharing your time, and btw Wicket is nevertheless a great framework and you guys do a great job on that. -Santiago igor.vaynberg wrote: is onupdate called? -igor On Dec 19, 2007 12:34 AM, SantiagoA [EMAIL PROTECTED] wrote: No exceptions in the console. Debug

Re: Ajax Feedback Problem in 1.3

2007-12-19 Thread SantiagoA
No exceptions in the console. Debug shows that the onError() is never called. -Santiago igor.vaynberg wrote: any exceptions in the log/console? seems pretty damn strange to me. can you verify onerror() is being called on the ajax behavior? -igor On Dec 18, 2007 11:27 PM, SantiagoA

Re: Form/Enter Key Problem

2007-12-19 Thread SantiagoA
'Enter' is bound to the default Button on your page. You can prevent the submit by adding some javascript, which intercepts the onKeyPress() public static final String JS_SUPPRESS_ENTER = if(event.keyCode==13 || window.event.keyCode==13){return

Re: FeedbackPanel and page refresh (f5) after submit

2007-12-19 Thread SantiagoA
feedbackMessages are stored to show them once, aftewards they were deleted. Perhaps, try to store them in your own List and feed the FeedbackPanel with the List when the page is displayed again. Maybe this work, i´m not sure about that. ;-) -Santiago Thomas Lutz wrote: Hi, First of all,

Re: Ajax Feedback Problem in 1.3

2007-12-18 Thread SantiagoA
wrote: On Dec 18, 2007 1:25 AM, SantiagoA [EMAIL PROTECTED] wrote: vwdComponent.add(new AjaxFormComponentUpdatingBehavior(onblur){ private static final long serialVersionUID = 4932149086847602955L; @Override protected void onUpdate(AjaxRequestTarget target

Ajax Feedback Problem in 1.3

2007-12-06 Thread SantiagoA
Hi, I have a FeedbackTextField which extends TextField and implements IValidator (build with 1.2.5). If the textfield lose the focus, an Ajax call is submitted. The Validator looks if the textfield is left empty and throws a FeedbackMessage and the backgroundcolor of the TextField changes to

Re: AjaxLazyLoadPanel in Beta3 is very lazy

2007-11-01 Thread SantiagoA
does make a server call then that server call will block until the lazy load is done. Because only 1 request can touch the page at the same time. johan On 10/30/07, SantiagoA [EMAIL PROTECTED] wrote: I have a Problem with the ALLP. I have a Table with some Radios in it and an ALLP

Problem with scriptaculous in wicket 1.3 beta3

2007-10-31 Thread SantiagoA
Hi, i try to use the Effect class of the scriptaculous jar in a testApp. My Code: Java: import org.wicketstuff.scriptaculous.effect.Effect; ... final StaticImage stimg = new StaticImage(fehler); AjaxLink al = new AjaxLink(clickImg) { private static final long serialVersionUID = 0L;

Re: Problem with scriptaculous in wicket 1.3 beta3

2007-10-31 Thread SantiagoA
Excuse me the HTML should look like: ... lt;a href=# wicket:id=clickImggt; lt;divgt; lt;img wicket:id=fehler src=/pics/fehler_404_gross.jpeg border=none /gt; lt;/divgt; lt;/agt; -- View this message in context:

Re: Problem with scriptaculous in wicket 1.3 beta3

2007-10-31 Thread SantiagoA
Thanks a lot, that was the solution! -- View this message in context: http://www.nabble.com/Problem-with-scriptaculous-in-wicket-1.3-beta3-tf4725430.html#a13511725 Sent from the Wicket - User mailing list archive at Nabble.com.

AjaxLazyLoadPanel in Beta3 is very lazy

2007-10-30 Thread SantiagoA
I have a Problem with the ALLP. I have a Table with some Radios in it and an ALLP on the same Site. So, if I click a Radio in the Table, the ALLP will be refreshed with detail Description of the Element clicked in the Table. My Problem is, that there is more functonality in the Page, which is

Re: Examples for AjaxLazyLoadPanel?

2007-10-16 Thread SantiagoA
Allright. Problem solved. Thanks for the help again. -- View this message in context: http://www.nabble.com/Examples-for-AjaxLazyLoadPanel--tf4632483.html#a13231668 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Examples for AjaxLazyLoadPanel?

2007-10-16 Thread SantiagoA
Because I have replaced a Panel by an AjaxLazyLoadPanel, I had to replace the ids for the targets at the other ajax-components too. That was just my fault. Example: Step 1: myPanel = new MyPanel(panelName, new PropertyModel(this,searchString), version); ... someAjax ... target(myPanel); ...

Re: Ajax Problem on Page with IFRAME

2007-10-02 Thread SantiagoA
Thank you for your help, it works with Wicket 1.3.0beta3. The migration was not quite easy, as i thought, but finally everything works, even the IFrame. -- View this message in context: http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12993964 Sent from the Wicket - User

Re: Ajax Problem on Page with IFRAME

2007-09-26 Thread SantiagoA
I use 1.2.6. Migrating the whole app will last for some time. I´ll post feedback when its done -- View this message in context: http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12902743 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread SantiagoA
Sorry, doesn´t work for me either. The Problem is, that the refreshing in the main-page does not work, if the particular Panel is active. The inputs and the ajax are nested in the main page, the panel shows a readonly Iframe with no inputs. thanks for help! -- View this message in context:

Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread SantiagoA
I have a mainpage with some inputfields with ajax in, a submitbutton and a TabbePanel with three panels. The panels are for output only. one of the panels holds an Iframe. you can change inputs and on submit the panels are refreshed with new outputs. If one of the panels without the Iframe is