Please attach a working quickstart for 1.5.x.
Or preferrably just don't use a Palette. A single ListChoice should be
sufficient.
Sven
On 10/25/2012 01:14 PM, Marco Di Sabatino Di Diodoro wrote:
Hi Sven,
with Apache Wicket 1.5.8
@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new
AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
private static final long serialVersionUID =
-7927968187160354605L;
@Override
public CharSequence preDecorateScript(final CharSequence
script) {
return script + reportlets.getEditOnClickJS();
}
};
}
I migrate to Apache Wicket 6.2
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes
attributes) {
super.updateAjaxAttributes(attributes);
final AjaxCallListener ajaxCallListener = new
AjaxCallListener() {
private static final long serialVersionUID =
7160235486520935153L;
@Override
public CharSequence getPrecondition(Component component) {
return reportlets.getEditOnClickJS();
}
};
attributes.getAjaxCallListeners().add(ajaxCallListener);
}
the reportlets.getEditOnClickJS(); call an javascript function
"Syncope.SingleColumnPalette.choicesOnFocus".
My recorder.onselect is always null, how can I attached to the recorder
component the javascript onselect event?
If you like, I can attach to Jira issue
(https://issues.apache.org/jira/browse/WICKET-4834) my quickstart project with
apache wicket 1.5.8. where everything worked correctly.
Thanks
Marco
On Oct 24, 2012, at 12:43 PM, Marco Di Sabatino Di Diodoro wrote:
Hi,
On Oct 23, 2012, at 6:41 PM, Sven Meier wrote:
I'm not sure how you're using AjaxFormComponentUpdatingBehavior together with
the palette component.
Please create a quickstart and attach it to a Jira issue.
I create a quickstart and attach it to Jira issue
(https://issues.apache.org/jira/browse/WICKET-4834)
Regards
Marco
Sven
On 10/23/2012 05:42 PM, Marco Di Sabatino Di Diodoro wrote:
Thanks,
but i like have the current selected item in the palette. With Apache Wicket
1.5.8 I use AjaxFormComponentUpdatingBehavior to see which item was selected.
Now, when I click on an item into palette the onUpdate method is never invoked.
Marco
On Oct 23, 2012, at 5:31 PM, Sven Meier wrote:
selectedItems = (List<Foo>)palette.getDefaultModelObject()
or
palette = new Palette("palette", model, choices, ...);
selectedItems = model.getObject();
Sven
On 10/23/2012 05:01 PM, Marco Di Sabatino Di Diodoro wrote:
Hi all,
With Apache Wicket 6.1.
How can I get hold of a palette's selected item?
Marco
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org