Re: OAuth authentication

2022-01-18 Thread Shengche Hsiao
Hello, I’m using 
https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions 
to implement OpenID Connect and OAuth 2 providers and consume oauth2 protected 
resource in Wicket project

From: Boris Goldowsky 
Date: Wednesday, January 19, 2022 at 06:39
To: users@wicket.apache.org 
Subject: OAuth authentication
What is the current best practice for allowing users to sign in to a Wicket 
application using an OAuth2 provider (eg Google account, Twitter, Canvas, etc).

  *   Is Apache Shiro a possibility?  Looks like it’s got some Wicket 
integration, but OAuth2 is listed as “coming”.
  *   PicketLink?
  *   Something from https://oauth.net/code/java/ ?

Anyone with a working implementation care to give some pointers?

Looks like there may have been some discussion of this 10 years ago on this 
list, but not more recently that I can find.

Thank you!

Boris


Re: About jQuery 2.2.4 vulnerability

2021-10-20 Thread Shengche Hsiao
I modified the code in Application#init

getJavaScriptLibrarySettings().setJQueryReference(JQueryResourceReference.getV3());


Now, when I surfed the url [https://mysite/….jquery-2.2.4….js], it showed not 
found

Thanks a lot

From: Martin Grigorov 
Date: Wednesday, October 20, 2021 at 19:06
To: users@wicket.apache.org 
Subject: Re: About jQuery 2.2.4 vulnerability
On Wed, Oct 20, 2021 at 1:34 PM Martin Grigorov 
wrote:

>
>
> On Wed, Oct 20, 2021 at 1:30 PM Martin Grigorov 
> wrote:
>
>>
>>
>> On Wed, Oct 20, 2021 at 1:21 PM Shengche Hsiao 
>> wrote:
>>
>>> Dear Martin
>>>
>>> After I applied the code, the website showed exceptions below
>>>
>>>
>>> ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-2521)
>>> Unexpected error occurred: org.apache.wicket.WicketRuntimeException: An
>>> error occurred while generating an Url for handler
>>> 'ResourceReferenceRequestHandler{resourceReference=scope:
>>> org.apache.wicket.resource.JQueryResourceReference; name:
>>> jquery/jquery-2.2.4.js; locale: null; style: null; variation: null,
>>> pageParameters=}'
>>>
>>>
>>>
>>> Caused by:
>>> org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException:
>>> Access denied to (static) package resource
>>> org/apache/wicket/resource/jquery/jquery-2.2.4.js. See IPackageResourceGuard
>>>
>>
>> I think this should be a WARNING and the stacktrace should be printed
>> only if DEBUG is enabled.
>> Also the response code should be 404!
>> I will create a ticket!
>>
>
> https://issues.apache.org/jira/browse/WICKET-6928
>

I've closed the ticker because this is already implemented.
The ERROR with the stacktrace is logged only in DEV mode so that the
developer is made aware that his/her application has a ResourceReference
for a forbidden resource.

Is the scanner making the request to
https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js
?
I have the feeling your application contributes it itself in some
#renderHead() method in your components.


>
>
>>
>> You could use another solutuion - use a custom Servlet Filter that is
>> declared before WicketFilter. If the tequest is to jquery-2*.js then return
>> 404 and do not pass the request & response to the filter chain.
>>
>
> Or use IRequestCycleListener and do the above in its #onException()
>
>
>>
>>
>>>
>>>
>>>
>>> From: Martin Grigorov 
>>> Date: Wednesday, October 20, 2021 at 14:34
>>> To: users@wicket.apache.org 
>>> Subject: Re: About jQuery 2.2.4 vulnerability
>>> You could use SecurePackageResourceGuard to forbid access to a resource.
>>> In YourApplication#init():
>>>
>>> SecurePackageResourceGuard guard = (SecurePackageResourceGuard)
>>> getResourceSettings().getPackageResourceGuard();
>>> guard.addPattern("-**/jquery-2*.js");
>>>
>>> On Wed, Oct 20, 2021 at 9:25 AM Shengche Hsiao 
>>> wrote:
>>>
>>> > Dear Martin
>>> >
>>> > I actually configured with jQuery version 3 on Application, and on
>>> browser
>>> > console showed jquery version with 3.6.0. But the scanner still find
>>> this
>>> > url [
>>> >
>>> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js
>>> ]<
>>> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js%5d
>>> >
>>> > appears. I know this resource is generated automatically by Wicket
>>> 8.13.0
>>> > (our project), and I don’t want this url resource be retrieved by
>>> scanner.
>>> > How to do that?
>>> >
>>> >
>>> > From: Martin Grigorov 
>>> > Date: Wednesday, October 20, 2021 at 14:17
>>> > To: users@wicket.apache.org 
>>> > Subject: Re: About jQuery 2.2.4 vulnerability
>>> > Hi,
>>> >
>>> > On Wed, Oct 20, 2021 at 5:46 AM Shengche Hsiao <
>>> shengchehs...@gmail.com>
>>> > wrote:
>>> >
>>> > > Dear All
>>> > >
>>> > > Recently, our website made a vulnerability scanning. The report shows
>>> > >
>>> >
>>> [/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
>>> > > 6233386130326534.js] as a vulnerability library. How do I disallow
>>> output
>>> > > this jquery version to avoid scan?
>>> > >
>>> >
>>> > I don't understand your question. Please re-phrase if the following
>>> does
>>> > not help you!
>>> >
>>> > You can upgrade jQuery by adding such code to YourApplication#init():
>>> >
>>> > getJavaScriptLibrarySettings().setJQueryReference(new
>>> > JavaScriptResourceReference(MyClass.class, "jquery-x.y.z.js"));
>>> > you could
>>> > use org.apache.wicket.resource.JQueryResourceReference#INSTANCE_3, for
>>> > example
>>> >
>>> >
>>> > >
>>> > > Thanks
>>> > >
>>> >
>>>
>>


Re: About jQuery 2.2.4 vulnerability

2021-10-20 Thread Shengche Hsiao
Thanks

From: Martin Grigorov 
Date: Wednesday, October 20, 2021 at 18:35
To: users@wicket.apache.org 
Subject: Re: About jQuery 2.2.4 vulnerability
On Wed, Oct 20, 2021 at 1:30 PM Martin Grigorov 
wrote:

>
>
> On Wed, Oct 20, 2021 at 1:21 PM Shengche Hsiao 
> wrote:
>
>> Dear Martin
>>
>> After I applied the code, the website showed exceptions below
>>
>>
>> ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-2521)
>> Unexpected error occurred: org.apache.wicket.WicketRuntimeException: An
>> error occurred while generating an Url for handler
>> 'ResourceReferenceRequestHandler{resourceReference=scope:
>> org.apache.wicket.resource.JQueryResourceReference; name:
>> jquery/jquery-2.2.4.js; locale: null; style: null; variation: null,
>> pageParameters=}'
>>
>>
>>
>> Caused by:
>> org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException:
>> Access denied to (static) package resource
>> org/apache/wicket/resource/jquery/jquery-2.2.4.js. See IPackageResourceGuard
>>
>
> I think this should be a WARNING and the stacktrace should be printed only
> if DEBUG is enabled.
> Also the response code should be 404!
> I will create a ticket!
>

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


>
> You could use another solutuion - use a custom Servlet Filter that is
> declared before WicketFilter. If the tequest is to jquery-2*.js then return
> 404 and do not pass the request & response to the filter chain.
>

Or use IRequestCycleListener and do the above in its #onException()


>
>
>>
>>
>>
>> From: Martin Grigorov 
>> Date: Wednesday, October 20, 2021 at 14:34
>> To: users@wicket.apache.org 
>> Subject: Re: About jQuery 2.2.4 vulnerability
>> You could use SecurePackageResourceGuard to forbid access to a resource.
>> In YourApplication#init():
>>
>> SecurePackageResourceGuard guard = (SecurePackageResourceGuard)
>> getResourceSettings().getPackageResourceGuard();
>> guard.addPattern("-**/jquery-2*.js");
>>
>> On Wed, Oct 20, 2021 at 9:25 AM Shengche Hsiao 
>> wrote:
>>
>> > Dear Martin
>> >
>> > I actually configured with jQuery version 3 on Application, and on
>> browser
>> > console showed jquery version with 3.6.0. But the scanner still find
>> this
>> > url [
>> >
>> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js
>> ]<
>> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js%5d
>> >
>> > appears. I know this resource is generated automatically by Wicket
>> 8.13.0
>> > (our project), and I don’t want this url resource be retrieved by
>> scanner.
>> > How to do that?
>> >
>> >
>> > From: Martin Grigorov 
>> > Date: Wednesday, October 20, 2021 at 14:17
>> > To: users@wicket.apache.org 
>> > Subject: Re: About jQuery 2.2.4 vulnerability
>> > Hi,
>> >
>> > On Wed, Oct 20, 2021 at 5:46 AM Shengche Hsiao > >
>> > wrote:
>> >
>> > > Dear All
>> > >
>> > > Recently, our website made a vulnerability scanning. The report shows
>> > >
>> >
>> [/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
>> > > 6233386130326534.js] as a vulnerability library. How do I disallow
>> output
>> > > this jquery version to avoid scan?
>> > >
>> >
>> > I don't understand your question. Please re-phrase if the following does
>> > not help you!
>> >
>> > You can upgrade jQuery by adding such code to YourApplication#init():
>> >
>> > getJavaScriptLibrarySettings().setJQueryReference(new
>> > JavaScriptResourceReference(MyClass.class, "jquery-x.y.z.js"));
>> > you could
>> > use org.apache.wicket.resource.JQueryResourceReference#INSTANCE_3, for
>> > example
>> >
>> >
>> > >
>> > > Thanks
>> > >
>> >
>>
>


Re: About jQuery 2.2.4 vulnerability

2021-10-20 Thread Shengche Hsiao
Hello Solodovnik

I commented the line ‘getJavaScriptLibrarySettings().setJQueryReference’ 
previously, as I misunderstood the usage of resource bundle –
‘
ResourceBundles bundles = getResourceBundles();
bundles.addJavaScriptBundle(AuthApplication.class, "core.js",
JQueryResourceReference.getV3(),
(JavaScriptResourceReference) 
getJavaScriptLibrarySettings().getWicketAjaxReference(),
ModernizrJavaScriptReference.instance()
);

’

I added the code


getJavaScriptLibrarySettings().setJQueryReference(JQueryResourceReference.getV3());

and it works

Thanks a lot


From: Maxim Solodovnik 
Date: Wednesday, October 20, 2021 at 18:26
To: users@wicket.apache.org 
Subject: Re: About jQuery 2.2.4 vulnerability
On Wed, 20 Oct 2021 at 17:21, Shengche Hsiao 
wrote:

> Dear Martin
>
> After I applied the code, the website showed exceptions below
>
>
> ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-2521)
> Unexpected error occurred: org.apache.wicket.WicketRuntimeException: An
> error occurred while generating an Url for handler
> 'ResourceReferenceRequestHandler{resourceReference=scope:
> org.apache.wicket.resource.JQueryResourceReference; name:
> jquery/jquery-2.2.4.js; locale: null; style: null; variation: null,
> pageParameters=}'
>
>
>
> Caused by:
> org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException:
> Access denied to (static) package resource
> org/apache/wicket/resource/jquery/jquery-2.2.4.js. See IPackageResourceGuard
>
>
It seems you are still using 2.2.4
Please ensure it is switched via
`getJavaScriptLibrarySettings().setJQueryReference`

>
>
> From: Martin Grigorov 
> Date: Wednesday, October 20, 2021 at 14:34
> To: users@wicket.apache.org 
> Subject: Re: About jQuery 2.2.4 vulnerability
> You could use SecurePackageResourceGuard to forbid access to a resource.
> In YourApplication#init():
>
> SecurePackageResourceGuard guard = (SecurePackageResourceGuard)
> getResourceSettings().getPackageResourceGuard();
> guard.addPattern("-**/jquery-2*.js");
>
> On Wed, Oct 20, 2021 at 9:25 AM Shengche Hsiao 
> wrote:
>
> > Dear Martin
> >
> > I actually configured with jQuery version 3 on Application, and on
> browser
> > console showed jquery version with 3.6.0. But the scanner still find this
> > url [
> >
> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js
> ]<
> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js%5d
> >
> > appears. I know this resource is generated automatically by Wicket 8.13.0
> > (our project), and I don’t want this url resource be retrieved by
> scanner.
> > How to do that?
> >
> >
> > From: Martin Grigorov 
> > Date: Wednesday, October 20, 2021 at 14:17
> > To: users@wicket.apache.org 
> > Subject: Re: About jQuery 2.2.4 vulnerability
> > Hi,
> >
> > On Wed, Oct 20, 2021 at 5:46 AM Shengche Hsiao 
> > wrote:
> >
> > > Dear All
> > >
> > > Recently, our website made a vulnerability scanning. The report shows
> > >
> >
> [/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
> > > 6233386130326534.js] as a vulnerability library. How do I disallow
> output
> > > this jquery version to avoid scan?
> > >
> >
> > I don't understand your question. Please re-phrase if the following does
> > not help you!
> >
> > You can upgrade jQuery by adding such code to YourApplication#init():
> >
> > getJavaScriptLibrarySettings().setJQueryReference(new
> > JavaScriptResourceReference(MyClass.class, "jquery-x.y.z.js"));
> > you could
> > use org.apache.wicket.resource.JQueryResourceReference#INSTANCE_3, for
> > example
> >
> >
> > >
> > > Thanks
> > >
> >
>


--
Best regards,
Maxim


Re: About jQuery 2.2.4 vulnerability

2021-10-20 Thread Shengche Hsiao
Dear Martin

After I applied the code, the website showed exceptions below


ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-2521) Unexpected 
error occurred: org.apache.wicket.WicketRuntimeException: An error occurred 
while generating an Url for handler 
'ResourceReferenceRequestHandler{resourceReference=scope: 
org.apache.wicket.resource.JQueryResourceReference; name: 
jquery/jquery-2.2.4.js; locale: null; style: null; variation: null, 
pageParameters=}'



Caused by: 
org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException:
 Access denied to (static) package resource 
org/apache/wicket/resource/jquery/jquery-2.2.4.js. See IPackageResourceGuard



From: Martin Grigorov 
Date: Wednesday, October 20, 2021 at 14:34
To: users@wicket.apache.org 
Subject: Re: About jQuery 2.2.4 vulnerability
You could use SecurePackageResourceGuard to forbid access to a resource.
In YourApplication#init():

SecurePackageResourceGuard guard = (SecurePackageResourceGuard)
getResourceSettings().getPackageResourceGuard();
guard.addPattern("-**/jquery-2*.js");

On Wed, Oct 20, 2021 at 9:25 AM Shengche Hsiao 
wrote:

