Wicket & Spring Security

2012-03-02 Thread Erich W Schreiner
Dear all,
what is the recommended way of integrating Wicket 1.5.x with Spring Security 
3.1.x?

TIA & best regards,
Erich


How to add tooltips to components?

2011-01-17 Thread Erich W Schreiner
Dear list,

what is the recommended way of adding tooltips to wicket components?

I have searched Google, but found mostly outdated (wicketstuff jwicket is 
version 1.4.1) or obsolete (wicketstuff dojo integration) hints.

Thank you very much & have a nice day,
Erich


Re: Maven: Where to find the current binaries

2010-11-16 Thread Erich W Schreiner
Hi Patrick,

Thank you for the answer.

All is fine as long as I specify a certain version, e.g. 1.4.13
But using a version range does not work, e.g. [1.4.10,1.5)

I get the following error:
---8<---
[ERROR] An error occurred during dependency resolution of the following 
artifact:
org.apache.wicket:wicket:null
Caused by: Couldn't find a version in [1.3.0-beta2, 1.3.0-beta3, 1.3.0-beta4, 
1.3.0-rc1, 1.3.0-rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5
, 1.3.6, 1.3.7, 1.4-m1, 1.4-m2, 1.4-m3, 1.4-rc1, 1.4-rc2, 1.4-rc4, 1.4-rc5, 
1.4-rc6, 1.4-rc7, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.4.5, 1.4.
6, 1.4.7, 1.4.8, 1.4.9] to match range [1.4.10,1.5)
  org.apache.wicket:wicket:jar:null

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  maven2-repository.dev.java.net (http://download.java.net/maven/2),
  maven2-repository.codesmell (http://www.codesmell.org/maven/)
---8<---

So, maven tries to obtain the information from the same repo that works as long 
as I specify a single version, but fails to find a match.
I am using maven 2.2.1

Regards,
Erich





From: Patrick Petermair 
To: users@wicket.apache.org
Sent: Tue, November 16, 2010 11:35:46 AM
Subject: Re: Maven: Where to find the current binaries

Am 2010-11-16 11:29, schrieb Erich W Schreiner:

> where to can I point Maven to obtain the current stable binaries, i.e. 1.4.13 
>or
> 1.4.14? My maven installation only finds versions up to 1.4.9

Do you have your own maven repository or some kind of mirror running?

Wicket 1.4.13 is available via all the public maven repositories, so unless you 
filter/proxy something via your pom.xml, internal repository or settings.xml, 
you should be able to get it.

Have you tied the wicket quickstart for maven?
http://wicket.apache.org/start/quickstart.html

Patrick



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

Maven: Where to find the current binaries

2010-11-16 Thread Erich W Schreiner
Dear list,

where to can I point Maven to obtain the current stable binaries, i.e. 1.4.13 
or 
1.4.14? My maven installation only finds versions up to 1.4.9

Thanks / Best regards, Erich


[OT How can I open an account on jRoller?

2010-07-02 Thread Erich W Schreiner
Dear list,

the jRoller site has disabled signup for a accounts. Does anybody know whom I 
can contact for a new account?

TIA & best regards & have a nice weekend!
Erich

How to show / hide individual column of a DefaultDataTable using Ajax?

2010-07-01 Thread Erich W Schreiner
Dear all,

I'm trying to implement an Ajax button for showing / hiding some columns of a 
DefaultDataTable based on a Boolean associated with a custom session. Currently 
I have implemented an AttributeModifier that sets the style to "display:none" 
on 
the hidden columns.

This is working fine for the table content (data rows) where I am adding this 
AttributeModifier to the cellItem, but not for the column headers. The function 
getHeader() returns a Label that I can hide by adding the same 
AttributeModifier, but I do not know how to get to the  element itself. 
Effectively, I can hide the headers' label but not the header.

Any suggestions, please?

TIA & best regards,
Erich

Re: Best practice: AJAX and how to implement state indicator image?

2010-06-30 Thread Erich W Schreiner
Hi Igor,

thank you for your suggestion, the lookup of the icon to display works fine. I 
now override ResourceReference.newResource()

Unfortunately, the lookup only works correctely the first time, i.e. when the 
Page is displayed. Subsequent Ajax updates and re-rendering of parts will 
always 
show the same (initially displayed) icon, independent of the current model 
state.

Any suggestions on how to Ajax-enable this?

Many thanks for your time,
Erich







Von: Igor Vaynberg 
An: users@wicket.apache.org
Gesendet: Dienstag, den 29. Juni 2010, 17:32:27 Uhr
Betreff: Re: Best practice: AJAX and how to implement state indicator image?

the resourcereference you give your image can serve different images
based on some condition.

-igor

On Tue, Jun 29, 2010 at 7:47 AM, Erich W Schreiner  wrote:
> Dear all,
>
> I am trying to find the best way to implement a state indicator that shows
> different images. The state of the model object can be changed by the user,
> resulting in  an AJAX update being sent the server and a re-rendering of the
> model object, which should show the correct state image then.
>
> Currently I am adding an Image for each state and override their isVisible()
> method to have only one image shown. Is there any way to do this using a 
single
> Image component and some dynamic way of looking up the image to render?
>
> Related to this is the problem of showing a set of Ajax-enabled icon buttons,
> again with their visibility depending on the model state and themselves
> influencing this state. I would like to merge these buttons into a single one
> (e.g. for setting a boolean to true / false and showing a checkbox checked /
> unchecked).
>
> TIA & best regards,
> Erich

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

Best practice: AJAX and how to implement state indicator image?

2010-06-29 Thread Erich W Schreiner
Dear all,

I am trying to find the best way to implement a state indicator that shows 
different images. The state of the model object can be changed by the user, 
resulting in  an AJAX update being sent the server and a re-rendering of the 
model object, which should show the correct state image then.

Currently I am adding an Image for each state and override their isVisible() 
method to have only one image shown. Is there any way to do this using a single 
Image component and some dynamic way of looking up the image to render?

Related to this is the problem of showing a set of Ajax-enabled icon buttons, 
again with their visibility depending on the model state and themselves 
influencing this state. I would like to merge these buttons into a single one 
(e.g. for setting a boolean to true / false and showing a checkbox checked / 
unchecked).

TIA & best regards,
Erich

Re: How to perform form validation with ajax before user submits the form

2010-05-17 Thread Erich W Schreiner
Hi Ernesto,

I was not aware of this static method. Works like a charm :-)
Many thanks for the quick response.

Regards,
Erich







From: Ernesto Reinaldo Barreiro 
To: users@wicket.apache.org
Sent: Mon, May 17, 2010 1:26:36 PM
Subject: Re: How to perform form validation with ajax before user submits the  
form

On 1) Why not call AjaxRequestTarget.get().addComponent(yourFeedbackPanel)?

Ernesto


On Mon, May 17, 2010 at 1:17 PM, Erich W Schreiner  wrote:
> Dear all,
>
> I would like to perform form validation using Ajax before the user actually 
> submits the form, similar to Ajax-based field validation. I have added an 
> implementation of AbstractFormValidator to the form, and an Ajax behavior 
> that sends the current data to the server triggered by the "onchange" event.
> My problems are:
> 1. The form validator gets called and can process the current form fields, 
> but I do not see how to refresh the feedback panel properly.
> 2. What is the best practice to trigger form validation? Currently, I call 
> getForm().onFormSubmitted() from within setObject() of my model, which in 
> turn gets called from the "onchange" Ajax behavior, but to call 
> onFormSubmitted() is discouraged in the javadoc.
>
> TIA for any feedback :-)
> Erich

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

