Re: Display custom page automatically on session expiry without any action

2020-09-24 Thread Ernesto Reinaldo Barreiro
Hi,

Glad it helped. After I sent my last message, I was thinking again about
this problem and I believe another possibility is to use web-sockets and
some server side logic that just notifies the browser sending a redirect to
a "session expired page". This might be more reliable than some client side
logic (as far as I remember there was some trickery to account for the fact
that inactive tabs on browsers are put on "the background").

On Thu, Sep 24, 2020 at 7:16 AM Vignesh Palanisamy 
wrote:

> Hi Ernesto,
>
> Thanks, It helps a lot. it would be good if we had it with wicketstuff.
>
> Thanks & Regards
> Vignesh Palanisamy
>
>
> On Sat, Sep 12, 2020 at 8:42 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi,
> >
> >
> https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent
> >
> > Not sure what is the status of this project but I think use case was
> > similar tro what you mention
> >
> >
> > On Fri, Sep 11, 2020 at 4:55 AM Arunachalam Sibisakkaravarthi <
> > arunacha...@mcruncher.com> wrote:
> >
> > > Hi guys,
> > > When session expires, user is redirected to a page set by
> > > getApplicationSettings().setPageExpiredErrorPage(SomePage.class) on his
> > > next action.
> > > But I want to display a page automatically without his next action.
> > > So that last rendered page will not be displayed after session expiry
> > like
> > > banking sites.
> > > How do I achieve this?
> > >
> > >
> > >
> > >
> > > *Thanks And RegardsSibi.ArunachalammCruncher*
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Display custom page automatically on session expiry without any action

2020-09-12 Thread Ernesto Reinaldo Barreiro
Hi,

https://github.com/reiern70/antilia-bits/tree/master/client-sign-out-parent

Not sure what is the status of this project but I think use case was
similar tro what you mention


On Fri, Sep 11, 2020 at 4:55 AM Arunachalam Sibisakkaravarthi <
arunacha...@mcruncher.com> wrote:

> Hi guys,
> When session expires, user is redirected to a page set by
> getApplicationSettings().setPageExpiredErrorPage(SomePage.class) on his
> next action.
> But I want to display a page automatically without his next action.
> So that last rendered page will not be displayed after session expiry like
> banking sites.
> How do I achieve this?
>
>
>
>
> *Thanks And RegardsSibi.ArunachalammCruncher*
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: generating a quick-start project bocken?

2020-09-11 Thread Ernesto Reinaldo Barreiro
Disregard my previous e-mail.

More information. This happens with 8.8.0 and 9.0.0 and works with 8.7.0

mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=8.7.0
-DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=
https://repository.apache.org/ -DinteractiveMode=false -X

error was



* Found archetype org.apache.wicket:wicket-archetype-quickstart:9.0.0 in
cache:
/home/reiern70/.m2/repository/org/apache/wicket/wicket-archetype-quickstart/9.0.0/wicket-archetype-quickstart-9.0.0.jar[DEBUG]
checking fileset archetype status on
/home/reiern70/.m2/repository/org/apache/wicket/wicket-archetype-quickstart/9.0.0/wicket-archetype-quickstart-9.0.0.jar[DEBUG]
org.apache.maven.archetype.exception.UnknownArchetype:
java.util.zip.ZipException: zip END header not found*

*I*t seem wicket-archetype-quickstart-9.0.0.jar download was broken on my
end. Removing it from my local it made everything work as expected.

On Fri, Sep 11, 2020 at 10:05 PM Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> I'm trying
>
>
> *mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=9.0.0
> -DgroupId=com.mycompany -DartifactId=myproject
> -DarchetypeRepository=https://repository.apache.org/
> <https://repository.apache.org/> -DinteractiveMode=false*
>
> and this fails with
>
> I
>
>
>
>
>
>
>
>
>
>
>
> *NFO] BUILD FAILURE[INFO]
> [INFO]
> Total time:  0.824 s[INFO] Finished at: 2020-09-11T12:00:24-07:00[INFO]
> [ERROR]
> Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli)
> on project standalone-pom: null: MojoFailureException: NullPointerException
> -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors,
> re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to
> enable full debug logging.[ERROR] [ERROR] For more information about the
> errors and possible solutions, please read the following articles:[ERROR]
> [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
>
> it seems I have latest maven version (http://maven.apache.org/download.cgi
> )
>
>
>
>
>
>
> *Apache Maven 3.6.3Maven home: /usr/share/mavenJava version: 11.0.8,
> vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64Default locale:
> en_US, platform encoding: UTF-8OS name: "linux", version:
> "5.4.0-47-generic", arch: "amd64", family: "unix"*
>
> Does anyone else experience this?
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


-- 
Regards - Ernesto Reinaldo Barreiro


generating a quick-start project bocken?

2020-09-11 Thread Ernesto Reinaldo Barreiro
Hi,

I'm trying


*mvn archetype:generate -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=9.0.0
-DgroupId=com.mycompany -DartifactId=myproject
-DarchetypeRepository=https://repository.apache.org/
<https://repository.apache.org/> -DinteractiveMode=false*

and this fails with

I











*NFO] BUILD FAILURE[INFO]
[INFO]
Total time:  0.824 s[INFO] Finished at: 2020-09-11T12:00:24-07:00[INFO]
[ERROR]
Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli)
on project standalone-pom: null: MojoFailureException: NullPointerException
-> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors,
re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to
enable full debug logging.[ERROR] [ERROR] For more information about the
errors and possible solutions, please read the following articles:[ERROR]
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*

it seems I have latest maven version (http://maven.apache.org/download.cgi)






*Apache Maven 3.6.3Maven home: /usr/share/mavenJava version: 11.0.8,
vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64Default locale:
en_US, platform encoding: UTF-8OS name: "linux", version:
"5.4.0-47-generic", arch: "amd64", family: "unix"*

Does anyone else experience this?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: JavaScript/CSS/etc resources from NPM

2020-07-09 Thread Ernesto Reinaldo Barreiro
Many thanks for sharing

On Thu, Jul 9, 2020 at 2:08 AM Илья Нарыжный  wrote:

> Hello, Wicket Users,
>
> I will really appreciate your feedback on a new library which is
> almost ready and about to be released.
> https://github.com/OrienteerBAP/JNPM
> It provides java native API to work with Node Package Manager.
> Use Cases:
> 1) Explore NPM registry from Java native application
> 2) Pack NPM packages inside JAR. Yes - it's alternative for WebJars
> and frontend-maven-plugin. Big advantage in respect to WebJars: you
> can filter what exact resources you want to pick (for example only
> content for dist/ folder from a package) and after packing you can
> still use such things like
> https://github.com/l0rdn1kk0n/wicket-webjars
> 3) Implementation of your own embedded CDN which can transparently
> download NPM resources per request and serve the required file to a
> client. There are 2 implementations: Wicket and Servlet based.
>
> Let me also mention that this library was built keeping performance in
> mind. It uses RxJava for packages traversal and retrieval.
> If you are interested - please read README.
>
> I will really appreciate for any thought: about functional part or
> about library application somewhere or even promotion.
>
> P.S. There are few things to do as technical debt... So code might be
> not so nice and clean as it would be for first public version.
>
> Thanks,
>
> Ilia
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: How to parse URL-strings based on some template for contained parameters?

2020-05-27 Thread Ernesto Reinaldo Barreiro
Hi,

\
> I'm using Wicket as some template engine to generate reports about
> tabular data as HTML-documents in a backend published using SOAP. The
> called SOAP-interfaces expect what to generate pretty much as some
> path/URL-like resource description:
>
> > alert/topic1/foo/bar
> > report/topic1/foo/bar
> > report/topic2/bar/foo
>
> I would like to have some parser for those kinds of paths/URLs, so
> that I'm able to provide some template-paths and get some results by
> name.
>
> > ${type}/${topic}/foo/${fooVal}
>
>
You can count a resource using exactly like that

https://ci.apache.org/projects/wicket/guide/6.x/guide/resources.html#resources_11
https://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/




> Is something like that available in Wicket already?
>
> Looking at "PageParameters", Wicket does only support query strings
> and indexed parameters, so no support for templates like the above.
> Indexed parameters don't seem too different, though. Additionally,
> "PagerParameters" doesn't seem to support parsing itself.
>
> So how can I parse a string only and get "PageParameters"?
>
> I've found "UrlRequestParametersAdapter" and
> "UrlPathPageParametersEncoder", the latter supports decoding paths
> like "/key1/value/key2/value" etc. And both don't seem to be bound to
> an application or HTTP, which would exactly be what I need.
>
> Anything else to look at? 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
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Need an event later than 'done'

2020-01-21 Thread Ernesto Reinaldo Barreiro
Hi,

I know this is not bulletproof but I always add a timeOut to hiding the
veil, usually 300, 400 milliseconds, so that there is some margin for AJAX
request to finish. Also some AJAX requests are so fast that veil + almost
not visible. spinner is

On Tue, Jan 21, 2020 at 11:59 PM Entropy  wrote:

> That seems promising.  If you could look how you did it in your other
> project
> that would be great.  I suppose if I could get access to the response XML I
> could look for the redirect in that.  I'm not sure where it is though or
> even if it's provided to this event.
>
> --
> 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
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: StringResourceModel parameter and AJAX update

2020-01-21 Thread Ernesto Reinaldo Barreiro
Hi,

Instead of passing as parameter selectedUser try passing

new IModel {
getObject() {
return selectedUser;
}
}

as parameter. If you are using wicket 7.x then instead of IModel you could
use an AbstractReadonlyModel

On Tue, Jan 21, 2020 at 11:31 PM Zbynek Vavros 
wrote:

> Hi,
>
> just simple use-case but I can't figure it out.
>
> I have DropDownChoice that selects User and Label having
> StringResourceModel where the parameter (new
> StringResourceModel(...).setParameter(selectedUser)) is the selected user.
> How do I update the Label's model so that it reflects User selected via
> AJAX?
>
> Thanks,
> Zbynek
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: AjaxEventBehavior/AjaxFormComponentUpdatingBehavior & visibility

2020-01-21 Thread Ernesto Reinaldo Barreiro
Hi,

I don't know if it is related or not but I have experienced a similar
problem while using borders. I don't remember the exact situation but I can
try to dig our code base and find out what was it.

On Tue, Jan 21, 2020 at 10:14 AM Rob Audenaerde 
wrote:

> Hi Sven,
>
> Thanks for double-checking!
>
> The weird thing is that I thought this solved my problem, but when I tried
> to create the quickstart; I couldn't reproduce it either :o. I seem to have
> been mistakenly assuming it was this piece of code that fixed the problem.
>
> So I tried to build it more towards our application and I saw a
>  that causes this behavior (the isVisibleInHierarchy() is
> not working there).
>
> I attached the quickstart for those who want to experiment with it.
>
> -Rob
>
> On Mon, Jan 20, 2020 at 7:17 PM Sven Meier  wrote:
>
>> Hi Rob,
>>
>> actually I wasn't able to reproduce the problem on a second try (not
>> sure what I tested before).
>>
>> Can you create a a quickstart showing the problem?
>>
>> Sven
>>
>> On 20.01.20 13:18, Sven Meier wrote:
>> > Hi Rob,
>> >
>> >> the 'correct' way to solve this?
>> >
>> > the component is explicitly added to the Ajax request for an update,
>> > but decides to hide itself in onConfigure().
>> > Perfectly valid usecase IMHO, but the head will be rendered
>> > nevertheless :/
>> >
>> > Just tested with 7.x, 8.x and master, this seems to have been that way
>> > forever.
>> > But maybe we can improve that in Wicket core?
>> >
>> > Sven
>> >
>> >
>> > On 20.01.20 10:36, Rob Audenaerde wrote:
>> >> Hi all,
>> >>
>> >> I recently got some javascript errors that came from behaviors of
>> >> components that where triggered to be visible or invisible in the dom
>> >> (using onConfigure()) in an ajax request.
>> >>
>> >> Typically something like:
>> >>
>> >> Wicket.Ajax:  Cannot bind a listener for event "change" on element
>> >> "format1dd" because the element is not in the DOM
>> >>
>> >> I solve this by adding an isVisibleInHierarchy() check in the
>> >> renderHead()
>> >> like this:
>> >>
>> >> @Override
>> >>
>> >> public void renderHead(final Component component, final IHeaderResponse
>> >> response) {
>> >>  if (component.isVisibleInHierarchy()) {
>> >>  super.renderHead(component, response);
>> >>  }
>> >> }
>> >>
>> >> I was wondering if this is the 'correct' way to solve this? Or am I
>> >> doing
>> >> something wrong?
>> >>
>> >> Please advise :)
>> >>
>> >> -Rob
>> >>
>> >
>> > -
>> > 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
>>
>>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Retrieve user's page on the site

2019-12-31 Thread Ernesto Reinaldo Barreiro
Do you mean for the blocker thing? Or for login errors? Or both?

Happy new year to all.

On Tue, Dec 31, 2019 at 4:07 PM Johannes Renoth 
wrote:

> Hi Ernesto Reinaldo Barreiro ,
>
> Can you provide example code for a solution? Since this is a general
> Problem, maybe it would be helpful to add it to the wicket core libaries.
>
> Have a happy new year,
>
> Johannes Renoth
>
> On 2019-12-30 16:52, Ernesto Reinaldo Barreiro wrote:
> > Hi,
> >
> > One thing I immediately do for any wicket application is rolling a
> blocker
> > DIV preventing users to double click on AJAX links: Situation? User
> clicks
> > in some AJAX link and meanwhile request is being processed the user
> clicks
> > on something "that will not be there" when AJAX request finishes. This
> > blocking logic can be added globally and it is also easy to mark "request
> > and don't show blocker". In my current customer's main application
> rolling
> > out such a solution drastically reduced the number of such errors.
> >
> > For other application, a side project, I remember rolling out a
> > IRequestCycleListener
> > that logged details from errors into some external storage so I had not
> > fight with logs (and there you can store the precise info you need to
> track
> > user's actions).
> >
> >
> >
> > On Mon, Dec 30, 2019 at 5:03 PM Bas Gooren  wrote:
> >
> >> Hi!
> >>
> >> We see these typos of errors every now and then too. It’s usually people
> >> navigating to old pages, double clicking on links etc.
> >>
> >> Nevertheless, in our logs these are relatively easy to find: we send out
> >> e-mail notifications when such errors occur, and the e-mail includes
> quite
> >> some details (page, component, session id, logged in user etc, user ip);
> >> So far, I have always been able to trace the user’s steps by simply
> >> grepping the access logs for their IP around the time of the exception.
> >>
> >> Should you not be able to do that, I guess it would be relatively
> simple to
> >> track user actions (e.g. the last 10 actions) yourself in the user
> session.
> >> Simply write a request cycle listener, and get some meaningful
> information
> >> from the next handler to be executed.
> >>
> >> E.g. override onRequestHandlerScheduled() and deduct the action from the
> >> request handler;
> >>
> >> ListenerRequestHandler: component or behavior invoked
> >> etc.
> >>
> >> Store the actions as strings (e.g. “render pageX(pageParams=XYZ)”,
> “Click
> >> on link a.b.c in PageX”, “Submit form path.to.component in PageX”).
> >>
> >> If you have an app where users are logged in, you can track the last X
> >> actions in the user’s session; Otherwise you could externalize this
> (either
> >> in-memory by IP, or some other backing store).
> >> When an exception occurs, you can catch it in your request cycle
> listener
> >> and fetch the last user actions. Together, these should provide a better
> >> trail of actions leading up to the exceptions.
> >>
> >> Met vriendelijke groet,
> >> Kind regards,
> >>
> >> Bas Gooren
> >>
> >> Op 30 december 2019 bij 05:24:19, Илья Нарыжный (phan...@ydn.ru)
> schreef:
> >>
> >> Hello,
> >>
> >> We have pretty widely used software with thousands of visits per day.
> >> And from time to time we observe pretty weird Wicket related errors
> >> in logs. Commonly it's something about components structure: no such
> >> child, there is already such element and etc. But the problem is that
> >> commonly we can't reproduce the problem right away: page is working as
> >> expected. So such mysterious problems just lie in logs and not being
> >> fixed.
> >> And here is the question: is there some good way to retrieve and log
> >> previous user actions and etc.? Theoretically everything should be in
> >> PageStore. What can you recommend to handle such problems properly?
> >>
> >> P.S. To be able to catch such problems we even build a system for
> >> gathering all logs on a central server and correlate them with each
> >> other according to some correlation logic. But still - no big luck -
> >> so we really believe that problem is in fact that we know only current
> >> user page/location and do not know historical aspect.
> >>
> >> Thanks,
> >> Ilia
> >>
> >> -
> >> Orienteer(http://orienteer.org) - open source Business Application
> >> Platform
> >>
> >> -
> >> 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
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Retrieve user's page on the site

2019-12-30 Thread Ernesto Reinaldo Barreiro
Hi,

One thing I immediately do for any wicket application is rolling a blocker
DIV preventing users to double click on AJAX links: Situation? User clicks
in some AJAX link and meanwhile request is being processed the user clicks
on something "that will not be there" when AJAX request finishes. This
blocking logic can be added globally and it is also easy to mark "request
and don't show blocker". In my current customer's main application rolling
out such a solution drastically reduced the number of such errors.

For other application, a side project, I remember rolling out a
IRequestCycleListener
that logged details from errors into some external storage so I had not
fight with logs (and there you can store the precise info you need to track
user's actions).



On Mon, Dec 30, 2019 at 5:03 PM Bas Gooren  wrote:

> Hi!
>
> We see these typos of errors every now and then too. It’s usually people
> navigating to old pages, double clicking on links etc.
>
> Nevertheless, in our logs these are relatively easy to find: we send out
> e-mail notifications when such errors occur, and the e-mail includes quite
> some details (page, component, session id, logged in user etc, user ip);
> So far, I have always been able to trace the user’s steps by simply
> grepping the access logs for their IP around the time of the exception.
>
> Should you not be able to do that, I guess it would be relatively simple to
> track user actions (e.g. the last 10 actions) yourself in the user session.
> Simply write a request cycle listener, and get some meaningful information
> from the next handler to be executed.
>
> E.g. override onRequestHandlerScheduled() and deduct the action from the
> request handler;
>
> ListenerRequestHandler: component or behavior invoked
> etc.
>
> Store the actions as strings (e.g. “render pageX(pageParams=XYZ)”, “Click
> on link a.b.c in PageX”, “Submit form path.to.component in PageX”).
>
> If you have an app where users are logged in, you can track the last X
> actions in the user’s session; Otherwise you could externalize this (either
> in-memory by IP, or some other backing store).
> When an exception occurs, you can catch it in your request cycle listener
> and fetch the last user actions. Together, these should provide a better
> trail of actions leading up to the exceptions.
>
> Met vriendelijke groet,
> Kind regards,
>
> Bas Gooren
>
> Op 30 december 2019 bij 05:24:19, Илья Нарыжный (phan...@ydn.ru) schreef:
>
> Hello,
>
> We have pretty widely used software with thousands of visits per day.
> And from time to time we observe pretty weird Wicket related errors
> in logs. Commonly it's something about components structure: no such
> child, there is already such element and etc. But the problem is that
> commonly we can't reproduce the problem right away: page is working as
> expected. So such mysterious problems just lie in logs and not being
> fixed.
> And here is the question: is there some good way to retrieve and log
> previous user actions and etc.? Theoretically everything should be in
> PageStore. What can you recommend to handle such problems properly?
>
> P.S. To be able to catch such problems we even build a system for
> gathering all logs on a central server and correlate them with each
> other according to some correlation logic. But still - no big luck -
> so we really believe that problem is in fact that we know only current
> user page/location and do not know historical aspect.
>
> Thanks,
> Ilia
>
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> -----
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Application not seri

2019-12-21 Thread Ernesto Reinaldo Barreiro
By the way: your avatar made me remember good times sitting together with
my boy watching adventure times :-)

On Sat, Dec 21, 2019 at 9:03 AM ShengChe Hsiao  wrote:

> Dear all
> I faced a strange exception, the error message:
>
> A problem occurred while checking object with type:
> info.sls.WicketApplication
>
> Field hierarchy is:
>
>   1 [class=info.sls.MapPage, path=1]
>
> private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=java.util.ArrayList]
>
>   private java.lang.Object
> org.apache.wicket.MarkupContainer.children[write:27][write:28]
> [class=org.apache.wicket.markup.html.form.StatelessForm,
> path=1:formGMapSelect]
>
> private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=java.util.ArrayList]
>
>   private final java.lang.String
>
> org.apache.wicket.markup.html.form.ChoiceRenderer.idExpression[write:8][write:11]
> [class=org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink,
> path=1:formGMapSelect:btnSelect]
>
> final info.sls.GMapPanel info.sls.MapPage$1.val$gMapPanel
> [class=info.sls.GMapPanel, path=1:gmaps]
>
>   java.lang.Object org.apache.wicket.Component.data
> [class=[Ljava.lang.Object;]
>
> java.lang.Object org.apache.wicket.Component.data[0]
> [class=org.apache.wicket.model.LoadableDetachableModel]
>
>   final info.sls.WicketApplication
> info.sls.WicketApplication$3.this$0 [class=info.sls.WicketApplication]
> <- field that is causing the problem
>
>
> I use transient with WicketApplication in my BasePage, but the issue
> continued.
>
>
> private transient WicketApplication wicketApplication;
>
>
>
> Any suggestions?
> 
> --->
> To boldly go where no man has gone before.
> 
> --->
> We do this not because it is easy. We do this because it is hard.
> -
> -->
> If I have seen further it is by standing on the shoulders of giants.
> --
> ----->
> front...@gmail.com
>
> ->
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Application not seri

2019-12-21 Thread Ernesto Reinaldo Barreiro
Hi,

Instead of keeping a reference to WebApplication just use
Application.get();: it is bound to thread as a threadlocal. If you need
your specific instance you can always add

public static MyWebApplication getInstance() {
  return (MyWebApplication) Application.get();
}

to class MyWebApplication, This way you can always
call MyWebApplication.getInstance() and you don't need to keep a
reference to it as a field on base page.


On Sat, Dec 21, 2019 at 9:03 AM ShengChe Hsiao  wrote:

> Dear all
> I faced a strange exception, the error message:
>
> A problem occurred while checking object with type:
> info.sls.WicketApplication
>
> Field hierarchy is:
>
>   1 [class=info.sls.MapPage, path=1]
>
> private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=java.util.ArrayList]
>
>   private java.lang.Object
> org.apache.wicket.MarkupContainer.children[write:27][write:28]
> [class=org.apache.wicket.markup.html.form.StatelessForm,
> path=1:formGMapSelect]
>
> private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=java.util.ArrayList]
>
>   private final java.lang.String
>
> org.apache.wicket.markup.html.form.ChoiceRenderer.idExpression[write:8][write:11]
> [class=org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink,
> path=1:formGMapSelect:btnSelect]
>
> final info.sls.GMapPanel info.sls.MapPage$1.val$gMapPanel
> [class=info.sls.GMapPanel, path=1:gmaps]
>
>   java.lang.Object org.apache.wicket.Component.data
> [class=[Ljava.lang.Object;]
>
> java.lang.Object org.apache.wicket.Component.data[0]
> [class=org.apache.wicket.model.LoadableDetachableModel]
>
>   final info.sls.WicketApplication
> info.sls.WicketApplication$3.this$0 [class=info.sls.WicketApplication]
> <- field that is causing the problem
>
>
> I use transient with WicketApplication in my BasePage, but the issue
> continued.
>
>
> private transient WicketApplication wicketApplication;
>
>
>
> Any suggestions?
> 
> --->
> To boldly go where no man has gone before.
> 
> --->
> We do this not because it is easy. We do this because it is hard.
> -
> -->
> If I have seen further it is by standing on the shoulders of giants.
> --
> ----->
> front...@gmail.com
>
> ->
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: FileUpload class still implements IClusterable

2019-12-04 Thread Ernesto Reinaldo Barreiro
Done

On Tue, Dec 3, 2019 at 6:19 PM Martin Grigorov  wrote:

> On Tue, Dec 3, 2019 at 3:42 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Hi Martin,
> >
> >
> > On Tue, Dec 3, 2019 at 3:09 PM Martin Grigorov 
> > wrote:
> >
> > > Hi Ernesto,
> > >
> > > Yes, I think FileUpload should not be Serializable.
> > > FileUploadField uses transient reference to the list of file uploads
> for
> > > this reason:
> > >
> > >
> >
> https://github.com/apache/wicket/blob/ad6ecac7fdebefc25d310361f3a92aa481c36b1f/wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/FileUploadField.java#L50
> >
> >
> > Yes I'm aware of this behaviour: I just fixed some related issue in our
> > project and while doing that I noticed mentioned problem? Shall I create
> an
> > issue for this or just a PR?
> >
>
> Issue + commit (you have the permissions).
> But maybe only in Wicket 9.x because otherwise Clirr plugin will complain
> that it is an API break.
>
>
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: FileUpload class still implements IClusterable

2019-12-03 Thread Ernesto Reinaldo Barreiro
Hi Martin,


On Tue, Dec 3, 2019 at 3:09 PM Martin Grigorov  wrote:

> Hi Ernesto,
>
> Yes, I think FileUpload should not be Serializable.
> FileUploadField uses transient reference to the list of file uploads for
> this reason:
>
> https://github.com/apache/wicket/blob/ad6ecac7fdebefc25d310361f3a92aa481c36b1f/wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/FileUploadField.java#L50


Yes I'm aware of this behaviour: I just fixed some related issue in our
project and while doing that I noticed mentioned problem? Shall I create an
issue for this or just a PR?

-- 
Regards - Ernesto Reinaldo Barreiro


FileUpload class still implements IClusterable

2019-12-03 Thread Ernesto Reinaldo Barreiro
Hi,

FileUpload still implements IClusterable but it contains a field of type
FileItem: which is no longer Serializable. Should IClusterable be dropped?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: DynamicModel within ListView That Refreshes on ModalWindow Close

2019-09-26 Thread Ernesto Reinaldo Barreiro
Hi,

It is difficult to understand what you are describing. What I guess is you
have a panel containing a listview and a label and open some modal to do
some operation on listview and after that operation you want the label to
show correct number of elements? If so, make the label receive a dynamic
model not caching the number of elements (e.g. AbstractReadOnlyModel or
LDM). Then I would update the whole panel via AJAX.

Side note: no one in this list is getting paid for answering and helping
people. Maybe starting you messages with "Thanks for your answer... But
unfortunately what you have answered does not help me because ..." might
increase the chances you get answered in the future.

On Wed, Sep 25, 2019 at 9:00 PM dylanbozeman 
wrote:

> I have a Label within a ListView that is refreshed using Ajax upon the
> closing of a ModalWindow that is also part of that ListView.
>
> Th problem is, the Label isn't refreshing.
>
> I don't believe I can use a PropertyModel within a ListView and I believe I
> need that for the Label to by dynamic. (if I can use a PropertyModel, how
> so? because I can't specify - new PropertyModel(this,
> "localVariableInsideListView") - because it looks at the class level for
> that variable)
>
> Is there a way around this or something I am not seeing?
>
> When I do this with a regular Model I am getting:
>
> [qtp976782276-127] WARN org.apache.wicket.page.PartialPageUpdate -
> Component
> '[Component id = numberLabel]' not rendered because it was already removed
> from 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
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: [ANNOUNCE] Apache Wicket 8.6.0 released