> Dear Martin
>
> I actually configured with jQuery version 3 on Application, and on browser
> console showed jquery version with 3.6.0. But the scanner still find this
> url [
> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js]<https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js%5d>
> appears. I know this resource is generated automatically by Wicket 8.13.0
> (our project), and I don’t want this url resource be retrieved by scanner.
> How to do that?
>
>
> From: Martin Grigorov 
> Date: Wednesday, October 20, 2021 at 14:17
> To: users@wicket.apache.org 
> Subject: Re: About jQuery 2.2.4 vulnerability
> Hi,
>
> On Wed, Oct 20, 2021 at 5:46 AM Shengche Hsiao 
> wrote:
>
> > Dear All
> >
> > Recently, our website made a vulnerability scanning. The report shows
> >
> [/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
> > 6233386130326534.js] as a vulnerability library. How do I disallow output
> > this jquery version to avoid scan?
> >
>
> I don't understand your question. Please re-phrase if the following does
> not help you!
>
> You can upgrade jQuery by adding such code to YourApplication#init():
>
> getJavaScriptLibrarySettings().setJQueryReference(new
> JavaScriptResourceReference(MyClass.class, "jquery-x.y.z.js"));
> you could
> use org.apache.wicket.resource.JQueryResourceReference#INSTANCE_3, for
> example
>
>
> >
> > Thanks
> >
>


Re: About jQuery 2.2.4 vulnerability

2021-10-20 Thread Shengche Hsiao
Dear Martin

Very thanks

From: Martin Grigorov 
Date: Wednesday, October 20, 2021 at 14:34
To: users@wicket.apache.org 
Subject: Re: About jQuery 2.2.4 vulnerability
You could use SecurePackageResourceGuard to forbid access to a resource.
In YourApplication#init():

SecurePackageResourceGuard guard = (SecurePackageResourceGuard)
getResourceSettings().getPackageResourceGuard();
guard.addPattern("-**/jquery-2*.js");

On Wed, Oct 20, 2021 at 9:25 AM Shengche Hsiao 
wrote:

> Dear Martin
>
> I actually configured with jQuery version 3 on Application, and on browser
> console showed jquery version with 3.6.0. But the scanner still find this
> url [
> https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js]<https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js%5d>
> appears. I know this resource is generated automatically by Wicket 8.13.0
> (our project), and I don’t want this url resource be retrieved by scanner.
> How to do that?
>
>
> From: Martin Grigorov 
> Date: Wednesday, October 20, 2021 at 14:17
> To: users@wicket.apache.org 
> Subject: Re: About jQuery 2.2.4 vulnerability
> Hi,
>
> On Wed, Oct 20, 2021 at 5:46 AM Shengche Hsiao 
> wrote:
>
> > Dear All
> >
> > Recently, our website made a vulnerability scanning. The report shows
> >
> [/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
> > 6233386130326534.js] as a vulnerability library. How do I disallow output
> > this jquery version to avoid scan?
> >
>
> I don't understand your question. Please re-phrase if the following does
> not help you!
>
> You can upgrade jQuery by adding such code to YourApplication#init():
>
> getJavaScriptLibrarySettings().setJQueryReference(new
> JavaScriptResourceReference(MyClass.class, "jquery-x.y.z.js"));
> you could
> use org.apache.wicket.resource.JQueryResourceReference#INSTANCE_3, for
> example
>
>
> >
> > Thanks
> >
>


Re: About jQuery 2.2.4 vulnerability

2021-10-20 Thread Shengche Hsiao
Dear Martin

