Re: AjaxLink onclick being called twice

2011-07-20 Thread wic...@geofflancaster.com
Clint,

The behavior I'm seeing is that I click the link once but see the onClick
method triggered twice.

Modal window has a shown variable to detect if a modal window is already
being displayed. It looks like the first time onClick fires and calls the
modal's show() method it sets shown to true. Immediately after, onClick is
triggered again. Modal window returns nothing if shown is true which makes
the second onClick's results empty, and is being passed back to the page.
The modal is never actually shown as a result of this empty ajax-response
that the browser receives.

Thanks

Original Message:
-
From: Clint Checketts checke...@gmail.com
Date: Tue, 19 Jul 2011 21:12:35 -0500
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: AjaxLink onclick being called twice


So you click the link and the modal displays, you dismiss the modal, click
the link again and nothing happens?

Is the behavior consistent across browsers?

-Clint

On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 Has anyone had any problems using an AjaxLink where the onclick method is
 being called twice?

 I'm trying to use an AjaxLink to load a ModalWindow but the second time
 it's being called, the ModalWindow thinks that the window has already
 loaded so it returns nothing.

 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxLink onclick being called twice

2011-07-20 Thread wic...@geofflancaster.com
Clint,

The behavior I'm seeing is that I click the link once but see the onClick
method triggered twice.

Modal window has a shown variable to detect if a modal window is already
being displayed. It looks like the first time onClick fires and calls the
modal's show() method it sets shown to true. Immediately after, onClick is
triggered again. Modal window returns nothing if shown is true which makes
the second onClick's results empty, and is being passed back to the page.
The modal is never actually shown as a result of this empty ajax-response
that the browser receives.

Thanks

Original Message:
-
From: Clint Checketts checke...@gmail.com
Date: Tue, 19 Jul 2011 21:12:35 -0500
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: AjaxLink onclick being called twice


So you click the link and the modal displays, you dismiss the modal, click
the link again and nothing happens?

Is the behavior consistent across browsers?

-Clint

On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 Has anyone had any problems using an AjaxLink where the onclick method is
 being called twice?

 I'm trying to use an AjaxLink to load a ModalWindow but the second time
 it's being called, the ModalWindow thinks that the window has already
 loaded so it returns nothing.

 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxLink onclick being called twice

2011-07-20 Thread wic...@geofflancaster.com
Clint,

The behavior I'm seeing is that I click the link once but see the onClick
method triggered twice.

Modal window has a shown variable to detect if a modal window is already
being displayed. It looks like the first time onClick fires and calls the
modal's show() method it sets shown to true. Immediately after, onClick is
triggered again. Modal window returns nothing if shown is true which makes
the second onClick's results empty, and is being passed back to the page.
The modal is never actually shown as a result of this empty ajax-response
that the browser receives.

Thanks

Original Message:
-
From: Clint Checketts checke...@gmail.com
Date: Tue, 19 Jul 2011 21:12:35 -0500
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: AjaxLink onclick being called twice


So you click the link and the modal displays, you dismiss the modal, click
the link again and nothing happens?

Is the behavior consistent across browsers?

-Clint

On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 Has anyone had any problems using an AjaxLink where the onclick method is
 being called twice?

 I'm trying to use an AjaxLink to load a ModalWindow but the second time
 it's being called, the ModalWindow thinks that the window has already
 loaded so it returns nothing.

 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxLink onclick being called twice

2011-07-20 Thread wic...@geofflancaster.com
Clint,

The behavior I'm seeing is that I click the link once but see the onClick
method triggered twice.

Modal window has a shown variable to detect if a modal window is already
being displayed. It looks like the first time onClick fires and calls the
modal's show() method it sets shown to true. Immediately after, onClick is
triggered again. Modal window returns nothing if shown is true which makes
the second onClick's results empty, and is being passed back to the page.
The modal is never actually shown as a result of this empty ajax-response
that the browser receives.

Thanks

Original Message:
-
From: Clint Checketts checke...@gmail.com
Date: Tue, 19 Jul 2011 21:12:35 -0500
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: AjaxLink onclick being called twice


So you click the link and the modal displays, you dismiss the modal, click
the link again and nothing happens?

Is the behavior consistent across browsers?

-Clint

On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 Has anyone had any problems using an AjaxLink where the onclick method is
 being called twice?

 I'm trying to use an AjaxLink to load a ModalWindow but the second time
 it's being called, the ModalWindow thinks that the window has already
 loaded so it returns nothing.

 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxLink onclick being called twice

2011-07-20 Thread wic...@geofflancaster.com
Clint,

The behavior I'm seeing is that I click the link once but see the onClick
method triggered twice.

Modal window has a shown variable to detect if a modal window is already
being displayed. It looks like the first time onClick fires and calls the
modal's show() method it sets shown to true. Immediately after, onClick is
triggered again. Modal window returns nothing if shown is true which makes
the second onClick's results empty, and is being passed back to the page.
The modal is never actually shown as a result of this empty ajax-response
that the browser receives.

Thanks

Original Message:
-
From: Clint Checketts checke...@gmail.com
Date: Tue, 19 Jul 2011 21:12:35 -0500
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: AjaxLink onclick being called twice


So you click the link and the modal displays, you dismiss the modal, click
the link again and nothing happens?

Is the behavior consistent across browsers?

-Clint

On Tue, Jul 19, 2011 at 4:18 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 Has anyone had any problems using an AjaxLink where the onclick method is
 being called twice?

 I'm trying to use an AjaxLink to load a ModalWindow but the second time
 it's being called, the ModalWindow thinks that the window has already
 loaded so it returns nothing.

 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxLink onclick being called twice

2011-07-19 Thread wic...@geofflancaster.com
Has anyone had any problems using an AjaxLink where the onclick method is
being called twice? 

I'm trying to use an AjaxLink to load a ModalWindow but the second time
it's being called, the ModalWindow thinks that the window has already
loaded so it returns nothing.


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxLink onclick being called twice

2011-07-19 Thread wic...@geofflancaster.com
Has anyone had any problems using an AjaxLink where the onclick method is
being called twice? 

I'm trying to use an AjaxLink to load a ModalWindow but the second time
it's being called, the ModalWindow thinks that the window has already
loaded so it returns nothing.


mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxLink onclick being called twice

2011-07-19 Thread wic...@geofflancaster.com
Has anyone had any problems using an AjaxLink where the onclick method is
being called twice? 

I'm trying to use an AjaxLink to load a ModalWindow but the second time
it's being called, the ModalWindow thinks that the window has already
loaded so it returns nothing.


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxLink onclick being called twice

2011-07-19 Thread wic...@geofflancaster.com
Has anyone had any problems using an AjaxLink where the onclick method is
being called twice? 

