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:
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
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
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
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
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
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.
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:
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
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
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
, 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
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
'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
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,
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
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
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
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;
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:
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.
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
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.
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);
...
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
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.
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:
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
28 matches
Mail list logo