2019-09-09 Thread Ernesto Reinaldo Barreiro
t;
>  * [WICKET-6675] - log4j-slf4j-impl requires version 1.7.25 of
> slf4j-api while Wicket 8.5 requires version 1.7.26
>  * [WICKET-6684] - Make autolabel functionality more flexible by
> introducing a locator interface that allows to specify the component the
> wicket:for refers to
>  * [WICKET-6695] - Add AjaxEditable*Label#shouldTrimInput()
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: [ANNOUNCE] Apache Wicket 8.6.0 released

2019-09-08 Thread Ernesto Reinaldo Barreiro
Thanks Andrea

On Sat, Sep 7, 2019 at 8:22 PM Andrea Del Bene  wrote:

> The Apache Wicket PMC is proud to announce Apache Wicket 8.6.0!
>
> Apache Wicket is an open source Java component oriented web application
> framework that powers thousands of web applications and web sites for
> governments, stores, universities, cities, banks, email providers, and
> more. You can find more about Apache Wicket at https://wicket.apache.org
>
> This release marks another minor release of Wicket 8. We
> use semantic versioning for the development of Wicket, and as such no
> API breaks are present breaks are present in this release compared to
> 8.0.0.
>
> Using this release
> --
>
> With Apache Maven update your dependency to (and don't forget to
> update any other dependencies on Wicket projects to the same version):
>
> 
>  org.apache.wicket
>  wicket-core
>  8.6.0
> 
>
> Or download and build the distribution yourself, or use our
> convenience binary package you can find here:
>
>   * Download: http://wicket.apache.org/start/wicket-8.x.html#manually
>
> Upgrading from earlier versions
> ---
>
> If you upgrade from 8.y.z this release is a drop in replacement. If
> you come from a version prior to 8.0.0, please read our Wicket 8
> migration guide found at
>
>   * http://s.apache.org/wicket8migrate
>
> Have fun!
>
> — The Wicket team
>
>
> 
>
>  The signatures for the source release artefacts:
>
>
> Signature for apache-wicket-8.6.0.zip:
>
>  -BEGIN PGP SIGNATURE-
>
> iQIzBAABCgAdFiEE0a6YZHC1pJw+aieyh48B+qjTVuEFAl1u0ggACgkQh48B+qjT
> VuHBVRAAgX8nPfftIKv6z0Rimyg4M9hefpkwcVCkj8mQ2q9cnRQCNN8lWPrVsqOz
> jfkWOM1I3rmjR60o5eREFuNK+t7RNxdwfdZqlB+zsgu2BCNscpQMaTruf2uI14ip
> B83PYCMkTSDA+BCJD1MTwRf3Ih3M+0rq4l3vedzStfC4GvmmwHRvMWTOml5i9Whg
> pSStZvX9h61n6ofRNq/feLQi7342GOgv+/r0cvTVDRdIsEeYGalu1b+ZJKsjfTX3
> l0oMiRILzFltg+CQP0fhWibfLkvyRLM+R4598rgvwM+QcKo7aCn0LcIEIhp0dYDS
> KI6IhsPd/NS0qKoKgIPmQ6tMsvMWGOxTOpQMxnAj97wVzYVf1QoXArPuc+JaSrFE
> D/a78zUMc78UFjdt38NBA22jf7HbcjVkAUUjD9fPtNStFnnrisniyw16dL0Wa6MA
> kuiPuyl7gsPAkmOXH68KtVaR7ncTORPCt4ZC/6GxoRbhDc71+dLPz5XKpeDdqy8O
> /pBGtsucjI9xIGZqGHWFvfAaBqqv2t4QARxOdkDA9d09PL4o/N+gljho+a30GrDv
> A35wG2y2Idkoe1t4EJeHpMHGPmqMAj/m1wYagJjMeiXRDgtfFoJIlRfAboxq8Dwd
> uT+mRsdS0hq8q78yPZPW3N24cC3gwohFJMWfb4IukQbFGI2gznE=
> =mzMF
> -END PGP SIGNATURE-
>
> Signature for apache-wicket-8.6.0.tar.gz:
>
>  -BEGIN PGP SIGNATURE-
>
> iQIzBAABCgAdFiEE0a6YZHC1pJw+aieyh48B+qjTVuEFAl1u0ggACgkQh48B+qjT
> VuHSZw//WF61doVJ8fDK8hPvk8Td6Yf4hMzP7kff7tAkm+w72LqnXlUM7IDci5nz
> Dcx627fBAYIXdRtfOkq53vRrFV+1e87x8iM/bnp7Tzj5lwF6BOvRkQ+gr6U6+6An
> 5CblTMT5kSq9xKGm8/Gj6I1OrQiVdSqFPWt7N/4D7FG9uekRVJoc+0ubekqdGR1M
> lkoT8Wfteo7sstoD8qvQEgyKKZLqbxTKDGiVBywmSKVuxkv+4JnETI2k1R1TsCr0
> /JdGx6fNxd/sBUKLoAUo8cxBpv9weuzvPCMw89eVGsKacBDedZMK7iMfR3M43Iz/
> HuEN26JnHM3kqSBCMMYE197djXOroUhXmhr9WfNRxiaTqJsKbS1oG3jO9EkHQt8Y
> ldhwiTaH8PmGE72xhn+w+FElZvazwlFXSECHZK92wGFEzq5VO7atv88AOmtQHM1o
> LbgHOjhUYLQHj15JXn4g4XYFJ5WnZR3gbldAV9JEhXqnx30M6wMDrWCCw6K0+uh2
> k8Il3y6TMY7KSrnUYwTeljyrLYReoAtYfQxi6EdGBlKamuyKXtSBqO0a2J5wsxnv
> Z2fk3efWKDzdxbc9GmYbXMlTKtjYx5UYZ+PcgAuGvS81ejwzmiy5dH8rJYedx235
> j3D8JG/YyG2Ja0r6nmwX7BDm8QS4W5eU+UQIyIq0KLCFND/qzSU=
> =VBOu
> -END PGP SIGNATURE-
>
> 
>
>  CHANGELOG for 8.6.0:
>
> ** Bug
>
>  * [WICKET-6613] - Wicket 8.1 ModalWindow autosizing problem
>  * [WICKET-6671] - IAjaxLink should be serializable
>  * [WICKET-6676] - Quickstart application won't deploy to GlassFish
>  * [WICKET-6680] - JavaScriptStripper chokes on template literals
> that contain two forward slashes
>  * [WICKET-6689] - ClientProperties.getTimeZone() has some issue
> when DST and UTC offsets are different
>  * [WICKET-6690] - NullPointerException in
> KeyInSessionSunJceCryptFactory.
>  * [WICKET-6692] - Page deserialization on websocket close -
> possible performance issue
>
> ** Improvement
>
>  * [WICKET-6675] - log4j-slf4j-impl requires version 1.7.25 of
> slf4j-api while Wicket 8.5 requires version 1.7.26
>  * [WICKET-6684] - Make autolabel functionality more flexible by
> introducing a locator interface that allows to specify the component the
> wicket:for refers to
>  * [WICKET-6695] - Add AjaxEditable*Label#shouldTrimInput()
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Re: Wrapping a FormComponent with a Border

2019-09-03 Thread Ernesto Reinaldo Barreiro
Hi Tom,

Maybe you can roll your own namespace implementing ComponentTag and have
something like



and this gets replaced by

  

  

and the corresponding components.

On Tue, Sep 3, 2019 at 10:09 AM "Tom Götz"  wrote:

> Martin,
>
> maybe you could point me into the right direction concerning the markup
> manipulation part?
>
> This is what I got in my HTML:
>
> 
>   
> 
>
> I guess this is what I need for effectively replacing the input with a
> FormGroup border:
>
> 
>   
> 
>   
> 
>
> Where would be the best place in the code to start looking?
>
> Thanks in advance
> Tom
>
>
>
>
> > Gesendet: Montag, 02. September 2019 um 13:57 Uhr
> > Von: "Tom Götz" 
> > An: users@wicket.apache.org
> > Betreff: Re: Wrapping a FormComponent with a Border
> >
> > Thanks Martin, this is exactly what I had in mind. I already implemented
> 1), replacing the TextField with said Border but now am stuck with the
> "HTML manipulation" part ...
> >
> > Tom
> >
> >
> > > Gesendet: Montag, 02. September 2019 um 13:47 Uhr
> > > Von: "Martin Grigorov" 
> > > An: "users@wicket.apache.org" 
> > > Betreff: Re: Wrapping a FormComponent with a Border
> > >
> > > Hi Tom,
> > >
> > > I imagine two ways:
> > > 1) use org.apache.wicket.application.IComponentInitializationListener
> that
> > > manipulates the component tree whenever the passed component is an
> instance
> > > of TextField and has no (direct?!) parent of type FormGroup
> > > 2) use AOP
> > >
> > > In both cases you will need to also the markup because FormGroup
> expects to
> > > be attached on a , while you will have an . For this you
> will
> > > probably need to extend Wicket Bootstrap's FormGroup and in your
> custom one
> > > override onComponentTag() (and onComponentTagBody() - most probably
> not).
> > >
> > > On Mon, Sep 2, 2019 at 2:05 PM "Tom Götz"  wrote:
> > >
> > > > Let me try to explain what I want to achieve more precisely:
> > > >
> > > > - user adds a TextField to a page
> > > > - I want to replace that TextField with a Border (Wicket Border
> component,
> > > > e.g. FormGroup from wicket-bootstrap) and put the TextField inside
> that
> > > > border
> > > >
> > > > The problem ist not: "how do I wrap a component with some HTML
> markup?"
> > > > (either generated by Java code or clientside), but: how can I
> manipulate
> > > > the component tree (server side) in such a way, that I can remove the
> > > > TextField from it's parent and replace it with a Border that
> contains that
> > > > TextField!?
> > > >
> > > > Tom
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > Gesendet: Montag, 02. September 2019 um 12:49 Uhr
> > > > > Von: "Tobias Soloschenko"  >
> > > > > An: users@wicket.apache.org
> > > > > Betreff: Re: Wrapping a FormComponent with a Border
> > > > >
> > > > > Hi,
> > > > >
> > > > > why not add a css class and style it?
> > > > >
> > > > > kind regards
> > > > >
> > > > > Tobias
> > > > >
> > > > > > Am 02.09.2019 um 12:20 schrieb Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com>:
> > > > > >
> > > > > > Another possibility is to do this client side...
> > > > > >
> > > > > >> On Mon, Sep 2, 2019, 11:43 AM "Tom Götz" 
> wrote:
> > > > > >>
> > > > > >> That would be great, thanks in advance!
> > > > > >>
> > > > > >> Tom
> > > > > >>
> > > > > >>
> > > > > >>> Gesendet: Montag, 02. September 2019 um 10:39 Uhr
> > > > > >>> Von: "Ernesto Reinaldo Barreiro" 
> > > > > >>> An: users@wicket.apache.org
> > > > > >>> Betreff: Re: Wrapping a FormComponent with a Border
> > > > > >>>
> > > > > >>> Hi,
> > > > > >>>
> > > > > >>>> On Mon, Sep 2, 2019 at 11:13 AM Tom Götz  >
> > > > wrote:
> > > > > >>>>
> > > > > >>>> Thanks Ernesto! This example is from 2007 though and uses
> > > > > >>>> compent.setComponentBorder 
> > > > > >>>> Is there something more close to current Wicket versions
> available
> > > > > >> maybe?
> > > > > >>>> :)
> > > > > >>>>
> > > > > >>>
> > > > > >>> I think I have somewhere on a private project something similar
> > > > > >> implemented
> > > > > >>> for Wicket 7.x... I can try to dig it up and send classes to
> you.
> > > > > >>>
> > > > > >>> --
> > > > > >>> 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


Re: Wrapping a FormComponent with a Border

2019-09-02 Thread Ernesto Reinaldo Barreiro
Another possibility is to do this client side...

On Mon, Sep 2, 2019, 11:43 AM "Tom Götz"  wrote:

> That would be great, thanks in advance!
>
> Tom
>
>
> > Gesendet: Montag, 02. September 2019 um 10:39 Uhr
> > Von: "Ernesto Reinaldo Barreiro" 
> > An: users@wicket.apache.org
> > Betreff: Re: Wrapping a FormComponent with a Border
> >
> > Hi,
> >
> > On Mon, Sep 2, 2019 at 11:13 AM Tom Götz  wrote:
> >
> > > Thanks Ernesto! This example is from 2007 though and uses
> > > compent.setComponentBorder 
> > > Is there something more close to current Wicket versions available
> maybe?
> > > :)
> > >
> >
> > I think I have somewhere on a private project something similar
> implemented
> > for Wicket 7.x... I can try to dig it up and send classes to you.
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wrapping a FormComponent with a Border

2019-09-02 Thread Ernesto Reinaldo Barreiro
Hi,

On Mon, Sep 2, 2019 at 11:13 AM Tom Götz  wrote:

> Thanks Ernesto! This example is from 2007 though and uses
> compent.setComponentBorder 
> Is there something more close to current Wicket versions available maybe?
> :)
>

I think I have somewhere on a private project something similar implemented
for Wicket 7.x... I can try to dig it up and send classes to you.

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wrapping a FormComponent with a Border