I actually configured with jQuery version 3 on Application, and on browser 
console showed jquery version with 3.6.0. But the scanner still find this url 
[https://mysite/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-6233386130326534.js]
 appears. I know this resource is generated automatically by Wicket 8.13.0 (our 
project), and I don’t want this url resource be retrieved by scanner. How to do 
that?


From: Martin Grigorov 
Date: Wednesday, October 20, 2021 at 14:17
To: users@wicket.apache.org 
Subject: Re: About jQuery 2.2.4 vulnerability
Hi,

On Wed, Oct 20, 2021 at 5:46 AM Shengche Hsiao 
wrote:

> Dear All
>
> Recently, our website made a vulnerability scanning. The report shows
> [/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
> 6233386130326534.js] as a vulnerability library. How do I disallow output
> this jquery version to avoid scan?
>

I don't understand your question. Please re-phrase if the following does
not help you!

You can upgrade jQuery by adding such code to YourApplication#init():

getJavaScriptLibrarySettings().setJQueryReference(new
JavaScriptResourceReference(MyClass.class, "jquery-x.y.z.js"));
you could
use org.apache.wicket.resource.JQueryResourceReference#INSTANCE_3, for
example


>
> Thanks
>


About jQuery 2.2.4 vulnerability

2021-10-19 Thread Shengche Hsiao
Dear All

Recently, our website made a vulnerability scanning. The report shows 
[/wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery/jquery-2.2.4-v-
6233386130326534.js] as a vulnerability library. How do I disallow output this 
jquery version to avoid scan?

Thanks


Re: Wicket HttpSessionDataStore, InMemoryCacheSize and MaxSizePerSession

2020-05-25 Thread Shengche Hsiao
Thanks Sven

On Mon, May 25, 2020 at 13:23 Sven Meier  wrote:

> Hi,
>
> both settings are unrelated:
>
> - inMemoryCacheSize is 0 by default anyway
> - maxSizePerSession is used by DiskDataStore (which you are replacing
> with HttpSessionDataStore)
>
> Have fun
> Sven
>
>
> On 25.05.20 03:51, ShengChe Hsiao wrote:
> > Dear all
> >
> > I want to use HttpSessionDataStore as default page store for session
> > cluster, does InMemoryCacheSize and MaxSizePersession affect it's
> function,
> > if both of them were 0 ?
> >
> > 
> > --->
> > 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
> >
> ->
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
> --

------->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Wicket HttpSessionDataStore, InMemoryCacheSize and MaxSizePerSession

2020-05-24 Thread ShengChe Hsiao
Dear all

I want to use HttpSessionDataStore as default page store for session
cluster, does InMemoryCacheSize and MaxSizePersession affect it's function,
if both of them were 0 ?


--->
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
->


Re: SessionStore on database

2020-04-29 Thread Shengche Hsiao
Thomas, thanks for your opinion, I'll try it

On Wed, Apr 29, 2020 at 2:49 PM Thomas Heigl  wrote:

> Hi,
>
> There are two options I'm aware of:
>
> - You can use a session manager in your application server that stores your
> session in the database. I.e. Tomcat's JDBC store.
> - You can use Spring Session with a JDBC store
>
> I recently implemented Spring Session for Wicket with Redis as a backing
> store. There are minor issues with page locking that require some custom
> code, but otherwise it works fine.
>
> Best regards,
>
> Thomas
>
> On Wed, Apr 29, 2020 at 5:30 AM ShengChe Hsiao  wrote:
>
> > Dear all
> >
> > I want to implement cross datacenter session replication for my web app,
> > can I persist session on shared database? If it does, how can I do?
> >
> > I searched the web, and found org.apache.wicket.protocol.http.
> > SecondLevelCacheSessionStore.IClusteredPageStore
> >
> > I have an idea for implement above interface and persist session on
> target
> > database, right?
> >
> > 
> > --->
> > 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
> >
> >
> ->
> >
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


SessionStore on database

2020-04-28 Thread ShengChe Hsiao
Dear all

I want to implement cross datacenter session replication for my web app,
can I persist session on shared database? If it does, how can I do?

I searched the web, and found org.apache.wicket.protocol.http.
SecondLevelCacheSessionStore.IClusteredPageStore

I have an idea for implement above interface and persist session on target
database, right?


--->
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
->


Re: About XML Injection

2020-04-10 Thread Shengche Hsiao
Yes, super thanks for detailed explanation

On Sat, Apr 11, 2020 at 11:19 AM Martin Terra <
martin.te...@koodaripalvelut.com> wrote:

> la 11. huhtik. 2020 klo 5.58 Shengche Hsiao (shengchehs...@gmail.com)
> kirjoitti:
>
> > Thanks Martin, I might misunderstand the report, and  I'll validate the
> > submitted values to prevent xml injection.
> >
>
> You're welcome. To clarify: validation can prevent any malicious effects of
> injected values, but it cannot prevent the injection itself. Therefore,
> validation could cure the issue found in the report. This should
> ofcourse be verified by reproducing the issue before fix and confirming
> that applying the fix successfully mitigates the issue.
>
> **
> Martin
>
>
> > On Thu, Apr 9, 2020 at 8:07 PM Martin Grigorov 
> > wrote:
> >
> > > I still do not understand what exactly is the issue here.
> > >
> > > The client/browser submits the values as key/value pairs
> > > (application/x-www-form-urlencoded).
> > > The server responds with XML that is processed by wicket-ajax.js.
> > > How validation of the submit values could help with the XML injection
> ?!
> > >
> > >
> > > On Thu, Apr 9, 2020 at 2:52 PM Shengche Hsiao  >
> > > wrote:
> > >
> > > > Thank you, I'll do that and see if works
> > > >
> > > > On Thu, Apr 9, 2020 at 6:35 PM Martin Terra <
> > > > martin.te...@koodaripalvelut.com> wrote:
> > > >
> > > > > Can you solve this by simple validation if submitted values are
> > legal?
> > > > This
> > > > > way it does not matter if client tries to override the submit.
> > > > >
> > > > > **
> > > > > Martin
> > > > >
> > > > > to 9. huhtik. 2020 klo 12.22 Shengche Hsiao (
> shengchehs...@gmail.com
> > )
> > > > > kirjoitti:
> > > > >
> > > > > > I got a report , it suggest our web site to deal with xml
> injection
> > > > > issue.
> > > > > > We use DropDownChoice with OnChangeAjaxBehavior to invoke another
> > > > > > DropDownChoice via wicket-ajax buit-in xml payload, and the
> > reporters
> > > > > > used Burpsuite
> > > > > > to inject xml on xmlpayload, such as inject 
> > > > > >
> > > > > >
> > > > > >  image.png
> > > > > > <
> > > > > >
> > > > >
> > > >
> > >
> >
> https://drive.google.com/file/d/1U9nls1Z7tfs_zqEvbLLYsef89BFMopeY/view?usp=drive_web
> > > > > > >
> > > > > >
> > > > > >
> > > > > > and resulted in some abnormal response
> > > > > >
> > > > > >
> > > > > >  image.png
> > > > > > <
> > > > > >
> > > > >
> > > >
> > >
> >
> https://drive.google.com/file/d/1RcAegoREfmkdPNm1DCw9ouUyfI20lh7K/view?usp=drive_web
> > > > > > >
> > > > > >
> > > > > >
> > > > > > As a result, I have to prevent the xml injection, do I check the
> > > entire
> > > > > > payload or only check there value we need ?
> > > > > >
> > > > > > On Thu, Apr 9, 2020 at 4:57 PM Martin Grigorov <
> > mgrigo...@apache.org
> > > >
> > > > > > wrote:
> > > > > >
> > > > > > > The images didn't make it to the mailing list.
> > > > > > > Please use some online image paste bin.
> > > > > > >
> > > > > > > On Thu, Apr 9, 2020 at 11:33 AM Shengche Hsiao <
> > > > > shengchehs...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > I got a report , it suggest our web site to deal with xml
> > > injection
> > > > > > > issue.
> > > > > > > > We use DropDownChoice with OnChangeAjaxBehavior to invoke
> > another
> > > > > > > > DropDownChoice via wicket-ajax buit-in xml payload, and the
> > > > reporters
> > > > > > > used
> > > > > > > >  Burpsuite to inject xml on xmlpayload, such as inject 
> > > > > > > >
> > > > > > > > [image: image.png]

Re: About XML Injection

2020-04-10 Thread Shengche Hsiao
Thanks Martin, I might misunderstand the report, and  I'll validate the
submitted values to prevent xml injection.

On Thu, Apr 9, 2020 at 8:07 PM Martin Grigorov  wrote:

> I still do not understand what exactly is the issue here.
>
> The client/browser submits the values as key/value pairs
> (application/x-www-form-urlencoded).
> The server responds with XML that is processed by wicket-ajax.js.
> How validation of the submit values could help with the XML injection ?!
>
>
> On Thu, Apr 9, 2020 at 2:52 PM Shengche Hsiao 
> wrote:
>
> > Thank you, I'll do that and see if works
> >
> > On Thu, Apr 9, 2020 at 6:35 PM Martin Terra <
> > martin.te...@koodaripalvelut.com> wrote:
> >
> > > Can you solve this by simple validation if submitted values are legal?
> > This
> > > way it does not matter if client tries to override the submit.
> > >
> > > **
> > > Martin
> > >
> > > to 9. huhtik. 2020 klo 12.22 Shengche Hsiao (shengchehs...@gmail.com)
> > > kirjoitti:
> > >
> > > > I got a report , it suggest our web site to deal with xml injection
> > > issue.
> > > > We use DropDownChoice with OnChangeAjaxBehavior to invoke another
> > > > DropDownChoice via wicket-ajax buit-in xml payload, and the reporters
> > > > used Burpsuite
> > > > to inject xml on xmlpayload, such as inject 
> > > >
> > > >
> > > >  image.png
> > > > <
> > > >
> > >
> >
> https://drive.google.com/file/d/1U9nls1Z7tfs_zqEvbLLYsef89BFMopeY/view?usp=drive_web
> > > > >
> > > >
> > > >
> > > > and resulted in some abnormal response
> > > >
> > > >
> > > >  image.png
> > > > <
> > > >
> > >
> >
> https://drive.google.com/file/d/1RcAegoREfmkdPNm1DCw9ouUyfI20lh7K/view?usp=drive_web
> > > > >
> > > >
> > > >
> > > > As a result, I have to prevent the xml injection, do I check the
> entire
> > > > payload or only check there value we need ?
> > > >
> > > > On Thu, Apr 9, 2020 at 4:57 PM Martin Grigorov  >
> > > > wrote:
> > > >
> > > > > The images didn't make it to the mailing list.
> > > > > Please use some online image paste bin.
> > > > >
> > > > > On Thu, Apr 9, 2020 at 11:33 AM Shengche Hsiao <
> > > shengchehs...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > I got a report , it suggest our web site to deal with xml
> injection
> > > > > issue.
> > > > > > We use DropDownChoice with OnChangeAjaxBehavior to invoke another
> > > > > > DropDownChoice via wicket-ajax buit-in xml payload, and the
> > reporters
> > > > > used
> > > > > >  Burpsuite to inject xml on xmlpayload, such as inject 
> > > > > >
> > > > > > [image: image.png]
> > > > > >
> > > > > > and resulted in some abnormal response
> > > > > >
> > > > > > [image: image.png]
> > > > > >
> > > > > > As a result, I have to prevent the xml injection, do I check the
> > > entire
> > > > > > payload or only check there value we need ?
> > > > > >
> > > > > > On Thu, Apr 9, 2020 at 4:11 PM Martin Grigorov <
> > mgrigo...@apache.org
> > > >
> > > > > > wrote:
> > > > > >
> > > > > >> On Thu, Apr 9, 2020 at 11:09 AM Shengche Hsiao <
> > > > shengchehs...@gmail.com
> > > > > >
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Yes, I need to know overriding which methods
> > > > > >> >
> > > > > >>
> > > > > >> I still do not understand what exactly you need to accomplish.
> > > > > >> Please be more specific!
> > > > > >>
> > > > > >>
> > > > > >> >
> > > > > >> > On Thu, Apr 9, 2020 at 16:03 Martin Grigorov <
> > > mgrigo...@apache.org>
> > > > > >> wrote:
> > > > > >> >
> > > > > >> > > Hi,
> > > > > >> > >
> > > > > >> > > On T

Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
Thank you, I'll do that and see if works

On Thu, Apr 9, 2020 at 6:35 PM Martin Terra <
martin.te...@koodaripalvelut.com> wrote:

> Can you solve this by simple validation if submitted values are legal? This
> way it does not matter if client tries to override the submit.
>
> **
> Martin
>
> to 9. huhtik. 2020 klo 12.22 Shengche Hsiao (shengchehs...@gmail.com)
> kirjoitti:
>
> > I got a report , it suggest our web site to deal with xml injection
> issue.
> > We use DropDownChoice with OnChangeAjaxBehavior to invoke another
> > DropDownChoice via wicket-ajax buit-in xml payload, and the reporters
> > used Burpsuite
> > to inject xml on xmlpayload, such as inject 
> >
> >
> >  image.png
> > <
> >
> https://drive.google.com/file/d/1U9nls1Z7tfs_zqEvbLLYsef89BFMopeY/view?usp=drive_web
> > >
> >
> >
> > and resulted in some abnormal response
> >
> >
> >  image.png
> > <
> >
> https://drive.google.com/file/d/1RcAegoREfmkdPNm1DCw9ouUyfI20lh7K/view?usp=drive_web
> > >
> >
> >
> > As a result, I have to prevent the xml injection, do I check the entire
> > payload or only check there value we need ?
> >
> > On Thu, Apr 9, 2020 at 4:57 PM Martin Grigorov 
> > wrote:
> >
> > > The images didn't make it to the mailing list.
> > > Please use some online image paste bin.
> > >
> > > On Thu, Apr 9, 2020 at 11:33 AM Shengche Hsiao <
> shengchehs...@gmail.com>
> > > wrote:
> > >
> > > > I got a report , it suggest our web site to deal with xml injection
> > > issue.
> > > > We use DropDownChoice with OnChangeAjaxBehavior to invoke another
> > > > DropDownChoice via wicket-ajax buit-in xml payload, and the reporters
> > > used
> > > >  Burpsuite to inject xml on xmlpayload, such as inject 
> > > >
> > > > [image: image.png]
> > > >
> > > > and resulted in some abnormal response
> > > >
> > > > [image: image.png]
> > > >
> > > > As a result, I have to prevent the xml injection, do I check the
> entire
> > > > payload or only check there value we need ?
> > > >
> > > > On Thu, Apr 9, 2020 at 4:11 PM Martin Grigorov  >
> > > > wrote:
> > > >
> > > >> On Thu, Apr 9, 2020 at 11:09 AM Shengche Hsiao <
> > shengchehs...@gmail.com
> > > >
> > > >> wrote:
> > > >>
> > > >> > Yes, I need to know overriding which methods
> > > >> >
> > > >>
> > > >> I still do not understand what exactly you need to accomplish.
> > > >> Please be more specific!
> > > >>
> > > >>
> > > >> >
> > > >> > On Thu, Apr 9, 2020 at 16:03 Martin Grigorov <
> mgrigo...@apache.org>
> > > >> wrote:
> > > >> >
> > > >> > > Hi,
> > > >> > >
> > > >> > > On Thu, Apr 9, 2020 at 10:27 AM ShengChe Hsiao <
> > front...@gmail.com>
> > > >> > wrote:
> > > >> > >
> > > >> > > > Dear all
> > > >> > > >
> > > >> > > > I use built-in ajax dropdownchoice component, it's default
> > payload
> > > >> is
> > > >> > xml
> > > >> > > > entity, but if I need to prevent xml injection ,how can i do?
> > > >> > > >
> > > >> > >
> > > >> > > Could you please give some more information what exactly you
> need?
> > > >> > >
> > > >> > >
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > 
> > > >> > > > --->
> > > >> > > > To boldly go where no man has gone before.
> > > >> > > >
> > > 
> > > >> > > > --->
> > > >> > > > We do this not because it is easy. We do this because it is
> > hard.
> > > >> > > >
> > -
> > > >> 

Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
I got a report , it suggest our web site to deal with xml injection issue.
We use DropDownChoice with OnChangeAjaxBehavior to invoke another
DropDownChoice via wicket-ajax buit-in xml payload, and the reporters
used Burpsuite
to inject xml on xmlpayload, such as inject 


 image.png
<https://drive.google.com/file/d/1U9nls1Z7tfs_zqEvbLLYsef89BFMopeY/view?usp=drive_web>


and resulted in some abnormal response


 image.png
<https://drive.google.com/file/d/1RcAegoREfmkdPNm1DCw9ouUyfI20lh7K/view?usp=drive_web>


As a result, I have to prevent the xml injection, do I check the entire
payload or only check there value we need ?

On Thu, Apr 9, 2020 at 4:57 PM Martin Grigorov  wrote:

> The images didn't make it to the mailing list.
> Please use some online image paste bin.
>
> On Thu, Apr 9, 2020 at 11:33 AM Shengche Hsiao 
> wrote:
>
> > I got a report , it suggest our web site to deal with xml injection
> issue.
> > We use DropDownChoice with OnChangeAjaxBehavior to invoke another
> > DropDownChoice via wicket-ajax buit-in xml payload, and the reporters
> used
> >  Burpsuite to inject xml on xmlpayload, such as inject 
> >
> > [image: image.png]
> >
> > and resulted in some abnormal response
> >
> > [image: image.png]
> >
> > As a result, I have to prevent the xml injection, do I check the entire
> > payload or only check there value we need ?
> >
> > On Thu, Apr 9, 2020 at 4:11 PM Martin Grigorov 
> > wrote:
> >
> >> On Thu, Apr 9, 2020 at 11:09 AM Shengche Hsiao  >
> >> wrote:
> >>
> >> > Yes, I need to know overriding which methods
> >> >
> >>
> >> I still do not understand what exactly you need to accomplish.
> >> Please be more specific!
> >>
> >>
> >> >
> >> > On Thu, Apr 9, 2020 at 16:03 Martin Grigorov 
> >> wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > On Thu, Apr 9, 2020 at 10:27 AM ShengChe Hsiao 
> >> > wrote:
> >> > >
> >> > > > Dear all
> >> > > >
> >> > > > I use built-in ajax dropdownchoice component, it's default payload
> >> is
> >> > xml
> >> > > > entity, but if I need to prevent xml injection ,how can i do?
> >> > > >
> >> > >
> >> > > Could you please give some more information what exactly you need?
> >> > >
> >> > >
> >> > > >
> >> > > >
> >> > > >
> 
> >> > > > --->
> >> > > > 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
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> ->
> >> > > >
> >> > >
> >> > --
> >> >
> >> >
> --->
> >> > We do this not because it is easy. We do this because it is hard.
> >> >
> --->
> >> > ShengChe Hsiao
> >> >
> --->
> >> > front...@gmail.com
> >> > front...@tc.edu.tw
> >> >
> --->
> >> > VoIP : 070-910-2450
> >> >
> --->
> >> >
> >>
> >
> >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > --->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
> >
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
I got a report , it suggest our web site to deal with xml injection issue.
We use DropDownChoice with OnChangeAjaxBehavior to invoke another
DropDownChoice via wicket-ajax buit-in xml payload, and the reporters
used Burpsuite
to inject xml on xmlpayload, such as inject 

[image: image.png]

and resulted in some abnormal response

[image: image.png]

As a result, I have to prevent the xml injection, do I check the entire
payload or only check there value we need ?

On Thu, Apr 9, 2020 at 4:11 PM Martin Grigorov  wrote:

> On Thu, Apr 9, 2020 at 11:09 AM Shengche Hsiao 
> wrote:
>
> > Yes, I need to know overriding which methods
> >
>
> I still do not understand what exactly you need to accomplish.
> Please be more specific!
>
>
> >
> > On Thu, Apr 9, 2020 at 16:03 Martin Grigorov 
> wrote:
> >
> > > Hi,
> > >
> > > On Thu, Apr 9, 2020 at 10:27 AM ShengChe Hsiao 
> > wrote:
> > >
> > > > Dear all
> > > >
> > > > I use built-in ajax dropdownchoice component, it's default payload is
> > xml
> > > > entity, but if I need to prevent xml injection ,how can i do?
> > > >
> > >
> > > Could you please give some more information what exactly you need?
> > >
> > >
> > > >
> > > >
> > > > 
> > > > --->
> > > > 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
> > > >
> > > >
> > >
> >
> ->
> > > >
> > >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > ------->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
> >
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
Yes, I need to know overriding which methods

On Thu, Apr 9, 2020 at 16:03 Martin Grigorov  wrote:

> Hi,
>
> On Thu, Apr 9, 2020 at 10:27 AM ShengChe Hsiao  wrote:
>
> > Dear all
> >
> > I use built-in ajax dropdownchoice component, it's default payload is xml
> > entity, but if I need to prevent xml injection ,how can i do?
> >
>
> Could you please give some more information what exactly you need?
>
>
> >
> >
> > 
> > --->
> > 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
> >
> >
> ->
> >
>
-- 

------->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
Thanks, I’ll figure it out

On Thu, Apr 9, 2020 at 16:03 Martin Grigorov  wrote:

> Hi,
>
> On Thu, Apr 9, 2020 at 10:27 AM ShengChe Hsiao  wrote:
>
> > Dear all
> >
> > I use built-in ajax dropdownchoice component, it's default payload is xml
> > entity, but if I need to prevent xml injection ,how can i do?
> >
>
> Could you please give some more information what exactly you need?
>
>
> >
> >
> > 
> > --->
> > 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
> >
> >
> ->
> >
>
-- 

------->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
Thanks

On Thu, Apr 9, 2020 at 15:57 Martin Terra 
wrote:

> I'd recommend you simply include it with maven options into your IDE this
> way it is always there with you.
>
> You can googe it, and there are some recent previous wicket threads about
> it too:
>
> http://apache-wicket.1842946.n4.nabble.com/Where-to-download-Javadoc-for-Wicket-8-x-td4683643.html#a4683654
>
> **
> Martin
>
> to 9. huhtik. 2020 klo 10.55 Shengche Hsiao (shengchehs...@gmail.com)
> kirjoitti:
>
> > I can checkout source from github, but I need some advise to start,
> thanks
> >
> > On Thu, Apr 9, 2020 at 3:36 PM Martin Terra <
> > martin.te...@koodaripalvelut.com> wrote:
> >
> > > You could override some of the methods that do the injecting. Do you
> have
> > > the wicket sources?
> > >
> > > **
> > > Martin
> > >
> > > to 9. huhtik. 2020 klo 10.27 ShengChe Hsiao (front...@gmail.com)
> > > kirjoitti:
> > >
> > > > Dear all
> > > >
> > > > I use built-in ajax dropdownchoice component, it's default payload is
> > xml
> > > > entity, but if I need to prevent xml injection ,how can i do?
> > > >
> > > >
> > > > 
> > > > --->
> > > > 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
> > > >
> > > >
> > >
> >
> ->
> > > >
> > >
> >
> >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > ------->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
> >
>
-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: About XML Injection

2020-04-09 Thread Shengche Hsiao
I can checkout source from github, but I need some advise to start, thanks

On Thu, Apr 9, 2020 at 3:36 PM Martin Terra <
martin.te...@koodaripalvelut.com> wrote:

> You could override some of the methods that do the injecting. Do you have
> the wicket sources?
>
> **
> Martin
>
> to 9. huhtik. 2020 klo 10.27 ShengChe Hsiao (front...@gmail.com)
> kirjoitti:
>
> > Dear all
> >
> > I use built-in ajax dropdownchoice component, it's default payload is xml
> > entity, but if I need to prevent xml injection ,how can i do?
> >
> >
> > 
> > --->
> > 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
> >
> >
> ->
> >
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


About XML Injection

2020-04-09 Thread ShengChe Hsiao
Dear all

I use built-in ajax dropdownchoice component, it's default payload is xml
entity, but if I need to prevent xml injection ,how can i do?



--->
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
->


Re: Cookie SameSite issue

2020-01-23 Thread Shengche Hsiao
Thank you, I'll try~

On Thu, Jan 23, 2020 at 5:30 PM NLogan  wrote:

> To set SameSite only on JSESSIONID you can do
>
> *Header edit Set-Cookie ^(JSESSIONID.*)$ $1;HttpOnly;Secure;SameSite=None*
>
> It works for me
>
>
> Got the syntax from :
>
> https://stackoverflow.com/questions/53762523/setting-the-samesite-attribute-on-the-jsessionid-cookie-using-apache-config
> https://dino.ciuffetti.info/2011/03/jsessionid-cookie-path-mod_headers/
>
> --
> 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
>
>

-- 

--->
We do this not because it is easy. We do this because it is hard.
------->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wired PageParameter issue

2020-01-22 Thread Shengche Hsiao
I found the cause , it's undertow's restiction.

On Thu, Jan 23, 2020 at 12:23 AM ShengChe Hsiao  wrote:

> Dear all
>
> I transfer my website (Apache Wicket 8.5.0 + Oracle Server JRE 8 + Wildfly
> 10) with new runtime environment: OpenJ9 11 and Wildfly 18.0.1 Final
>
> URL redirectTo = new URL(request.getEndpointURI() + "?" + queryString);
> logger.info("\nRedirect To MOE OIDC : {}", redirectTo);
>
> getClientSession().setReAuthRequest(redirectTo.toString().concat("=none"));
>
> PageParameters params = new PageParameters();
> params.add("redirecturi", redirectTo.toString());
> setResponsePage(WaitingPage.class, params);
>
>
> on old environment , I can get correct redirecturi on WaitingPage, such as
> https://xxx.xxx.xxx/waiting?redirecturi=*https://xxx.xxx.xxx.xx/
> <https://xxx.xxx.xxx.xx/>*
>
> oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
> 252Fauth.sso.edu.tw
> %252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%
>
> but on new environment , I cannot get it work, because the resulting url
> was :
> https://xxx.xxx.xxx/waiting?redirecturi=*https:/xxx.xxx.xxx.xx/*
>
> oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
> 252Fauth.sso.edu.tw
> %252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%
>
> any opinions?
> 
> --->
> 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
>
> ->
>


-- 

------->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Wired PageParameter issue

2020-01-22 Thread ShengChe Hsiao
Dear all

I transfer my website (Apache Wicket 8.5.0 + Oracle Server JRE 8 + Wildfly
10) with new runtime environment: OpenJ9 11 and Wildfly 18.0.1 Final

URL redirectTo = new URL(request.getEndpointURI() + "?" + queryString);
logger.info("\nRedirect To MOE OIDC : {}", redirectTo);
getClientSession().setReAuthRequest(redirectTo.toString().concat("=none"));

PageParameters params = new PageParameters();
params.add("redirecturi", redirectTo.toString());
setResponsePage(WaitingPage.class, params);


on old environment , I can get correct redirecturi on WaitingPage, such as
https://xxx.xxx.xxx/waiting?redirecturi=*https://xxx.xxx.xxx.xx/
*
oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
252Fauth.sso.edu.tw
%252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%

but on new environment , I cannot get it work, because the resulting url
was :
https://xxx.xxx.xxx/waiting?redirecturi=*https:/xxx.xxx.xxx.xx/*
oidc/v1/azp%3Fscope%3Dopenid%2Bexchangedata%26response_type%3Dcode%26redirect_uri%3Dhttps%253A%252F%
252Fauth.sso.edu.tw
%252Fcncreturnpage%26state%3DuM-FQQns-5eRlYChKVQXl7omEbSDOHpQiPjPVGmNF1U%

any opinions?

--->
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
->


Re: Application not seri

2019-12-22 Thread Shengche Hsiao
Great, thank you so much

On Sun, Dec 22, 2019 at 3:24 PM Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> 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
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Application not seri

2019-12-22 Thread Shengche Hsiao
Yep, Thanks

On Sun, Dec 22, 2019 at 3:29 PM Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> 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
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Application not seri

2019-12-20 Thread Shengche Hsiao
Thank you

On Sat, Dec 21, 2019 at 2:31 PM Martin Terra <
martin.te...@koodaripalvelut.com> wrote:

> Follow the stacktrace, looks like there is a reference to
> ava.lang.Object org.apache.wicket.Component.data
> [class=[Ljava.lang.Object;]
>
> maybe anonymous class? If you need an Object, you need to make a
> SerializableObject extends Object implements Serializabe ...
>
> Just study the stacktrace, it will become clear.
>
> **
> Martin
>
> la 21. jouluk. 2019 klo 8.03 ShengChe Hsiao (front...@gmail.com)
> kirjoitti:
>
> > 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
> >
> >
> ->
> >
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Application not seri

2019-12-20 Thread ShengChe Hsiao
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
->


Re: Cookie SameSite issue

2019-12-15 Thread Shengche Hsiao
Actually I want to set jsessionid with SameSite, but I don't now how to do
that.

On Mon, Dec 16, 2019 at 2:53 PM Sven Meier  wrote:

> Hi,
>
> the Servlet spec doesn't support the "sameSite" attribute yet. You can
> explicitly set a cookie header instead.
> Or instruct Tomcat to add the attribute for you:
>
>
> https://stackoverflow.com/questions/57505939/how-to-set-samesite-cookie-in-tomcats-cookie-processor
>
> Have fun
> Sven
>
>
> Am 16. Dezember 2019 03:19:10 MEZ schrieb ShengChe Hsiao <
> front...@gmail.com>:
> >Dear all
> >
> >Recently, I found chrome's developer console shows alert about
> >cookie SameSite...
> >A cookie associated with a cross-site resource at
> >https://xxx../
> >was set without the `SameSite` attribute. A future release of Chrome
> >will
> >only deliver cookies with cross-site requests if they are set with
> >`SameSite=None` and `Secure`. You can review cookies in developer tools
> >under Application>Storage>Cookies and see more details at
> >https://www.chromestatus.com/feature/5088147346030592 and
> >https://www.chromestatus.com/feature/5633521622188032.
> >
> >Since servlet spec doesn't support this property, how can I deal with
> >it?
> >
> >
> >
> >--->
> >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
>
> >----->
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Cookie SameSite issue

2019-12-15 Thread Shengche Hsiao
I solve it with add header.conf on apache httpd server

Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure;SameSite=None

On Mon, Dec 16, 2019 at 2:53 PM Sven Meier  wrote:

> Hi,
>
> the Servlet spec doesn't support the "sameSite" attribute yet. You can
> explicitly set a cookie header instead.
> Or instruct Tomcat to add the attribute for you:
>
>
> https://stackoverflow.com/questions/57505939/how-to-set-samesite-cookie-in-tomcats-cookie-processor
>
> Have fun
> Sven
>
>
> Am 16. Dezember 2019 03:19:10 MEZ schrieb ShengChe Hsiao <
> front...@gmail.com>:
> >Dear all
> >
> >Recently, I found chrome's developer console shows alert about
> >cookie SameSite...
> >A cookie associated with a cross-site resource at
> >https://xxx../
> >was set without the `SameSite` attribute. A future release of Chrome
> >will
> >only deliver cookies with cross-site requests if they are set with
> >`SameSite=None` and `Secure`. You can review cookies in developer tools
> >under Application>Storage>Cookies and see more details at
> >https://www.chromestatus.com/feature/5088147346030592 and
> >https://www.chromestatus.com/feature/5633521622188032.
> >
> >Since servlet spec doesn't support this property, how can I deal with
> >it?
> >
> >
> >
> >--->
> >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
>
> >----->
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Cookie SameSite issue

2019-12-15 Thread ShengChe Hsiao
Dear all

Recently, I found chrome's developer console shows alert about
cookie SameSite...
A cookie associated with a cross-site resource at https://xxx../
was set without the `SameSite` attribute. A future release of Chrome will
only deliver cookies with cross-site requests if they are set with
`SameSite=None` and `Secure`. You can review cookies in developer tools
under Application>Storage>Cookies and see more details at
https://www.chromestatus.com/feature/5088147346030592 and
https://www.chromestatus.com/feature/5633521622188032.

Since servlet spec doesn't support this property, how can I deal with it?



--->
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
->


Re: Page inheritance

2019-05-14 Thread Shengche Hsiao
Thanks!

On Wed, May 15, 2019 at 10:54 Maxim Solodovnik  wrote:

> Sure :)
>
> I would add some overridable method like `protected boolean
> shouldAddJsCss`, returning `true` in base class
> and controlling which header items will be rendered
>
> Or you can create separate method to render those js/css resources and
> override it with empty method ...
>
> On Wed, 15 May 2019 at 09:01, ShengChe Hsiao  wrote:
> >
> > Dear Wicketers
> >
> > I have a basepage with headerpanel and footerpanel, every webpage were
> > extends it. Now, I have a question, may I have a page extends basepage,
> and
> > without output extended js and css files?
> >
> > 
> > --->
> > 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
> >
> ->
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
> --

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Page inheritance

2019-05-14 Thread ShengChe Hsiao
Dear Wicketers

I have a basepage with headerpanel and footerpanel, every webpage were
extends it. Now, I have a question, may I have a page extends basepage, and
without output extended js and css files?


--->
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
->


Re: About WicketStuff pdfjs usage

2018-12-27 Thread Shengche Hsiao
Thanks, Solodovnik

On Thu, Dec 27, 2018 at 12:53 AM Maxim Solodovnik 
wrote:

> Not sure I get the question ...
>
> This [1] example works for me
>
> [1]
> https://github.com/wicketstuff/core/tree/wicket-7.x/wicketstuff-pdf-js-parent/wicketstuff-pdfjs-examples
>
> On Wed, 26 Dec 2018 at 20:21, ShengChe Hsiao  wrote:
> >
> > Hello
> >
> > Dose anybody working with it and provides sample code?
> >
> >
> > 
> > --->
> > 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
> >
> ->
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: About WicketStuff pdfjs usage

2018-12-27 Thread Shengche Hsiao
Okay, Thank you

On Thu, Dec 27, 2018 at 2:51 PM Martin Grigorov 
wrote:

> Hi,
>
> This component has been developed for Apache Isis -
> https://github.com/isisaddons-legacy/isis-wicket-pdfjs
>
> On Wed, Dec 26, 2018 at 3:21 PM ShengChe Hsiao  wrote:
>
> > Hello
> >
> > Dose anybody working with it and provides sample code?
> >
> >
> > 
> > --->
> > 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
> >
> >
> ->
> >
>


-- 

------->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


About WicketStuff pdfjs usage

2018-12-26 Thread ShengChe Hsiao
Hello

Dose anybody working with it and provides sample code?



--->
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
->


Re: Wicket 8 CsrfPrevention issue

2018-12-24 Thread Shengche Hsiao
I add custom original url, and it works!

getRequestCycleListeners().add(new
CsrfPreventionRequestCycleListener().addAcceptedOrigin("mydomain"));


On Mon, Dec 24, 2018 at 9:26 AM Shengche Hsiao 
wrote:

> Thanks Papegaaji, let me try.
>
> On Sun, Dec 23, 2018 at 8:32 PM Emond Papegaaij 
> wrote:
>
>> I checked the answers and comments on that post, and they are
>> incorrect. When you
>> place your application behind a reverse http proxy, you need to make sure
>> the
>> proxy passes the correct headers to your application and you application
>> needs
>> to use these headers.
>>
>> For WildFly, you need to add proxy-address-forwarding="true" to the http-
>> listener. This will instruct Undertow to read the headers passed by the
>> proxy.
>>
>> On your proxy you will want to set these headers (this is nginx config):
>> proxy_set_header X-Real-IP $remote_addr;
>> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>> proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
>> proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
>>
>> Best regards,
>> Emond Papegaaij
>>
>> On Sat, Dec 22, 2018 at 7:31 PM Chris Turchin  wrote:
>> >
>> > This might help:
>> >
>> https://stackoverflow.com/questions/46337253/apache-reverse-proxy-and-wicket-csrfpreventionrequestcyclelistener
>> >
>> > On Sat, Dec 22, 2018 at 3:28 AM ShengChe Hsiao 
>> wrote:
>> > >
>> > > Dear all
>> > >
>> > > I use apache httpd as wildlfy's backend proxy server to redirect http
>> > > request to https request, when i add
>> CsrfPreventionRequestCycleListener to
>> > > my application , it showd error message:
>> > >
>> > > [org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListener]
>> > > (default task-48) Possible CSRF attack, request URL: http://
>> > > etalking.chc.edu.tw/agency/index, Origin: https://etalking.chc.edu.tw
>> ,
>> > > action: aborted with error 400 Origin does not correspond to request
>> > >
>> > > How can i conquer this?
>> > > 
>> > > --->
>> > > 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
>> > >
>> ->
>> >
>> >
>> >
>> > --
>> > Chris Turchin 
>> >
>> > -----
>> > 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
>>
>>
>
> --
>
> --->
> We do this not because it is easy. We do this because it is hard.
> --->
> ShengChe Hsiao
> --->
> front...@gmail.com
> front...@tc.edu.tw
> --->
> VoIP : 070-910-2450
> --->
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wicket 8 CsrfPrevention issue

2018-12-23 Thread Shengche Hsiao
Thanks Papegaaji, let me try.

On Sun, Dec 23, 2018 at 8:32 PM Emond Papegaaij 
wrote:

> I checked the answers and comments on that post, and they are
> incorrect. When you
> place your application behind a reverse http proxy, you need to make sure
> the
> proxy passes the correct headers to your application and you application
> needs
> to use these headers.
>
> For WildFly, you need to add proxy-address-forwarding="true" to the http-
> listener. This will instruct Undertow to read the headers passed by the
> proxy.
>
> On your proxy you will want to set these headers (this is nginx config):
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
> proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
>
> Best regards,
> Emond Papegaaij
>
> On Sat, Dec 22, 2018 at 7:31 PM Chris Turchin  wrote:
> >
> > This might help:
> >
> https://stackoverflow.com/questions/46337253/apache-reverse-proxy-and-wicket-csrfpreventionrequestcyclelistener
> >
> > On Sat, Dec 22, 2018 at 3:28 AM ShengChe Hsiao 
> wrote:
> > >
> > > Dear all
> > >
> > > I use apache httpd as wildlfy's backend proxy server to redirect http
> > > request to https request, when i add
> CsrfPreventionRequestCycleListener to
> > > my application , it showd error message:
> > >
> > > [org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListener]
> > > (default task-48) Possible CSRF attack, request URL: http://
> > > etalking.chc.edu.tw/agency/index, Origin: https://etalking.chc.edu.tw,
> > > action: aborted with error 400 Origin does not correspond to request
> > >
> > > How can i conquer this?
> > > 
> > > --->
> > > 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
> > >
> ->
> >
> >
> >
> > --
> > Chris Turchin 
> >
> > -
> > 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
>
>

-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Wicket 8 CsrfPrevention issue

2018-12-21 Thread ShengChe Hsiao
Dear all

I use apache httpd as wildlfy's backend proxy server to redirect http
request to https request, when i add CsrfPreventionRequestCycleListener to
my application , it showd error message:

[org.apache.wicket.protocol.http.CsrfPreventionRequestCycleListener]
(default task-48) Possible CSRF attack, request URL: http://
etalking.chc.edu.tw/agency/index, Origin: https://etalking.chc.edu.tw,
action: aborted with error 400 Origin does not correspond to request

How can i conquer this?

--->
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
->


Re: Ajax add listview item into form issue

2018-11-27 Thread Shengche Hsiao
Thanks, Martin.

On Tue, Nov 27, 2018 at 16:36 Martin Grigorov  wrote:

> Hi,
>
> Please read
>
> http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/
>
> On Tue, Nov 27, 2018 at 10:29 AM ShengChe Hsiao 
> wrote:
>
> > Dears
> >
> > I have a form with listview which dynamically add TextField in it, but
> when
> > i enter some text in other fields and click add button to add TextField
> in
> > listview, the form cleared and I don't want this, do you have any
> > suggestions?
> >
> >
> > redirecturis = new ListView("rows",
> > serviceProviderModel.getRedirecturi()) {
> > @Override
> > protected void populateItem(ListItem listItem) {
> > listItem.add(new RequiredTextField("redirecturi",
> > listItem.getModel()));
> > }
> > };
> >
> >
> >
> > AjaxSubmitLinkBlockUI btnAdd = new AjaxSubmitLinkBlockUI("btnAdd",
> > spregform) {
> > @Override
> > protected void onSubmit(AjaxRequestTarget target, Form form) {
> > super.onSubmit(target, form);
> > logger.info("Form Data Add uri : {}",
> > serviceProviderModel.toString());
> >
> >
> //serviceProviderModel.setRedirecturi(serviceProviderModel.getRedirecturi());
> > serviceProviderModel.getRedirecturi().add("");
> > //spregform.setDefaultModelObject(serviceProviderModel);
> > spregform.modelChanged();
> > target.add(spregform);
> > target.add(container);
> > //target.add(formUpdateIcon);
> >
> > //target.add(container);
> > }
> > };
> >
> >
> > 
> > --->
> > 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
> >
> >
> ->
> >
>
-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Ajax add listview item into form issue

2018-11-27 Thread ShengChe Hsiao
Dears

I have a form with listview which dynamically add TextField in it, but when
i enter some text in other fields and click add button to add TextField in
listview, the form cleared and I don't want this, do you have any
suggestions?


redirecturis = new ListView("rows",
serviceProviderModel.getRedirecturi()) {
@Override
protected void populateItem(ListItem listItem) {
listItem.add(new RequiredTextField("redirecturi", listItem.getModel()));
}
};



AjaxSubmitLinkBlockUI btnAdd = new AjaxSubmitLinkBlockUI("btnAdd", spregform) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
super.onSubmit(target, form);
logger.info("Form Data Add uri : {}", serviceProviderModel.toString());

//serviceProviderModel.setRedirecturi(serviceProviderModel.getRedirecturi());
serviceProviderModel.getRedirecturi().add("");
//spregform.setDefaultModelObject(serviceProviderModel);
spregform.modelChanged();
target.add(spregform);
target.add(container);
//target.add(formUpdateIcon);

//target.add(container);
}
};



