Wizard - showing Modal on "next" button

2020-07-15 Thread Leonardo D'Alimonte
Hello,

I'm writing a Wizard with some steps inside which the user must follow.
I wonder if there's the chance to display a modal window with a warning
message when the user clicks the "Next" button, in order to ask for a
confirmation.

Once the user acknowledges the message with the OK button, step can be
marked as complete and the user can go on with the following steps.

Has someone ever experienced a usage like this? Do you have any suggestion
about how to implement this additional modal window?

NextButton of the WizardButtonBar is a simple Button and so it lacks a
RequestTarget to refresh the ModalWindow, is that correct?

Thanks,
-- 
Leonardo


Re: Migrating from Wicket 1.4 to 6 - Serialization

2018-01-29 Thread Leonardo D'Alimonte
Hello Martin,
absolutely Hibernate is not injecting classes anywhere in Wicket classes.
Interceptor is used to inject a Spring-configured class, ViaggioService,
into a specific domain class, Viaggio.java.

This code builds a DataTable of Viaggio entities inside the page that throws
the NotSerializableException:
.
public GestioneOperativaViaggioListPage(PageParameters parameters) {
super(parameters);

giorno = impiantoRepository.existOpenedGiornata() ?
impiantoRepository.readOpenedGiornata().getDay().asDate()
: null;
dataProvider = new RepositoryDataProvider(repo);
dataProvider.reset();
dataProvider.setCriteria(new ViaggioFilterCriteria());

DataTableBuilder tableBuilder = new 
DataTableBuilder(Viaggio.class,
dataProvider, "primoAutista",
"identificativoViaggio", "tipoViaggio", 
"motrice", "rimorchio",
"secondoAutista", "tipoCaricazione",
"societa");
..

ViaggioService has configured many other services inside, if you go
recursively through fields of these classes you will find "stampeFactory"
instance.
Spring configuration of this bean follows:


 

ServiceLocatorFactoryBean uses inside ServiceLocatorInvocationHandler, which
is not serializable.




--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Migrating from Wicket 1.4 to 6 - Serialization

2018-01-28 Thread Leonardo D'Alimonte
Hi Martin,
actually ViaggioService comes from a domain class, ViaggioRete, where is
injected through a custom Hibernate Interceptor.

At the moment, it seems I have to let all my code implement the Serializable
interface, but it doesn't sound as the correct option. Futhermore, I got
stuck on Spring classes, like XmlWebApplicationContext or
ServiceLocatorFactoryBean.ServiceLocatorInvocationHandler(), that are not
serializable.

Maybe I need to go through big changes on my business logic to avoid these
kind of problems?

Sorry if I'm bothering you but I really would like to come to an end on this
migration :)

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Migrating from Wicket 1.4 to 6 - Serialization

2018-01-22 Thread Leonardo D'Alimonte
Actually field "stampeFactory" implements Spring interface
'org.springframework.beans.factory.config.ServiceLocatorFactoryBean', which
allows us to retrieve beans as prototypes but it's not Serializable (spring
version is 3.2.2.RELEASE).

I don't think I can use @SpringBean in this situation, as my
BettolinaService is not directly inside a Page but it's just a field of
another Service injected in a Page.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Migrating from Wicket 1.4 to 6 - Serialization

2018-01-21 Thread Leonardo D'Alimonte
Hi everyone,
I'm working on the migration of our WebApplication from Wicket 1.4 to Wicket
6, I don't understand why with the new version I'm getting this exception;
 BEGIN 
21/01/2018 14:24:37,925 ERROR -JavaSerializer - Error serializing object
class
it.loginet.petrol.presentation.viaggio.GestioneOperativaViaggioListPage
[object=[Page class =
it.loginet.petrol.presentation.viaggio.GestioneOperativaViaggioListPage, id
= 4, render count = 1]] - <:>
org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException:
The object type is not Serializable!
A problem occurred while checking object with type:
org.springframework.beans.factory.config.ServiceLocatorFactoryBean$ServiceLocatorInvocationHandler
Field hierarchy is:
  4
[class=it.loginet.petrol.presentation.viaggio.GestioneOperativaViaggioListPage,
path=4]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private java.lang.Object org.apache.wicket.MarkupContainer.children[6]
[class=org.apache.wicket.markup.html.panel.Fragment, path=4:toolbar]
private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
  private java.util.List
org.apache.wicket.request.mapper.parameter.PageParameters.namedParameters[1]
[class=org.apache.wicket.markup.html.form.Form, path=4:toolbar:form]
private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=it.loginet.petrol.presentation.programmazione.LiveDateSearchField,
path=4:toolbar:form:filtroGiorno]
  java.lang.Object org.apache.wicket.Component.data