2019-09-02 Thread Ernesto Reinaldo Barreiro
Hi,

Would approach described in [1] match your use case?

References

1- https://www.scribd.com/document/43719247/LondonWicket-FormsWithFlair

On Mon, Sep 2, 2019 at 10:22 AM Tom Götz  wrote:

> Hi there,
>
> I would like to automatically wrap a FormComponent with a Border whenever
> it is added on a certain page. Let's say, a TextField is added, then I'd
> like to replace it with Border and add that TextField to the Border. The
> Border itself contains other Wicket Components such as a Label and a
> FeedbackPanel. I am aware of BorderBehavior, but it seems that this can
> only be used to wrap raw HTML around a Component.
> Is this possible somehow?
>
> Cheers
> Tom
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Streaming a PDF into an iFrame

2019-08-23 Thread Ernesto Reinaldo Barreiro
335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:335)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:259)
> at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:221)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:275)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:206)
> at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:299)
> at
>
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
> at
>
> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:740)
> at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
> at
>
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
> at
>
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
> at
>
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
> at
>
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)
> at
>
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
> at
>
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
> at org.eclipse.jetty.server.Server.handle(Server.java:503)
> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
> at
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
> at
> org.eclipse.jetty.io
> .AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
> at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
> at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
> at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
> at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
> at
>
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
> at
>
> org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
> at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
> at
>
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:745)
> /*** END STACK TRACE ***/
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: release of new milestone of wicket 9..x?

2019-07-11 Thread Ernesto Reinaldo Barreiro
Hi Andrea,

Thanks for your answer.

Main features I need are some deletion of duration that was rolled back to
deprecation (as our main development branch is on wicket 8.x) and I'm
keeping a parallel branch for 9.x and I want to minimize conflicts (even if
it is with deprecated code). Also some recently added improvements to auto
labels (and as far as I can see this could be also ported to 8.x).


On Thu, Jul 11, 2019 at 5:37 PM Andrea Del Bene 
wrote:

> Not yet. We are trying to prepare everything we need to roll out Wicket 9,
> but it will take some times. What fix/feature do you need most from 9.x
> branch? I see some of us still work on a new modal dialog, which is
> something that would be "nice to have" in Wicket 9.
>
> On Thu, Jul 11, 2019 at 7:41 AM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi,
> >
> > Any plans to release a new milestone of 9.x?
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
> --
> Andrea Del Bene.
> Apache Wicket committer.
>


-- 
Regards - Ernesto Reinaldo Barreiro


release of new milestone of wicket 9..x?

2019-07-10 Thread Ernesto Reinaldo Barreiro
Hi,

Any plans to release a new milestone of 9.x?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: improvement for wicket:for

2019-07-07 Thread Ernesto Reinaldo Barreiro
Voila

https://github.com/apache/wicket/pull/373

On Wed, Jun 26, 2019 at 9:46 AM Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> ok.
>
> On Wed, Jun 26, 2019 at 9:43 AM Martin Grigorov 
> wrote:
>
>> Hi Ernesto,
>>
>> Please create a Pull Request and we will discuss it! Thanks!
>>
>> On Wed, Jun 26, 2019 at 9:34 AM Ernesto Reinaldo Barreiro <
>> reier...@gmail.com> wrote:
>>
>> > I could try to provide a PR implementing this.
>> >
>> > On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
>> > reier...@gmail.com> wrote:
>> >
>> > > Hi,
>> > >
>> > > In application I'm developing right now we have following situation.
>> > >
>> > >
>> > >1. A repeater consisting of a label with wicket:id "label" + some
>> > >complex panel with wicket:id="value"
>> > >2. I still would like to use wicket:for but panel value structure
>> may
>> > >change a lot depending on "type" of current repeater "row". Thus, I
>> > can't
>> > >alway write wicket:for="value/xxx".
>> > >
>> > > Thus, I would like to introduce some interface to be implemented by
>> > > "ValuePanel" which returns a reference to that for component to which
>> > label
>> > > should point, so that I could write wicket:for="value"
>> > >
>> > > WDYT?
>> > >
>> > > --
>> > > Regards - Ernesto Reinaldo Barreiro
>> > >
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>> >
>>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: improvement for wicket:for

2019-06-26 Thread Ernesto Reinaldo Barreiro
ok.

On Wed, Jun 26, 2019 at 9:43 AM Martin Grigorov 
wrote:

> Hi Ernesto,
>
> Please create a Pull Request and we will discuss it! Thanks!
>
> On Wed, Jun 26, 2019 at 9:34 AM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > I could try to provide a PR implementing this.
> >
> > On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > In application I'm developing right now we have following situation.
> > >
> > >
> > >1. A repeater consisting of a label with wicket:id "label" + some
> > >complex panel with wicket:id="value"
> > >2. I still would like to use wicket:for but panel value structure
> may
> > >change a lot depending on "type" of current repeater "row". Thus, I
> > can't
> > >alway write wicket:for="value/xxx".
> > >
> > > Thus, I would like to introduce some interface to be implemented by
> > > "ValuePanel" which returns a reference to that for component to which
> > label
> > > should point, so that I could write wicket:for="value"
> > >
> > > WDYT?
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: improvement for wicket:for

2019-06-26 Thread Ernesto Reinaldo Barreiro
I could try to provide a PR implementing this.

On Wed, Jun 26, 2019 at 9:30 AM Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> In application I'm developing right now we have following situation.
>
>
>1. A repeater consisting of a label with wicket:id "label" + some
>complex panel with wicket:id="value"
>2. I still would like to use wicket:for but panel value structure may
>change a lot depending on "type" of current repeater "row". Thus, I can't
>alway write wicket:for="value/xxx".
>
> Thus, I would like to introduce some interface to be implemented by
> "ValuePanel" which returns a reference to that for component to which label
> should point, so that I could write wicket:for="value"
>
> WDYT?
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


-- 
Regards - Ernesto Reinaldo Barreiro


improvement for wicket:for

2019-06-26 Thread Ernesto Reinaldo Barreiro
Hi,

In application I'm developing right now we have following situation.


   1. A repeater consisting of a label with wicket:id "label" + some
   complex panel with wicket:id="value"
   2. I still would like to use wicket:for but panel value structure may
   change a lot depending on "type" of current repeater "row". Thus, I can't
   alway write wicket:for="value/xxx".

Thus, I would like to introduce some interface to be implemented by
"ValuePanel" which returns a reference to that for component to which label
should point, so that I could write wicket:for="value"

WDYT?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: estimate time for 9.x release?

2019-06-26 Thread Ernesto Reinaldo Barreiro
+1 non binding. I was going to write asking for a M3 release right now :-)

On Wed, Jun 26, 2019 at 12:02 AM Martin Grigorov 
wrote:

> In that case I vote to release 9.0.0 with the next releases of 7.x and 8.x,
> no need to wait until Q3.
>
> On Sun, Jun 23, 2019 at 11:43 AM Sven Meier  wrote:
>
> > Hi all,
> >
> > I haven't had time to work an wicket-ajax-no-jquery.js, and I agree that
> > we as well might try that in Wicket 10.
> >
> > Meanwhile I'm preparing a pull request for another modal-dialog
> > proposal, but this doesn't have to delay a Wicket 9 release either.
> >
> > Have fun
> > Sven
> >
> >
> > On 20.06.19 11:50, Martin Grigorov wrote:
> > > Hi,
> > >
> > > The only bigger task I am aware of is the vanilla wicket-ajax.js
> rewrite
> > > that has been suggested by Korbinian Bachl (some time ago) and Andrew
> > > Kondratev (more recently). Sven said that he wants to work on it.
> > > But in my opinion this task should not stop us to release 9.0.0. The
> > > vanilla impl can be introduced in a minor release too, even in 8.x, if
> > the
> > > APIs are preserved.
> > >
> > > On Thu, Jun 20, 2019 at 12:03 AM Andrea Del Bene  >
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> I'm happy you started to appreciate Wicket 9.x in its earliest
> versions!
> > >> The short answer is no, there is no estimated time for 9.x to become
> EA.
> > >> But at the moment I'm not aware of any huge feature or refactoring
> being
> > >> in progress or even proposed. Let's hear what other developers have to
> > >> say about this.
> > >> Personally speaking I'm also willing to release Wicket 9.x in a short
> > >> time, let's say in the Q4 of this year, after one or two more
> milestone
> > >> releases. I also believe that the time is now ripe to provide a
> version
> > >> of Wicket for the "post Java 8 era", which fully supports the last LTS
> > JDK.
> > >>
> > >> Andrea.
> > >>
> > >> On 6/19/19 12:29 PM, rstolle wrote:
> > >>> Same here! I would love to go with wicket 9 ASAP. I'm using 9.0.0-M2
> > >>> on a new
> > >>> project and very much appreciate the switch to java.time.Duration,
> > >>> which saves
> > >>> me a lot of conversions. Junit5 is also a huge plus in my opinion. So
> > >>> far I did not
> > >>> encounter any problems.
> > >>>
> > >>> Good moment to THANK THE WICKET TEAM (again) - you doing a wicked
> job!
> > >>>
> > >>> René
> > >>>
> > >>> Am 2019-06-19 11:30 schrieb Ernesto Reinaldo Barreiro:
> > >>>> Hi,
> > >>>>
> > >>>> Is there an estimated time for 9.x official release? My question is
> > not
> > >>>> just moot: I'm keeping a parallel version of our project based on
> > wicket
> > >>>> 9.x. branch, and some problems I encountered on wicket 8.x. are
> > >>>> easier to
> > >>>> solve on 9.x. So, if release is not too far in the future I might
> try
> > to
> > >>>> convince other team members to go 9.x. for development.
> > >>> -
> > >>> 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
> > >>
> > >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: estimate time for 9.x release?

2019-06-20 Thread Ernesto Reinaldo Barreiro
Hi Martin and Andrea,

Many thanks for answers. So, I will try to convince my teammates to switch
development to 9.x branch and that way provide "life feedback"  on new
developments.

The only bigger task I am aware of is the vanilla wicket-ajax.js rewrite
> that has been suggested by Korbinian Bachl (some time ago) and Andrew
> Kondratev (more recently). Sven said that he wants to work on it.
> But in my opinion this task should not stop us to release 9.0.0. The
> vanilla impl can be introduced in a minor release too, even in 8.x, if the
> APIs are preserved.
>

I also remember to have seeing some commits to get rid of wicket AJAX
console. Would this also be part of 9.x?
Also some proposal of new implementation of modal window? For us this is
not relevant as we use bootstrap modal.

-- 
Regards - Ernesto Reinaldo Barreiro


estimate time for 9.x release?

2019-06-19 Thread Ernesto Reinaldo Barreiro
Hi,

Is there an estimated time for 9.x official release? My question is not
just moot: I'm keeping a parallel version of our project based on wicket
9.x. branch, and some problems I encountered on wicket 8.x. are easier to
solve on 9.x. So, if release is not too far in the future I might try to
convince other team members to go 9.x. for development.

-- 
Regards - Ernesto Reinaldo Barreiro


Re: thanks for wonderful work with Wicket 8.

2019-05-24 Thread Ernesto Reinaldo Barreiro
Hi,

I just created a branch of or application based on 9.X-SNAPSHOT and
bootstrap 4.x-SNAPSHOT and I plan to keep it synchronized, at least once
per week, with our development branch (wicket 8.X based). So, before any
new milestone releases of 9.x I can use it to test if everything still
works and hopefully provide some feedback to Wicket developers.

Thanks again to Wicket team!


On Fri, May 3, 2019 at 9:34 AM nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> Sounds great.. For minimal effort, I think the notify plugin would fit very
> well here:
>
> https://github.com/l0rdn1kk0n/wicket-bootstrap
>
> Under extensions, but it's not my repo..
>
> And yes wicket are wonderful, even after all these years :) And I've been
> using it on, Guice, OSGI and now with spring boot :)
>
>
>
> On Fri, May 3, 2019 at 8:45 AM Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Hi,
> >
> > On Fri, May 3, 2019 at 8:39 AM nino martinez wael <
> > nino.martinez.w...@gmail.com> wrote:
> >
> > > I could use the
> > >
> > >  Or a wicket wrapper for
> > > > http://bootstrap-notify.remabledesigns.com/.
> > >
> > > I can try to convince my manager to open-source it. We are using it all
> > over in our application in combination with wicket AJAX/Web sockets. Also
> >
> >
> >- some home grown bootstrap modal wizard
> >- wicket wrapper fro *https://github.com/fronteed/iCheck
> ><https://github.com/fronteed/iCheck>*
> >
> > *And maybe some other home ground components. But this doesn't depend on
> > me.*
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket DropDown Change event

2019-05-20 Thread Ernesto Reinaldo Barreiro
Look at OnChangeAjaxBehavior

On Mon, May 20, 2019 at 4:13 PM Sibgha Nazir  wrote:

> Hi,
>
> I am not able to trigger the on change event of the drop down in the
> wicket.
>
> In the class DPanel,java, I am simply trying to print on the console when
> the change event has occured.
>
> dropdown.add(*new* AjaxFormComponentUpdatingBehavior("onchange") {
>
> /**
>
>  *
>
>  */
>
> *private* *static* *final* *long* *serialVersionUID* =
> -6744838136235652577L;
>
>
> *protected* *void* onUpdate(AjaxRequestTarget target) {
>
> System.*out*.println("Changed");
>
>
> }
>
> });
>
> Need Help. Following is my quick start application.
> https://github.com/Sibgha360/dropdownexample.git
>
> Thanks
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: thanks for wonderful work with Wicket 8.

2019-05-03 Thread Ernesto Reinaldo Barreiro
Hi,

On Fri, May 3, 2019 at 8:39 AM nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> I could use the
>
>  Or a wicket wrapper for
> > http://bootstrap-notify.remabledesigns.com/.
>
> I can try to convince my manager to open-source it. We are using it all
over in our application in combination with wicket AJAX/Web sockets. Also


   - some home grown bootstrap modal wizard
   - wicket wrapper fro *https://github.com/fronteed/iCheck
   <https://github.com/fronteed/iCheck>*

*And maybe some other home ground components. But this doesn't depend on
me.*

-- 
Regards - Ernesto Reinaldo Barreiro


part time remote wicket developer

2019-05-01 Thread Ernesto Reinaldo Barreiro
Hi,

Apologies for noise.

Does anyone needs a part-time remote experienced wicket developer? Say for
10/15 hours (maybe more) per week?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: AJAX error on chrome with latest 8.4 release

2019-04-18 Thread Ernesto Reinaldo Barreiro
Hi,

Just to follow up. This was neither a wicket error nor a chrome problem but
some weird combination of non rolled back transaction + some transaction
controlling filter on top of of wicket filter (that was somehow truncating
response).

On Tue, Apr 16, 2019 at 6:36 PM Maxim Solodovnik 
wrote:

> Maybe non-minimized stacktrace can gave some more info?
>
> On Tue, 16 Apr 2019 at 22:35, Ernesto Reinaldo Barreiro
>  wrote:
> >
> > Hi,
> >
> > Bumping jQuery version to 3.4.0 provides same results (no minimized).
> >
> > On Tue, Apr 16, 2019 at 5:28 PM Maxim Solodovnik 
> > wrote:
> >
> > > non minified jquery and/or wicket.mode=DEVELOPMENT
> > > May be it will shed some light on this issue ...
> > >
> > > On Tue, 16 Apr 2019 at 20:59, Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > On Tue, Apr 16, 2019 at 4:36 PM Maxim Solodovnik <
> solomax...@gmail.com>
> > > > wrote:
> > > >
> > > > > Is it reproducible with non-minified (i.e. DEVELOPMENT) version?
> > > > >
> > > >
> > > > Do you mean jquery non minified jQuery?
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: AJAX error on chrome with latest 8.4 release

2019-04-18 Thread Ernesto Reinaldo Barreiro
And thanks again for feedback and comments!

On Thu, Apr 18, 2019 at 10:24 AM Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> Just to follow up. This was neither a wicket error nor a chrome problem
> but some weird combination of non rolled back transaction + some
> transaction controlling filter on top of of wicket filter (that was somehow
> truncating response).
>
> On Tue, Apr 16, 2019 at 6:36 PM Maxim Solodovnik 
> wrote:
>
>> Maybe non-minimized stacktrace can gave some more info?
>>
>> On Tue, 16 Apr 2019 at 22:35, Ernesto Reinaldo Barreiro
>>  wrote:
>> >
>> > Hi,
>> >
>> > Bumping jQuery version to 3.4.0 provides same results (no minimized).
>> >
>> > On Tue, Apr 16, 2019 at 5:28 PM Maxim Solodovnik 
>> > wrote:
>> >
>> > > non minified jquery and/or wicket.mode=DEVELOPMENT
>> > > May be it will shed some light on this issue ...
>> > >
>> > > On Tue, 16 Apr 2019 at 20:59, Ernesto Reinaldo Barreiro <
>> > > reier...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hi,
>> > > >
>> > > > On Tue, Apr 16, 2019 at 4:36 PM Maxim Solodovnik <
>> solomax...@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > Is it reproducible with non-minified (i.e. DEVELOPMENT) version?
>> > > > >
>> > > >
>> > > > Do you mean jquery non minified jQuery?
>> > > >
>> > > > --
>> > > > Regards - Ernesto Reinaldo Barreiro
>> > > >
>> > >
>> > >
>> > > --
>> > > WBR
>> > > Maxim aka solomax
>> > >
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>> -
>> 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: AJAX error on chrome with latest 8.4 release

2019-04-16 Thread Ernesto Reinaldo Barreiro
Hi,

Bumping jQuery version to 3.4.0 provides same results (no minimized).

On Tue, Apr 16, 2019 at 5:28 PM Maxim Solodovnik 
wrote:

> non minified jquery and/or wicket.mode=DEVELOPMENT
> May be it will shed some light on this issue ...
>
> On Tue, 16 Apr 2019 at 20:59, Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Hi,
> >
> > On Tue, Apr 16, 2019 at 4:36 PM Maxim Solodovnik 
> > wrote:
> >
> > > Is it reproducible with non-minified (i.e. DEVELOPMENT) version?
> > >
> >
> > Do you mean jquery non minified jQuery?
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
> --
> WBR
> Maxim aka solomax
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: AJAX error on chrome with latest 8.4 release

2019-04-16 Thread Ernesto Reinaldo Barreiro
Wicket is on development mode already. I'm serving "my own" minified
version of jquery. I will play with that next and try to "reorder my code"
to see if I can spot what is different.

On Tue, Apr 16, 2019 at 5:28 PM Maxim Solodovnik 
wrote:

> non minified jquery and/or wicket.mode=DEVELOPMENT
> May be it will shed some light on this issue ...
>
> On Tue, 16 Apr 2019 at 20:59, Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Hi,
> >
> > On Tue, Apr 16, 2019 at 4:36 PM Maxim Solodovnik 
> > wrote:
> >
> > > Is it reproducible with non-minified (i.e. DEVELOPMENT) version?
> > >
> >
> > Do you mean jquery non minified jQuery?
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
> --
> WBR
> Maxim aka solomax
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: AJAX error on chrome with latest 8.4 release

2019-04-16 Thread Ernesto Reinaldo Barreiro
Hi,

On Tue, Apr 16, 2019 at 4:36 PM Maxim Solodovnik 
wrote:

> Is it reproducible with non-minified (i.e. DEVELOPMENT) version?
>

Do you mean jquery non minified jQuery?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: AJAX error on chrome with latest 8.4 release

2019-04-16 Thread Ernesto Reinaldo Barreiro
Hi Maxim,

Thanks for feedback.

wicket-jquery-ui based Wizard works for me as expected (just have tested
> Chrome latest at Ubuntu 18.10)
>

We are using or own home grown implementation of a wizard on top of a
custom wrapper around bootstrap modal (I was the person creating those
components, so I know them well). We have many similar wizards in
application. I was expecting this wizard to be the same :-( I have already
tested some of the other wizards and they still work. Funny thing is we are
not doing anything particularly different here.. Or so I believe :-)