--->
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
->


Re: jQuery version 3.*

2018-05-28 Thread Shengche Hsiao
Thanks, Solodovnik

On Sun, May 27, 2018 at 00:08 Maxim Solodovnik <solomax...@gmail.com> wrote:

> Add this to your Application init()
>
>
> getJavaScriptLibrarySettings().setJQueryReference(org.apache.wicket.resource.JQueryResourceReference.getV3());
>
> On Sat, May 26, 2018 at 11:01 PM, ShengChe Hsiao <front...@gmail.com>
> wrote:
> > Dear All
> >
> > How do I assign/force jQuery version in Wicket Project?
> >
> >
> > 
> > --->
> > 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
> >
> ->
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
> --

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


jQuery version 3.*

2018-05-26 Thread ShengChe Hsiao
Dear All

How do I assign/force jQuery version in Wicket Project?



--->
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
->


Re: Wicket and dynamic adding form compoment

2018-04-06 Thread Shengche Hsiao
Dear all

After try-error, I built an working example.

testpage.html





Add


Remove









Submit




testpage.java

public class Test2Page extends BasePage {
private static final Logger logger =
LoggerFactory.getLogger(Test2Page.class);

private Form form, container;
private List uri;
private List redirecturi;
private AjaxSubmitLink btnAdd, btnSubmit, btnRemove;


public Test2Page(PageParameters parameters) {
super(parameters);

redirecturi = new ArrayList();
uri = new ArrayList();
uri.add("");
IModel<List> model = new
LoadableDetachableModel<List>() {
@Override
protected List load() {
return uri;
}
};
container = new StatelessForm("container");
container.setOutputMarkupId(true);
container.setDefaultModel(new CompoundPropertyModel(this));
container.add(new ListView("rows", model) {
@Override
protected void populateItem(ListItem listItem) {
listItem.add(new TextField("uri", listItem.getModel()));
}
});

btnSubmit = new AjaxSubmitLink("btnSubmit", container) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
super.onSubmit(target, form);
logger.info("Form Data : {}", uri);
}
};