[class=[Ljava.lang.Object;]
java.lang.Object org.apache.wicket.Component.data[0][1][2]
[class=org.apache.wicket.ajax.form.AjaxFormSubmitBehavior]
  private final org.apache.wicket.Component[]
it.loginet.petrol.presentation.programmazione.LiveDateSearchField$1.val$targetComponents
[class=[Lorg.apache.wicket.Component;]
private final org.apache.wicket.Component[]
it.loginet.petrol.presentation.programmazione.LiveDateSearchField$1.val$targetComponents[0]
[class=it.loginet.commons.wicket.repeater.CustomDataTable,
path=4:content:entitiesTable]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
java.lang.Object org.apache.wicket.Component.data[1]
[class=org.apache.wicket.markup.html.WebMarkupContainer,
path=4:content:entitiesTable:body]
  private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable$DefaultDataGridView,
path=4:content:entitiesTable:body:rows]
private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.markup.repeater.OddEvenItem,
path=4:content:entitiesTable:body:rows:1]
  java.lang.Object
org.apache.wicket.Component.data
[class=it.loginet.petrol.presentation.sinottico.CachedDataProviderModel]
private final java.lang.Object
it.loginet.commons.wicket.repeater.DefaultSortableDataProvider$1.val$object
[class=it.loginet.petrol.domain.viaggio.ViaggioRete]
  protected
it.loginet.petrol.application.prenotazione.ViaggioService
it.loginet.petrol.domain.viaggio.AbstractViaggio.viaggioService
[class=it.loginet.petrol.application.prenotazione.ViaggioService]
private
it.loginet.petrol.application.corsia.CorsiaService
it.loginet.petrol.application.prenotazione.ViaggioService.corsiaService
[class=it.loginet.petrol.application.corsia.CorsiaService]
  private
it.loginet.petrol.application.impianto.ImpiantoService
it.loginet.petrol.application.corsia.CorsiaService.impiantoService
[class=it.loginet.petrol.application.impianto.ImpiantoService]
private
it.loginet.petrol.presentation.giornata.GiornataContabileService
it.loginet.petrol.application.impianto.ImpiantoService.giornataContabileService
[class=it.loginet.petrol.presentation.giornata.GiornataContabileService]
  private
it.loginet.petrol.application.bettolina.BettolinaService
it.loginet.petrol.presentation.giornata.GiornataContabileService.bettolinaService
[class=it.loginet.petrol.application.bettolina.BettolinaService]
private
it.loginet.petrol.application.quadratura.StampeFactory
it.loginet.petrol.application.bettolina.BettolinaService.stampeFactory
[class=com.sun.proxy.$Proxy24]
  protected
java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h
[class=org.springframework.beans.factory.config.ServiceLocatorFactoryBean$ServiceLocatorInvocationHandler]
<- field that is causing the problem
 END 

What 

Re: Interpolating variables inside web.xml

2013-04-20 Thread Leonardo D'Alimonte
Actually we have another WebApplication integrated with Spring where used
successfully this interpolation mechanism, unfortunately I can't find the
exact place where this behaviour is coded inside the webapp.

Do you have any idea where i can look inside the xml's configuration?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658139.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Interpolating variables inside web.xml

2013-04-19 Thread Leonardo D'Alimonte
Hey Dan,

Maven War plugin is working fine as you suggested, it interpolates the
${wicket.configuration} variable correctly.
I would like to see the same magic also when I launch the mvn jetty:run
command, so that using maven profiles i can change the configuration of
Wicket (6.6.0) when I run my WebApplication for testing or whatever.

May the Spring framework be also responsable for the interpolation?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095p4658106.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Interpolating variables inside web.xml

2013-04-18 Thread Leonardo D'Alimonte
Hi everybody,

I'm trying to set the wicket.configuration property inside web.xml of my
new WebApplication.
The way I'm trying this is interpolating a ${wicket.configuration} variable
with this snippet:
..
init-param
param-nameconfiguration/param-name
param-value${wicket.configuration}/param-value
/init-param
...

from a property of a profile written inside the pom.xml of the project
..
profile
idrelease/id
wicket.configurationdeployment/wicket.configuration
.

Unfortunately it's still not working, I've tried many solutions but without
success...

Do you have any ideas...suggestionsspellspotions?

Thanks in advance.

Leonardo



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Interpolating-variables-inside-web-xml-tp4658095.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Using PageReference for a 'back' link

2012-10-23 Thread Leonardo D'Alimonte
Hello Dirk,

thanks for the quick reply.

BookmarkablePageLink doesn't allow overriding of onClick behaviour, so I
don't know if I can implement a custom bookmarkable link the way you
described... :)