>
> On Tue, 16 Apr 2019 at 18:33, Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm experiencing following error
> >
> > POST
> >
> >
> http://10.211.55.6:8080/kms2/advanced-search?1-2.0-body-wizardModal-modal-form-footer-volatileButtons-3-button
> > net::ERR_INCOMPLETE_CHUNKED_ENCODING 200
> > send @ jquery-3.2.1.min-ver-1555412805000.js:4
> > ajax @ jquery-3.2.1.min-ver-1555412805000.js:4
> > doAjax @ wicket-ajax-jquery-ver-1555412805000.js:692
> > (anonymous) @ wicket-ajax-jquery-ver-1555412805000.js:556
> > e @ jquery-3.2.1.min-ver-1555412805000.js:2
> > schedule @ wicket-ajax-jquery-ver-1555412805000.js:289
> > schedule @ wicket-ajax-jquery-ver-1555412805000.js:349
> > ajax @ wicket-ajax-jquery-ver-1555412805000.js:555
> > (anonymous) @ wicket-ajax-jquery-ver-1555412805000.js:1793
> > dispatch @ jquery-3.2.1.min-ver-1555412805000.js:3
> > q.handle @ jquery-3.2.1.min-ver-1555412805000.js:3
> >
> > On latest Chrome on Mac. This does not happens with latest FF (So, I
> assume
> > this is a wicket bug). Is this a known issue? Our application  is very
> > complicated and I'm not sure I will be able to create a quickstart.
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
> --
> WBR
> Maxim aka solomax
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: AJAX error on chrome with latest 8.4 release

2019-04-16 Thread Ernesto Reinaldo Barreiro
Hi Martin,

Many thanks for your answer.


>
> https://stackoverflow.com/questions/22608564/neterr-incomplete-chunked-encoding-in-chrome-only
> suggests
> that it might be a local problem. Some people said that disabling the
> antivirus software helped them, others had no disk space, ...
>
> Yes I have read that post but I have no antivirus running... I will check
around to see what I can spot.


> If you are able to reproduce it with wicket-examples or any other way then
> please open an issue at JIRA!
>

Ok. I will try first to see what might be "wrong" with my computer + ask
other team members to try failing code locally in order to check if it is
just my computer.

-- 
Regards - Ernesto Reinaldo Barreiro


AJAX error on chrome with latest 8.4 release

2019-04-16 Thread Ernesto Reinaldo Barreiro
Hi,

I'm experiencing following error

POST
http://10.211.55.6:8080/kms2/advanced-search?1-2.0-body-wizardModal-modal-form-footer-volatileButtons-3-button
net::ERR_INCOMPLETE_CHUNKED_ENCODING 200
send @ jquery-3.2.1.min-ver-1555412805000.js:4
ajax @ jquery-3.2.1.min-ver-1555412805000.js:4
doAjax @ wicket-ajax-jquery-ver-1555412805000.js:692
(anonymous) @ wicket-ajax-jquery-ver-1555412805000.js:556
e @ jquery-3.2.1.min-ver-1555412805000.js:2
schedule @ wicket-ajax-jquery-ver-1555412805000.js:289
schedule @ wicket-ajax-jquery-ver-1555412805000.js:349
ajax @ wicket-ajax-jquery-ver-1555412805000.js:555
(anonymous) @ wicket-ajax-jquery-ver-1555412805000.js:1793
dispatch @ jquery-3.2.1.min-ver-1555412805000.js:3
q.handle @ jquery-3.2.1.min-ver-1555412805000.js:3

On latest Chrome on Mac. This does not happens with latest FF (So, I assume
this is a wicket bug). Is this a known issue? Our application  is very
complicated and I'm not sure I will be able to create a quickstart.

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket collapsable panel

2019-04-16 Thread Ernesto Reinaldo Barreiro
Hi,

There are several ways to do this. E.g

1- Use javascript at client side and just hide nent of panel (bound to the
link that toggles the panel)
2- Use wicket AJAX and content.steVisible(false|true) where content is the
panel containing you "box" content. This logic attached to the AJAX link
closing/opening box.



On Mon, Apr 15, 2019 at 10:28 PM Sibgha Nazir  wrote:

> Hi,
>
> I am looking for a way to create a panel that opens and closes from one
> side of the container. I havent been lucky enough to find a related thing
> on internet.
>
> Can anybody hint me?
>
> Thanks.
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: thanks for wonderful work with Wicket 8.

2019-04-11 Thread Ernesto Reinaldo Barreiro
Hi,


> Already done:
> https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/wicket-9.x
> I use it for my Wicket trainings application.
>
> Haha... It is difficult to beat you in speed :-)


> There is something similar here:
>
> https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/wicket-8.x/bootstrap-less
> For Bootstrap 4.x we have it for Sass/Scss:
>
> https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/wicket-8.x-bootstrap-4.x/bootstrap-sass
>

Hum... I didn't know about this. My implementation seems to bet simpler:
just an Interface to make LESS for compiler plugable +  Resource +
ResourceReference (for package served resources). No need for a cache. But
for our use case it works well.

-- 
Regards - Ernesto Reinaldo Barreiro


Re: thanks for wonderful work with Wicket 8.

2019-04-11 Thread Ernesto Reinaldo Barreiro
Hi Andrea,


> PS: we are voting for the first milestone of Wicket 9 to be released. If
> you have the chance to play with it we are looking forward for your
> feedback :-)