I'm trying to use an AjaxLink to load a ModalWindow but the second time
it's being called, the ModalWindow thinks that the window has already
loaded so it returns nothing.


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



spring 3.1 wicket auth integration

2011-02-28 Thread wic...@geofflancaster.com
Can anyone point me to a tutorial or example on getting spring 3.x setup
and working with wicket-auth-roles for an AuthenticatedWebApplication?

Thanks in advance.


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



saving datetextfield values on ajax refresh

2010-04-05 Thread wic...@geofflancaster.com
here's the scenario, i have a datetextfield that when the page gets updated
via ajax, the datatextfield values get reset and are no longer what they
changed to.

i've tried adding an onchange behavior to the datefield to update the
modelobject when the field is changed but have had no luck.


anyone else had this problem?

can you maybe give me a code snippet to work with?

thanks


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: saving datetextfield values on ajax refresh

2010-04-05 Thread wic...@geofflancaster.com
along with the datetextfield i have a dropdownchoice menu. the page updates
based on the item selected in the dropdown which updates a list menu.

Original Message:
-
From: Martin Makundi martin.maku...@koodaripalvelut.com
Date: Mon, 5 Apr 2010 18:40:15 +0300
To: users@wicket.apache.org
Subject: Re: saving datetextfield values on ajax refresh


What initiates ajax-updating the page? What do you update?

Few solutions:
a) use listview.setreuseitems
b) use a formcomponentreusemanager
c) use an AjaxFormSubmittingChangeListenerBehavior

**
Martin

2010/4/5 wic...@geofflancaster.com wic...@geofflancaster.com:
 here's the scenario, i have a datetextfield that when the page gets
updated
 via ajax, the datatextfield values get reset and are no longer what they
 changed to.

 i've tried adding an onchange behavior to the datefield to update the
 modelobject when the field is changed but have had no luck.


 anyone else had this problem?

 can you maybe give me a code snippet to work with?

 thanks

 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: saving datetextfield values on ajax refresh

2010-04-05 Thread wic...@geofflancaster.com
My issue is not with a dropdownchoice itself, the dropdown functionality
works fine. its when i repaint the panel, the textfield loses its changed
values and reverts to the default model.

Original Message:
-
From: Martin Makundi martin.maku...@koodaripalvelut.com
Date: Mon, 5 Apr 2010 20:08:27 +0300
To: users@wicket.apache.org
Subject: Re: saving datetextfield values on ajax refresh


In that case you need this:

http://mail-archives.apache.org/mod_mbox/wicket-users/201001.mbox/%3C3031415
51001032147u239d89d7w26bf26b814296...@mail.gmail.com%3e

2010/4/5 wic...@geofflancaster.com wic...@geofflancaster.com:
 along with the datetextfield i have a dropdownchoice menu. the page
updates
 based on the item selected in the dropdown which updates a list menu.

 Original Message:
 -
 From: Martin Makundi martin.maku...@koodaripalvelut.com
 Date: Mon, 5 Apr 2010 18:40:15 +0300
 To: users@wicket.apache.org
 Subject: Re: saving datetextfield values on ajax refresh


 What initiates ajax-updating the page? What do you update?

 Few solutions:
 a) use listview.setreuseitems
 b) use a formcomponentreusemanager
 c) use an AjaxFormSubmittingChangeListenerBehavior

 **
 Martin

 2010/4/5 wic...@geofflancaster.com wic...@geofflancaster.com:
 here's the scenario, i have a datetextfield that when the page gets
 updated
 via ajax, the datatextfield values get reset and are no longer what they
 changed to.

 i've tried adding an onchange behavior to the datefield to update the
 modelobject when the field is changed but have had no luck.


 anyone else had this problem?

 can you maybe give me a code snippet to work with?

 thanks

 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



automatic palette sorting

2010-03-31 Thread wic...@geofflancaster.com
Is there a way to automatically sort the available and selected items in a
palette as they are changed?


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



add attributes to options elements within a palette

2010-03-02 Thread wic...@geofflancaster.com
Is it possible to add attributes to elements within a palette?

I'd like to assign the title attribute so i can have tooltips.


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



nested fragments?

2010-02-26 Thread wic...@geofflancaster.com
is it possible to have nested fragments?

does anyone have a code snippet they can share? when i try to add the new
fragment to the existing fragment i get an error stating:

WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).

1. [MarkupContainer [Component id = outerFragment]]
2. [MarkupContainer [Component id = innerFragment]]

Root cause:

org.apache.wicket.WicketRuntimeException: The component(s) below failed to
render. A common problem is that you have added a component in code but
forgot to reference it in the markup (thus the component will never be
rendered).

1. [MarkupContainer [Component id = outerFragment]]
2. [MarkupContainer [Component id = innerFragment]]

at org.apache.wicket.Page.checkRendering(Page.java:1162)
at org.apache.wicket.Page.endComponentRender(Page.java:430)
at
org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.
java:836)
at
org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget
.java:680)
at
org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)

...


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: nested fragments?

2010-02-26 Thread wic...@geofflancaster.com
Ok, So I have a repeater that repeats different fragments many times. One
of the fragments has a sub-fragment. 

On another note, a fragment may not be the best solution to my problem.
Essentially I want to be able to show/hide a piece of HTML depending on a
previous form selection.

ie. in a drop down, when it changes, add a list that has the associated
values. if a selection is chosen that has no associated values, hide the
list. 



Here is my code so far attempting to use a fragment:

JAVA:

outerFragment = new Fragment(paletteRepeater.newChildId()   
,fragment,form);

throttleMemFragment.add(getPalette());
throttleMemFragment.setOutputMarkupId(true);
paletteRepeater.addOrReplace(throttleMemFragment);


sampleTypeSelect = new ListMultipleChoiceString(sampleTypeSelect,new
ArrayList());
OnChangeAjaxBehavior metricDropDownBehavior = new 
OnChangeAjaxBehavior(){
protected void onUpdate(AjaxRequestTarget 
target){
String selection = 
metricDropDown.getDefaultModelObjectAsString();
List metrics = 
(List)menuMap.get(selection);

metricSelect.setChoices(metrics);
Fragment innerFragment= new
Fragment(outerFragment,innerFragment,form); 

sampleTypeFragment.add(sampleTypeSelect);

if(sampleTypeMap.containsKey(selection)){

sampleTypeSelect.setChoices((List)sampleTypeMap.get(selection));

outerFragment.add(sampleTypeFragment);

sampleTypeSelect.setRequired(true);
}
else 
if(outerFragment.contains(sampleTypeSelect, true)){

outerFragment.remove(sampleTypeFragment);

sampleTypeSelect.setRequired(false);
}



target.addComponent(paletteRepeater.getParent());
}
};