I attach down here an example of what I described before:

In MyPage.class I wnat to add the link below:

add(new BookmarkablePageLink(accertamento,
AccertamentoSerbatoiPage.class));

and inside AccertamentoSerbatoiPage.class I would link a link that points
back to MyPagehow can I pass the PageReference of MyPage inside that
constructor?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-PageReference-for-a-back-link-tp4653212p4653248.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [DISCUSS] Security Frameworks

2012-10-22 Thread Leonardo D'Alimonte
[x] I use WASP/Swarm

Since we started our project we adopted Swarm as our security framework and
for several reasons we didn't scout other possibilities to secure our pages.
By the way our experience with Swarm is pretty good, we don't need any
changes in our dependencies...




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DISCUSS-Security-Frameworks-tp4653049p4653225.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2012-04-19 Thread Leonardo D'Alimonte
Hi everybody,

I'm still having troubles downloading Swarm 1.4 from the Wicketstuff Maven
repository, GitHub alerts me that File Not Found...
Is this version (i know isn't the latest..) so difficult to recover??

Thanks,
Leonardo

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p4570279.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2011-11-02 Thread Leonardo D'Alimonte
Great!
The main repository
(http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security/swarm/)
seems to miss the latest release of Swarm, I can see only 1.4-SNAPSHOT/ and
with incomplete dependencies...anyway the mirror repository works perfectly
:)

Leonardo


Martijn Dashorst wrote:
 
 All is working now.
 
 Martijn
 
 On Tue, Nov 1, 2011 at 3:48 PM, Martijn Dashorst
 lt;martijn.dashorst@gt; wrote:
 On Tue, Nov 1, 2011 at 3:41 PM, Martijn Dashorst
 lt;martijn.dashorst@gt; wrote:
 It is not your problem, but strange enough the main page just works...

 It appears that mij hosting provider has reset/blocked the account for
 the mysql database. Investigating how to reset the password.

 Martijn

 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p3983473.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2011-11-01 Thread Leonardo D'Alimonte
Hi Martjin!

I'm trying to upgrade our project based on Wicket and Wicket-security
(Swarm) from version 1.3.6 to 1.4.18
and from version 1.3.0 to 1.4.1 (Swarm)...work not so easy, because if I
follow your link to the the Wicketstuff repo, the only version I can find is
the 1.4-SNAPSHOT. If I had in my pom.xml the dependency to 1.4.1 version of
Swarm, Maven is happy and is capable to find it, but it download only the
pom, not the jar and all the dependencies. What I'm doing wrong?

Thanks in advance..
Leonardo

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p3963284.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2011-11-01 Thread Leonardo D'Alimonte
Martin,

you mean this machine goes on 503 error often:
http://wicketstuff.org/maven/mirror ?
I found lots of errors here instead:
http://wicketinaction.com/2010/05/wicket-security-wasp-and-swarm-1-4-released/
Every time I try to connect there it answers: Error establishing a database
connection, don't know if it's a problem of mine..


Leonardo


Martin Grigorov-4 wrote:
 
 On Tue, Nov 1, 2011 at 3:12 PM, Martijn Dashorst
 lt;martijn.dashorst@gt; wrote:
 On Tue, Nov 1, 2011 at 1:59 PM, Martijn Dashorst
 lt;martijn.dashorst@gt; wrote:
 Try

 http://wicketstuff.org/maven/mirror

 I've uploaded our internal artifactory wicketstuff cache.

 Note that this directory will go away once I find out how to do a
 rsync on the box (not installed or available on path). If/when that
 happens the artifacts will become available under the
 http://wicketstuff.org/maven/repository moniker.

 Martijn

 (should we run an artifactory at that machine instead?)
 
 That machine most of the time returns 503 ...
 

 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache


 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p3963720.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: [RELEASE] WASP/SWARM/Wicket security 1.4.1 released, roadmap for future direction

2011-11-01 Thread Leonardo D'Alimonte
Sounds good, the workaround of adding mirror repository to the pom works
finally. Now I'm going on having discussions with properties file inside the
project and resolving JUnit errors.

Leonardo


Martijn Dashorst wrote:
 
 On Tue, Nov 1, 2011 at 3:41 PM, Martijn Dashorst
 lt;martijn.dashorst@gt; wrote:
 It is not your problem, but strange enough the main page just works...
 
 It appears that mij hosting provider has reset/blocked the account for
 the mysql database. Investigating how to reset the password.
 
 Martijn
 
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache
 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RELEASE-WASP-SWARM-Wicket-security-1-4-1-released-roadmap-for-future-direction-tp2543742p3964178.html
Sent from the Users forum mailing list archive at Nabble.com.

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