form = new StatelessForm("form");
btnAdd = new AjaxSubmitLink("btnAdd", container) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
super.onSubmit(target, form);
logger.info("Form Data : {}", uri);
uri.add("");
target.add(container);
}
};

btnRemove = new AjaxSubmitLink("btnRemove", container) {

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
super.onSubmit(target, form);
logger.info("Form Data Before: {}", uri);
uri.remove(uri.size() - 1);
logger.info("Form Data Before: {}", uri);
target.add(container);
}

};

add(form, btnAdd, btnRemove, btnSubmit, container);
}

public List getUri() {
return uri;
}

public void setUri(List uri) {
this.uri = uri;
}

public List getRedirecturi() {
return redirecturi;
    }

    public void setRedirecturi(List redirecturi) {
this.redirecturi = redirecturi;
}
}






On Fri, Apr 6, 2018 at 8:53 AM, Shengche Hsiao <shengchehs...@gmail.com>
wrote:

> Thanks, Maxim.
>
> On Fri, Apr 6, 2018 at 8:45 AM, Maxim Solodovnik <solomax...@gmail.com>
> wrote:
>
>> The idea is: to
>> create list
>> Draw it
>> On button click add another item to list
>> Redraw it
>>
>> WBR, Maxim
>> (from mobile, sorry for the typos)
>>
>> On Fri, Apr 6, 2018, 07:29 Shengche Hsiao <shengchehs...@gmail.com>
>> wrote:
>>
>> > Yep, thanks, I'll try.
>> >
>> > On Fri, Apr 6, 2018 at 8:22 AM, Maxim Solodovnik <solomax...@gmail.com>
>> > wrote:
>> >
>> > > So you need something like: "add new row" functionality?
>> > > This can be done with listview for example
>> > >
>> > > WBR, Maxim
>> > > (from mobile, sorry for the typos)
>> > >
>> > > On Fri, Apr 6, 2018, 06:56 Shengche Hsiao <shengchehs...@gmail.com>
>> > wrote:
>> > >
>> > > > Because I don't know how many rows users may required.
>> > > >
>> > > > But using invisible input is an bright way to do, thank you Maxim.
>> > > >
>> > > > On Thu, Apr 5, 2018 at 11:33 PM, Maxim Solodovnik <
>> > solomax...@gmail.com>
>> > > > wrote:
>> > > >
>> > > > > Why to produce the input and not start with invisible input (on
>> > server
>> > > > > side)
>> > > > > And show it onclick?
>> > > > >
>> > > > > On Thu, Apr 5, 2018 at 8:39 PM, Shengche Hsiao <
>> > > shengchehs...@gmail.com>
>> > > > > wrote:
>> > > > > > Dear All
>> > > > > >
>> > > > > >
>> > > > > > I want to design a form with an button, that when click it will
>> > 

Re: Wicket and dynamic adding form compoment

2018-04-05 Thread Shengche Hsiao
Thanks, Maxim.

On Fri, Apr 6, 2018 at 8:45 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> The idea is: to
> create list
> Draw it
> On button click add another item to list
> Redraw it
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Fri, Apr 6, 2018, 07:29 Shengche Hsiao <shengchehs...@gmail.com> wrote:
>
> > Yep, thanks, I'll try.
> >
> > On Fri, Apr 6, 2018 at 8:22 AM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > So you need something like: "add new row" functionality?
> > > This can be done with listview for example
> > >
> > > WBR, Maxim
> > > (from mobile, sorry for the typos)
> > >
> > > On Fri, Apr 6, 2018, 06:56 Shengche Hsiao <shengchehs...@gmail.com>
> > wrote:
> > >
> > > > Because I don't know how many rows users may required.
> > > >
> > > > But using invisible input is an bright way to do, thank you Maxim.
> > > >
> > > > On Thu, Apr 5, 2018 at 11:33 PM, Maxim Solodovnik <
> > solomax...@gmail.com>
> > > > wrote:
> > > >
> > > > > Why to produce the input and not start with invisible input (on
> > server
> > > > > side)
> > > > > And show it onclick?
> > > > >
> > > > > On Thu, Apr 5, 2018 at 8:39 PM, Shengche Hsiao <
> > > shengchehs...@gmail.com>
> > > > > wrote:
> > > > > > Dear All
> > > > > >
> > > > > >
> > > > > > I want to design a form with an button, that when click it will
> > > > produce a
> > > > > > new input text filed within form, and retrieve it in server
> side. I
> > > > tried
> > > > > > listview, but cannot work. I also cannot find relevant examples
> on
> > > > > > stackoverflow, any suggestion?
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > >
> > > >
> > --->
> > > > > > We do this not because it is easy. We do this because it is hard.
> > > > > >
> > > >
> > --->
> > > > > > ShengChe Hsiao
> > > > > >
> > > >
> > --->
> > > > > > front...@gmail.com
> > > > > > front...@tc.edu.tw
> > > > > >
> > > >
> > ------->
> > > > > > VoIP : 070-910-2450
> > > > > >
> > > >
> > --->
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > WBR
> > > > > Maxim aka solomax
> > > > >
> > > > > 
> -
> > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > >
> > --->
> > > > We do this not because it is easy. We do this because it is hard.
> > > >
> > --->
> > > > ShengChe Hsiao
> > > >
> > --->
> > > > front...@gmail.com
> > > > front...@tc.edu.tw
> > > >
> > --->
> > > > VoIP : 070-910-2450
> > > >
> > --->
> > > >
> > >
> >
> >
> >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > --->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
> >
>



-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wicket and dynamic adding form compoment

2018-04-05 Thread Shengche Hsiao
Yep, thanks, I'll try.

On Fri, Apr 6, 2018 at 8:22 AM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> So you need something like: "add new row" functionality?
> This can be done with listview for example
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Fri, Apr 6, 2018, 06:56 Shengche Hsiao <shengchehs...@gmail.com> wrote:
>
> > Because I don't know how many rows users may required.
> >
> > But using invisible input is an bright way to do, thank you Maxim.
> >
> > On Thu, Apr 5, 2018 at 11:33 PM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> > > Why to produce the input and not start with invisible input (on server
> > > side)
> > > And show it onclick?
> > >
> > > On Thu, Apr 5, 2018 at 8:39 PM, Shengche Hsiao <
> shengchehs...@gmail.com>
> > > wrote:
> > > > Dear All
> > > >
> > > >
> > > > I want to design a form with an button, that when click it will
> > produce a
> > > > new input text filed within form, and retrieve it in server side. I
> > tried
> > > > listview, but cannot work. I also cannot find relevant examples on
> > > > stackoverflow, any suggestion?
> > > >
> > > >
> > > > --
> > > >
> > > >
> > --->
> > > > We do this not because it is easy. We do this because it is hard.
> > > >
> > --->
> > > > ShengChe Hsiao
> > > >
> > --->
> > > > front...@gmail.com
> > > > front...@tc.edu.tw
> > > >
> > --->
> > > > VoIP : 070-910-2450
> > > >
> > --->
> > >
> > >
> > >
> > > --
> > > WBR
> > > Maxim aka solomax
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > --->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
> >
>



-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wicket and dynamic adding form compoment

2018-04-05 Thread Shengche Hsiao
Because I don't know how many rows users may required.

But using invisible input is an bright way to do, thank you Maxim.

On Thu, Apr 5, 2018 at 11:33 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Why to produce the input and not start with invisible input (on server
> side)
> And show it onclick?
>
> On Thu, Apr 5, 2018 at 8:39 PM, Shengche Hsiao <shengchehs...@gmail.com>
> wrote:
> > Dear All
> >
> >
> > I want to design a form with an button, that when click it will produce a
> > new input text filed within form, and retrieve it in server side. I tried
> > listview, but cannot work. I also cannot find relevant examples on
> > stackoverflow, any suggestion?
> >
> >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > --->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
>
>
>
> --
> WBR
> Maxim aka solomax
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Wicket and dynamic adding form compoment

2018-04-05 Thread Shengche Hsiao
Dear All


I want to design a form with an button, that when click it will produce a
new input text filed within form, and retrieve it in server side. I tried
listview, but cannot work. I also cannot find relevant examples on
stackoverflow, any suggestion?


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: strange error

2018-02-27 Thread Shengche Hsiao
dear all

I solved the problem , because NPE occurs in AuthSession#getRoles,

thanks

On Tue, Feb 27, 2018 at 8:47 PM, Shengche Hsiao <shengchehs...@gmail.com>
wrote:

> Thanks, I did it last night, but it did not work. Let me add another
> breakpoint.
>
> On Tue, Feb 27, 2018 at 8:35 PM, Bas Gooren <b...@iswd.nl> wrote:
>
>> Hi!
>>
>> The last line of the stack trace indicates that a NullPointerException is
>> occurring; My guess is that this happens inside your code, probably in the
>> constructor of assets.endpoints.OIDCConsensusPage
>>
>> You’ll have to get your hands on the full stack trace (when not in the
>> logs, simply set a debug breakpoint in your constructor, and step through
>> the code) to find out exactly where the NPE is thrown.
>>
>> Met vriendelijke groet,
>> Kind regards,
>>
>> Bas Gooren
>>
>> Op 27 februari 2018 bij 13:25:56, Shengche Hsiao (shengchehs...@gmail.com)
>> schreef:
>>
>> Hi there,
>>
>> I wrote a wicket-based application , users write some info on page A and
>> submit to page B. but it ran into error, logs list below
>>
>> [Server:auth-003] 20:11:13,722 ERROR
>> [org.apache.wicket.DefaultExceptionMapper] (default task-44) Unexpected
>> error occurred: org.apache.wicket.WicketRuntimeException: Can't
>> instantiate
>> page using constructor 'public
>> assets.endpoints.OIDCConsensusPage(org.apache.wicket.
>> request.mapper.parameter.PageParameters)'
>> and argument 'Auth_Request_Migration=[true], Auth_Request_RedirectUri=[
>> https://oidc.tanet.edu.tw/serviceclient/client-service-back],
>> Auth_Request_State=[cGYIeirvLRTq25elwY0lrEtmr8ZVX9Yov2ku_IeC2Sk],
>> Auth_Request_Response_Type=[code],
>> Auth_Request_Client_ID=[ba3a199485df7b35c351fa6b73032863],
>> Auth_Request_Nonce=[gr4jpMbbFl9OLQU9v5Pvwtn1SbTq4X9ycGTlIZyhe1k],
>> Auth_Request_Scope=[openid email profile openid2 eduinfo personid guid]'.
>> An exception has been thrown during construction!
>>
>> [Server:auth-003] at
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:99)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:106)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.core.request.handler.PageProvider.resolveP
>> ageInstance(PageProvider.java:271)
>>
>> [Server:auth-003] at
>> org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:169)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.handler.render.WebPageRenderer.
>> renderPage(WebPageRenderer.java:102)
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.handler.render.WebPageRenderer.
>> respond(WebPageRenderer.java:195)
>>
>> [Server:auth-003] at
>> org.apache.wicket.core.request.handler.RenderPageRequestHand
>> ler.respond(RenderPageRequestHandler.java:175)
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor
>> .respond(RequestCycle.java:895)
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.request.cycle.RequestCycle.processRequestA
>> ndDetach(RequestCycle.java:293)
>>
>> [Server:auth-003] at
>> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
>>
>>
>> [Server:auth-003] at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
>>
>>
>> [Server:auth-003] at
>> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
>>
>> [Server:auth-003] at
>> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.d
>> oFilter(FilterHandler.java:131)
>>
>> [Server:auth-003] at
>> io.undertow.servlet.handlers.FilterHandler.handl

Re: strange error

2018-02-27 Thread Shengche Hsiao
Thanks, I did it last night, but it did not work. Let me add another
breakpoint.

On Tue, Feb 27, 2018 at 8:35 PM, Bas Gooren <b...@iswd.nl> wrote:

> Hi!
>
> The last line of the stack trace indicates that a NullPointerException is
> occurring; My guess is that this happens inside your code, probably in the
> constructor of assets.endpoints.OIDCConsensusPage
>
> You’ll have to get your hands on the full stack trace (when not in the
> logs, simply set a debug breakpoint in your constructor, and step through
> the code) to find out exactly where the NPE is thrown.
>
> Met vriendelijke groet,
> Kind regards,
>
> Bas Gooren
>
> Op 27 februari 2018 bij 13:25:56, Shengche Hsiao (shengchehs...@gmail.com)
> schreef:
>
> Hi there,
>
> I wrote a wicket-based application , users write some info on page A and
> submit to page B. but it ran into error, logs list below
>
> [Server:auth-003] 20:11:13,722 ERROR
> [org.apache.wicket.DefaultExceptionMapper] (default task-44) Unexpected
> error occurred: org.apache.wicket.WicketRuntimeException: Can't
> instantiate
> page using constructor 'public
> assets.endpoints.OIDCConsensusPage(org.apache.wicket.request.mapper.parameter.PageParameters)'
>
> and argument 'Auth_Request_Migration=[true], Auth_Request_RedirectUri=[
> https://oidc.tanet.edu.tw/serviceclient/client-service-back],
> Auth_Request_State=[cGYIeirvLRTq25elwY0lrEtmr8ZVX9Yov2ku_IeC2Sk],
> Auth_Request_Response_Type=[code],
> Auth_Request_Client_ID=[ba3a199485df7b35c351fa6b73032863],
> Auth_Request_Nonce=[gr4jpMbbFl9OLQU9v5Pvwtn1SbTq4X9ycGTlIZyhe1k],
> Auth_Request_Scope=[openid email profile openid2 eduinfo personid guid]'.
> An exception has been thrown during construction!
>
> [Server:auth-003] at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194)
>
>
> [Server:auth-003] at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:99)
>
>
> [Server:auth-003] at
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:106)
>
>
> [Server:auth-003] at
> org.apache.wicket.core.request.handler.PageProvider.resolvePageInstance(PageProvider.java:271)
>
>
> [Server:auth-003] at
> org.apache.wicket.core.request.handler.PageProvider.
> getPageInstance(PageProvider.java:169)
>
> [Server:auth-003] at
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
>
>
> [Server:auth-003] at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:102)
>
>
> [Server:auth-003] at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:195)
>
>
> [Server:auth-003] at
> org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(
> RenderPageRequestHandler.java:175)
>
> [Server:auth-003] at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
>
>
> [Server:auth-003] at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>
>
> [Server:auth-003] at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
>
>
> [Server:auth-003] at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>
>
> [Server:auth-003] at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>
>
> [Server:auth-003] at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>
>
> [Server:auth-003] at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
>
>
> [Server:auth-003] at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
>
>
> [Server:auth-003] at
> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
>
> [Server:auth-003] at
> io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
> doFilter(FilterHandler.java:131)
>
> [Server:auth-003] at
> io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
>
>
> [Server:auth-003] at
> io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.
> handleRequest(ServletSecurityRoleHandler.java:62)
>
> [Server:auth-003] at
> io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(
> ServletDispatchingHandler.java:36)
>
> [Server:auth-003] at
> org.wildfly.extension.undertow.security.SecurityContextAssociationHand
> ler.handleRequest(SecurityContextAssociationHandler.java:78)
>
> [Server:auth-003] at
> io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
>
>
> [Server:au

strange error

2018-02-27 Thread Shengche Hsiao
(PredicateHandler.java:43)

[Server:auth-003] at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

[Server:auth-003] at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[Server:auth-003] at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

[Server:auth-003] at
io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)

[Server:auth-003] at
io.undertow.server.handlers.MetricsHandler.handleRequest(MetricsHandler.java:62)

[Server:auth-003] at
io.undertow.servlet.core.MetricsChainHandler.handleRequest(MetricsChainHandler.java:59)

[Server:auth-003] at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

[Server:auth-003] at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)

[Server:auth-003] at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

[Server:auth-003] at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)

[Server:auth-003] at
io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

[Server:auth-003] at
io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)

[Server:auth-003] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

[Server:auth-003] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

[Server:auth-003] at java.lang.Thread.run(Thread.java:748)

[Server:auth-003] Caused by: java.lang.reflect.InvocationTargetException

[Server:auth-003] at
sun.reflect.GeneratedConstructorAccessor395.newInstance(Unknown Source)

[Server:auth-003] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

[Server:auth-003] at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)

[Server:auth-003] at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:171)

[Server:auth-003] ... 48 more

[Server:auth-003] Caused by: java.lang.NullPointerException


Please give me some entry point to solve it.

-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Apache Wicket form components and Optional

2018-02-13 Thread Shengche Hsiao
Dear Sven

Thanks

On Wed, Feb 14, 2018 at 12:32 AM, Sven Meier <s...@meiers.net> wrote:

> Hi,
>
> no, that won't work.
>
> You'll have to create your own model implementation, that unwraps value of
> an optional.
>
> Have fun
> Sven
>
>
> Am 13.02.2018 um 16:49 schrieb Shengche Hsiao:
>
>> Dear all
>>
>> I am using Speedment to manipulating database, when I mark the table filed
>> allow null, the Speedment generate Optional as it's datatype.
>>
>> Can I using it with CompoundPropertyModel with TextFile?
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Apache Wicket form components and Optional

2018-02-13 Thread Shengche Hsiao
Dear all

I am using Speedment to manipulating database, when I mark the table filed
allow null, the Speedment generate Optional as it's datatype.

Can I using it with CompoundPropertyModel with TextFile?
-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wicket Metrics

2017-12-24 Thread Shengche Hsiao
I'm using wildfly 10, let me try again!

Thanks

On Mon, Dec 25, 2017 at 1:08 AM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Hi,
>
> ok seems to be the right place. I configured only tomcat with aspectj,
> yet. Did you ensured to configure the LTW correctly?
>
> kind regards
>
> Tobias
>
> > Am 24.12.2017 um 14:20 schrieb Shengche Hsiao <shengchehs...@gmail.com>:
> >
> > Here is my project structure
> > src
> > -main
> > java
> > resources
> > META-INF
> > aop.xml
> > ----webapp
> > WEB-INF
> >
> > On Sun, Dec 24, 2017 at 7:58 PM, Shengche Hsiao <shengchehs...@gmail.com
> >
> > wrote:
> >
> >> OK, let me check, thank you
> >>
> >> On Sun, Dec 24, 2017 at 5:54 PM, Tobias Soloschenko <
> >> tobiassolosche...@googlemail.com> wrote:
> >>
> >>> Hi,
> >>>
> >>> mailing list does not support image attachments - please file in the
> text
> >>> and also check if the aop.xml is in the root of your webapp.
> >>>
> >>> kind regards
> >>>
> >>> Tobias
> >>>
> >>>> Am 24.12.2017 um 10:48 schrieb Shengche Hsiao <
> shengchehs...@gmail.com
> >>>> :
> >>>>
> >>>> Dear Tobias
> >>>>
> >>>> This is my aop.xml location, and I am using Wildfly 10 as ee
> container.
> >>>>
> >>>>
> >>>>
> >>>>> On Sun, Dec 24, 2017 at 12:33 PM, Tobias Soloschenko <
> >>> tobiassolosche...@googlemail.com> wrote:
> >>>>> Hi,
> >>>>>
> >>>>> have you placed the aspecj xml to the correct place? You have to add
> >>> it and the mentioned aspect so that Wicket Metrics is able to work.
> See the
> >>> documentation how to setup here:
> >>>>>
> >>>>> https://ci.apache.org/projects/wicket/guide/8.x/single.html#
> >>> _example_setup
> >>>>>
> >>>>> kind regards
> >>>>>
> >>>>> Tobias
> >>>>>
> >>>>>> Am 23.12.2017 um 19:04 schrieb Shengche Hsiao <
> >>> shengchehs...@gmail.com>:
> >>>>>>
> >>>>>> Dear all
> >>>>>>
> >>>>>> When I try to add this functionality, the application cannot start
> >>> and had
> >>>>>> exceptions blow
> >>>>>>
> >>>>>> Caused by: org.apache.wicket.WicketRuntimeException: The
> application
> >>>>>> couldn't be resolved, please ensure to apply " >>>>>> name="org.apache.wicket.metrics.aspects.WicketFilterInitAspect" />"
> >>> to your
> >>>>>> aspects
> >>>>>>
> >>>>>>
> >>>>>> any suggestions?
> >>>>>>
> >>>>>> --
> >>>>>>
> >>>>>> 
> >>> --->
> >>>>>> We do this not because it is easy. We do this because it is hard.
> >>>>>> 
> >>> --->
> >>>>>> ShengChe Hsiao
> >>>>>> ----
> >>> --->
> >>>>>> front...@gmail.com
> >>>>>> front...@tc.edu.tw
> >>>>>> 
> >>> --->
> >>>>>> VoIP : 070-910-2450
> >>>>>> 
> >>> --->
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>>
> >>>> 
> >>> --->
> >>>> We do this not because it is easy. We do this because it is hard.
> >>>> 
> >>> --->
> >>>> ShengChe Hsiao
> >>>> 
> >>> --->
> >>>> fron

Re: Wicket Metrics

2017-12-24 Thread Shengche Hsiao
Here is my project structure
src
-main
java
resources
META-INF
aop.xml
webapp
WEB-INF

On Sun, Dec 24, 2017 at 7:58 PM, Shengche Hsiao <shengchehs...@gmail.com>
wrote:

> OK, let me check, thank you
>
> On Sun, Dec 24, 2017 at 5:54 PM, Tobias Soloschenko <
> tobiassolosche...@googlemail.com> wrote:
>
>> Hi,
>>
>> mailing list does not support image attachments - please file in the text
>> and also check if the aop.xml is in the root of your webapp.
>>
>> kind regards
>>
>> Tobias
>>
>> > Am 24.12.2017 um 10:48 schrieb Shengche Hsiao <shengchehs...@gmail.com
>> >:
>> >
>> > Dear Tobias
>> >
>> > This is my aop.xml location, and I am using Wildfly 10 as ee container.
>> >
>> >
>> >
>> >> On Sun, Dec 24, 2017 at 12:33 PM, Tobias Soloschenko <
>> tobiassolosche...@googlemail.com> wrote:
>> >> Hi,
>> >>
>> >> have you placed the aspecj xml to the correct place? You have to add
>> it and the mentioned aspect so that Wicket Metrics is able to work. See the
>> documentation how to setup here:
>> >>
>> >> https://ci.apache.org/projects/wicket/guide/8.x/single.html#
>> _example_setup
>> >>
>> >> kind regards
>> >>
>> >> Tobias
>> >>
>> >> > Am 23.12.2017 um 19:04 schrieb Shengche Hsiao <
>> shengchehs...@gmail.com>:
>> >> >
>> >> > Dear all
>> >> >
>> >> > When I try to add this functionality, the application cannot start
>> and had
>> >> > exceptions blow
>> >> >
>> >> > Caused by: org.apache.wicket.WicketRuntimeException: The application
>> >> > couldn't be resolved, please ensure to apply "> >> > name="org.apache.wicket.metrics.aspects.WicketFilterInitAspect" />"
>> to your
>> >> > aspects
>> >> >
>> >> >
>> >> > any suggestions?
>> >> >
>> >> > --
>> >> >
>> >> > 
>> --->
>> >> > We do this not because it is easy. We do this because it is hard.
>> >> > ----
>> --->
>> >> > ShengChe Hsiao
>> >> > 
>> --->
>> >> > front...@gmail.com
>> >> > front...@tc.edu.tw
>> >> > 
>> --->
>> >> > VoIP : 070-910-2450
>> >> > 
>> --->
>> >
>> >
>> >
>> > --
>> >
>> > 
>> --->
>> > We do this not because it is easy. We do this because it is hard.
>> > 
>> --->
>> > ShengChe Hsiao
>> > 
>> --->
>> > front...@gmail.com
>> > front...@tc.edu.tw
>> > 
>> --->
>> > VoIP : 070-910-2450
>> > 
>> --->
>>
>
>
>
> --
>
> --->
> We do this not because it is easy. We do this because it is hard.
> --->
> ShengChe Hsiao
> --->
> front...@gmail.com
> front...@tc.edu.tw
> --->
> VoIP : 070-910-2450
> --->
>



-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wicket Metrics

2017-12-24 Thread Shengche Hsiao
OK, let me check, thank you

On Sun, Dec 24, 2017 at 5:54 PM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Hi,
>
> mailing list does not support image attachments - please file in the text
> and also check if the aop.xml is in the root of your webapp.
>
> kind regards
>
> Tobias
>
> > Am 24.12.2017 um 10:48 schrieb Shengche Hsiao <shengchehs...@gmail.com>:
> >
> > Dear Tobias
> >
> > This is my aop.xml location, and I am using Wildfly 10 as ee container.
> >
> >
> >
> >> On Sun, Dec 24, 2017 at 12:33 PM, Tobias Soloschenko <
> tobiassolosche...@googlemail.com> wrote:
> >> Hi,
> >>
> >> have you placed the aspecj xml to the correct place? You have to add it
> and the mentioned aspect so that Wicket Metrics is able to work. See the
> documentation how to setup here:
> >>
> >> https://ci.apache.org/projects/wicket/guide/8.x/
> single.html#_example_setup
> >>
> >> kind regards
> >>
> >> Tobias
> >>
> >> > Am 23.12.2017 um 19:04 schrieb Shengche Hsiao <
> shengchehs...@gmail.com>:
> >> >
> >> > Dear all
> >> >
> >> > When I try to add this functionality, the application cannot start
> and had
> >> > exceptions blow
> >> >
> >> > Caused by: org.apache.wicket.WicketRuntimeException: The application
> >> > couldn't be resolved, please ensure to apply " >> > name="org.apache.wicket.metrics.aspects.WicketFilterInitAspect" />"
> to your
> >> > aspects
> >> >
> >> >
> >> > any suggestions?
> >> >
> >> > --
> >> >
> >> > 
> --->
> >> > We do this not because it is easy. We do this because it is hard.
> >> > 
> --->
> >> > ShengChe Hsiao
> >> > ----
> --->
> >> > front...@gmail.com
> >> > front...@tc.edu.tw
> >> > 
> --->
> >> > VoIP : 070-910-2450
> >> > 
> --->
> >
> >
> >
> > --
> >
> > --->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > --->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > --->
>



-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Wicket Metrics

2017-12-24 Thread Shengche Hsiao
Dear Tobias

This is my aop.xml location, and I am using Wildfly 10 as ee container.

[image: Inline image 1]

On Sun, Dec 24, 2017 at 12:33 PM, Tobias Soloschenko <
tobiassolosche...@googlemail.com> wrote:

> Hi,
>
> have you placed the aspecj xml to the correct place? You have to add it
> and the mentioned aspect so that Wicket Metrics is able to work. See the
> documentation how to setup here:
>
> https://ci.apache.org/projects/wicket/guide/8.x/single.html#_example_setup
>
> kind regards
>
> Tobias
>
> > Am 23.12.2017 um 19:04 schrieb Shengche Hsiao <shengchehs...@gmail.com>:
> >
> > Dear all
> >
> > When I try to add this functionality, the application cannot start and
> had
> > exceptions blow
> >
> > Caused by: org.apache.wicket.WicketRuntimeException: The application
> > couldn't be resolved, please ensure to apply " > name="org.apache.wicket.metrics.aspects.WicketFilterInitAspect" />" to
> your
> > aspects
> >
> >
> > any suggestions?
> >
> > --
> >
> > ------->
> > We do this not because it is easy. We do this because it is hard.
> > --->
> > ShengChe Hsiao
> > --->
> > front...@gmail.com
> > front...@tc.edu.tw
> > --->
> > VoIP : 070-910-2450
> > ------->
>



-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Wicket Metrics

2017-12-23 Thread Shengche Hsiao
Dear all

When I try to add this functionality, the application cannot start and had
exceptions blow

Caused by: org.apache.wicket.WicketRuntimeException: The application
couldn't be resolved, please ensure to apply "" to your
aspects


any suggestions?

-- 

--->
We do this not because it is easy. We do this because it is hard.
--->
ShengChe Hsiao
--->
front...@gmail.com
front...@tc.edu.tw
--->
VoIP : 070-910-2450
--->


Re: Christmas / new year [NON-BIZ]

2016-12-24 Thread Shengche Hsiao
聖誕快樂,Taiwan version。

On Dec 24, 2016 21:46, "Martin Grigorov"  wrote:

> Merry Christmas !
>
> On Dec 24, 2016 1:33 PM, "Tobias Soloschenko" <
> tobiassolosche...@googlemail.com> wrote:
>
> Hi all,
>
> I wish you a merry christmas and happy new year. :-)
>
> kind regards
>
> Tobias
>


Re: Wicket Bootstrap 0.9.18 & 0.10.8 are released

2016-08-17 Thread ShengChe Hsiao
Great job!


--->
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
->

On Wed, Aug 17, 2016 at 3:14 PM, Martin Grigorov 
wrote:

> Wicket Bootstrap 0.9.18 (built against Wicket 6.24.0) and 0.10.8 (built
> against Wicket 7.4.0) have been released!
>
> There are no new components this time!
>
> The major improvements are:
> - Update to Bootstrap 3.3.7
> - Update Wicket-Webjars to 0.4.10/0.5.5 with an improvement to work on
> WebSphere
>
> The changelog is:
>
> Martin Tzvetanov Grigorov (17):
>   [maven-release-plugin] prepare for next development iteration
>   [maven-release-plugin] prepare release bootstrap-parent-0.9.17
>   [maven-release-plugin] prepare for next development iteration
>   Issu #630 - Update Bootstrap FileInput from 4.2.8 to 4.3.5
>   Fixes #630 - Remove 'display: inline-block' to fix rendering in
> Firefox
>   Fixes #630 - Add settings for maxFileCount and minFileCount
>   Merge branch 'master' into wicket-7.x
>   Fixes #628 - Add builder API for Bootstrap class to be able to
> provide custom IXyzSettings
>   Merge branch 'master' into wicket-7.x
>   Upgrade Bootstrap to 3.3.7
>   Update Wicket to 7.4.0
>   Update wicket-webjars to 0.5.5
>   Update Bootswatch theme to 3.3.7
>   Update Google theme to 3.3.7
>   Update Metro theme
>   Update Bootstrap webjars dependency to 3.3.7-1 because 3.3.7 doesn't
> include the .less files
>   [maven-release-plugin] prepare release bootstrap-parent-0.10.8
>
>
> The Wicket Bootstrap team!
>


Re: Announce: Enjoying Web Development with Wicket (4th edition)

2015-08-30 Thread Shengche Hsiao
Great, thanks.
On Aug 30, 2015 7:42 PM, Kent Tong kent.tong...@gmail.com wrote:

 Hi,

 I've updated my book to cover Wicket v7 (and v6). Sample chapters are
 freely available at http://www.ttdev.com/EWDW

 Below are the changes from the 3rd edition:
 * Updated for Wicket v7.
 * Added a new chapter on authentication and authorization.
 * Added a new chapter on how to make a jQuery UI component into a
 Wicket component supporting self-contained client-server callbacks.
 * Added a new chapter on how to support the Back button.
 * Completely rewrote the chapter on JPA/Hibernate and Spring to make
 it easier to understand and included the common strategies for dealing
 with detached entities in web applications.
 * Added more description and more examples on the true meaning of models.

 Thanks!

 --
 Kent Tong
 IT author and consultant, child education coach



Re: Google Map using Wicket

2015-07-02 Thread Shengche Hsiao
Try https://github.com/wicketstuff/core/wiki

On 07:10, Fri, Jul 3, 2015 nazeem md.naz...@gmail.com wrote:

 Thank you for pointing. I found so many other projects which are good ones.
 But no way to reach these links from wicket site ?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Google-Map-using-Wicket-tp4671468p4671476.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: put Javascript in HTML body

2015-02-01 Thread Shengche Hsiao
Hello

You may check wicket-guide
http://wicket.apache.org/guide/guide/jsintegration.html

Simply override the page#renderHeader(IHeaderResponse response){
 response.render(JavaScriptHeaderItem.forScript(your script here,null));
}

And may need to customize the output markup id to work.