HTML:

wicket:fragment wicket:id=outerFragment
div id=dateTimeDiv
table width=470px
tr
tdbMetric:/b/td
td colspan=4select wicket:id=metricSelect size=5
multiple=true/select/td
/tr
/table
/div
/wicket:fragment

wicket:fragment wicket:id=innerFragment
tr
tdbSample Type:/b/td
td colspan=4select 
wicket:id=sampleTypeSelect/select/td
/tr
/wicket:fragment
div wicket:id=paletteRepeater
/div


Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Fri, 26 Feb 2010 08:42:34 -0800
To: users@wicket.apache.org
Subject: Re: nested fragments?


On Fri, Feb 26, 2010 at 8:12 AM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 is it possible to have nested fragments?

 does anyone have a code snippet they can share?

maybe you can share more of your code

-igor

when i try to add the new
 fragment to the existing fragment i get an error stating:

 WicketMessage: The component(s) below failed to render. A common problem
is
 that you have added a component in code but forgot to reference it in the
 markup (thus the component will never be rendered).

 1. [MarkupContainer [Component id = outerFragment]]
 2. [MarkupContainer [Component id = innerFragment]]

 Root cause:

 org.apache.wicket.WicketRuntimeException: The component(s) below failed to
 render. A common problem is that you have added a component in code but
 forgot to reference it in the markup (thus the component will never be
 rendered).

 1. [MarkupContainer [Component id = outerFragment]]
 2. [MarkupContainer [Component id = innerFragment]]

 at org.apache.wicket.Page.checkRendering(Page.java:1162)
 at org.apache.wicket.Page.endComponentRender(Page.java:430)
 at

org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.
 java:836)
 at

org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget
 .java:680)
 at

org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)

 ...

 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

add form components via ajax

2010-02-11 Thread wic...@geofflancaster.com
I'm trying to add form components to a form using ajax. i've set
setMarkupId(true); on the form but when I run it, i get an error saying
cannot update component that does not have setOutputMarkupId property set
to true. Component: [MarkupContainer [Component id = realTimeForm...

So basically when someone moves 1 or more selections from the available to
the selected side of the palette, i want it to add another palette to the
form.

Code Snippet:

List valueList = new ArrayList(); // this actually has values 
IChoiceRenderer renderer = new ChoiceRenderer();
Palette palette = new Palette(palette, new Model(new ArrayList()), new
Model(valueList), renderer, 5, false){
@Override
protected Recorder newRecorderComponent() {
Recorder rec = super.newRecorderComponent();
rec.setRequired(true);
rec.add(new AjaxFormComponentUpdatingBehavior(onchange) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
Palette newPalette = new
Palette(newPalette,new Model(new ArrayList()),new Model(new
ArrayList()),renderer,5,false);
target.addComponent(newPalette);
}
});
return rec;
}
};

public Constructor(){
Form form = new Form(realTimeForm);
form.setOutputMarkupId(true);  //enable ajax on the form
form.add(palette);
add(form);
}


myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: (my code palette) how to set default options in object palette

2010-02-02 Thread wic...@geofflancaster.com
to predefine the selected users you have to insert them into the model.

define your palette as:
final Palette palette = new Palette(palette, new
ListModelPerson(lSelected), new CollectionModelPerson(persons),
renderer, 10, true);

to filter using that javascript you will need to edit the js a bit to make
it work. instead of having it use document.getElementById('paletteName')
you will need to use document.getElementsByName('(containerName if you have
one):paletteName:choices')[0]

the correct string to use can be found by looking at your html source that
wicket renders. the line will start select class=choicesSelect
name=THIS IS THE STRING YOU WANT ...

Good luck.


Original Message:
-
From: victorTrapiello vic...@trapiello.net
Date: Sun, 31 Jan 2010 12:19:14 -0800 (PST)
To: users@wicket.apache.org
Subject: Re: (my code palette) how to set default options in object palette



Thank you very much I will try to do it

victorTrapiello wrote:
 
 Thank you very mucv Nino, but what do you mena by a quick start¿? I´m
