Wicket with some servlet container on Android?

2015-06-20 Thread Thorsten Schöning
Hi all,

we have a web app based on Wicket, Tomcat 7 etc. and one of our
customers has a native Windows only app which is about to be replaced
now to 1. support Android as well, 2. add some missing features and 3.
provide some more modern GUI and such. The two most interesting things
for that replacement from my point of view are that the new app needs
to be able to work totally offline and that its current and some of
the new features contains things the customer already asked for the
Wicket-web app we've created as well.

Working offline is a hard requirement, so we can't just use the Wicket
web app as it is. But because features are clearly overlapping we
don't want to maintain a very comparable feature set with two
different technologies for years to come. Our customer totally agrees
with that and sees the functional overlapping as well.

So, is there already any experience or suggestions about or "down
votes" of an approach were one would embed some servlet container in
an Android app and provide the frontend using Wicket, HTML, JS and
CSS? This shouldn't be too much of a problem with Windows desktops,
but a completely different thing for Android.

I've found some posts about Jetty and Tomcat regarding this, which
don't look very promising.

But how about Wicket itself? Maybe someone already tried or knows it's
impossible because of the Android API or Dalvik or such.

Any thoughts welcome, thanks!

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


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



Re: does BootstrapFileInput plays nicely with Wicket AJAX file upload?

2015-06-20 Thread Martin Grigorov
Hi,

Great!

I don't have credentials to maintain http://wb.agilecoders.de/demo/
. It is owned by Michael Haitz.
My demo is at http://wb-mgrigorov.rhcloud.com/. The DropZone demo is at the
top of http://wb-mgrigorov.rhcloud.com/extensions.
I'll release 0.9.11 with Bootstrap 3.3.5 in the next hours.

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sat, Jun 20, 2015 at 9:27 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> By the way I already integrated BootstrapFileInput into my application and
> it works fine with wicket AJAX.
>
> On Sat, Jun 20, 2015 at 8:26 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > I have the code locally... I will have a look. Thanks again.
> >
> > On Sat, Jun 20, 2015 at 8:23 AM, Tobias Soloschenko <
> > tobiassolosche...@googlemail.com> wrote:
> >
> >> Hi,
> >>
> >> the component belongs to wicket bootstrap extensions and is rather new.
> I
> >> don't know much about the release of:
> >>
> >> http://wb.agilecoders.de/demo/extensions
> >>
> >> but there it should be.
> >>
> >> @Martin: is there a way to release the current version so that Ernesto
> >> can see the dropzone upload in action?
> >>
> >> Otherwise you can checkout the git repo and run it local.
> >>
> >> kind regards
> >>
> >> Tobias
> >>
> >> > Am 20.06.2015 um 07:16 schrieb Ernesto Reinaldo Barreiro <
> >> reier...@gmail.com>:
> >> >
> >> > @Tobias
> >> >
> >> > Thanks! Any place where I can wee this component in action?
> >> >
> >> > On Sat, Jun 20, 2015 at 3:29 AM, Tobias Soloschenko <
> >> > tobiassolosche...@googlemail.com> wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> Just want to mention here:
> >> >>
> >> >>
> >>
> https://github.com/klopfdreh/wicket-components-playground/wiki/15.-DropZoneFileUpload
> >> >>
> >> >>
> >> >>
> >>
> https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/ExtensionsPage.java#L180
> >> >>
> >> >> kind regards
> >> >>
> >> >> Tobias
> >> >>
> >>  Am 19.06.2015 um 17:49 schrieb Ernesto Reinaldo Barreiro <
> >> >>> reier...@gmail.com>:
> >> >>>
> >> >>> Hi Martin,
> >> >>>
> >> >>> Thanks!
> >> >>>
> >> >>> Seems so by the examples... I'll give it a try soon.
> >> >>>
> >> >>> On Fri, Jun 19, 2015 at 5:46 PM, Martin Grigorov <
> >> mgrigo...@apache.org>
> >> >>> wrote:
> >> >>>
> >>  Hi Ernesto,
> >> 
> >>  AFAIK - yes.
> >> 
> >>  Martin Grigorov
> >>  Freelancer. Available for hire!
> >>  Wicket Training and Consulting
> >>  https://twitter.com/mtgrigorov
> >> 
> >>  On Fri, Jun 19, 2015 at 6:30 PM, Ernesto Reinaldo Barreiro <
> >>  reier...@gmail.com> wrote:
> >> 
> >> > Hi,
> >> >
> >> > Does BootstrapFileInput plays nicely with Wicket "AJAX" file
> upload?
> >> >
> >> > --
> >> > Regards - Ernesto Reinaldo Barreiro
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Regards - Ernesto Reinaldo Barreiro
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >> > --
> >> > Regards - Ernesto Reinaldo Barreiro
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