On Mon, Feb 2, 2015 at 5:44 AM, Chris chris...@gmx.at wrote:

 Hi all,

 I would like to use Leaflet JS library in order to display open street
 maps. According to this library, certain JS code has to be placed in the
 body element of the html underneath a div element, e.g.:

 body
 div id=map/div
 script
 var map = L.map('map').setView([51.505, -0.09], 13);
 L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', {
 maxZoom: 18,
 attribution: 'Map data copy; a 
 href=http://openstreetmap.org;OpenStreetMap/a
 contributors, ' +
 'a 
 href=http://creativecommons.org/licenses/by-sa/2.0/;CC-BY-SA/a,
 ' +
 'Imagery © a href=http://mapbox.com;Mapbox/a',
 id: 'examples.map-i875mjb7'
 }).addTo(map);
 L.marker([51.5, -0.09]).addTo(map)
 .bindPopup(bHello world!/bbr /I am a
 popup.).openPopup();
 L.circle([51.508, -0.11], 500, {
 color: 'red',
 fillColor: '#f03',
 fillOpacity: 0.5
 }).addTo(map).bindPopup(I am a circle.);
 /script
 /body

 What is the best way to generate this code in wicket so that map makers
 can be set dynamically?
 I tried to insert it via add(new Label(script“,“...“) but in this case,
 all the quotation marks are escaped in a wrong way (using \).

 Thanks a lot, Chris




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Page Expired

2014-12-29 Thread Shengche Hsiao
Dear all

I wrote an openid provider web application with 6.14.0 (upgrade from 1.5.3
gradually) which enabled ssl and url encryption. Everything worked fine
until I upgrade wicket to 6.18.0, I got page expired exception page and the
url became plaintext after I redirect it to another page.

Any suggestions?

-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Apache wicket integrate with java fx2

2014-10-06 Thread Shengche Hsiao
Dear all

I have an fx2 application embed in web page which access client's cdc
certificate. But I cannot write the correct resources, such as *.jar,
*.jnlp, any suggestions ?


Radio Button

2014-03-06 Thread Shengche Hsiao
Suppose I have a map (data source from db and have unknown size) as follows

final MapString, String data = new HashMap();
data.put(TEST1, DESCRIPTION1);
data.put(TEST2, DESCRIPTION2);
data.put(TEST3, DESCRIPTION3);
data.put(TEST4, DESCRIPTION4);
final ListString key = new ArrayListString();
key.addAll(data.keySet());

in order to use RadioGroup i transfer the map keyset to list!

as you can see, i want users to check radio and get it's key to find map
value!

But i cannot assign the key into radio's value, do you have any suggestions?


-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: Radio Button

2014-03-06 Thread Shengche Hsiao
sorry, I am idiot!

I forgot to assign an model to it.


On Fri, Mar 7, 2014 at 11:53 AM, Shengche Hsiao shengchehs...@gmail.comwrote:

 Suppose I have a map (data source from db and have unknown size) as follows

 final MapString, String data = new HashMap();
 data.put(TEST1, DESCRIPTION1);
 data.put(TEST2, DESCRIPTION2);
 data.put(TEST3, DESCRIPTION3);
 data.put(TEST4, DESCRIPTION4);
 final ListString key = new ArrayListString();
 key.addAll(data.keySet());

 in order to use RadioGroup i transfer the map keyset to list!

 as you can see, i want users to check radio and get it's key to find map
 value!

 But i cannot assign the key into radio's value, do you have any
 suggestions?


 --

 ---
 We do this not because it is easy. We do this because it is hard.
 ---
 ShengChe Hsiao
 ---
 front...@gmail.com
 front...@tc.edu.tw
 ---
 VoIP : 070-910-2450
 ---




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: How to set meta tags prroperty for facebook and Open Graph?

2014-03-03 Thread Shengche Hsiao
Hello

Check official user guide page 121!

http://wicket.apache.org/guide/guide/single.pdf


On Tue, Mar 4, 2014 at 8:19 AM, - irresistible...@gmail.com wrote:

 On Monday 03 March 2014 10:05:55 Stijn de Witt wrote:
  Have a look at the .html file corresponding to your Page class. You
 should be able to just add it there.

 Sorry, I am newbe but not so stupid!
 I did it, my html file already have meta tags for facebook, but i want
 change content in the correspond page class.
 I want use wicket to make dinamic page, not simple static html pages.
 For examples now I have a link to og:image that is always the same, but I
 want change it dinamically.
 It is similar to tag title in the header, you can set it in the html as
 static, of manage it with wicket dinamically
 as in this example:

 html page:
 
head
 title wicket:id=pageTitleLogin Page/title
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 /
 meta name=viewport content=width=device-width /
 /head
 .
 java class page:

  @Override
 protected void onInitialize() {
 super.onInitialize();
 Label pageTitle = new Label(pageTitle, Login Page);
 this.add(pageTitle);
 }

 I didn't test it, I just read it on
 http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-td4662372.html



  -Stijn
 
 
  -Original Message-
  From: - [mailto:irresistible...@gmail.com]
  Sent: zondag 2 maart 2014 16:01
  To: users@wicket.apache.org
  Subject: How to set meta tags prroperty for facebook and Open Graph?
 
  I need to set meta tag property as I want for facebook and OpenGraph
 with wicket.
 
  meta property=fb:app_id content=117243945141208 /
  meta property=og:site_name content=site.com /
 meta property=og:type content=website /
 meta property=og:title content=title variable /
 meta property=og:url content=http://www.site.com/..; /
  meta property=og:description content=Description variable /
 meta property=og:image content=http://www.site.com/images/; /
 
  An example code is welcomed because I am a newbie. Thanks.
 
  -
  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




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: Apache wicket project as osgi compoments

2014-02-09 Thread Shengche Hsiao
Using customized security permissions is a nice entry, but if I have to
dynamic load new modular (another jar or war)  after deployed web app, do
you have any suggestion?


On Sun, Feb 9, 2014 at 3:11 AM, Paul Bors p...@bors.ws wrote:

 We solved this by using customized security permissions.
 If a user wasn't given the permission for module A, so be it :)

 On Feb 4, 2014, at 7:49 PM, Shengche Hsiao shengchehs...@gmail.com
 wrote:

  Hello
 
  Thanks for reply, indeed I plan to implement my wicket project in osgi
 way!
  But I don't know how to start it, thanks for hyper links, I'll check it
 out.
 
 
  On Wed, Feb 5, 2014 at 3:42 AM, Francois Meillet 
 francois.meil...@gmail.com
  wrote:
 
  You should have a look at
 
  http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi
  https://github.com/wicketstuff/core/wiki/Osgi
  http://hwellmann.blogspot.fr/2011/06/wicket-and-osgi.html
 
 
 http://www.volkomenjuist.nl/blog/2012/07/25/wicket-mounting-in-an-osgi-environment/
  https://ops4j1.jira.com/wiki/display/paxwicket/Install+Pax+Wicket
 
 
 http://karaf.922171.n3.nabble.com/pax-wicket-example-running-on-karaf-td4027622.html
 
  François Meillet
  Formation Wicket - Développement Wicket
 
 
 
 
 
  Le 4 févr. 2014 à 17:01, tho...@jarnot.de a écrit :
 
  Although we don't know anything about your application structure, I
 tend
  to
  answer YES.
 
  Assuming from the subject, that we are talking about OSGi modules (or
  rather
  bundles), making the application capable of that dynamism is surely
  possible. It simply depends on your decision of utilizing the OSGi
  programming model and execution environment. Do you have your
 application
  modules OSGi ready?
 
  Having a look a the wicket-distribution it seems to be OSGi-ready. You
  also
  may have a look at the Pax Wicket extension.
 
  So you're probably good to go.
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-project-as-osgi-compoments-tp4664159p4664164.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
 
 
 
 
 
  --
 
  ---
  We do this not because it is easy. We do this because it is hard.
  ---
  ShengChe Hsiao
  ---
  front...@gmail.com
  front...@tc.edu.tw
  ---
  VoIP : 070-910-2450
  ---


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




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: Memory leaks best practices

2014-02-06 Thread Shengche Hsiao
I had the same issue, my problem was doesn't close the database connection!


On Thu, Feb 6, 2014 at 8:54 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 Thanks a lot for quick answers have already added -Xms512M -Xmx2G -Xss1M
 -XX:PermSize=192m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled

 Now will add *Model.detach(); to the code and will check the stability
 (currently application works ~2days before PermGen)

 Redeployment is performed using Tomcat 7.0.50 restart.

 Any other ideas are appreciated


 On Thu, Feb 6, 2014 at 7:28 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  Hi,
 
  OOM in PermGen is not what you ask for.
  If you leak normal memory than the error would be with heap space.
  PermGen memory is used to keep the Class instances and interned Strings.
  If you deploy your app for first time then most probably you just need to
  set the proper initial and max value :
  -XX:PermSize and -XX:MaxPermSize.
  Use JConsole to see what size you need.
 
  If this error happens on redeploy then most probably you have a
 ClassLoader
  memory leak, i.e. you keep references to Class instances and they cannot
 be
  released so the PermGen is overloaded. Those are very tricky to be
  debugged.
 
 
  Martin Grigorov
  Wicket Training and Consulting
 
 
  On Thu, Feb 6, 2014 at 1:07 PM, Maxim Solodovnik solomax...@gmail.com
  wrote:
 
   Hello All,
  
   Recently we have deployed our project to wicket project to production
   server.
   And start getting OutOfMemory PermGenSpace.
  
   I believe we have memory leak in our application
   maybe there is best practices how to deal with Models and JPA entities
 to
   resolve this?
  
   Thanks in advance
  
   --
   WBR
   Maxim aka solomax
  
 



 --
 WBR
 Maxim aka solomax




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: Modularity in Wicket Application

2014-02-05 Thread Shengche Hsiao
Hello
What's the difference of PF4J and osgi ?
On Feb 6, 2014 6:37 AM, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,

 Look in the archives for plugin and IInitializer.
 Wicket's IInitializer is very simple solution for this.
 Also Decebal Suiu have implemented
 https://github.com/decebals/wicket-plugin

 Martin Grigorov
 Wicket Training and Consulting


 On Wed, Feb 5, 2014 at 11:17 PM, Richter, Marvin 
 marvin.rich...@jestadigital.com wrote:

  Hey guys,
 
  hope you can help me with this.
 
  I'm currently in the preparation phase of a new Project and evaluating
  possible technologies.
  What I already know: the Web part will be done with Wicket.
 
  The application will be some kind of management tool for others
  applications configuration.
  To support future applications configuration it would be nice to just
 need
  to develop Plugins for the new application and just drop them into the
  management tool.
 
  Did anyone something like this already? If so, how did you do this? Which
  technology did you use to support modularity in a wicket application?
 
  I'm thankful for any advice.
 
  Marvin
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Apache wicket project as osgi compoments

2014-02-04 Thread Shengche Hsiao
Hello

I have a web application comprised of several modules, can I dynamically
enable/disable these modules in runtime?


-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: Apache wicket project as osgi compoments

2014-02-04 Thread Shengche Hsiao
Hello

Our team developed a web application using php, it's original idea was from
XOOPS. As you know XOOPS's modules can dynamic install in or drop out, can
wicket project do the same thing?

And as you said You could dynamically decide not to call them, would you
please give me some instruction?


On Tue, Feb 4, 2014 at 10:44 PM, Richard W. Adams rwada...@up.com wrote:

 Depends what you mean by disable. You could dynamically decide not to
 call them, if that's what you want.




 From:   Shengche Hsiao shengchehs...@gmail.com
 To: Wicket User Mailinglist users@wicket.apache.org
 Date:   02/04/2014 08:42 AM
 Subject:Apache wicket project as osgi compoments



 Hello

 I have a web application comprised of several modules, can I dynamically
 enable/disable these modules in runtime?


 --

 ---
 We do this not because it is easy. We do this because it is hard.
 ---
 ShengChe Hsiao
 ---
 front...@gmail.com
 front...@tc.edu.tw
 ---
 VoIP : 070-910-2450
 ---



 **

 This email and any attachments may contain information that is
 confidential and/or privileged for the sole use of the intended recipient.
  Any use, review, disclosure, copying, distribution or reliance by others,
 and any forwarding of this email or its contents, without the express
 permission of the sender is strictly prohibited by law.  If you are not the
 intended recipient, please contact the sender immediately, delete the
 e-mail and destroy all copies.
 **




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: Apache wicket project as osgi compoments

2014-02-04 Thread Shengche Hsiao
Hello

Thanks for reply, indeed I plan to implement my wicket project in osgi way!
But I don't know how to start it, thanks for hyper links, I'll check it out.


On Wed, Feb 5, 2014 at 3:42 AM, Francois Meillet francois.meil...@gmail.com
 wrote:

 You should have a look at

 http://code.google.com/p/osgi-enterprise/wiki/WicketAndOsgi
 https://github.com/wicketstuff/core/wiki/Osgi
 http://hwellmann.blogspot.fr/2011/06/wicket-and-osgi.html

 http://www.volkomenjuist.nl/blog/2012/07/25/wicket-mounting-in-an-osgi-environment/
 https://ops4j1.jira.com/wiki/display/paxwicket/Install+Pax+Wicket

 http://karaf.922171.n3.nabble.com/pax-wicket-example-running-on-karaf-td4027622.html

 François Meillet
 Formation Wicket - Développement Wicket





 Le 4 févr. 2014 à 17:01, tho...@jarnot.de a écrit :

  Although we don't know anything about your application structure, I tend
 to
  answer YES.
 
  Assuming from the subject, that we are talking about OSGi modules (or
 rather
  bundles), making the application capable of that dynamism is surely
  possible. It simply depends on your decision of utilizing the OSGi
  programming model and execution environment. Do you have your application
  modules OSGi ready?
 
  Having a look a the wicket-distribution it seems to be OSGi-ready. You
 also
  may have a look at the Pax Wicket extension.
 
  So you're probably good to go.
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-project-as-osgi-compoments-tp4664159p4664164.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
 




-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


Re: wicket-bootstrap and another webjars components

2013-11-25 Thread Shengche Hsiao
Thans Martin
On Nov 25, 2013 5:36 PM, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,

 I've proposed a fix in wicket-webjars project (Pull Request 4).
 Thanks for your help!


 On Sat, Nov 23, 2013 at 5:06 AM, Shengche Hsiao shengchehs...@gmail.com
 wrote:

 
  This is the quickstart on git hub
 
  https://github.com/Shengche/webjars-wicket
 
 
 
  -
  We do this not because it is easy. We do this because it is hard.
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-and-another-webjars-components-tp4662572p4662624.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: wicket-bootstrap and another webjars components

2013-11-22 Thread Shengche Hsiao

This is the quickstart on git hub

https://github.com/Shengche/webjars-wicket



-
We do this not because it is easy. We do this because it is hard.
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-and-another-webjars-components-tp4662572p4662624.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-bootstrap and another webjars components

2013-11-21 Thread Shengche Hsiao

i use 0.3.2

On 2013/11/21 下午 03:51, Martin Grigorov wrote:

which version of wicket-webjars do you use ?
there was a fix recently that may be related.
Please provide a quickstart (github project) as Michael requested in the
ticket and we will check it.


On Thu, Nov 21, 2013 at 9:46 AM, Shengche Hsiao shengchehs...@gmail.comwrote:


Hello Martin

Sorry, I typed wrong version, actually i used the version you figured.

If i implement the web application just using wicket 6.11.0 and webjars
(wicket-webjars, codemirror, ace), it works fine.
Once i added wicket-bootstrap 0.8.4 in it , every js reference broken but
bootstrap related js.


On 2013/11/21 下午 03:40, Martin Grigorov wrote:


Hi,

It looks like you use wrong version of webjars-ace.
I found 07.31.2013


On Thu, Nov 21, 2013 at 6:55 AM, Shengche Hsiao shengchehs...@gmail.com
wrote:

  Hi all

I successfully implemented two projects, one project used apache wicket
6.11.0 with wicket-bootstrap 0.8.4 another used apache wicket 6.11.0 with
webjars component - ace 2017.07.31!

But, when I create a new project with apache wicket 6.11.0 with
wicket-bootstrap and ace, the ace js reference cannot locate correctly
(ie.
).

Does anybody meet this issue previous?



-
We do this not because it is easy. We do this because it is hard.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-
bootstrap-and-another-webjars-components-tp4662572.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




--

---

We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---



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




--

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


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



Re: wicket-bootstrap and another webjars components

2013-11-21 Thread Shengche Hsiao
Hello all

I recreated my project with maven quickstart, it works fine. So I replaced
the dependencies in my broken application with maven quickstart, and it
works!


Table below shows the dependencies of two applications.

+---
Broken application Fine application
+---
wicket-webjars-0.3.2.jar   +wicket-webjars-0.2.0.jar
+---
webjars-locator-0.6.jar +webjars-locator-0.1.jar
+---




-
We do this not because it is easy. We do this because it is hard.
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-and-another-webjars-components-tp4662572p4662606.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



wicket-bootstrap and another webjars components

2013-11-20 Thread Shengche Hsiao
Hi all

I successfully implemented two projects, one project used apache wicket
6.11.0 with wicket-bootstrap 0.8.4 another used apache wicket 6.11.0 with
webjars component - ace 2017.07.31!

But, when I create a new project with apache wicket 6.11.0 with
wicket-bootstrap and ace, the ace js reference cannot locate correctly (ie.
).

Does anybody meet this issue previous?



-
We do this not because it is easy. We do this because it is hard.
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-and-another-webjars-components-tp4662572.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-bootstrap and another webjars components

2013-11-20 Thread Shengche Hsiao

Hello Martin

Sorry, I typed wrong version, actually i used the version you figured.

If i implement the web application just using wicket 6.11.0 and webjars 
(wicket-webjars, codemirror, ace), it works fine.
Once i added wicket-bootstrap 0.8.4 in it , every js reference broken 
but bootstrap related js.


On 2013/11/21 下午 03:40, Martin Grigorov wrote:

Hi,

It looks like you use wrong version of webjars-ace.
I found 07.31.2013


On Thu, Nov 21, 2013 at 6:55 AM, Shengche Hsiao shengchehs...@gmail.comwrote:


Hi all

I successfully implemented two projects, one project used apache wicket
6.11.0 with wicket-bootstrap 0.8.4 another used apache wicket 6.11.0 with
webjars component - ace 2017.07.31!

But, when I create a new project with apache wicket 6.11.0 with
wicket-bootstrap and ace, the ace js reference cannot locate correctly (ie.
).

Does anybody meet this issue previous?



-
We do this not because it is easy. We do this because it is hard.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-and-another-webjars-components-tp4662572.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




--

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---
VoIP : 070-910-2450
---


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



Re: Apache Wicket + Ace Editor

2013-06-10 Thread Shengche Hsiao
Hello Martin

My project wants to implement java code editor on web, so I need an 
lined-textarea to show line number. First , I used Edit-Area 
(http://www.cdolivet.com/editarea/) (Demo - http://140.122.76.89), but 
It just enable at first time, when I submit the form code-area 
dissappeard. And then I tried Code-Mirror (http://codemirror.net/), the 
same problem  occurred.

I don't know how to enable them in wicket application.
Do I have to re-compose the java script into wicket component, and how?

Thanks a lot

On 2013/6/10 ?? 03:15, Martin Grigorov-4 [via Apache Wicket] wrote:
 Hi,

 What kind of problems you faced ?


 On Mon, Jun 10, 2013 at 8:51 AM, Shengche Hsiao [hidden email] 
 /user/SendEmail.jtp?type=nodenode=4659310i=0 wrote:

  Hello everyone
 
  I want to integrate ace editor into my wicket project, but after 
 gooogled I
  failed to do it.
  Is anyone give my some advise?
 
 
 
  -
  We do this not because it is easy. We do this because it is hard.
  --
  View this message in context:
  
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=4659310i=1
  For additional commands, e-mail: [hidden email] 
 /user/SendEmail.jtp?type=nodenode=4659310i=2
 
 


 
 If you reply to this email, your message will be added to the 
 discussion below:
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307p4659310.html
  

 To unsubscribe from Apache Wicket + Ace Editor, click here 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4659307code=c2hlbmdjaGVoc2lhb0BnbWFpbC5jb218NDY1OTMwN3wtMTYxNzk4NTUxNA==.
 NAML 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
  


-- 

---
We do this not because it is easy. We do this because it is hard.
---
ShengChe Hsiao
---
front...@gmail.com
front...@tc.edu.tw
---





-
We do this not because it is easy. We do this because it is hard.
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307p4659316.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: Apache Wicket + Ace Editor

2013-06-10 Thread Shengche Hsiao
Hi Martin

Thanks for your help, I'll check it out!


On Mon, Jun 10, 2013 at 4:26 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,


 On Mon, Jun 10, 2013 at 10:45 AM, Shengche Hsiao shengchehs...@gmail.com
 wrote:

  Hello Martin
 
  My project wants to implement java code editor on web, so I need an
  lined-textarea to show line number. First , I used Edit-Area
  (http://www.cdolivet.com/editarea/) (Demo - http://140.122.76.89), but
  It just enable at first time, when I submit the form code-area
  dissappeard. And then I tried Code-Mirror (http://codemirror.net/), the
  same problem  occurred.
 
  I don't know how to enable them in wicket application.
  Do I have to re-compose the java script into wicket component, and how?
 

 You have to integrate the JavaScript widget with Wicket.
 Usually this means:
 1) the Wicket component should create the markup needed for the JS widget.
 In your case it seems that a textarea should be rendered
 2) contribute all needed .js, .css and images needed by the JS widget (see
 Component#renderHead() and CssHeaderItem for example)
 2.1) contribute the JS widget initialization options. Most JS plugins
 accept a JS object with the configuration
 3) provide callback methods in your Wicket component/behavior which are
 called by the JS widget when needed, e.g. when the user submits the data

 Check https://github.com/sebfz1/wicket-jquery-ui project. It provides
 integration with all JQuery UI widgets and some additional ones. Use it as
 inspiration.
 You can also check https://github.com/andunslg/Wysiwyg-Wicket - this is an
 integration with yet another WYSIWYG JS widget for Wicket-JQuery-UI
 project.


 
  Thanks a lot
 
  On 2013/6/10 ?? 03:15, Martin Grigorov-4 [via Apache Wicket] wrote:
   Hi,
  
   What kind of problems you faced ?
  
  
   On Mon, Jun 10, 2013 at 8:51 AM, Shengche Hsiao [hidden email]
   /user/SendEmail.jtp?type=nodenode=4659310i=0 wrote:
  
Hello everyone
   
I want to integrate ace editor into my wicket project, but after
   gooogled I
failed to do it.
Is anyone give my some advise?
   
   
   
-
We do this not because it is easy. We do this because it is hard.
--
View this message in context:
   
  
 
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307.html
Sent from the Users forum mailing list archive at Nabble.com.
   
-
To unsubscribe, e-mail: [hidden email]
   /user/SendEmail.jtp?type=nodenode=4659310i=1
For additional commands, e-mail: [hidden email]
   /user/SendEmail.jtp?type=nodenode=4659310i=2
   
   
  
  
  
 
   If you reply to this email, your message will be added to the
   discussion below:
  
 
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307p4659310.html
  
   To unsubscribe from Apache Wicket + Ace Editor, click here
   
 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4659307code=c2hlbmdjaGVoc2lhb0BnbWFpbC5jb218NDY1OTMwN3wtMTYxNzk4NTUxNA==
  .
   NAML
   
 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
  
  
 
  --
 
  ---
  We do this not because it is easy. We do this because it is hard.
  ---
  ShengChe Hsiao
  ---
  front...@gmail.com
  front...@tc.edu.tw
  ---
 
 
 
 
 
  -
  We do this not because it is easy. We do this because it is hard.
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307p4659316.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
 
 



Apache Wicket + Ace Editor

2013-06-09 Thread Shengche Hsiao
Hello everyone

I want to integrate ace editor into my wicket project, but after gooogled I
failed to do it.
Is anyone give my some advise?



-
We do this not because it is easy. We do this because it is hard.
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Ace-Editor-tp4659307.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