new
 in this comunity.
 
 nino martinez wael wrote:
 
 Ok Victor next step for you would be to create a quickstart.. So we can
 play
 with it.. I've sure had this working with wicket 1.2 / 1.3 soo should
 still
 be the case.
 
 2010/1/29 victorTrapiello vic...@trapiello.net
 

 I does not work, I think the key point is my

 IChoiceRenderer renderer = new ChoiceRenderer(fullName, fullName);

 i leave it empty and it works for the available subject but not for the
 predefined!

 any more thoughts¿?

 Thank you very much guys



 nino martinez wael wrote:
 
  Form f=new Form(form);
  add(f);
  List persons = ComponentReferenceApplication.getPersons();;
  IChoiceRenderer renderer = new ChoiceRenderer(fullName,
 fullName);
  final Palette palette = new Palette(palette, new
  ListModelPerson(new
  ArrayListPerson()), new CollectionModelPerson(
persons), renderer, 10, true);
  palette.setmodelObject or something like that.
 
  2010/1/29 victorTrapiello vic...@trapiello.net
 
 
  well I have defined my palette component like this:
 
  asignString is an string linst with the available subjects (It works
  fine,
  the palette shows the proper subjects, but it doesn´t show the
 default
  selected one which I save them in the list lSelected
 
   IChoiceRenderer renderer = new ChoiceRenderer(, );
   ListString lSelected=new ArrayList();
 lSelected.add(predefined);
 Model aux=new Model();
 aux.setObject((Serializable) lSelected);
 
 final Palette palette = new Palette(palette, aux, new Model(
 (Serializable) asignString), renderer, 10, true);
 
  Any thought¿?
 
  thankyou in advance
 
 
  James Carman-3 wrote:
  
   Make sure your model reflects the selected state.  Palette will
 pick
   that up automatically
  
   On Sat, Jan 23, 2010 at 12:50 PM, victorTrapiello
  vic...@trapiello.net
   wrote:
  
  
   I use the palette component, to assigne option to a User. but I
 don't
   find a functionnality, how to set already selected option ?.
  
   Exemple : a user selected option, I store it into a database:
   In the future, the user want to update his option, at the moment
 he
   doesn't see his previous selected option.
  
Do you have a solution.¿?, doe sir make sense¿?
  
   cheers!!
  
   quote author=MartinM
   Well.. you can override newChoicesComponent
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
   yes, i can setMarkupId for Palette. but now i want to filter for
   palette's
   choicesComponent.
  
   there is no public getChoicesComponent() method for
 choicesComponent.
  
  
  
   2009/4/28 Martin Makundi martin.maku...@koodaripalvelut.com
  
   Why cannot get markupid? You can determine it yourself
 (setMarkupId)
  
   You could also update via ajax using a textfield which sends the
   filtered text to server and server updates the select via
 ajax...
  
   I wonder if someone has made a select in which the filter is
  visually
   built into the select component?
  
   **
   Martin
  
   2009/4/28 新希望软件 -- 俞宏伟 nhsoft@gmail.com:
I want to add a filter for palette choice list, because 
 choice
  list
have a
very large HTML SELECT list.
   
I found that there is a select filter implement(
http://www.barelyfitz.com/projects/filterlist/index.php/1),
 but
 i
  can
   not
get select component markupid, so filter can not init.
   
--
   
H. L. Mencken 
   http://www.brainyquote.com/quotes/authors/h/h_l_mencken.html
- It is even harder for the average ape to believe that he
 has
descended
from man.
   
  
  
  -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
 -
   To unsubscribe, 

DatePicker css

2010-02-02 Thread wic...@geofflancaster.com
Is it possible to edit the datepicker css? the datepicker is displaying
behind some other components on my page and i'd like to set the z-index so
it display on top of everything.


mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: palette onSubmit

2010-01-21 Thread wic...@geofflancaster.com
Are there any other solutions? palette.getrecorder().getconvertedinput()
returns a String, i need it to return a serialized list of selected
components so that i can iterate through them

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 19 Jan 2010 15:32:13 -0800
To: users@wicket.apache.org
Subject: Re: palette onSubmit


you can get the items using palette.getrecorder().getconvertedinput()

-igor

On Tue, Jan 19, 2010 at 3:27 PM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 well if the form doesn't validate it calls the onError method which
 doesnt actually submit the form, hence the selected items aren't saved.

 at the time the user types into the textfield, the entire form has yet to
 be filled out so validation will always fail.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 15:11:43 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 why would you want? simply do not repaint the feedback panel...

 -igor

 On Tue, Jan 19, 2010 at 3:07 PM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 is there any way i can get around form validation using
 ajaxformsubmitbehavior?

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 14:19:28 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 you should use ajaxformsubmitbehavior instead - that way all the
 values are submitted.

 -igor

 On Tue, Jan 19, 2010 at 2:11 PM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 right, they do stay after a submit. but when i use an
 OnChangeAjaxBehavior
 on another field of the form, it isn't actually functioning as a submit
 so
 the palette gets refreshed and loses the selected items.

 (I'm still trying to narrow down the available items in a palette using
a
 textfield so i'm trying to get it to mimic a submit without actually
 submitted because a submit would require form validation which won't
pass
 at the time the palette is used)

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 12:14:57 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 if you set up your models properly then selected items stay selected.
 eg [1] where selected items stay selected after submit button is
 pressed

 [1]



http://wicketstuff.org/wicket/compref/?wicket:bookmarkablePage=:org.apache.w
 icket.examples.compref.PalettePage

 -igor

 On Tue, Jan 19, 2010 at 11:45 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Is there a document anywhere that would show me that workflow?

 I'm trying to force an OnChangeAjaxBehavior to do some of the methods
 executed during a submit on a palette to make the selected items stay
 selected.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 10:31:44 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 Recorder is a HiddenField-FormComponent so the regular form component
 workflow methods are called on it.

 -igor

 On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Can anyone tell me which methods are called on a palette when it is
 submitted?

 i know the recorder keeps track of the selected items but how are they
 persisted after a form submit? ie. what method is called to make them
 stay
 selected?

 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web - Check your email from the web at
 http://link.mail2web.com/mail2web



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: palette onSubmit

2010-01-21 Thread wic...@geofflancaster.com
Is there any way I can override what happens when the user adds or removes
an item to/from the selected list? i know its done via javascript but is it
possible to have an ajax call that calls a method where I can manually keep
track of what is being added or removed?

Original Message:
-
From: wic...@geofflancaster.com wic...@geofflancaster.com
Date: Thu, 21 Jan 2010 17:35:53 -0500
To: users@wicket.apache.org
Subject: Re: palette onSubmit


Are there any other solutions? palette.getrecorder().getconvertedinput()
returns a String, i need it to return a serialized list of selected
components so that i can iterate through them

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 19 Jan 2010 15:32:13 -0800
To: users@wicket.apache.org
Subject: Re: palette onSubmit


you can get the items using palette.getrecorder().getconvertedinput()

-igor

On Tue, Jan 19, 2010 at 3:27 PM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 well if the form doesn't validate it calls the onError method which
 doesnt actually submit the form, hence the selected items aren't saved.

 at the time the user types into the textfield, the entire form has yet to
 be filled out so validation will always fail.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 15:11:43 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 why would you want? simply do not repaint the feedback panel...

 -igor

 On Tue, Jan 19, 2010 at 3:07 PM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 is there any way i can get around form validation using
 ajaxformsubmitbehavior?

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 14:19:28 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 you should use ajaxformsubmitbehavior instead - that way all the
 values are submitted.

 -igor

 On Tue, Jan 19, 2010 at 2:11 PM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 right, they do stay after a submit. but when i use an
 OnChangeAjaxBehavior
 on another field of the form, it isn't actually functioning as a submit
 so
 the palette gets refreshed and loses the selected items.

 (I'm still trying to narrow down the available items in a palette using
a
 textfield so i'm trying to get it to mimic a submit without actually
 submitted because a submit would require form validation which won't
pass
 at the time the palette is used)

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 12:14:57 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 if you set up your models properly then selected items stay selected.
 eg [1] where selected items stay selected after submit button is
 pressed

 [1]



http://wicketstuff.org/wicket/compref/?wicket:bookmarkablePage=:org.apache.w
 icket.examples.compref.PalettePage

 -igor

 On Tue, Jan 19, 2010 at 11:45 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Is there a document anywhere that would show me that workflow?

 I'm trying to force an OnChangeAjaxBehavior to do some of the methods
 executed during a submit on a palette to make the selected items stay
 selected.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 10:31:44 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 Recorder is a HiddenField-FormComponent so the regular form component
 workflow methods are called on it.

 -igor

 On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Can anyone tell me which methods are called on a palette when it is
 submitted?

 i know the recorder keeps track of the selected items but how are they
 persisted after a form submit? ie. what method is called to make them
 stay
 selected?

 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web - Check your email from the web at
 http://link.mail2web.com/mail2web



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

recorder component onsubmit

2010-01-19 Thread wic...@geofflancaster.com
Can anyone tell me the difference between what's called when a recorder
component is called on a palette selecting an item and when a form is
submitted?


i'm trying to have the model of a palette updated outside of a form submit
method.


mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
Can anyone tell me which methods are called on a palette when it is
submitted?

i know the recorder keeps track of the selected items but how are they
persisted after a form submit? ie. what method is called to make them stay
selected?


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
Is there a document anywhere that would show me that workflow?

I'm trying to force an OnChangeAjaxBehavior to do some of the methods
executed during a submit on a palette to make the selected items stay
selected.

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 19 Jan 2010 10:31:44 -0800
To: users@wicket.apache.org
Subject: Re: palette onSubmit


Recorder is a HiddenField-FormComponent so the regular form component
workflow methods are called on it.

-igor

On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 Can anyone tell me which methods are called on a palette when it is
 submitted?

 i know the recorder keeps track of the selected items but how are they
 persisted after a form submit? ie. what method is called to make them stay
 selected?

 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
right, they do stay after a submit. but when i use an OnChangeAjaxBehavior
on another field of the form, it isn't actually functioning as a submit so
the palette gets refreshed and loses the selected items.

(I'm still trying to narrow down the available items in a palette using a
textfield so i'm trying to get it to mimic a submit without actually
submitted because a submit would require form validation which won't pass
at the time the palette is used)

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 19 Jan 2010 12:14:57 -0800
To: users@wicket.apache.org
Subject: Re: palette onSubmit


if you set up your models properly then selected items stay selected.
eg [1] where selected items stay selected after submit button is
pressed

[1]
http://wicketstuff.org/wicket/compref/?wicket:bookmarkablePage=:org.apache.w
icket.examples.compref.PalettePage

-igor

On Tue, Jan 19, 2010 at 11:45 AM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 Is there a document anywhere that would show me that workflow?

 I'm trying to force an OnChangeAjaxBehavior to do some of the methods
 executed during a submit on a palette to make the selected items stay
 selected.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 10:31:44 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 Recorder is a HiddenField-FormComponent so the regular form component
 workflow methods are called on it.

 -igor

 On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Can anyone tell me which methods are called on a palette when it is
 submitted?

 i know the recorder keeps track of the selected items but how are they
 persisted after a form submit? ie. what method is called to make them
stay
 selected?

 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web - Check your email from the web at
 http://link.mail2web.com/mail2web



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
is there any way i can get around form validation using
ajaxformsubmitbehavior?

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 19 Jan 2010 14:19:28 -0800
To: users@wicket.apache.org
Subject: Re: palette onSubmit


you should use ajaxformsubmitbehavior instead - that way all the
values are submitted.

-igor

On Tue, Jan 19, 2010 at 2:11 PM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 right, they do stay after a submit. but when i use an OnChangeAjaxBehavior
 on another field of the form, it isn't actually functioning as a submit so
 the palette gets refreshed and loses the selected items.

 (I'm still trying to narrow down the available items in a palette using a
 textfield so i'm trying to get it to mimic a submit without actually
 submitted because a submit would require form validation which won't pass
 at the time the palette is used)

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 12:14:57 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 if you set up your models properly then selected items stay selected.
 eg [1] where selected items stay selected after submit button is
 pressed

 [1]

http://wicketstuff.org/wicket/compref/?wicket:bookmarkablePage=:org.apache.w
 icket.examples.compref.PalettePage

 -igor

 On Tue, Jan 19, 2010 at 11:45 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Is there a document anywhere that would show me that workflow?

 I'm trying to force an OnChangeAjaxBehavior to do some of the methods
 executed during a submit on a palette to make the selected items stay
 selected.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 10:31:44 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 Recorder is a HiddenField-FormComponent so the regular form component
 workflow methods are called on it.

 -igor

 On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Can anyone tell me which methods are called on a palette when it is
 submitted?

 i know the recorder keeps track of the selected items but how are they
 persisted after a form submit? ie. what method is called to make them
 stay
 selected?

 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web - Check your email from the web at
 http://link.mail2web.com/mail2web



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: palette onSubmit

2010-01-19 Thread wic...@geofflancaster.com
well if the form doesn't validate it calls the onError method which
doesnt actually submit the form, hence the selected items aren't saved.

at the time the user types into the textfield, the entire form has yet to
be filled out so validation will always fail.

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Tue, 19 Jan 2010 15:11:43 -0800
To: users@wicket.apache.org
Subject: Re: palette onSubmit


why would you want? simply do not repaint the feedback panel...

-igor

On Tue, Jan 19, 2010 at 3:07 PM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 is there any way i can get around form validation using
 ajaxformsubmitbehavior?

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 14:19:28 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 you should use ajaxformsubmitbehavior instead - that way all the
 values are submitted.

 -igor

 On Tue, Jan 19, 2010 at 2:11 PM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 right, they do stay after a submit. but when i use an
OnChangeAjaxBehavior
 on another field of the form, it isn't actually functioning as a submit
so
 the palette gets refreshed and loses the selected items.

 (I'm still trying to narrow down the available items in a palette using a
 textfield so i'm trying to get it to mimic a submit without actually
 submitted because a submit would require form validation which won't pass
 at the time the palette is used)

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 12:14:57 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 if you set up your models properly then selected items stay selected.
 eg [1] where selected items stay selected after submit button is
 pressed

 [1]


http://wicketstuff.org/wicket/compref/?wicket:bookmarkablePage=:org.apache.w
 icket.examples.compref.PalettePage

 -igor

 On Tue, Jan 19, 2010 at 11:45 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Is there a document anywhere that would show me that workflow?

 I'm trying to force an OnChangeAjaxBehavior to do some of the methods
 executed during a submit on a palette to make the selected items stay
 selected.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Tue, 19 Jan 2010 10:31:44 -0800
 To: users@wicket.apache.org
 Subject: Re: palette onSubmit


 Recorder is a HiddenField-FormComponent so the regular form component
 workflow methods are called on it.

 -igor

 On Tue, Jan 19, 2010 at 10:02 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
 Can anyone tell me which methods are called on a palette when it is
 submitted?

 i know the recorder keeps track of the selected items but how are they
 persisted after a form submit? ie. what method is called to make them
 stay
 selected?

 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web - Check your email from the web at
 http://link.mail2web.com/mail2web



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com - Microsoft® Exchange solutions from a leading provider -
 http://link.mail2web.com/Business/Exchange



 -
 To unsubscribe, e-mail: users

RE: display busy indicator while external image is fetched

2010-01-13 Thread wic...@geofflancaster.com
use AjaxLazyLoad. Should be pretty straight forward. There are a ton of
examples online

Original Message:
-
From: Christoph Grün chris...@gmx.at
Date: Wed, 13 Jan 2010 20:10:22 +0100
To: users@wicket.apache.org
Subject: display busy indicator while external image is fetched


Hi,

 

how can I display a busy indicator while an external image is loaded?

 

Thanks, Christoph

 




mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



filter options in available side of palette w/o losing selected options

2010-01-13 Thread wic...@geofflancaster.com
I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted. 


is there any way i can keep the previously selected options in the palette?


mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: filter options in available side of palette w/o losing selected options

2010-01-13 Thread wic...@geofflancaster.com
I've tried that as well but when my onUpdate method is called, i call
palette.getDefaultModelObject() and cast it to a list (the same way I do on
form submit) but it acts as if there are no selections.

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:18:44 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


you keep your original objects in another list so you can put them back
into 
palette's model when you need

fmu
- Original Message - 
From: wic...@geofflancaster.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:10 PM
Subject: filter options in available side of palette w/o losing selected 
options


I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted.


is there any way i can keep the previously selected options in the palette?


mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: filter options in available side of palette w/o losing selected options

2010-01-13 Thread wic...@geofflancaster.com
So I've got it partly working. It works after I submit the form (using
IndicatingAjaxButton). If I filter the available items before submitting,
the selected items are cleared.

Which leads me to the question, what is executed during an onSubmit() that
is not during an OnChangeAjaxBehavior.onUpdate()? I thought the onUpdate
was essentially the same thing as a submit.  

Can anyone tell me why this may be occuring?

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:35:52 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


if you can paste some code and it will help us understand the problem 
better.

fmu
- Original Message - 
From: wic...@geofflancaster.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:23 PM
Subject: Re: filter options in available side of palette w/o losing
selected 
options


I've tried that as well but when my onUpdate method is called, i call
palette.getDefaultModelObject() and cast it to a list (the same way I do on
form submit) but it acts as if there are no selections.

Original Message:
-
From: Fatih Mehmet UCAR fmu...@gmail.com
Date: Wed, 13 Jan 2010 20:18:44 -
To: users@wicket.apache.org
Subject: Re: filter options in available side of palette w/o losing
selected options


you keep your original objects in another list so you can put them back
into
palette's model when you need

fmu
- Original Message - 
From: wic...@geofflancaster.com
To: users@wicket.apache.org
Sent: Wednesday, January 13, 2010 8:10 PM
Subject: filter options in available side of palette w/o losing selected
options


I'm using a text field to filter the available options in a palette which i
have working but when the options are filtered the previously selected
options get deleted.


is there any way i can keep the previously selected options in the palette?


mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web LIVE - Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



palette - default selected choices

2010-01-11 Thread wic...@geofflancaster.com
when using a palette is there a way to set a few items selected by default?


mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



sort palette choices

2010-01-08 Thread wic...@geofflancaster.com
is it possible to sort the list of choices in a palette when an item is
added or removed from the list of selected choices?

a code snippet would be great if anyone can help me out.




mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: OnChangeAjaxBehavior with palette

2010-01-07 Thread wic...@geofflancaster.com
any help? i cant be the only person to have tried this.

Original Message:
-
From: wic...@geofflancaster.com wic...@geofflancaster.com
Date: Wed, 6 Jan 2010 14:13:50 -0500
To: users@wicket.apache.org
Subject: OnChangeAjaxBehavior with palette


i'm trying using a text field to search through the items available to be
selected in a palette. As of right now, it searches correctly but if I add
items to the selected side of the palette and then search again, I lose
my previously selected choices. 

Is there anyway to only refresh the available menu and not the selected
menu?


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: OnChangeAjaxBehavior with palette

2010-01-07 Thread wic...@geofflancaster.com
But how can you inject previously selected items back into the selected
menu? The only thing i can see is inserting items into the list as a whole
which puts them into the available menu.

can you give me a code snippet and better explanation of what you mean?

Original Message:
-
From: Scott Swank scott.sw...@gmail.com
Date: Thu, 7 Jan 2010 09:49:41 -0800
To: users@wicket.apache.org
Subject: Re: OnChangeAjaxBehavior with palette


You could add an AjaxFormComponentUpdatingBehavior to your palette so
that your selections are pushed back to the underlying model.

On Thu, Jan 7, 2010 at 9:40 AM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 any help? i cant be the only person to have tried this.

 Original Message:
 -
 From: wic...@geofflancaster.com wic...@geofflancaster.com
 Date: Wed, 6 Jan 2010 14:13:50 -0500
 To: users@wicket.apache.org
 Subject: OnChangeAjaxBehavior with palette


 i'm trying using a text field to search through the items available to be
 selected in a palette. As of right now, it searches correctly but if I add
 items to the selected side of the palette and then search again, I lose
 my previously selected choices.

 Is there anyway to only refresh the available menu and not the selected
 menu?

 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web LIVE – Free email based on Microsoft® Exchange technology -
 http://link.mail2web.com/LIVE



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



OnChangeAjaxBehavior with palette

2010-01-06 Thread wic...@geofflancaster.com
i'm trying using a text field to search through the items available to be
selected in a palette. As of right now, it searches correctly but if I add
items to the selected side of the palette and then search again, I lose
my previously selected choices. 

Is there anyway to only refresh the available menu and not the selected
menu?


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Palette selector width and sort

2010-01-05 Thread wic...@geofflancaster.com
How can I change the width of the available and selected menus on a
palette?

Also, is it possible to sort the choices after they are moved between the
two menus so they aren't just appended to the end but sorted alphabetically?

ie. moving an item from available to selected will sort items now in
selected and vice versa



mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Palette selector width and sort

2010-01-05 Thread wic...@geofflancaster.com
Any suggestions on how to do that?

Original Message:
-
From: Fatih Mehmet Ucar fmu...@gmail.com
Date: Tue, 5 Jan 2010 16:31:33 +
To: users@wicket.apache.org
Subject: Re: Palette selector width and sort


for width, you can override css returning method in palette.

2010/1/5 wic...@geofflancaster.com wic...@geofflancaster.com:
 How can I change the width of the available and selected menus on a
 palette?

 Also, is it possible to sort the choices after they are moved between the
 two menus so they aren't just appended to the end but sorted
alphabetically?

 ie. moving an item from available to selected will sort items now in
 selected and vice versa


 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Palette selector width and sort

2010-01-05 Thread wic...@geofflancaster.com
Ok, I figured that out. Is there a way to make the menus have horizontal
scroll bars?

Original Message:
-
From: Fatih Mehmet Ucar fmu...@gmail.com
Date: Tue, 5 Jan 2010 16:54:45 +
To: users@wicket.apache.org
Subject: Re: Palette selector width and sort


Palette palette = new Palette(palette, new Model(new ArrayList()), new
Model(
(Serializable)persons), renderer, 10, true){
public ResourceReference getCSS(){
  return .;
}
};


you can use firefox to get the original css.
copy all css to a new file
change width in css
and return that file inside getCSS above.


fmu


2010/1/5 wic...@geofflancaster.com wic...@geofflancaster.com:
 Any suggestions on how to do that?

 Original Message:
 -
 From: Fatih Mehmet Ucar fmu...@gmail.com
 Date: Tue, 5 Jan 2010 16:31:33 +
 To: users@wicket.apache.org
 Subject: Re: Palette selector width and sort


 for width, you can override css returning method in palette.

 2010/1/5 wic...@geofflancaster.com wic...@geofflancaster.com:
 How can I change the width of the available and selected menus on a
 palette?

 Also, is it possible to sort the choices after they are moved between the
 two menus so they aren't just appended to the end but sorted
 alphabetically?

 ie. moving an item from available to selected will sort items now in
 selected and vice versa


 
 mail2web.com – What can On Demand Business Solutions do for you?
 http://link.mail2web.com/Business/SharePoint



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DateTextField and DatePicker Default Date

2010-01-05 Thread wic...@geofflancaster.com
Is it possible to make the DateTextField and DatePicker (used together)
default to a specific date?

For example, right now it automatically puts in todays date. Can I make it
automatically put in 30 days before?


mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ListView Behavior

2010-01-04 Thread wic...@geofflancaster.com
Due to Wicket handling things in a weird order, would anyone mind giving me
a hand in solving this issue?

When I create a ListView, populateItem() is called for each item in the
list which is passed into the ListView and then it goes back and creates
the Label named chart. The problem is that I'm trying to keep a counter
on each chart item being created so I can render javascript on the
component. See below for code and output (for a test with 2 items being
passed in via the list in the ListView Constructor).

 BEGIN CODE--

addOrReplace(new ListViewStringBuilder(graphTable,xml){
@Override
protected void populateItem(ListItemStringBuilder  
item){
StringBuilder sb = (StringBuilder) 
item.getModelObject();
System.out.println(populating item number - 
+divNum);
Label chart = new Label(chart,new Model()){
@Override
protected void onComponentTag(final 
ComponentTag tag){
System.out.println(adding 
componentTag with id=+divNum);
super.onComponentTag(tag);
tag.put(id, chart_+ divNum);
}
};

item.add(chart);

Label script = new 
Label(script,parseJS(sb,chart_+divNum));

script.setRenderBodyOnly(true);
script.setEscapeModelStrings(false);

item.add(script);
divNum++;   
}
});

-- END CODE -


-- BEGIN OUTPUT -

populating item number - 0
populating item number - 1
adding componentTag with id=2
adding componentTag with id=2

--- END OUTPUT --

I need the componentTag to correspond with the numbers listed after
populating item number

for example, I need the output to show something to the affect of:

populating item number - 0
adding componentTag with id=0
populating item number - 1
adding componentTag with id=1

or 

populating item number - 0
populating item number - 1
adding componentTag with id=0
adding componentTag with id=1





mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ListView Behavior

2010-01-04 Thread wic...@geofflancaster.com
Very good point. Didn't think about that. Thanks, I've solved my problem!

Original Message:
-
From: Martin Makundi martin.maku...@koodaripalvelut.com
Date: Mon, 4 Jan 2010 18:19:46 +0200
To: users@wicket.apache.org
Subject: Re: ListView Behavior


Hi!

Why do you need to count items? You can refer to different components
using their markupid.

**
Martin

2010/1/4 wic...@geofflancaster.com wic...@geofflancaster.com:
 Due to Wicket handling things in a weird order, would anyone mind giving
me
 a hand in solving this issue?

 When I create a ListView, populateItem() is called for each item in the
 list which is passed into the ListView and then it goes back and creates
 the Label named chart. The problem is that I'm trying to keep a counter
 on each chart item being created so I can render javascript on the
 component. See below for code and output (for a test with 2 items being
 passed in via the list in the ListView Constructor).

  BEGIN CODE--

 addOrReplace(new ListViewStringBuilder(graphTable,xml){
                       �...@override
                        protected void
populateItem(ListItemStringBuilder  item){
                                StringBuilder sb = (StringBuilder)
item.getModelObject();
                                System.out.println(populating item number
- +divNum);
                                Label chart = new Label(chart,new
Model()){
                                       �...@override
                                        protected void
onComponentTag(final ComponentTag tag){
                                                System.out.println(adding
componentTag with id=+divNum);
                                                super.onComponentTag(tag);
                                                tag.put(id, chart_+
divNum);
                                        }
                                };

                                item.add(chart);

                                Label script = new
Label(script,parseJS(sb,chart_+divNum));

                                script.setRenderBodyOnly(true);
                                script.setEscapeModelStrings(false);

                                item.add(script);
                                divNum++;
                        }
                });

 -- END CODE -


 -- BEGIN OUTPUT -

 populating item number - 0
 populating item number - 1
 adding componentTag with id=2
 adding componentTag with id=2

 --- END OUTPUT --

 I need the componentTag to correspond with the numbers listed after
 populating item number

 for example, I need the output to show something to the affect of:

 populating item number - 0
 adding componentTag with id=0
 populating item number - 1
 adding componentTag with id=1

 or

 populating item number - 0
 populating item number - 1
 adding componentTag with id=0
 adding componentTag with id=1




 
 mail2web.com - Microsoft® Exchange solutions from a leading provider -
 http://link.mail2web.com/Business/Exchange



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



render javascript included in ajax update

2009-12-31 Thread wic...@geofflancaster.com
I'm using panels to add some javascript to a page via ajax. As of right
now, all that is visible is the script text (in the script tags). I don't
want it to be visible, I want it to just render the javascript and execute
it.

Can I do this with Panels? Is it possible at all?

If it is possible do I need to include the script tags or just pass the
actual body of the script?


mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
Is there a way to create an item only after a form has been submitted?

For example, how can I do the following:

---Java Psuedo-Code---
 Panel panel1 = new RandomPanel(panel1);
 
 add(panel1);

 add(new AjaxButton(button, form){

onSubmit(AjaxRequestTarget target, Form form){
   Panel panel2 = new RandomPanel(panel2);
}
 };

---End java Psuedo-Code---

---Psuedo-HTML---
...
span wicket:id=panel1span wicket:id=panel2/span/span
...
---End Psuedo-HTML---

When I try it now I get an error saying panel2 is in my markup but not
added to the page. Any help is greatly appreciated. 

Thanks!




mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
I'm trying this but the panel isn't being displayed. Should I also see the
contents of the panel displayed in the ajax-response tags on the wicket
ajax debug window? As of right now, all I see in the tags is the
javascript to add the markup.

Original Message:
-
From: Igor Vaynberg igor.vaynb...@gmail.com
Date: Wed, 30 Dec 2009 09:17:53 -0800
To: users@wicket.apache.org
Subject: Re: creating item after form is submitted via ajax


this should help

http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-ite
ms-via-ajax/

the trick is to add the markup that the component is anchored to using
javascript.

-igor

On Wed, Dec 30, 2009 at 9:13 AM, wic...@geofflancaster.com
wic...@geofflancaster.com wrote:
 Is there a way to create an item only after a form has been submitted?

 For example, how can I do the following:

 ---Java Psuedo-Code---
  Panel panel1 = new RandomPanel(panel1);

  add(panel1);

  add(new AjaxButton(button, form){

    onSubmit(AjaxRequestTarget target, Form form){
       Panel panel2 = new RandomPanel(panel2);
    }
  };

 ---End java Psuedo-Code---

 ---Psuedo-HTML---
 ...
 span wicket:id=panel1span wicket:id=panel2/span/span
 ...
 ---End Psuedo-HTML---

 When I try it now I get an error saying panel2 is in my markup but not
 added to the page. Any help is greatly appreciated.

 Thanks!



 
 mail2web.com – Enhanced email for the mobile individual based on
Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
AjaxRequestTarget doesn't have an add method.

Original Message:
-
From: Jeremy Thomerson jer...@wickettraining.com
Date: Wed, 30 Dec 2009 13:28:26 -0600
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: creating item after form is submitted via ajax


target.add(panelFoo)

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Dec 30, 2009 at 12:57 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 I'm trying this but the panel isn't being displayed. Should I also see the
 contents of the panel displayed in the ajax-response tags on the wicket
 ajax debug window? As of right now, all I see in the tags is the
 javascript to add the markup.

 Original Message:
 -
 From: Igor Vaynberg igor.vaynb...@gmail.com
 Date: Wed, 30 Dec 2009 09:17:53 -0800
 To: users@wicket.apache.org
 Subject: Re: creating item after form is submitted via ajax


 this should help



http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-ite

ms-via-ajax/http://wicketinaction.com/2008/10/repainting-only-newly-created
-repeater-ite%0Ams-via-ajax/

 the trick is to add the markup that the component is anchored to using
 javascript.

 -igor

 On Wed, Dec 30, 2009 at 9:13 AM, wic...@geofflancaster.com
 wic...@geofflancaster.com wrote:
  Is there a way to create an item only after a form has been submitted?
 
  For example, how can I do the following:
 
  ---Java Psuedo-Code---
   Panel panel1 = new RandomPanel(panel1);
 
   add(panel1);
 
   add(new AjaxButton(button, form){
 
 onSubmit(AjaxRequestTarget target, Form form){
Panel panel2 = new RandomPanel(panel2);
 }
   };
 
  ---End java Psuedo-Code---
 
  ---Psuedo-HTML---
  ...
  span wicket:id=panel1span wicket:id=panel2/span/span
  ...
  ---End Psuedo-HTML---
 
  When I try it now I get an error saying panel2 is in my markup but not
  added to the page. Any help is greatly appreciated.
 
  Thanks!
 
 
 
  
  mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
  Exchange - http://link.mail2web.com/Personal/EnhancedEmail
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 
 mail2web.com – Enhanced email for the mobile individual based on
 Microsoft®
 Exchange - http://link.mail2web.com/Personal/EnhancedEmail



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: creating item after form is submitted via ajax

2009-12-30 Thread wic...@geofflancaster.com
I'm doing that. I'm doing what the link referenced earlier in this thread
said to do.

Original Message:
-
From: Jeremy Thomerson jer...@wickettraining.com
Date: Wed, 30 Dec 2009 13:50:35 -0600
To: users@wicket.apache.org, wic...@geofflancaster.com
Subject: Re: creating item after form is submitted via ajax


addComponent - sorry - the point is, you need to add that panel to the ajax
response so that it's actually repainted.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Dec 30, 2009 at 1:46 PM, wic...@geofflancaster.com 
wic...@geofflancaster.com wrote:

 AjaxRequestTarget doesn't have an add method.

 Original Message:
 -
 From: Jeremy Thomerson jer...@wickettraining.com
 Date: Wed, 30 Dec 2009 13:28:26 -0600
 To: users@wicket.apache.org, wic...@geofflancaster.com
 Subject: Re: creating item after form is submitted via ajax


 target.add(panelFoo)

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Wed, Dec 30, 2009 at 12:57 PM, wic...@geofflancaster.com 
 wic...@geofflancaster.com wrote:

  I'm trying this but the panel isn't being displayed. Should I also see
 the
  contents of the panel displayed in the ajax-response tags on the
 wicket
  ajax debug window? As of right now, all I see in the tags is the
  javascript to add the markup.
 
  Original Message:
  -
  From: Igor Vaynberg igor.vaynb...@gmail.com
  Date: Wed, 30 Dec 2009 09:17:53 -0800
  To: users@wicket.apache.org
  Subject: Re: creating item after form is submitted via ajax
 
 
  this should help
 
 
 


http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-ite
 
 ms-via-ajax/
 http://wicketinaction.com/2008/10/repainting-only-newly-created

-repeater-ite%0Ams-via-ajax/http://wicketinaction.com/2008/10/repainting-on
ly-newly-created%0A-repeater-ite%0Ams-via-ajax/
 
 
  the trick is to add the markup that the component is anchored to using
  javascript.
 
  -igor
 
  On Wed, Dec 30, 2009 at 9:13 AM, wic...@geofflancaster.com
  wic...@geofflancaster.com wrote:
   Is there a way to create an item only after a form has been submitted?
  
   For example, how can I do the following:
  
   ---Java Psuedo-Code---
Panel panel1 = new RandomPanel(panel1);
  
add(panel1);
  
add(new AjaxButton(button, form){
  
  onSubmit(AjaxRequestTarget target, Form form){
 Panel panel2 = new RandomPanel(panel2);
  }
};
  
   ---End java Psuedo-Code---
  
   ---Psuedo-HTML---
   ...
   span wicket:id=panel1span wicket:id=panel2/span/span
   ...
   ---End Psuedo-HTML---
  
   When I try it now I get an error saying panel2 is in my markup but not
   added to the page. Any help is greatly appreciated.
  
   Thanks!
  
  
  
   
   mail2web.com – Enhanced email for the mobile individual based on
  Microsoft®
   Exchange - http://link.mail2web.com/Personal/EnhancedEmail
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  
  mail2web.com – Enhanced email for the mobile individual based on
  Microsoft®
  Exchange - http://link.mail2web.com/Personal/EnhancedEmail
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 
 mail2web - Check your email from the web at
 http://link.mail2web.com/mail2web



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org