Re: AjaxButton abstract

2015-06-20 Thread Martin Grigorov
Hi Ernesto,

I guess the reason is to make you override at least one of #onSubmit(),
#onAfterSubmit() and/or #onError().
Not every app needs to implement all of these methods, but every
application needs at least one of them.

This is how I explain this to me.

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sat, Jun 20, 2015 at 8:47 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Saturday mornings :-( What's the reasoning behind
>
>
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxButton.java
>
> being abstract? It does not forces you to override any methods :-)
>
>  form.add(new AjaxButton("save") {
>
>
> })
>
>
> On Sat, Jun 20, 2015 at 7:45 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi,
> >
> > What the reasoning behind
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


[ANNOUNCE] Wicket Bootstrap 0.9.11 is released

2015-06-20 Thread Martin Grigorov
Hi,

Wicket Bootstrap 0.9.11 has been released and soon will be available at
Maven Central.

The major change is the upgrade of Bootstrap to 3.3.5.

The Git short log is:

Martin Tzvetanov Grigorov (16):
  [maven-release-plugin] prepare for next development iteration
  Update the latest version built against Wicket 6.x
  Update Less4j to 1.12.0
  [BootstrapCheckbox] Fixes #516 - Read the form component's label
lazily
  [BootstrapCheckbox] Issue #516 - BootstrapCheckbox's model type
should be Boolean
  [BootstrapRadioButton] Fixes #519 - Do not wrap with div.radio when
the radio button is inline
  [BootstrapRadioButton] Issue #519 - Fix broken test
  Update libraries: Wicket 6.20.0, Logback 1.1.3, JUnit 4.12, Guava 18.0
  Upgrade Bootstrap to 3.3.5
  Fix warnings in bootstrap-samples/pom.xml
  [theme] Update Material design theme
  [theme] Update Bootswatch to 3.3.5
  [theme] Update Metro theme to 3.3.5
  [theme] Update Google theme (TODC) to 3.3.5
  [maven-release-plugin] prepare release bootstrap-parent-0.9.11

Martin Grigorov (2):
  Merge pull request #513 from klopfdreh/master
  Merge pull request #518 from tahitiangabriel/master

TahitianGabriel (2):
  add convertInput()
  revert file 'auto-format'

Tobias Soloschenko (1):
  JDK8 junit fix - wicket-jquery-selector 0.1.5 has to be released
first!


Thank you to bug reporters and contributors!

Wicket Bootstrap team


Re: AjaxButton abstract

2015-06-20 Thread Ernesto Reinaldo Barreiro
martin,

as it is now you are not forced to implement a method as they are
implemented on ajaxbutton and besides that you might just do your logic on
form on submit.
On 20 Jun 2015 11:47, "Martin Grigorov"  wrote:

> Hi Ernesto,
>
> I guess the reason is to make you override at least one of #onSubmit(),
> #onAfterSubmit() and/or #onError().
> Not every app needs to implement all of these methods, but every
> application needs at least one of them.
>
> This is how I explain this to me.
>
> Martin Grigorov
> Freelancer. Available for hire!
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Sat, Jun 20, 2015 at 8:47 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Saturday mornings :-( What's the reasoning behind
> >
> >
> >
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxButton.java
> >
> > being abstract? It does not forces you to override any methods :-)
> >
> >  form.add(new AjaxButton("save") {
> >
> >
> > })
> >
> >
> > On Sat, Jun 20, 2015 at 7:45 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > What the reasoning behind
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


Re: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-20 Thread Ulrich
@Sebastien,
thanks - works. I had started this way, but didn't get the ListView becoming
instantiated. Trying again now worked fine.
Nevertheless I still can't tell why the both of the approaches react
different; I had implemented it as far as I can see alike.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Webpage-does-not-refresh-when-ListView-is-based-on-a-List-supplied-by-a-database-tp4671251p4671267.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: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-20 Thread Ulrich
@Ernesto,
I understand, that the idea of the LoadableDetachableModule is to get rid of
the storage occupied by the list to avoid an overhead of serialization. To
get sort of dynamics it mus be nested with a PropertyModel, isn't it?
I will give it a try tomorrow.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Webpage-does-not-refresh-when-ListView-is-based-on-a-List-supplied-by-a-database-tp4671251p4671268.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: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-20 Thread Sebastien
Hi Ulrich,

If not already done, you should read the wicket free guide, in particular
the model section:
http://ci.apache.org/projects/wicket/guide/6.x/guide/single.html#modelsforms_1

The PropertyModel paragraph will answer your question...

Happy reading & best regards,
Sebastien.


On Sat, Jun 20, 2015 at 4:31 PM, Ulrich  wrote:

> @Ernesto,
> I understand, that the idea of the LoadableDetachableModule is to get rid
> of
> the storage occupied by the list to avoid an overhead of serialization. To
> get sort of dynamics it mus be nested with a PropertyModel, isn't it?
> I will give it a try tomorrow.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Webpage-does-not-refresh-when-ListView-is-based-on-a-List-supplied-by-a-database-tp4671251p4671268.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: Wicket with some servlet container on Android?

2015-06-20 Thread Sven Meier

Hi,

>I've found some posts about Jetty and Tomcat regarding this,
>which don't look very promising.

there seem to be different solutions already, why do you think they are 
not promising?


https://github.com/jetty-project/i-jetty

Actually it would be interesting to just skip all servlet stuff and just 
use an HTTP server:


https://github.com/NanoHttpd/nanohttpd

An extension could close the gap between HTTP and Wicket's request and 
response classes, skipping WicketFilter alltogether.


Have fun
Sven


On 20.06.2015 10:30, Thorsten Schöning wrote:

Hi all,

we have a web app based on Wicket, Tomcat 7 etc. and one of our
customers has a native Windows only app which is about to be replaced
now to 1. support Android as well, 2. add some missing features and 3.
provide some more modern GUI and such. The two most interesting things
for that replacement from my point of view are that the new app needs
to be able to work totally offline and that its current and some of
the new features contains things the customer already asked for the
Wicket-web app we've created as well.

Working offline is a hard requirement, so we can't just use the Wicket
web app as it is. But because features are clearly overlapping we
don't want to maintain a very comparable feature set with two
different technologies for years to come. Our customer totally agrees
with that and sees the functional overlapping as well.

So, is there already any experience or suggestions about or "down
votes" of an approach were one would embed some servlet container in
an Android app and provide the frontend using Wicket, HTML, JS and
CSS? This shouldn't be too much of a problem with Windows desktops,
but a completely different thing for Android.

I've found some posts about Jetty and Tomcat regarding this, which
don't look very promising.

But how about Wicket itself? Maybe someone already tried or knows it's
impossible because of the Android API or Dalvik or such.

Any thoughts welcome, thanks!

Mit freundlichen Grüßen,

Thorsten Schöning




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