How to perform form validation with ajax before user submits the form

2010-05-17 Thread Erich W Schreiner
Dear all,

I would like to perform form validation using Ajax before the user actually 
submits the form, similar to Ajax-based field validation. I have added an 
implementation of AbstractFormValidator to the form, and an Ajax behavior that 
sends the current data to the server triggered by the "onchange" event. 
My problems are: 
1. The form validator gets called and can process the current form fields, but 
I do not see how to refresh the feedback panel properly.
2. What is the best practice to trigger form validation? Currently, I call 
getForm().onFormSubmitted() from within setObject() of my model, which in turn 
gets called from the "onchange" Ajax behavior, but to call onFormSubmitted() is 
discouraged in the javadoc.

TIA for any feedback :-)
Erich

AjaxEditableLabel with icon in addition to label

2010-05-03 Thread Erich W Schreiner
Dear all,

I would like to add an icon next to the label of an AjaxEditableLabel 
component. I tried to use a Panel or WebMarkupContainer, but both are not 
subtypes to WebComponent (which is the return type of newLabel() that I tried 
to overwrite).

Can you please provide me with suggestions about how to implement this?

TIA,
Erich

AjaxEditableLabel and feedback on error

2009-07-13 Thread Erich W Schreiner
Dear all,

I am trying to implement a list with AJAX-powered inline editing and have set 
one field of the model to "required" using ajaxEditableLabel.setRequired(true). 
Now, whenever I hit [Enter] after clearing the related input field, I get the 
message "Field 'editor' is required.". The field name 'editor' is coming from 
the internal instantiation of the editor field at line 491 of 
AjaxEditableLabel.java:

editor = newEditor(this, "editor", model);

Is there any way to use the actual field name from the domain model for the 
feedback message, e.g. "Field 'name' is required." ?

Thanks & best regards,
Erich