:-( Unfortunately My customer has a very tight schedule for delivering the
application I just migrated. Even jumping to Wicket 8.x was something we
had to consider very carefully. All I can offer is if I start some side
personal project, which sometimes I do, try to use Wicket 9.x. Or help
migrating some of the satellite projects, like Wicket bootstrap, to wish I
have contributed from time to time, to Wicket 9.x.

Also our project have some home made components and wrappers around
JavaScript libraries that I might try to convince my customer to "open
source". E.g. I have rolled out a LESS resource class that on the spot
compiles LESS into CSS, if you modify your less this class will discard
cached less and recompiles it, when I created this component I was looking
around and found nothing similar. Or a wicket wrapper for
http://bootstrap-notify.remabledesigns.com/. And some other Wicket things
that might benefit community. But this decisions do not depend on me,

-- 
Regards - Ernesto Reinaldo Barreiro


Re: thanks for wonderful work with Wicket 8.

2019-04-11 Thread Ernesto Reinaldo Barreiro
It's been a pleasure using Wicket all these years. Thanks again!

On Thu, Apr 11, 2019 at 11:22 AM Martin Grigorov 
wrote:

> I am glad to read this small success story, Ernesto!
>
> I want to thank you for using Wicket all these years, for all the bug
> reports and the suggested features!
>
> On Thu, Apr 11, 2019 at 11:13 AM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi,
> >
> > I would like to thanks Wicket's development team for wonderful work done
> > with wicket 8.x!
> >
> > Yesterday mid morning I started to migrate the application of a customer
> of
> > mine to Wicket 8.4 (form WIcket 7.9). By the end of the day I had fixed
> > almost all compile errors (most of them due to the removal of Form on
> > onSubmit and onError (on AJAX submitting components) and our derived
> > codebase depending on that) and fixed all warnings (most of them because
> of
> > depreciation of AbstractReadOnlyModel). Today, early in the morning,
> > application was already compiling! Then I ran Wicket based tests... Most
> of
> > them were failing :-( Our fault: one component (some home backed wrapper
> > around bootstrap modal) was missing calling super.onConfig()). Fixed that
> > line and all tests passed! I run the application and started to do some
> > manual testing (some of our features are very complex and use lots of
> > advanced low level Wicket JavaScript and even WebSockets). Again
> everything
> > seems to work flawlessly. Wow!
> >
> > Many thanks again to Wicket team!
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro


thanks for wonderful work with Wicket 8.

2019-04-11 Thread Ernesto Reinaldo Barreiro
Hi,

I would like to thanks Wicket's development team for wonderful work done
with wicket 8.x!

Yesterday mid morning I started to migrate the application of a customer of
mine to Wicket 8.4 (form WIcket 7.9). By the end of the day I had fixed
almost all compile errors (most of them due to the removal of Form on
onSubmit and onError (on AJAX submitting components) and our derived
codebase depending on that) and fixed all warnings (most of them because of
depreciation of AbstractReadOnlyModel). Today, early in the morning,
application was already compiling! Then I ran Wicket based tests... Most of
them were failing :-( Our fault: one component (some home backed wrapper
around bootstrap modal) was missing calling super.onConfig()). Fixed that
line and all tests passed! I run the application and started to do some
manual testing (some of our features are very complex and use lots of
advanced low level Wicket JavaScript and even WebSockets). Again everything
seems to work flawlessly. Wow!

Many thanks again to Wicket team!

-- 
Regards - Ernesto Reinaldo Barreiro


Re: web sockets messages + page identities

2019-04-05 Thread Ernesto Reinaldo Barreiro
Thanks!

On Fri, Apr 5, 2019 at 9:53 AM Martin Grigorov  wrote:

> https://github.com/apache/wicket/pull/352
> <https://github.com/apache/wicket/pull/352/files> - this is a PR that
> tricks maven-clirr-plugin but I had to use MockApplication and other dummy
> values for the deprecated constructors. If other devs think it is fine then
> I will merge it and do the same for wicket 7.x
>
> On Fri, Apr 5, 2019 at 9:29 AM Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Thanks Martin!
> >
> > On Fri, Apr 5, 2019 at 9:13 AM Martin Grigorov 
> > wrote:
> >
> > > https://issues.apache.org/jira/browse/WICKET-6649
> > >
> > > On Thu, Apr 4, 2019 at 1:35 PM Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com>
> > > wrote:
> > >
> > > > Hi Martin,
> > > >
> > > > Many thanks for feedback. I will file a ticket.
> > > >
> > > >
> > > > > Please file a ticket.
> > > > > TextMessage and BinaryMessage can be improved.
> > > > > I have to see whether IWebSocketConnection can be improved too.
> > > > >
> > > >
> > > > I see  AbstractWebSocketConnection contains
> AbstractWebSocketProcessor
> > > and
> > > > this one a pageId. Meanwhile I can try to roll my own implementation
> to
> > > > cover use case.
> > > >
> > > > But due to API changes this could be done only for Wicket 9.x.
> > > > >
> > > >
> > > > I understand. We are still on 7.x... One more argument to push for
> > going
> > > > 8.x and then 9.x.
> > > >
> > > > Maybe one possibility to make this more configurable is allow to
> > register
> > > > at "application level" some factory for IWebSocketConnections and/or
> > > > TextMessages? So, no need to break this on 7.x, 8.x? I don't know if
> > this
> > > > makes sense at all? I see AbstractWebSocketProcessor contains both
> > > > Application and pageId.
> > > >
> > > >
> > > > >
> > > > > On Wed, Apr 3, 2019 at 4:19 PM Ernesto Reinaldo Barreiro <
> > > > > reier...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > I meant my "question"
> > > > > >
> > > > > > On Wed, Apr 3, 2019 at 4:18 PM Ernesto Reinaldo Barreiro <
> > > > > > reier...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Thanks for your answer. Yes my answer was more on the spirit if
> > > there
> > > > > is
> > > > > > > something already available and ready to use Or if it makes
> > > sense
> > > > > to
> > > > > > > have this by default at interface level.
> > > > > > >
> > > > > > > On Wed, Apr 3, 2019 at 3:37 PM Maxim Solodovnik <
> > > > solomax...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > >> Hello Ernesto,
> > > > > > >>
> > > > > > >> We also have code to send websocket messages "to others"
> > > > > > >> I do store active client list (each page/tab is client)
> > > > > > >> Every client stores pageId and sessionId
> > > > > > >>
> > > > > > >> Then I do filtering on pageId+sessionId
> > > > > > >>
> > > > > > >> This seems to work as expected
> > > > > > >>
> > > > > > >> On Wed, 3 Apr 2019 at 18:18, Ernesto Reinaldo Barreiro
> > > > > > >>  wrote:
> > > > > > >> >
> > > > > > >> > Hi,
> > > > > > >> >
> > > > > > >> > I have the following use case.
> > > > > > >> >
> > > > > > >> > 1- One browser tab sends a text message
> > > > > > >> > 2- Other browser tabs should receive message (but emitting
> tab
> > > > not).
> > > > > > >> >
> > > > > > >> > I have done
> > > > > > >> >
> > > > > > >&g

Re: web sockets messages + page identities

2019-04-05 Thread Ernesto Reinaldo Barreiro
Thanks Martin!

On Fri, Apr 5, 2019 at 9:13 AM Martin Grigorov  wrote:

> https://issues.apache.org/jira/browse/WICKET-6649
>
> On Thu, Apr 4, 2019 at 1:35 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > Hi Martin,
> >
> > Many thanks for feedback. I will file a ticket.
> >
> >
> > > Please file a ticket.
> > > TextMessage and BinaryMessage can be improved.
> > > I have to see whether IWebSocketConnection can be improved too.
> > >
> >
> > I see  AbstractWebSocketConnection contains AbstractWebSocketProcessor
> and
> > this one a pageId. Meanwhile I can try to roll my own implementation to
> > cover use case.
> >
> > But due to API changes this could be done only for Wicket 9.x.
> > >
> >
> > I understand. We are still on 7.x... One more argument to push for going
> > 8.x and then 9.x.
> >
> > Maybe one possibility to make this more configurable is allow to register
> > at "application level" some factory for IWebSocketConnections and/or
> > TextMessages? So, no need to break this on 7.x, 8.x? I don't know if this
> > makes sense at all? I see AbstractWebSocketProcessor contains both
> > Application and pageId.
> >
> >
> > >
> > > On Wed, Apr 3, 2019 at 4:19 PM Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com>
> > > wrote:
> > >
> > > > I meant my "question"
> > > >
> > > > On Wed, Apr 3, 2019 at 4:18 PM Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Thanks for your answer. Yes my answer was more on the spirit if
> there
> > > is
> > > > > something already available and ready to use Or if it makes
> sense
> > > to
> > > > > have this by default at interface level.
> > > > >
> > > > > On Wed, Apr 3, 2019 at 3:37 PM Maxim Solodovnik <
> > solomax...@gmail.com>
> > > > > wrote:
> > > > >
> > > > >> Hello Ernesto,
> > > > >>
> > > > >> We also have code to send websocket messages "to others"
> > > > >> I do store active client list (each page/tab is client)
> > > > >> Every client stores pageId and sessionId
> > > > >>
> > > > >> Then I do filtering on pageId+sessionId
> > > > >>
> > > > >> This seems to work as expected
> > > > >>
> > > > >> On Wed, 3 Apr 2019 at 18:18, Ernesto Reinaldo Barreiro
> > > > >>  wrote:
> > > > >> >
> > > > >> > Hi,
> > > > >> >
> > > > >> > I have the following use case.
> > > > >> >
> > > > >> > 1- One browser tab sends a text message
> > > > >> > 2- Other browser tabs should receive message (but emitting tab
> > not).
> > > > >> >
> > > > >> > I have done
> > > > >> >
> > > > >> > add(*new *WebSocketBehavior() {
> > > > >> > @Override
> > > > >> > *protected void *onMessage(WebSocketRequestHandler handler,
> > > > TextMessage
> > > > >> > message) {
> > > > >> > sendNotificationToSession()
> > > > >> > }
> > > > >> > });
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > *public void *sendNotificationToSession(String sessionId) {
> > > > >> > *if *(com.rometools.utils.Strings.*isEmpty*(sessionId)) {
> > > > >> > *throw new *IllegalArgumentException(*"sessionId cannot be
> > empty"*);
> > > > >> > }
> > > > >> > Application application =
> > Application.*get*(KmsContext.*APP_NAME*);
> > > > >> >
> > > > >>
> > > >
> > >
> >
> privateSendNotificationTo(getRegistry(application).getConnections(application,
> > > > >> > sessionId));
> > > > >> > }
> > > > >> >
> > > > >> >
> > > > >> > *private void
> > > > >> *privateSendNotificationTo(Collection
> > > > >> > webSocketConnections

Re: web sockets messages + page identities

2019-04-04 Thread Ernesto Reinaldo Barreiro
Hi Martin,

Many thanks for feedback. I will file a ticket.


> Please file a ticket.
> TextMessage and BinaryMessage can be improved.
> I have to see whether IWebSocketConnection can be improved too.
>

I see  AbstractWebSocketConnection contains AbstractWebSocketProcessor and
this one a pageId. Meanwhile I can try to roll my own implementation to
cover use case.

But due to API changes this could be done only for Wicket 9.x.
>

I understand. We are still on 7.x... One more argument to push for going
8.x and then 9.x.

Maybe one possibility to make this more configurable is allow to register
at "application level" some factory for IWebSocketConnections and/or
TextMessages? So, no need to break this on 7.x, 8.x? I don't know if this
makes sense at all? I see AbstractWebSocketProcessor contains both
Application and pageId.


>
> On Wed, Apr 3, 2019 at 4:19 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com>
> wrote:
>
> > I meant my "question"
> >
> > On Wed, Apr 3, 2019 at 4:18 PM Ernesto Reinaldo Barreiro <
> > reier...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > Thanks for your answer. Yes my answer was more on the spirit if there
> is
> > > something already available and ready to use Or if it makes sense
> to
> > > have this by default at interface level.
> > >
> > > On Wed, Apr 3, 2019 at 3:37 PM Maxim Solodovnik 
> > > wrote:
> > >
> > >> Hello Ernesto,
> > >>
> > >> We also have code to send websocket messages "to others"
> > >> I do store active client list (each page/tab is client)
> > >> Every client stores pageId and sessionId
> > >>
> > >> Then I do filtering on pageId+sessionId
> > >>
> > >> This seems to work as expected
> > >>
> > >> On Wed, 3 Apr 2019 at 18:18, Ernesto Reinaldo Barreiro
> > >>  wrote:
> > >> >
> > >> > Hi,
> > >> >
> > >> > I have the following use case.
> > >> >
> > >> > 1- One browser tab sends a text message
> > >> > 2- Other browser tabs should receive message (but emitting tab not).
> > >> >
> > >> > I have done
> > >> >
> > >> > add(*new *WebSocketBehavior() {
> > >> > @Override
> > >> > *protected void *onMessage(WebSocketRequestHandler handler,
> > TextMessage
> > >> > message) {
> > >> > sendNotificationToSession()
> > >> > }
> > >> > });
> > >> >
> > >> >
> > >> >
> > >> > *public void *sendNotificationToSession(String sessionId) {
> > >> > *if *(com.rometools.utils.Strings.*isEmpty*(sessionId)) {
> > >> > *throw new *IllegalArgumentException(*"sessionId cannot be empty"*);
> > >> > }
> > >> > Application application = Application.*get*(KmsContext.*APP_NAME*);
> > >> >
> > >>
> >
> privateSendNotificationTo(getRegistry(application).getConnections(application,
> > >> > sessionId));
> > >> > }
> > >> >
> > >> >
> > >> > *private void
> > >> *privateSendNotificationTo(Collection
> > >> > webSocketConnections) {
> > >> > String message = toJSON();
> > >> > *for*(IWebSocketConnection connection : webSocketConnections) {
> > >> > *if *(connection.isOpen()) {
> > >> > *try *{
> > >> > connection.sendMessage(message);
> > >> > } *catch *(IOException e) {
> > >> > *log*.error(*"Could not send notification"*, e);
> > >> > *//$NON-NLS-1$ *}
> > >> > }
> > >> > }
> > >> > }
> > >> >
> > >> >
> > >> > I see some classes like
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > */**  * A base message for all messages with information about the
> > >> client
> > >> >  */ **public abstract class *AbstractClientMessage *implements *
> > >> > IWebSocketMessage
> > >> > {
> > >> > *private final *String *applicationName*;
> > >> > *private final *String *sessionId*;
> > >> > *private final *IKey *key*;
> > >> >
> > >> > *pub

Re: web sockets messages + page identities

2019-04-03 Thread Ernesto Reinaldo Barreiro
Hi,

Thanks for your answer. Yes my answer was more on the spirit if there is
something already available and ready to use Or if it makes sense to
have this by default at interface level.

On Wed, Apr 3, 2019 at 3:37 PM Maxim Solodovnik 
wrote:

> Hello Ernesto,
>
> We also have code to send websocket messages "to others"
> I do store active client list (each page/tab is client)
> Every client stores pageId and sessionId
>
> Then I do filtering on pageId+sessionId
>
> This seems to work as expected
>
> On Wed, 3 Apr 2019 at 18:18, Ernesto Reinaldo Barreiro
>  wrote:
> >
> > Hi,
> >
> > I have the following use case.
> >
> > 1- One browser tab sends a text message
> > 2- Other browser tabs should receive message (but emitting tab not).
> >
> > I have done
> >
> > add(*new *WebSocketBehavior() {
> > @Override
> > *protected void *onMessage(WebSocketRequestHandler handler, TextMessage
> > message) {
> > sendNotificationToSession()
> > }
> > });
> >
> >
> >
> > *public void *sendNotificationToSession(String sessionId) {
> > *if *(com.rometools.utils.Strings.*isEmpty*(sessionId)) {
> > *throw new *IllegalArgumentException(*"sessionId cannot be empty"*);
> > }
> > Application application = Application.*get*(KmsContext.*APP_NAME*);
> >
> privateSendNotificationTo(getRegistry(application).getConnections(application,
> > sessionId));
> > }
> >
> >
> > *private void *privateSendNotificationTo(Collection
> > webSocketConnections) {
> > String message = toJSON();
> > *for*(IWebSocketConnection connection : webSocketConnections) {
> > *if *(connection.isOpen()) {
> > *try *{
> > connection.sendMessage(message);
> > } *catch *(IOException e) {
> > *log*.error(*"Could not send notification"*, e);
> > *//$NON-NLS-1$ *}
> > }
> > }
> > }
> >
> >
> > I see some classes like
> >
> >
> >
> >
> >
> > */**  * A base message for all messages with information about the client
> >  */ **public abstract class *AbstractClientMessage *implements *
> > IWebSocketMessage
> > {
> > *private final *String *applicationName*;
> > *private final *String *sessionId*;
> > *private final *IKey *key*;
> >
> > *public *AbstractClientMessage(Application application, String sessionId,
> > IKey key)
> > {
> > *this*.*applicationName *= Args.*notNull*(application, *"application"*
> > ).getName();
> > *this*.*sessionId *= Args.*notNull*(sessionId, *"sessionId"*);
> > *this*.*key *= Args.*notNull*(key, *"key"*);
> > }
> >
> > *public *Application getApplication()
> > {
> > *return *Application.*get*(*applicationName*);
> > }
> >
> > *public *String getSessionId()
> > {
> > *return **sessionId*;
> > }
> >
> > *public *IKey getKey()
> > {
> > *return **key*;
> > }
> >
> > }
> >
> >
> > provide IKey as "discriminator" of sending page. But this is neither part
> > of IWebSocketMessage nor it is part of IWebSocketConnection... So, I
> don't
> > really know to use to exclude the emitting page. This clearly would be
> > possible if both IWebSocketMessage and IWebSocketConnection have a IKey
> > getPageKey();
> >
> >
> > Is there a way to do this? Am I missing some essential part?
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: web sockets messages + page identities

2019-04-03 Thread Ernesto Reinaldo Barreiro
I meant my "question"

On Wed, Apr 3, 2019 at 4:18 PM Ernesto Reinaldo Barreiro 
wrote:

> Hi,
>
> Thanks for your answer. Yes my answer was more on the spirit if there is
> something already available and ready to use Or if it makes sense to
> have this by default at interface level.
>
> On Wed, Apr 3, 2019 at 3:37 PM Maxim Solodovnik 
> wrote:
>
>> Hello Ernesto,
>>
>> We also have code to send websocket messages "to others"
>> I do store active client list (each page/tab is client)
>> Every client stores pageId and sessionId
>>
>> Then I do filtering on pageId+sessionId
>>
>> This seems to work as expected
>>
>> On Wed, 3 Apr 2019 at 18:18, Ernesto Reinaldo Barreiro
>>  wrote:
>> >
>> > Hi,
>> >
>> > I have the following use case.
>> >
>> > 1- One browser tab sends a text message
>> > 2- Other browser tabs should receive message (but emitting tab not).
>> >
>> > I have done
>> >
>> > add(*new *WebSocketBehavior() {
>> > @Override
>> > *protected void *onMessage(WebSocketRequestHandler handler, TextMessage
>> > message) {
>> > sendNotificationToSession()
>> > }
>> > });
>> >
>> >
>> >
>> > *public void *sendNotificationToSession(String sessionId) {
>> > *if *(com.rometools.utils.Strings.*isEmpty*(sessionId)) {
>> > *throw new *IllegalArgumentException(*"sessionId cannot be empty"*);
>> > }
>> > Application application = Application.*get*(KmsContext.*APP_NAME*);
>> >
>> privateSendNotificationTo(getRegistry(application).getConnections(application,
>> > sessionId));
>> > }
>> >
>> >
>> > *private void
>> *privateSendNotificationTo(Collection
>> > webSocketConnections) {
>> > String message = toJSON();
>> > *for*(IWebSocketConnection connection : webSocketConnections) {
>> > *if *(connection.isOpen()) {
>> > *try *{
>> > connection.sendMessage(message);
>> > } *catch *(IOException e) {
>> > *log*.error(*"Could not send notification"*, e);
>> > *//$NON-NLS-1$ *}
>> > }
>> > }
>> > }
>> >
>> >
>> > I see some classes like
>> >
>> >
>> >
>> >
>> >
>> > */**  * A base message for all messages with information about the
>> client
>> >  */ **public abstract class *AbstractClientMessage *implements *
>> > IWebSocketMessage
>> > {
>> > *private final *String *applicationName*;
>> > *private final *String *sessionId*;
>> > *private final *IKey *key*;
>> >
>> > *public *AbstractClientMessage(Application application, String
>> sessionId,
>> > IKey key)
>> > {
>> > *this*.*applicationName *= Args.*notNull*(application, *"application"*
>> > ).getName();
>> > *this*.*sessionId *= Args.*notNull*(sessionId, *"sessionId"*);
>> > *this*.*key *= Args.*notNull*(key, *"key"*);
>> > }
>> >
>> > *public *Application getApplication()
>> > {
>> > *return *Application.*get*(*applicationName*);
>> > }
>> >
>> > *public *String getSessionId()
>> > {
>> > *return **sessionId*;
>> > }
>> >
>> > *public *IKey getKey()
>> > {
>> > *return **key*;
>> > }
>> >
>> > }
>> >
>> >
>> > provide IKey as "discriminator" of sending page. But this is neither
>> part
>> > of IWebSocketMessage nor it is part of IWebSocketConnection... So, I
>> don't
>> > really know to use to exclude the emitting page. This clearly would be
>> > possible if both IWebSocketMessage and IWebSocketConnection have a IKey
>> > getPageKey();
>> >
>> >
>> > Is there a way to do this? Am I missing some essential part?
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>> -
>> 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


web sockets messages + page identities

2019-04-03 Thread Ernesto Reinaldo Barreiro
Hi,

I have the following use case.

1- One browser tab sends a text message
2- Other browser tabs should receive message (but emitting tab not).

I have done

add(*new *WebSocketBehavior() {
@Override
*protected void *onMessage(WebSocketRequestHandler handler, TextMessage
message) {
sendNotificationToSession()
}
});



*public void *sendNotificationToSession(String sessionId) {
*if *(com.rometools.utils.Strings.*isEmpty*(sessionId)) {
*throw new *IllegalArgumentException(*"sessionId cannot be empty"*);
}
Application application = Application.*get*(KmsContext.*APP_NAME*);
privateSendNotificationTo(getRegistry(application).getConnections(application,
sessionId));
}


*private void *privateSendNotificationTo(Collection
webSocketConnections) {
String message = toJSON();
*for*(IWebSocketConnection connection : webSocketConnections) {
*if *(connection.isOpen()) {
*try *{
connection.sendMessage(message);
} *catch *(IOException e) {
*log*.error(*"Could not send notification"*, e);
*//$NON-NLS-1$ *}
}
}
}


I see some classes like





*/**  * A base message for all messages with information about the client
 */ **public abstract class *AbstractClientMessage *implements *
IWebSocketMessage
{
*private final *String *applicationName*;
*private final *String *sessionId*;
*private final *IKey *key*;

*public *AbstractClientMessage(Application application, String sessionId,
IKey key)
{
*this*.*applicationName *= Args.*notNull*(application, *"application"*
).getName();
*this*.*sessionId *= Args.*notNull*(sessionId, *"sessionId"*);
*this*.*key *= Args.*notNull*(key, *"key"*);
}

*public *Application getApplication()
{
*return *Application.*get*(*applicationName*);
}

*public *String getSessionId()
{
*return **sessionId*;
}

*public *IKey getKey()
{
*return **key*;
}

}


provide IKey as "discriminator" of sending page. But this is neither part
of IWebSocketMessage nor it is part of IWebSocketConnection... So, I don't
really know to use to exclude the emitting page. This clearly would be
possible if both IWebSocketMessage and IWebSocketConnection have a IKey
getPageKey();


Is there a way to do this? Am I missing some essential part?


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Redirect to an external page & inalidate the current session

2019-03-26 Thread Ernesto Reinaldo Barreiro
Hi,

How are you adding security/authorization to your pages?

On Mon, Mar 25, 2019 at 9:29 PM christophe 
wrote:

> Hello
>
> The application I am working on has an "exit" option that must
> 1) redirect the user to the corporate  web home page
> (www.thisCorporation.com)
> 2) invalidate the session so that no one,especially an unauthorized user,
> by
> clicking on the back button, would be able to get back to the application
>
> I have tried  the following:
>   cycle = currentPage.getRequestCycle();
>   cycle.setResponsePage(new
> RedirectPage("http://www.ThisCorporation.com;);
>
> It works however the session is still valid &  any one can get back to it
>
> So I have tried the following:
>   cycle = currentPage.getRequestCycle();
>   cycle.setResponsePage(new
> RedirectPage("http://www.ThisCorporation.com;);
>  session.invalidate();
> This gets me a "page expired exception" instead
>
> Can someone help me with the correct way of doing both (redirecting &
> invalidating the session) please I have have spent hours on this for now
> satisfactory results
>
> Thank you
>
>
>
> --
> 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
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: How to trace that a resource was requested?

2019-03-12 Thread Ernesto Reinaldo Barreiro
Hi,

Why not simply append a parameter to URL that tells download comes from
your link? And use that to discriminate when to log or not...

On Tue, Mar 12, 2019 at 4:11 PM Per Newgro  wrote:

> Hello,
>
> i like to log that a resource (PDF file), generated in backend, was
> requested.
>
> The resource is mounted by a resource reference. An external link is using
> url to resource reference.
> Download of file generated by resource is working.
>
> But I like to avoid log of every request to resource. If the resource is
> requested without clicking the link
> i don't want to log the request. So i can not log the request while
> resource is generated. I need an onClick.
>
> I guess i can not use ExternalLink because it is not calling the server
> after click.
> Maybe i need to use ResourceLink, but with that component no one is
> calling it's onClick method.
>
> Is there any example on how to listen to downloads?
>
> Thanks for your support
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Undesirable behavior of AutoLabelMarker

2019-02-11 Thread Ernesto Reinaldo Barreiro
create an smart LDM that goes to database only once and after that keeps
value?


Re: Validation message parameters and internationalization

2019-01-28 Thread Ernesto Reinaldo Barreiro
Hi,

On Mon, Jan 28, 2019 at 1:04 PM Maxim Solodovnik 
wrote:

> Hello Zbynek,
>
> In our project we are customizing validation messages as follows:
>
> Markup:
> 
> 
>
> Java:
> add(new
>
> RequiredTextField("wicketid").setLabel(Model.of(getString("label_key";
>

But this will make serialized pages bigger, if key values are bigger
compared to keys, as deach on resource model will keep key and discard
value (if I'm not mistaken).


>
> This way lots of built-in validation messages will be "auto-customized"
>
> not sure if it will work for you
>
>
> On Mon, 28 Jan 2019 at 16:44, Zbynek Vavros 
> wrote:
>
> > So I am using localized version of validation message for required fields
> >
> > Required=My custom message for field '${label}'
> >
> > but the resulting message contains field ID as parameters and result is
> > i.e.
> >
> > "My custom message for field 'password'"
> >
> > since the whole page is not in English I would like to have the parameter
> > localized as well.
> > Some of the users do not speak English and they would not understand what
> > "password" is.
> >
> > I see in code of org.apache.wicket.markup.html.form.FormComponent
> > that the component's getId() is used as parameter. Any way to customize
> > this?
> >
> > I can surely use validation message for this specific field with key i.e.
> > "password.Required"
> > but I would like to be more generic.
> >
> > Thanks,
> > Zbynek
> >
>
>
> --
> WBR
> Maxim aka solomax
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Render Component once and only once

2018-12-31 Thread Ernesto Reinaldo Barreiro
Keep a boolean flag...

private boolean rendred = false;

onCofingure() {
  super.onConfigure();
  setVisible(!rendered);
  this.rendered = true;
}



On Mon, Dec 31, 2018 at 9:14 PM Mike Koboldt 
wrote:

> Hello,
>
> Hope this email finds everyone well!
>
> Had a quick question...
>
> is it possible (by adding some sort of behavior or doing something in the
> onConfigure() method or by doing something I am not yet aware of...) that I
> can prevent re-rendering if the component has been render at least once?
>
> Thanks,
>
> Mike K.
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: web session not available to current thread

2018-12-05 Thread Ernesto Reinaldo Barreiro
Hi,

See

http://wicketinaction.com/2014/07/working-with-background-jobs/
https://github.com/reiern70/antilia-bits/tree/master/bgprocess



On Thu, Dec 6, 2018 at 7:35 AM Arunachalam Sibisakkaravarthi <
arunacha...@mcruncher.com> wrote:

> Hi guys,
> I am facing problem when try to get current session in separate thread.
> Have a button in a page to import contacts.
> When user clicks the button, it invoke Spring Async method in service
> class.
> The method saves the contacts.
> Inside the method I have used Sessiong.get() to get username.
>
> But it throws following exception
>
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread commonTaskExecutor-2
> at org.apache.wicket.Application.get(Application.java:235)
> at org.apache.wicket.Session.get(Session.java:175)
>
>
>
>
> *Thanks And RegardsSibi.ArunachalammCruncher*
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket and Jersey Integration

2018-12-02 Thread Ernesto Reinaldo Barreiro
Ilia,

Ok. Them "mounting" JERSEY as a wicket "resource" might be a solution?

On Mon, Dec 3, 2018 at 7:22 AM Илья Нарыжный  wrote:

> Ernesto,
>
> WicketSessionFilter is cool workaround for most of cases, but in our case
> we need deeper integration. For example to have the same security model for
> wicket pages and rests.
> Apparently, Jersey is not complex to integrate with. I already have more or
> less working implementation of working Jersey under Wicket.
>
> Thanks,
> Ilia
>
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> On Sun, Dec 2, 2018 at 10:16 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi Ilia,
> >
> > If WicketSessionFilter not enough for your needs? It is a filter you can
> > put in front of JERSEY and you will have some wicket related things.
> >
> > On Sun, Dec 2, 2018 at 6:50 PM Илья Нарыжный  wrote:
> >
> > > Hello,
> > >
> > > I know that story of wicket and different jax-rs containers is pretty
> > long.
> > > Currently we are using Jersey as a servlet under wicket filter, but we
> > > don't like that in this case REST end-points have nothing about Wicket:
> > no
> > > wicket session available, no wicket request cycle listeners executed
> and
> > > etc.
> > > There is an idea to implement IRequestHandler which will handle as
> Jersey
> > > Container. So it will be executed under wicket umbrella.
> > >
> > > Questions:
> > > 1) What do you think about this?
> > > 2) Is there some existing implementation of what I'm talking about?
> > >
> > > Please reply also even in a case if you interested in this library. It
> > will
> > > help me to understand: does it worst to make this integration as a
> > separate
> > > library or we can embed into our code within Orienteer.
> > >
> > > Thanks,
> > > Ilia
> > >
> > > -
> > > Orienteer(http://orienteer.org) - open source Business Application
> > > Platform
> > >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket and Jersey Integration

2018-12-02 Thread Ernesto Reinaldo Barreiro
Hi Ilia,

If WicketSessionFilter not enough for your needs? It is a filter you can
put in front of JERSEY and you will have some wicket related things.

On Sun, Dec 2, 2018 at 6:50 PM Илья Нарыжный  wrote:

> Hello,
>
> I know that story of wicket and different jax-rs containers is pretty long.
> Currently we are using Jersey as a servlet under wicket filter, but we
> don't like that in this case REST end-points have nothing about Wicket: no
> wicket session available, no wicket request cycle listeners executed and
> etc.
> There is an idea to implement IRequestHandler which will handle as Jersey
> Container. So it will be executed under wicket umbrella.
>
> Questions:
> 1) What do you think about this?
> 2) Is there some existing implementation of what I'm talking about?
>
> Please reply also even in a case if you interested in this library. It will
> help me to understand: does it worst to make this integration as a separate
> library or we can embed into our code within Orienteer.
>
> Thanks,
> Ilia
>
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: ModalWindows in a listView

2018-10-31 Thread Ernesto Reinaldo Barreiro
Put modal outside repeater and reuse it?

On Wed, Oct 31, 2018, 2:01 PM JavaTraveler  Ok, so how would you do it ?
>
> --
> 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: AjaxLink and AjaxFormComponentUpdatingBehavior

2018-07-05 Thread Ernesto Reinaldo Barreiro
What about sharing it with others and help (the same as they tried to help
you when you asked for help? ;-)

On Mon, Jun 25, 2018 at 9:32 AM JavaTraveler  wrote:

> I see, well I found a solution that seems to work with an AjaxSubmitLink :)
> Thank you all
>
> --
> 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
>
>

-- 
Regards - Ernesto Reinaldo Barreiro


Re: Ajax and async task

2018-06-21 Thread Ernesto Reinaldo Barreiro
Glad to be of help ;-)

On Thu, Jun 21, 2018 at 12:39 AM, Zbynek Vavros 
wrote:

> Hi Ernesto,
>
> sorry I was away in the afternoon/evening.
> Passing application into runnable constructor is working for me!
>
> Many thanks
>
> On Wed, Jun 20, 2018 at 11:13 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > https://github.com/reiern70/antilia-bits/blob/master/
> > bgprocess/src/main/java/com/antilia/task/TasksRunnable.java#L28
> >
> > On Wed, Jun 20, 2018 at 12:10 PM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Did you look at
> > >
> > > https://github.com/reiern70/antilia-bits/tree/master/bgprocess
> > >
> > >
> > >
> > > On Wed, Jun 20, 2018 at 12:05 PM, Zbynek Vavros <
> zbynekvav...@gmail.com>
> > > wrote:
> > >
> > >> Still the same:
> > >>
> > >> org.apache.wicket.WicketRuntimeException: There is no application
> > >> attached
> > >> to current thread pool-XX-thread-XX
> > >>
> > >> Zbynek
> > >>
> > >>
> > >>
> > >> On Wed, Jun 20, 2018 at 10:44 AM, Ernesto Reinaldo Barreiro <
> > >> reier...@gmail.com> wrote:
> > >>
> > >> > Maybe this can help
> > >> >
> > >> > https://github.com/reiern70/antilia-bits/tree/master/bgprocess
> > >> >
> > >> > On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros <
> > zbynekvav...@gmail.com
> > >> >
> > >> > wrote:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > I've got an AjaxButton and hidden panel with progress bar and
> status
> > >> > > message which is hidden in the beggining.
> > >> > > My idea is to display the panel when the button is clicked and
> span
> > >> long
> > >> > > task.
> > >> > > This task would update a counter that the progress will display
> > using
> > >> > > AjaxSelfUpdatingTimerBehavior.
> > >> > >
> > >> > > The problem is that the task has to be run in separate thread so
> the
> > >> ajax
> > >> > > completes
> > >> > > and panel is even displayed before task end.
> > >> > >
> > >> > > Got the idea from
> > >> > > https://stackoverflow.com/questions/15337198/wicket-
> > >> > > calling-a-lengthy-operation-and-updating-through-ajax
> > >> > > .
> > >> > >
> > >> > > But I'm getting org.apache.wicket.WicketRuntimeException: There
> is
> > no
> > >> > > application attached to current thread Thread-XX.
> > >> > >
> > >> > > Any suggestions?
> > >> > >
> > >> > > Thanks,
> > >> > > Zbynek
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Regards - Ernesto Reinaldo Barreiro
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Ajax and async task

2018-06-20 Thread Ernesto Reinaldo Barreiro
https://github.com/reiern70/antilia-bits/blob/master/bgprocess/src/main/java/com/antilia/task/TasksRunnable.java#L28

On Wed, Jun 20, 2018 at 12:10 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Did you look at
>
> https://github.com/reiern70/antilia-bits/tree/master/bgprocess
>
>
>
> On Wed, Jun 20, 2018 at 12:05 PM, Zbynek Vavros 
> wrote:
>
>> Still the same:
>>
>> org.apache.wicket.WicketRuntimeException: There is no application
>> attached
>> to current thread pool-XX-thread-XX
>>
>> Zbynek
>>
>>
>>
>> On Wed, Jun 20, 2018 at 10:44 AM, Ernesto Reinaldo Barreiro <
>> reier...@gmail.com> wrote:
>>
>> > Maybe this can help
>> >
>> > https://github.com/reiern70/antilia-bits/tree/master/bgprocess
>> >
>> > On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros > >
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > I've got an AjaxButton and hidden panel with progress bar and status
>> > > message which is hidden in the beggining.
>> > > My idea is to display the panel when the button is clicked and span
>> long
>> > > task.
>> > > This task would update a counter that the progress will display using
>> > > AjaxSelfUpdatingTimerBehavior.
>> > >
>> > > The problem is that the task has to be run in separate thread so the
>> ajax
>> > > completes
>> > > and panel is even displayed before task end.
>> > >
>> > > Got the idea from
>> > > https://stackoverflow.com/questions/15337198/wicket-
>> > > calling-a-lengthy-operation-and-updating-through-ajax
>> > > .
>> > >
>> > > But I'm getting org.apache.wicket.WicketRuntimeException: There is no
>> > > application attached to current thread Thread-XX.
>> > >
>> > > Any suggestions?
>> > >
>> > > Thanks,
>> > > Zbynek
>> > >
>> >
>> >
>> >
>> > --
>> > Regards - Ernesto Reinaldo Barreiro
>> >
>>
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Ajax and async task

2018-06-20 Thread Ernesto Reinaldo Barreiro
Did you look at

https://github.com/reiern70/antilia-bits/tree/master/bgprocess



On Wed, Jun 20, 2018 at 12:05 PM, Zbynek Vavros 
wrote:

> Still the same:
>
> org.apache.wicket.WicketRuntimeException: There is no application attached
> to current thread pool-XX-thread-XX
>
> Zbynek
>
>
>
> On Wed, Jun 20, 2018 at 10:44 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Maybe this can help
> >
> > https://github.com/reiern70/antilia-bits/tree/master/bgprocess
> >
> > On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros 
> > wrote:
> >
> > > Hi,
> > >
> > > I've got an AjaxButton and hidden panel with progress bar and status
> > > message which is hidden in the beggining.
> > > My idea is to display the panel when the button is clicked and span
> long
> > > task.
> > > This task would update a counter that the progress will display using
> > > AjaxSelfUpdatingTimerBehavior.
> > >
> > > The problem is that the task has to be run in separate thread so the
> ajax
> > > completes
> > > and panel is even displayed before task end.
> > >
> > > Got the idea from
> > > https://stackoverflow.com/questions/15337198/wicket-
> > > calling-a-lengthy-operation-and-updating-through-ajax
> > > .
> > >
> > > But I'm getting org.apache.wicket.WicketRuntimeException: There is no
> > > application attached to current thread Thread-XX.
> > >
> > > Any suggestions?
> > >
> > > Thanks,
> > > Zbynek
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Ajax and async task

2018-06-20 Thread Ernesto Reinaldo Barreiro
Maybe this can help

https://github.com/reiern70/antilia-bits/tree/master/bgprocess

On Wed, Jun 20, 2018 at 11:13 AM, Zbynek Vavros 
wrote:

> Hi,
>
> I've got an AjaxButton and hidden panel with progress bar and status
> message which is hidden in the beggining.
> My idea is to display the panel when the button is clicked and span long
> task.
> This task would update a counter that the progress will display using
> AjaxSelfUpdatingTimerBehavior.
>
> The problem is that the task has to be run in separate thread so the ajax
> completes
> and panel is even displayed before task end.
>
> Got the idea from
> https://stackoverflow.com/questions/15337198/wicket-
> calling-a-lengthy-operation-and-updating-through-ajax
> .
>
> But I'm getting org.apache.wicket.WicketRuntimeException: There is no
> application attached to current thread Thread-XX.
>
> Any suggestions?
>
> Thanks,
> Zbynek
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Release WiQuery for Wicket 8

2018-06-01 Thread Ernesto Reinaldo Barreiro
Hi,

I do not know who is actually using this project. I use to contribute to it
a few years ago. I haven't used it for ages..

On Fri, Jun 1, 2018 at 3:39 PM, Thomas Heigl  wrote:

> Hi,
>
> Following the release of Wicket 8.0.0 and WicketStuff 8.0.0, could somebody
> please cut a release of WiQuery compatible with the new version?
>
> Our application still heavily relies on WiQuery and we can't move to Wicket
> 8 without it.
>
> Best,
>
> Thomas
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: ListView Add/Remove via AJAX...

2018-03-27 Thread Ernesto Reinaldo Barreiro
Hi James,

Welcome back... Still remember you from old times in list :-)

On Tue, Mar 27, 2018 at 2:42 PM, James Carman <ja...@carmanconsulting.com>
wrote:

> It has been a while since I've used Wicket and man, I really forgot how
> much I love this framework! It may be that I'm rusty, but I've searched
> quite a bit and tried all the suggestions I've found, but I can't seem to
> make add/remove via AJAX work for a ListView while preserving the input
> data. I am using Wicket 8.0.0-M9. Here's what I've done so far:
>
> correctChoiceGroup = new CheckGroup<>("correctChoices",
> Model.ofSet(Sets.newHashSet()));
> correctChoiceGroup.setRequired(true);
> correctChoiceGroup.setOutputMarkupId(true);
> correctChoiceGroup.setRenderBodyOnly(false);
>
> final IModel<List> choicesModel = Model.ofList(new LinkedList<>());
> choicesView = new ListView("choices", choicesModel) {
> @Override
> protected void populateItem(ListItem item) {
> final int index = item.getIndex();
>
> item.add(new TextField<>("field", item.getModel()));
> item.add(new Check<>("check", Model.of(index)));
>
> final AjaxSubmitLink deleteLink = new
> AjaxSubmitLink("deleteButton") {
> @Override
> @SuppressWarnings("unchecked")
> protected void onSubmit(AjaxRequestTarget target) {
> final ListView listView = findParent(ListView.class);
> listView.getModelObject().remove(index);
> listView.removeAll();
> target.add(correctChoiceGroup);
> }
> };
> deleteLink.setDefaultFormProcessing(false);
> item.add(deleteLink);
> }
> }.setReuseItems(true);
>
>
> correctChoiceGroup.add(choicesView);
>
> add(new AjaxSubmitLink("addButton") {
> @Override
> protected void onSubmit(AjaxRequestTarget target) {
> choicesView.getModelObject().add("");
> choicesView.removeAll();
> target.add(correctChoiceGroup);
> }
> }.setDefaultFormProcessing(false));
>
> add(correctChoiceGroup);
>
>
> When I click on the delete link (I have a similarly-implemented "add" link
> outside of the ListView), all of the input data goes away, since I am
> losing the original items from the removeAll() call.  Now, I am doing the
> removeAll() to force Wicket to realize that I've changed the underlying
> list, otherwise, the original items are reused and the it always looks like
> the last item is removed.  I'm sure I'm just rusty, but I am banging my
> head on this one.
>
> Thanks,
>
> James
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket Session timeout & ajax

2018-03-22 Thread Ernesto Reinaldo Barreiro
I had the impression redirecting to home page was standard behavior

On Thu, Mar 22, 2018 at 9:28 PM, Entropy <blmulholl...@gmail.com> wrote:

> When wicket times out, and the user clicks something ajax oriented, they
> just
> get an error in the page in javascript.  No message or redirect to the Home
> page or anything.  We'd prefer to redirect them to a home page as if they
> first arrived in the app.
>
> Is there a way to accomplish that?  I saw some threads about session
> timeouts but they didn't seem to want what we want.
>
> --
> 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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: markup not found on feedback panel (wicket 7.4)

2018-02-15 Thread Ernesto Reinaldo Barreiro
Voila

https://issues.apache.org/jira/browse/WICKET-6538

On Thu, Feb 15, 2018 at 3:30 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Thu, Feb 15, 2018 at 12:43 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi Martin,
> >
> > Many thanks for your answer.
> >
> >
> > > > -Could this be prevented by wicket somehow?
> > > >
> > >
> > > I do not see how.
> > > If the component is in the tree then the visitor will see it and add it
> > to
> > > ART.
> > >
> >
> > I mean component is added ==> even if not visible check if markup is
> there
> > (early complain about the problem). Real problem was hidden til ART make
> it
> > appear.
> >
> >
> > >
> > > > - If not, at least provide a more meaningful/helpful error message
> (e.g
> > > > context in which markup is not found)?
> > > >
> > >
> > > Definitely!
> > > Wicket can/should log the component path instead of just the component
> > id.
> > > This will make it much easier to debug the problem.
> > >
> >
> > Yes that would be great. Should I create an ISSUE for that? Maybe + PR
> :-)
> >
>
> Yes, please!
>
>
> >
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Feb 8, 2018 at 6:44 AM, Ernesto Reinaldo Barreiro <
> > > > reier...@gmail.com> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > On one application we are getting sporadic errors like
> > > > >
> > > > > org.apache.wicket.markup.MarkupNotFoundException: Markup not found
> > for
> > > > > Component: [FencedFeedbackPanel [Component id = feedback]]
> > > > > at org.apache.wicket.Component.internalRender(Component.java:2348)
> > > > > at org.apache.wicket.Component.render(Component.java:2308)
> > > > > at org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(
> > > > > XmlPartialPageUpdate.java:119)
> > > > > at org.apache.wicket.page.PartialPageUpdate.writeComponents(
> > > > > PartialPageUpdate.java:248)
> > > > > at org.apache.wicket.page.PartialPageUpdate.writeTo(
> > > > > PartialPageUpdate.java:161)
> > > > > at org.apache.wicket.ajax.AjaxRequestHandler.respond(
> > > > > AjaxRequestHandler.java:358)
> > > > > at org.apache.wicket.request.cycle.RequestCycle$
> > > HandlerExecutor.respond(
> > > > > RequestCycle.java:895)
> > > > > at org.apache.wicket.request.RequestHandlerStack.execute(
> > > > > RequestHandlerStack.java:64)
> > > > > at org.apache.wicket.request.RequestHandlerStack.execute(
> > > > > RequestHandlerStack.java:97)
> > > > > a
> > > > >
> > > > > Error is not always produced. I have been checking JIRA and the
> only
> > > > thing
> > > > > I have found that looks similar is
> > > > >
> > > > > https://issues.apache.org/jira/browse/WICKET-6027
> > > > >
> > > > > But we are on 7.4 and it does not seem to be the same combination
> of
> > > > > factors. If we could avoid going to newer versions and find why and
> > > > > "workaround" that would be ideal.
> > > > >
> > > > > Any hints? Related know issues?
> > > > >
> > > > > --
> > > > > Regards - Ernesto Reinaldo Barreiro
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Regards - Ernesto Reinaldo Barreiro
> > > >
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: markup not found on feedback panel (wicket 7.4)

2018-02-15 Thread Ernesto Reinaldo Barreiro
Hi Martin,

Many thanks for your answer.


> > -Could this be prevented by wicket somehow?
> >
>
> I do not see how.
> If the component is in the tree then the visitor will see it and add it to
> ART.
>

I mean component is added ==> even if not visible check if markup is there
(early complain about the problem). Real problem was hidden til ART make it
appear.


>
> > - If not, at least provide a more meaningful/helpful error message (e.g
> > context in which markup is not found)?
> >
>
> Definitely!
> Wicket can/should log the component path instead of just the component id.
> This will make it much easier to debug the problem.
>

Yes that would be great. Should I create an ISSUE for that? Maybe + PR :-)

>
>
> >
> >
> >
> >
> > On Thu, Feb 8, 2018 at 6:44 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > On one application we are getting sporadic errors like
> > >
> > > org.apache.wicket.markup.MarkupNotFoundException: Markup not found for
> > > Component: [FencedFeedbackPanel [Component id = feedback]]
> > > at org.apache.wicket.Component.internalRender(Component.java:2348)
> > > at org.apache.wicket.Component.render(Component.java:2308)
> > > at org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(
> > > XmlPartialPageUpdate.java:119)
> > > at org.apache.wicket.page.PartialPageUpdate.writeComponents(
> > > PartialPageUpdate.java:248)
> > > at org.apache.wicket.page.PartialPageUpdate.writeTo(
> > > PartialPageUpdate.java:161)
> > > at org.apache.wicket.ajax.AjaxRequestHandler.respond(
> > > AjaxRequestHandler.java:358)
> > > at org.apache.wicket.request.cycle.RequestCycle$
> HandlerExecutor.respond(
> > > RequestCycle.java:895)
> > > at org.apache.wicket.request.RequestHandlerStack.execute(
> > > RequestHandlerStack.java:64)
> > > at org.apache.wicket.request.RequestHandlerStack.execute(
> > > RequestHandlerStack.java:97)
> > > a
> > >
> > > Error is not always produced. I have been checking JIRA and the only
> > thing
> > > I have found that looks similar is
> > >
> > > https://issues.apache.org/jira/browse/WICKET-6027
> > >
> > > But we are on 7.4 and it does not seem to be the same combination of
> > > factors. If we could avoid going to newer versions and find why and
> > > "workaround" that would be ideal.
> > >
> > > Any hints? Related know issues?
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: markup not found on feedback panel (wicket 7.4)

2018-02-15 Thread Ernesto Reinaldo Barreiro
Hi.

Just a follow up...  Issue was as follows.

- Application contains many dialogs (jquery modal). In some dialog A there
was a feedback panel ("feedback"). This feedback panel was set visible =
false
- Dialog B extended dialog A and also provided a B.html but this panel did
not contain a DIV for "feedback". As this component was invisible panel B
just rendered fine. Feedback panel is never rendered (no error messages).
And user closes the modal panel B and continues doing things on application.
- Later on application has some other logic with a visitor that adds all
feedback panels to an ART... and then we get message above.

As application has many feedback panels and this happens few "steps/user
actions" after panel B is used this was rather disconcerting. Fortunately
we manage to and spot/fix problem (provide "feedback markup on B").

See this problem illustrated in a very simple quick-start application

https://github.com/reiern70/visibility

My questions are.

-Could this be prevented by wicket somehow?
- If not, at least provide a more meaningful/helpful error message (e.g
context in which markup is not found)?




On Thu, Feb 8, 2018 at 6:44 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> On one application we are getting sporadic errors like
>
> org.apache.wicket.markup.MarkupNotFoundException: Markup not found for
> Component: [FencedFeedbackPanel [Component id = feedback]]
> at org.apache.wicket.Component.internalRender(Component.java:2348)
> at org.apache.wicket.Component.render(Component.java:2308)
> at org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(
> XmlPartialPageUpdate.java:119)
> at org.apache.wicket.page.PartialPageUpdate.writeComponents(
> PartialPageUpdate.java:248)
> at org.apache.wicket.page.PartialPageUpdate.writeTo(
> PartialPageUpdate.java:161)
> at org.apache.wicket.ajax.AjaxRequestHandler.respond(
> AjaxRequestHandler.java:358)
> at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(
> RequestCycle.java:895)
> at org.apache.wicket.request.RequestHandlerStack.execute(
> RequestHandlerStack.java:64)
> at org.apache.wicket.request.RequestHandlerStack.execute(
> RequestHandlerStack.java:97)
> a
>
> Error is not always produced. I have been checking JIRA and the only thing
> I have found that looks similar is
>
> https://issues.apache.org/jira/browse/WICKET-6027
>
> But we are on 7.4 and it does not seem to be the same combination of
> factors. If we could avoid going to newer versions and find why and
> "workaround" that would be ideal.
>
> Any hints? Related know issues?
>
> --
> Regards - Ernesto Reinaldo Barreiro
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Wicket tests are extremely slow

2018-02-11 Thread Ernesto Reinaldo Barreiro
Hi,

You could use

1- ApplicationContextMock as your spring context class
2- Mockito to create mocks of your spring beans

this ways your tests will run a lot faster and they will be independent of
actual backed implementation (as far as mocks behaves in exactly the same
way as expected from real backend)



On Mon, Feb 12, 2018 at 4:05 AM, James Selvakumar <ja...@mcruncher.com>
wrote:

> Hi,
>
> We have a Wicket 7.x application which uses a Spring/Hibernate backend. We
> have few hundred simple Wicket tests that basically tests whether the page
> has been loaded properly. Since almost all our Wicket pages use Spring
> beans, we have to initialize the Spring application context for our Wicket
> tests to run. And as a result our tests are extremely slow that we have
> stopped running them in our main pipeline.
>
> What strategy do you all follow to run Wicket tests that can run fast?
>
> Thanks in advance,
> James
> mCruncher
>



-- 
Regards - Ernesto Reinaldo Barreiro


markup not found on feedback panel (wicket 7.4)

2018-02-07 Thread Ernesto Reinaldo Barreiro
Hi,

On one application we are getting sporadic errors like

org.apache.wicket.markup.MarkupNotFoundException: Markup not found for
Component: [FencedFeedbackPanel [Component id = feedback]]
at org.apache.wicket.Component.internalRender(Component.java:2348)
at org.apache.wicket.Component.render(Component.java:2308)
at
org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(XmlPartialPageUpdate.java:119)
at
org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:248)
at
org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:161)
at
org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:358)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:97)
a

Error is not always produced. I have been checking JIRA and the only thing
I have found that looks similar is

https://issues.apache.org/jira/browse/WICKET-6027

But we are on 7.4 and it does not seem to be the same combination of
factors. If we could avoid going to newer versions and find why and
"workaround" that would be ideal.

Any hints? Related know issues?

-- 
Regards - Ernesto Reinaldo Barreiro


Re: AbstractDefaultAjaxBehavior with huge amount of data

2017-12-25 Thread Ernesto Reinaldo Barreiro
In my experience when you have a problems "others" always google better
than you :-) It happened to me a million times before ;-)

On Tue, Dec 26, 2017 at 3:43 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Thanks a lot!
>
> This is Tomcat limitation `maxPostSize`
>
> I should google better :(((
>
> On Tue, Dec 26, 2017 at 9:40 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi Maxim,
> >
> > I do not know if this is related or not
> >
> > https://stackoverflow.com/questions/20249587/is-it-any-
> > limit-for-post-data-size-in-ajax
> >
> > Hope it helps
> >
> >
> > On Tue, Dec 26, 2017 at 3:35 AM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > Hello All,
> > >
> > > I'm facing weird behavior while passing huge amount of data
> > > to AbstractDefaultAjaxBehavior as explicit parameter.
> > >
> > > Method is set to POST
> > > Everything works as expected until I'm passing 5+MB string as explicit
> > > parameter
> > >
> > > In this case I got
> > > no errors on client side
> > > no errors on server side
> > > BUT I got no parameters in respond(AjaxRequestTarget target)  :(
> > >
> > > Request parameter map contains only behavior URL :(((
> > > I was not able to find any limitations in the code
> > >
> > > Maybe someone can suggest what should I debug?
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: AbstractDefaultAjaxBehavior with huge amount of data

2017-12-25 Thread Ernesto Reinaldo Barreiro
Hi Maxim,

I do not know if this is related or not

https://stackoverflow.com/questions/20249587/is-it-any-limit-for-post-data-size-in-ajax

Hope it helps


On Tue, Dec 26, 2017 at 3:35 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Hello All,
>
> I'm facing weird behavior while passing huge amount of data
> to AbstractDefaultAjaxBehavior as explicit parameter.
>
> Method is set to POST
> Everything works as expected until I'm passing 5+MB string as explicit
> parameter
>
> In this case I got
> no errors on client side
> no errors on server side
> BUT I got no parameters in respond(AjaxRequestTarget target)  :(
>
> Request parameter map contains only behavior URL :(((
> I was not able to find any limitations in the code
>
> Maybe someone can suggest what should I debug?
>
> --
> WBR
> Maxim aka solomax
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Potential Bug in DefaultNestedTree. Reproducible in Wicket examples

2017-12-19 Thread Ernesto Reinaldo Barreiro
Hi Conny,

If you create a PR with Java doc improvements I'm sure committers will be
happy to merge  it :-)

On Wed, Dec 20, 2017 at 8:24 AM, Conny Kühne <conny.kue...@gmail.com> wrote:

> Hi Sven,
>
> thanks. Maybe the javadoc of the tree classes should state this. It is not
> obvious, e.g., why the DefaultTree works out of the box in the example
> page,
> but it does not work inside a component that has a model.
>
> Best,
> Conny
>
> --
> 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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Embedding HTML report generated by JasperReports in a Panel

2017-06-21 Thread Ernesto Reinaldo Barreiro
Hi.

You are welcome!

I'm not sure about that but they do support SVG images which really have
> simplified things.
>

Or Base64 encoded images so they are port of the HTML. I/m sure they should
support all those things... BIRT does and they are not marked leaders...

I have played with a different approach (using flying saucer) in here

https://github.com/reiern70/wicket-flyingsaucer



> Since there is just a single html file now, I'm just embedding it inside a
> Panel.
> But anyhow, this exercise helped me to learn about mounting a folder with
> the file name as a param and how to use an iframe within Wicket. I had no
> idea about these things before.
> I'm really excited by the support offered by the community.
> Thank you once again guys.
>
> On Wed, Jun 21, 2017 at 4:45 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi,
> >
> > I'm sure Jasper would support storing images and so on in a database...
> > IMHO that would be a more robust approach. But you know better your use
> > case.
> >
> > On Wed, Jun 21, 2017 at 3:34 AM, James Selvakumar <ja...@mcruncher.com>
> > wrote:
> >
> > > Hi Martin/Ernesto,
> > >
> > > Thanks for all the help. I'll try them out.
> > >
> > > On Tue, Jun 20, 2017 at 5:44 PM Ernesto Reinaldo Barreiro <
> > > reier...@gmail.com> wrote:
> > >
> > > > This might also help
> > > >
> > > >
> > > > https://cwiki.apache.org/confluence/display/WICKET/
> > > Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME
> > > >
> > > > On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov <
> > mgrigo...@apache.org>
> > > > wrote:
> > > >
> > > > > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar <
> > > ja...@mcruncher.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Martin,
> > > > > >
> > > > > > Should I mount just the base dir where all my reports shall be
> > > > generated
> > > > > > and refer it elsewhere?
> > > > > >
> > > > >
> > > > > Yes, this should work!
> > > > >
> > > > >
> > > > > >
> > > > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar <
> > > ja...@mcruncher.com>
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Martin,
> > > > > > >
> > > > > > > But the reports are generated dynamically. Is it possible to
> > mount
> > > a
> > > > > > > resource from within a panel?
> > > > > > >
> > > > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar <
> > > > ja...@mcruncher.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > >> Hi Martin,
> > > > > > >>
> > > > > > >> Thanks. I'll give that a try.
> > > > > > >>
> > > > > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov <
> > > > mgrigo...@apache.org
> > > > > >
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar <
> > > > > > ja...@mcruncher.com>
> > > > > > >>> wrote:
> > > > > > >>>
> > > > > > >>> > Hi,
> > > > > > >>> >
> > > > > > >>> > I'm trying something weird like this and it's not working.
> > > > > > >>> >
> > > > > > >>> > HTML:
> > > > > > >>> > 
> > > > > > >>> >
> > > > > > >>> > Java:
> > > > > > >>> > WebMarkupContainer container = new
> > > WebMarkupContainer("myFrame");
> > > > > > >>> > container.add(new AttributeAppender("src",
> > > > > > >>> > Model.of(reportFile.getPath(;
> > > > > > >>> >
> > > > > > >>>
> > > > > > >>> getPath() returns file system url.
> > > > > > >>> You need to mount a IResource that serves files from this
> file
> > > > system
&

Re: Embedding HTML report generated by JasperReports in a Panel

2017-06-21 Thread Ernesto Reinaldo Barreiro
Hi,

I'm sure Jasper would support storing images and so on in a database...
IMHO that would be a more robust approach. But you know better your use
case.

On Wed, Jun 21, 2017 at 3:34 AM, James Selvakumar <ja...@mcruncher.com>
wrote:

> Hi Martin/Ernesto,
>
> Thanks for all the help. I'll try them out.
>
> On Tue, Jun 20, 2017 at 5:44 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > This might also help
> >
> >
> > https://cwiki.apache.org/confluence/display/WICKET/
> Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME
> >
> > On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar <
> ja...@mcruncher.com>
> > > wrote:
> > >
> > > > Hi Martin,
> > > >
> > > > Should I mount just the base dir where all my reports shall be
> > generated
> > > > and refer it elsewhere?
> > > >
> > >
> > > Yes, this should work!
> > >
> > >
> > > >
> > > > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar <
> ja...@mcruncher.com>
> > > > wrote:
> > > >
> > > > > Hi Martin,
> > > > >
> > > > > But the reports are generated dynamically. Is it possible to mount
> a
> > > > > resource from within a panel?
> > > > >
> > > > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar <
> > ja...@mcruncher.com>
> > > > > wrote:
> > > > >
> > > > >> Hi Martin,
> > > > >>
> > > > >> Thanks. I'll give that a try.
> > > > >>
> > > > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov <
> > mgrigo...@apache.org
> > > >
> > > > >> wrote:
> > > > >>
> > > > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar <
> > > > ja...@mcruncher.com>
> > > > >>> wrote:
> > > > >>>
> > > > >>> > Hi,
> > > > >>> >
> > > > >>> > I'm trying something weird like this and it's not working.
> > > > >>> >
> > > > >>> > HTML:
> > > > >>> > 
> > > > >>> >
> > > > >>> > Java:
> > > > >>> > WebMarkupContainer container = new
> WebMarkupContainer("myFrame");
> > > > >>> > container.add(new AttributeAppender("src",
> > > > >>> > Model.of(reportFile.getPath(;
> > > > >>> >
> > > > >>>
> > > > >>> getPath() returns file system url.
> > > > >>> You need to mount a IResource that serves files from this file
> > system
> > > > >>> path,
> > > > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to
> load
> > > > >>> file:///some/path/aaa.ext.
> > > > >>>
> > > > >>>
> > > > >>> >
> > > > >>> > What's the correct way to do this?
> > > > >>> >
> > > > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar <
> > > > ja...@mcruncher.com>
> > > > >>> > wrote:
> > > > >>> >
> > > > >>> > > Hi Ernesto,
> > > > >>> > >
> > > > >>> > > Thanks. I'll give the iframe option a try.
> > > > >>> > >
> > > > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro <
> > > > >>> > > reier...@gmail.com> wrote:
> > > > >>> > >
> > > > >>> > >> Then I would
> > > > >>> > >>
> > > > >>> > >> 1- mount a resource pointing the folder and serving all
> files
> > on
> > > > >>> that
> > > > >>> > >> folder. E.g mounted on "/reports"
> > > > >>> > >> 2- Use an iframe to display "/reports/foo.html".
> > > > >>> > >>
> > > > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar <
> > > > >>> ja...@mcruncher.c

Re: Embedding HTML report generated by JasperReports in a Panel

2017-06-20 Thread Ernesto Reinaldo Barreiro
This might also help

https://cwiki.apache.org/confluence/display/WICKET/Displaying+content++%28e.g.+PDF%2C+Excel%2C+Word%29+in+an+IFRAME

On Tue, Jun 20, 2017 at 11:32 AM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> On Tue, Jun 20, 2017 at 11:31 AM, James Selvakumar <ja...@mcruncher.com>
> wrote:
>
> > Hi Martin,
> >
> > Should I mount just the base dir where all my reports shall be generated
> > and refer it elsewhere?
> >
>
> Yes, this should work!
>
>
> >
> > On Tue, Jun 20, 2017 at 5:28 PM James Selvakumar <ja...@mcruncher.com>
> > wrote:
> >
> > > Hi Martin,
> > >
> > > But the reports are generated dynamically. Is it possible to mount a
> > > resource from within a panel?
> > >
> > > On Tue, Jun 20, 2017 at 5:24 PM James Selvakumar <ja...@mcruncher.com>
> > > wrote:
> > >
> > >> Hi Martin,
> > >>
> > >> Thanks. I'll give that a try.
> > >>
> > >> On Tue, Jun 20, 2017 at 5:23 PM Martin Grigorov <mgrigo...@apache.org
> >
> > >> wrote:
> > >>
> > >>> On Tue, Jun 20, 2017 at 11:18 AM, James Selvakumar <
> > ja...@mcruncher.com>
> > >>> wrote:
> > >>>
> > >>> > Hi,
> > >>> >
> > >>> > I'm trying something weird like this and it's not working.
> > >>> >
> > >>> > HTML:
> > >>> > 
> > >>> >
> > >>> > Java:
> > >>> > WebMarkupContainer container = new WebMarkupContainer("myFrame");
> > >>> > container.add(new AttributeAppender("src",
> > >>> > Model.of(reportFile.getPath(;
> > >>> >
> > >>>
> > >>> getPath() returns file system url.
> > >>> You need to mount a IResource that serves files from this file system
> > >>> path,
> > >>> e.g. http://localhost:8080/jasper/report/aaa.ext will try to load
> > >>> file:///some/path/aaa.ext.
> > >>>
> > >>>
> > >>> >
> > >>> > What's the correct way to do this?
> > >>> >
> > >>> > On Tue, Jun 20, 2017 at 4:40 PM James Selvakumar <
> > ja...@mcruncher.com>
> > >>> > wrote:
> > >>> >
> > >>> > > Hi Ernesto,
> > >>> > >
> > >>> > > Thanks. I'll give the iframe option a try.
> > >>> > >
> > >>> > > On Tue, Jun 20, 2017 at 4:22 PM Ernesto Reinaldo Barreiro <
> > >>> > > reier...@gmail.com> wrote:
> > >>> > >
> > >>> > >> Then I would
> > >>> > >>
> > >>> > >> 1- mount a resource pointing the folder and serving all files on
> > >>> that
> > >>> > >> folder. E.g mounted on "/reports"
> > >>> > >> 2- Use an iframe to display "/reports/foo.html".
> > >>> > >>
> > >>> > >> On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar <
> > >>> ja...@mcruncher.com
> > >>> > >
> > >>> > >> wrote:
> > >>> > >>
> > >>> > >> > Thanks Martin and Ernesto for taking look at this.
> > >>> > >> > I'm using JasperReports library to generate HTML reports
> > >>> dynamically
> > >>> > and
> > >>> > >> > store them in the filesystem.
> > >>> > >> > Please take a look at the sample report attached here.
> > >>> > >> >
> > >>> > >> > On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro <
> > >>> > >> > reier...@gmail.com> wrote:
> > >>> > >> >
> > >>> > >> >> Hi,
> > >>> > >> >>
> > >>> > >> >> At least BIRT allowed to pass some factory interface for
> images
> > >>> so
> > >>> > that
> > >>> > >> >> you
> > >>> > >> >> could store generated images "somewhere" and TUNE the URL
> > >>> generated
> > >>> > for
> > >>> > >> >> images. So, you could e.g.
> > >>&g

Re: Embedding HTML report generated by JasperReports in a Panel

2017-06-20 Thread Ernesto Reinaldo Barreiro
Then I would

1- mount a resource pointing the folder and serving all files on that
folder. E.g mounted on "/reports"
2- Use an iframe to display "/reports/foo.html".

On Tue, Jun 20, 2017 at 10:15 AM, James Selvakumar <ja...@mcruncher.com>
wrote:

> Thanks Martin and Ernesto for taking look at this.
> I'm using JasperReports library to generate HTML reports dynamically and
> store them in the filesystem.
> Please take a look at the sample report attached here.
>
> On Tue, Jun 20, 2017 at 4:09 PM Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
>> Hi,
>>
>> At least BIRT allowed to pass some factory interface for images so that
>> you
>> could store generated images "somewhere" and TUNE the URL generated for
>> images. So, you could e.g.
>>
>> 1- Store images on a table (datbase)
>> 2- Mount a resource pointing to those images.
>> 3- Produce URLs inside the report pointing to mounted resource.
>>
>> I do no think Jasper should be that different...
>>
>>
>> On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar <ja...@mcruncher.com>
>> wrote:
>>
>> > Hi all,
>> >
>> > I'm trying to embed the HTML report from the filesystem generated by
>> > JasperReports in a Panel.
>> >
>> > I tried using a WebComponent and write the content of the HTML file to
>> the
>> > Response. The markup gets added as expected but unfortunately
>> JasperReports
>> > produces separate image files and I'm not sure how to display them.
>> >
>> > Is it possible to display HTML from filesystem along with it's dependant
>> > resources inside a Wicket component?  Or is there a better way?
>> >
>>
>>
>>
>> --
>> 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


Re: Embedding HTML report generated by JasperReports in a Panel

2017-06-20 Thread Ernesto Reinaldo Barreiro
Hi,

At least BIRT allowed to pass some factory interface for images so that you
could store generated images "somewhere" and TUNE the URL generated for
images. So, you could e.g.

1- Store images on a table (datbase)
2- Mount a resource pointing to those images.
3- Produce URLs inside the report pointing to mounted resource.

I do no think Jasper should be that different...


On Tue, Jun 20, 2017 at 8:32 AM, James Selvakumar <ja...@mcruncher.com>
wrote:

> Hi all,
>
> I'm trying to embed the HTML report from the filesystem generated by
> JasperReports in a Panel.
>
> I tried using a WebComponent and write the content of the HTML file to the
> Response. The markup gets added as expected but unfortunately JasperReports
> produces separate image files and I'm not sure how to display them.
>
> Is it possible to display HTML from filesystem along with it's dependant
> resources inside a Wicket component?  Or is there a better way?
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: The day Wicket became Apache Wicket 10 years ago!

2017-06-19 Thread Ernesto Reinaldo Barreiro
Thanks for this marvelous 10 years!

On Mon, Jun 19, 2017 at 10:10 PM, Michael Mosmann <mich...@mosmann.de>
wrote:

> Wooohooo:)
>
>
>
> Am 19. Juni 2017 9:19:03 nachm. schrieb Martijn Dashorst <
> martijn.dasho...@gmail.com>:
>
> Today marks the date 10 years ago that the Wicket project graduated from
>> the Incubator to a fully fledged Apache project.
>>
>> The time flies when you're having fun!
>>
>> I would like to thank all our community members for their continued
>> support
>> and usage of Apache Wicket and pour one out for you!
>>
>> Here's a big Thank You for everyone reading this message, asking and
>> answering questions, using Wicket in their projects and a special :beer:
>> for all contributors to Wicket, past and present! Here's to another 10
>> years!
>>
>> Martijn Dashorst
>>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Re: ListItem and enclosure problem

2017-06-08 Thread Ernesto Reinaldo Barreiro
And have reusable bit and avoids enclosures :-)

On Thu, Jun 8, 2017 at 12:00 PM, Andrea Del Bene <an.delb...@gmail.com>
wrote:

> Nothing against Panels :-), but in this way you have to create a new class
> file and a markup file.
>
> On Thu, Jun 8, 2017 at 11:48 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Why to not replace MyListView with a panel containing the listView? No
> > enclosure is needed then
> >
> >
> > On Thu, Jun 8, 2017 at 11:40 AM, Andrea Del Bene <an.delb...@gmail.com>
> > wrote:
> >
> > > Sorry, in your case this HTML should work better:
> > >
> > > 
> > > 
> > >   
> > >[Content]
> > >
> > > 
> > > 
> > >
> > > Then in your MyListView override onConfigure with something like this:
> > >
> > > void onConfigure() {
> > >super.onConfigure();
> > >setVisible(getModelObject().size() > 0);
> > > }
> > >
> > >
> > > On Thu, Jun 8, 2017 at 11:09 AM, Per Newgro <per.new...@gmx.ch> wrote:
> > >
> > > > Sorry Ernesto for my bad english. But i can not see how i shall get
> > this
> > > > to work with a panel?
> > > > I use a listview because my item count is configurable. So i can not
> > > > generate a "template panel"
> > > > and put all items in that. But i admit that i didn't understand your
> > > > question completely.
> > > >
> > > > Thanks
> > > > Per
> > > >
> > > > > Gesendet: Donnerstag, 08. Juni 2017 um 10:17 Uhr
> > > > > Von: "Ernesto Reinaldo Barreiro" <reier...@gmail.com>
> > > > > An: "users@wicket.apache.org" <users@wicket.apache.org>
> > > > > Betreff: Re: ListItem and enclosure problem
> > > > >
> > > > > Why to not put the  thing in a panel?
> > > > >
> > > > > On Thu, Jun 8, 2017 at 9:54 AM, Per Newgro <per.new...@gmx.ch>
> > wrote:
> > > > >
> > > > > > Hello,
> > > > > >
> > > > > > i would like to enclose markup of a list item in
> wicket:enclosure.
> > > The
> > > > > > enclosure is activated based on a child component on list item.
> > > > > > So for i could not find any marker that this is not working. So i
> > > need
> > > > to
> > > > > > do something wrong. Any work around would be welcome.
> > > > > >
> > > > > > Thanks for your support
> > > > > > Per
> > > > > >
> > > > > > 
> > > > > > WicketApplication.java
> > > > > > public class WicketApplication extends WebApplication
> > > > > > {
> > > > > >   /**
> > > > > >* @see org.apache.wicket.Application#getHomePage()
> > > > > >*/
> > > > > >   @Override
> > > > > >   public Class getHomePage()
> > > > > >   {
> > > > > > return HomePage.class;
> > > > > >   }
> > > > > >
> > > > > >   /**
> > > > > >* @see org.apache.wicket.Application#init()
> > > > > >*/
> > > > > >   @Override
> > > > > >   public void init()
> > > > > >   {
> > > > > > super.init();
> > > > > > mountPage("encloselistitem", ListViewEnclosurePage.class);
> > > > > >   }
> > > > > > }
> > > > > >
> > > > > > ListViewEnclosurePage.class
> > > > > > public class ListViewEnclosurePage extends WebPage {
> > > > > >
> > > > > >   public ListViewEnclosurePage() {
> > > > > > add(new MyListView("foo", Arrays.asList("1", "2", "3")));
> > > > > >   }
> > > > > >
> > > > > >   public static class MyListView extends ListView {
> > > > > >
> > > > > > public MyListView(
> > > > > > String id,
> > > > > >     List list) {
> > > > > > super(id, list);
> > > > > > }
> > > > > >
> > > > > &

Re: Re: ListItem and enclosure problem

2017-06-08 Thread Ernesto Reinaldo Barreiro
Why to not replace MyListView with a panel containing the listView? No
enclosure is needed then


On Thu, Jun 8, 2017 at 11:40 AM, Andrea Del Bene <an.delb...@gmail.com>
wrote:

> Sorry, in your case this HTML should work better:
>
> 
> 
>   
>[Content]
>
> 
> 
>
> Then in your MyListView override onConfigure with something like this:
>
> void onConfigure() {
>super.onConfigure();
>setVisible(getModelObject().size() > 0);
> }
>
>
> On Thu, Jun 8, 2017 at 11:09 AM, Per Newgro <per.new...@gmx.ch> wrote:
>
> > Sorry Ernesto for my bad english. But i can not see how i shall get this
> > to work with a panel?
> > I use a listview because my item count is configurable. So i can not
> > generate a "template panel"
> > and put all items in that. But i admit that i didn't understand your
> > question completely.
> >
> > Thanks
> > Per
> >
> > > Gesendet: Donnerstag, 08. Juni 2017 um 10:17 Uhr
> > > Von: "Ernesto Reinaldo Barreiro" <reier...@gmail.com>
> > > An: "users@wicket.apache.org" <users@wicket.apache.org>
> > > Betreff: Re: ListItem and enclosure problem
> > >
> > > Why to not put the  thing in a panel?
> > >
> > > On Thu, Jun 8, 2017 at 9:54 AM, Per Newgro <per.new...@gmx.ch> wrote:
> > >
> > > > Hello,
> > > >
> > > > i would like to enclose markup of a list item in wicket:enclosure.
> The
> > > > enclosure is activated based on a child component on list item.
> > > > So for i could not find any marker that this is not working. So i
> need
> > to
> > > > do something wrong. Any work around would be welcome.
> > > >
> > > > Thanks for your support
> > > > Per
> > > >
> > > > 
> > > > WicketApplication.java
> > > > public class WicketApplication extends WebApplication
> > > > {
> > > >   /**
> > > >* @see org.apache.wicket.Application#getHomePage()
> > > >*/
> > > >   @Override
> > > >   public Class getHomePage()
> > > >   {
> > > > return HomePage.class;
> > > >   }
> > > >
> > > >   /**
> > > >* @see org.apache.wicket.Application#init()
> > > >*/
> > > >   @Override
> > > >   public void init()
> > > >   {
> > > > super.init();
> > > > mountPage("encloselistitem", ListViewEnclosurePage.class);
> > > >   }
> > > > }
> > > >
> > > > ListViewEnclosurePage.class
> > > > public class ListViewEnclosurePage extends WebPage {
> > > >
> > > >   public ListViewEnclosurePage() {
> > > > add(new MyListView("foo", Arrays.asList("1", "2", "3")));
> > > >   }
> > > >
> > > >   public static class MyListView extends ListView {
> > > >
> > > > public MyListView(
> > > > String id,
> > > > List list) {
> > > > super(id, list);
> > > > }
> > > >
> > > > @Override
> > > > protected void populateItem(ListItem item) {
> > > >   Label label = new Label("bar", item.getModel());
> > > >   item.add(label);
> > > >   if (item.getIndex() == 1) { // any condition
> > > >     label.setVisible(false);
> > > >   }
> > > > }
> > > >   }
> > > > }
> > > >
> > > > ListViewEnclosurePage.html
> > > > 
> > > > http://wicket.apache.org;>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > > wicket:id="bar">[Content]
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> -
> > > > 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


Re: ListItem and enclosure problem

2017-06-08 Thread Ernesto Reinaldo Barreiro
Why to not put the  thing in a panel?

On Thu, Jun 8, 2017 at 9:54 AM, Per Newgro <per.new...@gmx.ch> wrote:

> Hello,
>
> i would like to enclose markup of a list item in wicket:enclosure. The
> enclosure is activated based on a child component on list item.
> So for i could not find any marker that this is not working. So i need to
> do something wrong. Any work around would be welcome.
>
> Thanks for your support
> Per
>
> 
> WicketApplication.java
> public class WicketApplication extends WebApplication
> {
>   /**
>* @see org.apache.wicket.Application#getHomePage()
>*/
>   @Override
>   public Class getHomePage()
>   {
> return HomePage.class;
>   }
>
>   /**
>* @see org.apache.wicket.Application#init()
>*/
>   @Override
>   public void init()
>   {
> super.init();
> mountPage("encloselistitem", ListViewEnclosurePage.class);
>   }
> }
>
> ListViewEnclosurePage.class
> public class ListViewEnclosurePage extends WebPage {
>
>   public ListViewEnclosurePage() {
> add(new MyListView("foo", Arrays.asList("1", "2", "3")));
>   }
>
>   public static class MyListView extends ListView {
>
> public MyListView(
> String id,
> List list) {
> super(id, list);
> }
>
> @Override
> protected void populateItem(ListItem item) {
>   Label label = new Label("bar", item.getModel());
>   item.add(label);
>   if (item.getIndex() == 1) { // any condition
> label.setVisible(false);
>   }
> }
>   }
> }
>
> ListViewEnclosurePage.html
> 
> http://wicket.apache.org;>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  wicket:id="bar">[Content]
> 
>         
> 
> 
> 
> 
> 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: StringResouceModel Can't find key with BootstrapCheckbox

2017-06-01 Thread Ernesto Reinaldo Barreiro
https://github.com/l0rdn1kk0n/wicket-bootstrap/pull/677/files

On Fri, Jun 2, 2017 at 6:12 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Ok. I will do it now :-)
>
> On Thu, Jun 1, 2017 at 9:36 PM, Martin Grigorov <mgrigo...@apache.org>
> wrote:
>
>> Hi Ernesto,
>>
>> Yes, I agree this class could be simplified!
>> PR is welcome! Otherwise I'll do it soon!
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Thu, Jun 1, 2017 at 9:56 AM, Ernesto Reinaldo Barreiro <
>> reier...@gmail.com> wrote:
>>
>> > Nice... I just debugged it... and was about to create a patch...
>> >
>> > @Martin,.
>> >
>> > I think component might not need to keep a copy of labelModel because
>> it is
>> > passed to label... and Label will detach it and onConfigure of Lable
>> could
>> > be wrriten in term of getDfaultModel()?
>> >
>> > On Wed, May 31, 2017 at 10:12 PM, Martin Grigorov <mgrigo...@apache.org
>> >
>> > wrote:
>> >
>> > > Fixed with
>> > > https://github.com/l0rdn1kk0n/wicket-bootstrap/commit/
>> > > 25c75f84cf932dff7730c030d02b5469a26aab28
>> > >
>> > > Thanks, Ernesto!
>> > >
>> > > Martin Grigorov
>> > > Wicket Training and Consulting
>> > > https://twitter.com/mtgrigorov
>> > >
>> > > On Sun, May 28, 2017 at 6:04 PM, David Beer <david.m.b...@gmail.com>
>> > > wrote:
>> > >
>> > > > Hi Ernesto
>> > > >
>> > > > Unfortunately I can't see your in line images. However I have
>> attached
>> > a
>> > > > quickstart with Wicket bootstrap added and demonstrating the
>> checkbox
>> > the
>> > > > two ways as discussed.
>> > > >
>> > > > Thanks
>> > > >
>> > > > David
>> > > >
>> > > > On 26 May 2017 at 05:55, Ernesto Reinaldo Barreiro <
>> reier...@gmail.com
>> > >
>> > > > wrote:
>> > > >
>> > > >> I think StringResourceModel is a  IComponentAssignedModel and
>> > > >>
>> > > >> [image: Inline image 1]
>> > > >>
>> > > >> and
>> > > >>
>> > > >> [image: Inline image 2]
>> > > >>
>> > > >> So maybe the line
>> > > >>
>> > > >> this.label = labelModel
>> > > >>
>> > > >> should be replaced by
>> > > >>
>> > > >> this.label = wrap(labelModel) for this to work? Thought Label tag
>> > should
>> > > >> already be doing that. Can you create a quick start?
>> > > >>
>> > > >>
>> > > >>
>> > > >>
>> > > >> On Fri, May 26, 2017 at 1:20 AM, David Beer <
>> david.m.b...@gmail.com>
>> > > >> wrote:
>> > > >>
>> > > >>> Hi
>> > > >>>
>> > > >>> I am using the BootstrapCheckbox and when I try to add the Label
>> > using
>> > > >>> StringReosrceModel if fails to find the key in the properties file
>> > for
>> > > >>> the
>> > > >>> page it is on.
>> > > >>>
>> > > >>> However when I use Model.of() it works.
>> > > >>>
>> > > >>> BootstrapCheckbox addMoreUsersCheckbox = new
>> > > >>> BootstrapCheckbox("checkbox-add-more-users", addUsers,
>> > Model.of("Addd
>> > > >>> another user"));
>> > > >>>
>> > > >>> BootstrapCheckbox addMoreUsersCheckbox = new
>> > > >>> BootstrapCheckbox("checkbox-add-more-users", addUsers, new
>> > > >>> StringResourceModel("checkbox"));
>> > > >>>
>> > > >>> How do I reference the value checkbox in the page properties file
>> > > >>> properly?
>> > > >>>
>> > > >>> Thanks
>> > > >>>
>> > > >>> David
>> > > >>>
>> > > >>
>> > > >>
>> > > >>
>> > > >> --
>> > > >> 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
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: StringResouceModel Can't find key with BootstrapCheckbox

2017-06-01 Thread Ernesto Reinaldo Barreiro
Ok. I will do it now :-)

On Thu, Jun 1, 2017 at 9:36 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Ernesto,
>
> Yes, I agree this class could be simplified!
> PR is welcome! Otherwise I'll do it soon!
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Jun 1, 2017 at 9:56 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Nice... I just debugged it... and was about to create a patch...
> >
> > @Martin,.
> >
> > I think component might not need to keep a copy of labelModel because it
> is
> > passed to label... and Label will detach it and onConfigure of Lable
> could
> > be wrriten in term of getDfaultModel()?
> >
> > On Wed, May 31, 2017 at 10:12 PM, Martin Grigorov <mgrigo...@apache.org>
> > wrote:
> >
> > > Fixed with
> > > https://github.com/l0rdn1kk0n/wicket-bootstrap/commit/
> > > 25c75f84cf932dff7730c030d02b5469a26aab28
> > >
> > > Thanks, Ernesto!
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Sun, May 28, 2017 at 6:04 PM, David Beer <david.m.b...@gmail.com>
> > > wrote:
> > >
> > > > Hi Ernesto
> > > >
> > > > Unfortunately I can't see your in line images. However I have
> attached
> > a
> > > > quickstart with Wicket bootstrap added and demonstrating the checkbox
> > the
> > > > two ways as discussed.
> > > >
> > > > Thanks
> > > >
> > > > David
> > > >
> > > > On 26 May 2017 at 05:55, Ernesto Reinaldo Barreiro <
> reier...@gmail.com
> > >
> > > > wrote:
> > > >
> > > >> I think StringResourceModel is a  IComponentAssignedModel and
> > > >>
> > > >> [image: Inline image 1]
> > > >>
> > > >> and
> > > >>
> > > >> [image: Inline image 2]
> > > >>
> > > >> So maybe the line
> > > >>
> > > >> this.label = labelModel
> > > >>
> > > >> should be replaced by
> > > >>
> > > >> this.label = wrap(labelModel) for this to work? Thought Label tag
> > should
> > > >> already be doing that. Can you create a quick start?
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> On Fri, May 26, 2017 at 1:20 AM, David Beer <david.m.b...@gmail.com
> >
> > > >> wrote:
> > > >>
> > > >>> Hi
> > > >>>
> > > >>> I am using the BootstrapCheckbox and when I try to add the Label
> > using
> > > >>> StringReosrceModel if fails to find the key in the properties file
> > for
> > > >>> the
> > > >>> page it is on.
> > > >>>
> > > >>> However when I use Model.of() it works.
> > > >>>
> > > >>> BootstrapCheckbox addMoreUsersCheckbox = new
> > > >>> BootstrapCheckbox("checkbox-add-more-users", addUsers,
> > Model.of("Addd
> > > >>> another user"));
> > > >>>
> > > >>> BootstrapCheckbox addMoreUsersCheckbox = new
> > > >>> BootstrapCheckbox("checkbox-add-more-users", addUsers, new
> > > >>> StringResourceModel("checkbox"));
> > > >>>
> > > >>> How do I reference the value checkbox in the page properties file
> > > >>> properly?
> > > >>>
> > > >>> Thanks
> > > >>>
> > > >>> David
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> 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: StringResouceModel Can't find key with BootstrapCheckbox

2017-06-01 Thread Ernesto Reinaldo Barreiro
Nice... I just debugged it... and was about to create a patch...

@Martin,.

I think component might not need to keep a copy of labelModel because it is
passed to label... and Label will detach it and onConfigure of Lable could
be wrriten in term of getDfaultModel()?

On Wed, May 31, 2017 at 10:12 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Fixed with
> https://github.com/l0rdn1kk0n/wicket-bootstrap/commit/
> 25c75f84cf932dff7730c030d02b5469a26aab28
>
> Thanks, Ernesto!
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Sun, May 28, 2017 at 6:04 PM, David Beer <david.m.b...@gmail.com>
> wrote:
>
> > Hi Ernesto
> >
> > Unfortunately I can't see your in line images. However I have attached a
> > quickstart with Wicket bootstrap added and demonstrating the checkbox the
> > two ways as discussed.
> >
> > Thanks
> >
> > David
> >
> > On 26 May 2017 at 05:55, Ernesto Reinaldo Barreiro <reier...@gmail.com>
> > wrote:
> >
> >> I think StringResourceModel is a  IComponentAssignedModel and
> >>
> >> [image: Inline image 1]
> >>
> >> and
> >>
> >> [image: Inline image 2]
> >>
> >> So maybe the line
> >>
> >> this.label = labelModel
> >>
> >> should be replaced by
> >>
> >> this.label = wrap(labelModel) for this to work? Thought Label tag should
> >> already be doing that. Can you create a quick start?
> >>
> >>
> >>
> >>
> >> On Fri, May 26, 2017 at 1:20 AM, David Beer <david.m.b...@gmail.com>
> >> wrote:
> >>
> >>> Hi
> >>>
> >>> I am using the BootstrapCheckbox and when I try to add the Label using
> >>> StringReosrceModel if fails to find the key in the properties file for
> >>> the
> >>> page it is on.
> >>>
> >>> However when I use Model.of() it works.
> >>>
> >>> BootstrapCheckbox addMoreUsersCheckbox = new
> >>> BootstrapCheckbox("checkbox-add-more-users", addUsers, Model.of("Addd
> >>> another user"));
> >>>
> >>> BootstrapCheckbox addMoreUsersCheckbox = new
> >>> BootstrapCheckbox("checkbox-add-more-users", addUsers, new
> >>> StringResourceModel("checkbox"));
> >>>
> >>> How do I reference the value checkbox in the page properties file
> >>> properly?
> >>>
> >>> Thanks
> >>>
> >>> David
> >>>
> >>
> >>
> >>
> >> --
> >> 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


Re: StringResouceModel Can't find key with BootstrapCheckbox

2017-05-25 Thread Ernesto Reinaldo Barreiro
I think StringResourceModel is a  IComponentAssignedModel and

[image: Inline image 1]

and

[image: Inline image 2]

So maybe the line

this.label = labelModel

should be replaced by

this.label = wrap(labelModel) for this to work? Thought Label tag should
already be doing that. Can you create a quick start?




On Fri, May 26, 2017 at 1:20 AM, David Beer <david.m.b...@gmail.com> wrote:

> Hi
>
> I am using the BootstrapCheckbox and when I try to add the Label using
> StringReosrceModel if fails to find the key in the properties file for the
> page it is on.
>
> However when I use Model.of() it works.
>
> BootstrapCheckbox addMoreUsersCheckbox = new
> BootstrapCheckbox("checkbox-add-more-users", addUsers, Model.of("Addd
> another user"));
>
> BootstrapCheckbox addMoreUsersCheckbox = new
> BootstrapCheckbox("checkbox-add-more-users", addUsers, new
> StringResourceModel("checkbox"));
>
> How do I reference the value checkbox in the page properties file properly?
>
> Thanks
>
> David
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Modal dialog, form validation in AjaxBootstrapTabbedPanel

2017-05-08 Thread Ernesto Reinaldo Barreiro
Me too :-)

On Mon, May 8, 2017 at 12:56 PM, Martin Grigorov <mgrigo...@apache.org>
wrote:

> Hi Ulrich,
>
> I'm glad to hear that it worked so easily!
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, May 8, 2017 at 12:05 PM, Knaack, Ulrich <
> ulrich.kna...@lgln.niedersachsen.de> wrote:
>
> > Hi Martin,
> >
> > sorry for late replying. Issues in another project prevented me from
> > testing your hint.
> >
> > Using ClientSideBootstrapTabbedPanel solved my problem completely.
> > I simply replaced "class MyAjaxTabbedPanel extends
> > AjaxBootstrapTabbedPanel"
> > with
> > "class MyAjaxTabbedPanel extends ClientSideBootstrapTabbedPanel "
> > and removed unnecessary methods.
> > Then, wicket gave me useful hints related to a ClassCastException and to
> a
> > missing call to tabbedPanel.setOutputMarkupId(true) .
> >
> > Thank you for quick response.
> >
> > Regards,
> > Ulrich Knaack
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> > > Gesendet: Mittwoch, 3. Mai 2017 15:04
> > > An: users@wicket.apache.org
> > > Betreff: Re: Modal dialog, form validation in AjaxBootstrapTabbedPanel
> > >
> > > Hi,
> > >
> > > I think I see the problem.
> > > When using AjaxBootstrapTabbedPanel the tabs' content is loaded one at
> a
> > > time. This makes it hard to validate the complete form because not all
> > > fields are available at any time.
> > > You may need to use
> > > https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/wicket-
> > > 7.x/bootstrap-
> > > core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/ta
> > > bs/ClientSideBootstrapTabbedPanel.java
> > > instead. It will switch the tabs
> > > via JavaScript and make the validation once you use the submit button.
> > > If this doesn't help you then I'll try to take a look at your
> application
> > > after work!
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: odlabs.wiquery

2017-04-22 Thread Ernesto Reinaldo Barreiro
AFAIK project moved to wicket-stuff repo. I was one of the committers. I
haven't seen any activity on it for a long while.

On Sat, Apr 22, 2017 at 10:45 PM, Adrian Wiesmann <awiesm...@somap.org>
wrote:

> Hi list
>
> This question might be slightly off-topic. My apologies for this.
>
> I am trying to freshen up a project I was working on a few years ago. Back
> then I used org.odlabs.wiquery for several UI elements. In the meantime
> odlabs seems to not have upgraded that library and some forks appeared. No
> fork really looks like the up-to-date no-brainer replacement.
>
> What would be a sensible upgrade path or replacement?
>
> Thanks for your suggestions.
>
> Regards,
> Adrian
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: FilterForm and Ajax

2017-04-18 Thread Ernesto Reinaldo Barreiro
Hi Ilia,

IMHO your question is a bit vague: what components are you using? Do you
use AjaxFallbackDefaultDataTable?

On Mon, Apr 17, 2017 at 8:04 PM, Илья Нарыжный <phan...@ydn.ru> wrote:

> Guys,
>
> Is there any good way (approved solution from wicket dev team) how to make
> datatable filtering AJAX enabled?
> Currently, if you enter filter criterias in FilterForm and click Enter - it
> will reload full page instead of refreshing just a table through Ajax.
>
> Thanks,
>
> Ilia
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>



-- 
Regards - Ernesto Reinaldo Barreiro


Re: Display PDF in new tab

2017-03-05 Thread Ernesto Reinaldo Barreiro
Better than thanks, which are accepted with gratitude, would be also
sharing your solution :-) So, that also other guys could benefit ;-)

On Fri, Mar 3, 2017 at 4:13 PM, SeldonCrisis <nmbara...@gmail.com> wrote:

> Got it figured out. Thank you everyone for your help
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Display-PDF-in-new-tab-tp4677202p4677240.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Display PDF in new tab

2017-03-02 Thread Ernesto Reinaldo Barreiro
See.

https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

There was some work to move such functionality to wicket core. You need
some variation of it, I guess.

On Mar 2, 2017 17:30, "SeldonCrisis"  wrote:

> Yes, sorry for the spam. I kept forgetting to enclose the html in . My
> fault.
>
> OK, so ideally I want to create an AjaxButton that when pressed would serve
> my custom resource (extending ByteArrayResource) in a new tab and
> simultaneously setEnabled(true) and setVisible(true) on a Label in my page.
> Right now I'm using a ResourceLink and ResourceReference to display my
> resource in a new tab. But I cannot add Ajax Events to ResourceLinks
> onClick, and I want a Button not a Link.
>
> Sorry, RTFM definitely applies here, but I don't know if I need to read
> about wickets requestCycle to accomplish this or something else. I'm trying
> to mess around with ITargetRespondListener for now, but I'm not sure if I'm
> on the right track.
>
> --
> View this message in context: http://apache-wicket.1842946.n
> 4.nabble.com/Display-PDF-in-new-tab-tp4677202p4677227.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: Display PDF in new tab

2017-03-01 Thread Ernesto Reinaldo Barreiro
Got lost with some many self responses :-) What do you want to achieve now?
AJAX + SHOW PDF?

On Wed, Mar 1, 2017 at 10:41 PM, SeldonCrisis <nmbara...@gmail.com> wrote:

> I've already seen this reference document, but I skipped over it thinking
> it
> did not apply to my problem (Probably as a result of my lack of Wicket
> experience). I will go ahead and carefully read through it again to see if
> I
> can figure this out. Thanks!
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Display-PDF-in-new-tab-tp4677202p4677224.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


  1   2   3   4   5   6   7   8   9   10   >