Re: http://examples8x.wicket.apache.org/websockets/ partial down?

2017-05-30 Thread Tobias Soloschenko
Hi again,

sorry for taking up this thread for an additional question. Does the server 
support http/2? Maybe we can add a http/2 push example in this case.

kind regards

Tobias

> Am 30.05.2017 um 22:50 schrieb Martin Grigorov :
> 
> Fixed!
> Now the examples run on Tomcat 8.5 and I've added support for custom ports (
> https://blog.openshift.com/paas-websockets/)
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Fri, Feb 24, 2017 at 9:46 AM, Martin Grigorov 
> wrote:
> 
>> This is a known issue.
>> For some reason WebSockets do not work out of the box on OpenShift. The
>> examples worked fine on Wildfly 10 last time I've tried. Needs debugging ...
>> 
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>> 
>> On Tue, Feb 21, 2017 at 8:35 AM, nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>> 
>>> Does not seem to work? Also clicking source code gives an internal error..
>>> Once there where disk space problems..?
>>> 
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>> 
>> 
>> 

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



Re: http://examples8x.wicket.apache.org/websockets/ partial down?

2017-05-30 Thread Tobias Soloschenko
Great! :-)

kind regards

Tobias

> Am 30.05.2017 um 22:50 schrieb Martin Grigorov :
> 
> Fixed!
> Now the examples run on Tomcat 8.5 and I've added support for custom ports (
> https://blog.openshift.com/paas-websockets/)
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Fri, Feb 24, 2017 at 9:46 AM, Martin Grigorov 
> wrote:
> 
>> This is a known issue.
>> For some reason WebSockets do not work out of the box on OpenShift. The
>> examples worked fine on Wildfly 10 last time I've tried. Needs debugging ...
>> 
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>> 
>> On Tue, Feb 21, 2017 at 8:35 AM, nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>> 
>>> Does not seem to work? Also clicking source code gives an internal error..
>>> Once there where disk space problems..?
>>> 
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>> 
>> 
>> 

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



Re: http://examples8x.wicket.apache.org/websockets/ partial down?

2017-05-30 Thread Martin Grigorov
Fixed!
Now the examples run on Tomcat 8.5 and I've added support for custom ports (
https://blog.openshift.com/paas-websockets/)

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Feb 24, 2017 at 9:46 AM, Martin Grigorov 
wrote:

> This is a known issue.
> For some reason WebSockets do not work out of the box on OpenShift. The
> examples worked fine on Wildfly 10 last time I've tried. Needs debugging ...
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Tue, Feb 21, 2017 at 8:35 AM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> Does not seem to work? Also clicking source code gives an internal error..
>> Once there where disk space problems..?
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>


Re: Source code" option on example page returns 500

2017-05-30 Thread Andrea Del Bene
wonderful! thanks Martin. and thanks Francois  for having noted the
problem.

On 30 May 2017 21:56, "Martin Grigorov"  wrote:

> http://examples8x.wicket.apache.org/index.html is running on Tomcat 8.5.14
> now!
>
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, May 29, 2017 at 12:47 PM, Andrea Del Bene 
> wrote:
>
> > Hi,
> >
> > I used a DIY for the new version of the user guide examples, which runs
> on
> > Tomcat 8.5. There are some config pitfalls to solve in order to use this
> > kind of application. I can take a look at it in the next days. In the
> > meantime you could take a look at configuration files I use here:
> > https://github.com/bitstorm/Wicket-tutorial-examples/tree/
> > master/StarterExamples/tomcat-conf
> >
> > On Mon, May 29, 2017 at 12:41 PM, Martin Grigorov 
> > wrote:
> >
> > > Using Tomcat 7 is not an option because OpenShift starts it with Java
> 7:
> > >
> > > Caused by: java.lang.UnsupportedClassVersionError:
> > > com/google/common/base/Function : Unsupported major.minor version 52.0
> > > (unable to load class com.google.common.base.Function)
> > >
> > > So the next option is Do It Yourself:
> > > https://blog.openshift.com/how-to-run-apache-tomcat-8-on-openshift/
> > >
> > > But my lunch break is over and for now examples8x is down.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Mon, May 29, 2017 at 12:21 PM, Martin Grigorov <
> mgrigo...@apache.org>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > It might take a bit longer to fix this.
> > > >
> > > > The exception is:
> > > > Caused by: java.lang.RuntimeException: An error occurred while
> getting
> > > the
> > > > model object for Component: [ListView [Component id = file, page =
> > > > org.apache.wicket.examples.source.SourcesPage, path =
> filespanel:file,
> > > > type = org.apache.wicket.markup.html.list.ListView, isVisible =
> true,
> > > > isVersioned = true]]
> > > > at org.apache.wicket.Component.getDefaultModelObject(
> > > Component.java:1651)
> > > > at org.apache.wicket.markup.html.list.ListView.getViewSize(
> > > > ListView.java:218)
> > > > at org.apache.wicket.markup.html.list.ListView.onPopulate(
> > > > ListView.java:472)
> > > > at org.apache.wicket.markup.repeater.AbstractRepeater.
> onBeforeRender(
> > > > AbstractRepeater.java:124)
> > > > at org.apache.wicket.Component.internalBeforeRender(
> > Component.java:948)
> > > > at org.apache.wicket.Component.beforeRender(Component.java:1016)
> > > > at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(
> > > > MarkupContainer.java:1749)
> > > > ... 62 more
> > > > Caused by: java.lang.IllegalArgumentException: URI scheme is not
> > "file"
> > > > at java.io.File.(File.java:421)
> > > > at org.apache.wicket.examples.source.SourcesPage$
> > > > PackagedResourcesModel.get(SourcesPage.java:209)
> > > > at org.apache.wicket.examples.source.SourcesPage$
> > > > PackagedResourcesModel.load(SourcesPage.java:149)
> > > > at org.apache.wicket.examples.source.SourcesPage$
> > > > PackagedResourcesModel.load(SourcesPage.java:139)
> > > > at org.apache.wicket.model.LoadableDetachableModel.getObject(
> > > > LoadableDetachableModel.java:126)
> > > > at org.apache.wicket.Component.getDefaultModelObject(
> > > Component.java:1644)
> > > > ... 68 more
> > > >
> > > > Examples 7.x and 6.x use Tomcat 7.x
> > > > Examples 8.x uses Wildfly 10 because Wicket 8.x needs Servlet 3.1.0
> and
> > > > there is no option of using Tomcat 8.5+ at OpenShift.
> > > >
> > > > Wildfly (and previous versions of JBoss) are famous with their custom
> > > > modules impl that makes reading of classpath much harder than a
> normal
> > > > servlet container...
> > > >
> > > > I think the easiest is to drop the Wildfly usage and use Tomcat 7 for
> > 8.x
> > > > examples as well.
> > > >
> > > >
> > > > Martin Grigorov
> > > > Wicket Training and Consulting
> > > > https://twitter.com/mtgrigorov
> > > >
> > > > On Mon, May 29, 2017 at 10:26 AM, Francois Meillet <
> > > > francois.meil...@gmail.com> wrote:
> > > >
> > > >> Hi Examples Website Maintainer,
> > > >>
> > > >> "Source code" option on example page returns 500 - any chance for
> > > solving
> > > >> this problem? E.g. here: examples8x.wicket.apache.org/forminput/ <
> > > >> https://t.co/1gkfLZZZi5>
> > > >>
> > > >> Thanks
> > > >>
> > > >> François
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > >
> >
>


Re: Source code" option on example page returns 500

2017-05-30 Thread Martin Grigorov
http://examples8x.wicket.apache.org/index.html is running on Tomcat 8.5.14
now!


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, May 29, 2017 at 12:47 PM, Andrea Del Bene 
wrote:

> Hi,
>
> I used a DIY for the new version of the user guide examples, which runs on
> Tomcat 8.5. There are some config pitfalls to solve in order to use this
> kind of application. I can take a look at it in the next days. In the
> meantime you could take a look at configuration files I use here:
> https://github.com/bitstorm/Wicket-tutorial-examples/tree/
> master/StarterExamples/tomcat-conf
>
> On Mon, May 29, 2017 at 12:41 PM, Martin Grigorov 
> wrote:
>
> > Using Tomcat 7 is not an option because OpenShift starts it with Java 7:
> >
> > Caused by: java.lang.UnsupportedClassVersionError:
> > com/google/common/base/Function : Unsupported major.minor version 52.0
> > (unable to load class com.google.common.base.Function)
> >
> > So the next option is Do It Yourself:
> > https://blog.openshift.com/how-to-run-apache-tomcat-8-on-openshift/
> >
> > But my lunch break is over and for now examples8x is down.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, May 29, 2017 at 12:21 PM, Martin Grigorov 
> > wrote:
> >
> > > Hi,
> > >
> > > It might take a bit longer to fix this.
> > >
> > > The exception is:
> > > Caused by: java.lang.RuntimeException: An error occurred while getting
> > the
> > > model object for Component: [ListView [Component id = file, page =
> > > org.apache.wicket.examples.source.SourcesPage, path = filespanel:file,
> > > type = org.apache.wicket.markup.html.list.ListView, isVisible = true,
> > > isVersioned = true]]
> > > at org.apache.wicket.Component.getDefaultModelObject(
> > Component.java:1651)
> > > at org.apache.wicket.markup.html.list.ListView.getViewSize(
> > > ListView.java:218)
> > > at org.apache.wicket.markup.html.list.ListView.onPopulate(
> > > ListView.java:472)
> > > at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(
> > > AbstractRepeater.java:124)
> > > at org.apache.wicket.Component.internalBeforeRender(
> Component.java:948)
> > > at org.apache.wicket.Component.beforeRender(Component.java:1016)
> > > at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(
> > > MarkupContainer.java:1749)
> > > ... 62 more
> > > Caused by: java.lang.IllegalArgumentException: URI scheme is not
> "file"
> > > at java.io.File.(File.java:421)
> > > at org.apache.wicket.examples.source.SourcesPage$
> > > PackagedResourcesModel.get(SourcesPage.java:209)
> > > at org.apache.wicket.examples.source.SourcesPage$
> > > PackagedResourcesModel.load(SourcesPage.java:149)
> > > at org.apache.wicket.examples.source.SourcesPage$
> > > PackagedResourcesModel.load(SourcesPage.java:139)
> > > at org.apache.wicket.model.LoadableDetachableModel.getObject(
> > > LoadableDetachableModel.java:126)
> > > at org.apache.wicket.Component.getDefaultModelObject(
> > Component.java:1644)
> > > ... 68 more
> > >
> > > Examples 7.x and 6.x use Tomcat 7.x
> > > Examples 8.x uses Wildfly 10 because Wicket 8.x needs Servlet 3.1.0 and
> > > there is no option of using Tomcat 8.5+ at OpenShift.
> > >
> > > Wildfly (and previous versions of JBoss) are famous with their custom
> > > modules impl that makes reading of classpath much harder than a normal
> > > servlet container...
> > >
> > > I think the easiest is to drop the Wildfly usage and use Tomcat 7 for
> 8.x
> > > examples as well.
> > >
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Mon, May 29, 2017 at 10:26 AM, Francois Meillet <
> > > francois.meil...@gmail.com> wrote:
> > >
> > >> Hi Examples Website Maintainer,
> > >>
> > >> "Source code" option on example page returns 500 - any chance for
> > solving
> > >> this problem? E.g. here: examples8x.wicket.apache.org/forminput/ <
> > >> https://t.co/1gkfLZZZi5>
> > >>
> > >> Thanks
> > >>
> > >> François
> > >>
> > >>
> > >>
> > >>
> > >
> >
>


Re: Cannot read Ajax response for multipart form submit

2017-05-30 Thread Martin Grigorov
Hi,

Do you have a failure callback listener for this Ajax call ?
See IAjaxCallListener#onFailure().
If this doesn't help then please create a quickstart application and attach
it to a ticket in JIRA!
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, May 30, 2017 at 5:39 PM, marco di gasbarro 
wrote:

> Hi there,
> I am struggling with this issue using Tomcat 8.5.14 and Wicket 6.24
>
> When FileUploadBase$FileItemIteratorImpl constructor throws
> SizeLimitExceededException, the ajax response is not read by the browser
> client, which keeps waiting (Firefox) or aborts (IE) the connection, with
> the following ajax error:
> "Cannot read Ajax response for multipart form submit: TypeError: Permission
> denied
> Wicket.Ajax.Call.failure: Error while parsing response: No XML response in
> the IFrame document"
>
> Thank you
> --
> Marco
>


Re: Proxy Error 502 for http://examples7x.wicket.apache.org/index.html

2017-05-30 Thread Martin Grigorov
I've restarted it!
Thanks!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, May 30, 2017 at 7:01 PM, Francois Meillet <
francois.meil...@gmail.com> wrote:

> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /index.html.
> Reason: Error reading from remote server
>
>
> François
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How reload necessary Panel inside common layout?

2017-05-30 Thread Francois Meillet
Have a look at 
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_working_with_ajax 



François



> Le 30 mai 2017 à 14:32, Sokab  a écrit :
> 
> Hi. I follow this post 
> ( 
> https://stackoverflow.com/questions/24061261/loading-wicket-panels-dynamically-in-a-div
> 
>   
> ) and try display necessary Panel inside layout but I really can't do it.
> 
> I created a sample project:
> 
> public class WicketApplication extends WebApplication{
>@Override
>public Class getHomePage()
>{
>return MainPage.class;
>}
> 
>@Override
>protected void init() {
>super.init();
>}
> }
> 
> ***
> MainPage.html:
> 
> http://wicket.apache.org";>
>  
>
>Main Page
>
> 
>   
> 
>
> 
> 
> 
> MainPage.java:
> 
> public class MainPage extends WebPage{
> 
>@Override
>protected void onInitialize() {
>super.onInitialize(); 
> 
>add(new Panel1("panel1"));  
>}
> }
> 
> ***
> Panel1.html:
> http://wicket.apache.org";>
> 
>
>
>
> 
> 
> 
> 
> Panel1.java:
> public class Panel1 extends Panel{
> 
>public Panel1(String id) {
>super(id);
>}
> 
>@Override
>protected void onInitialize() {
>super.onInitialize(); 
> 
>add(new Panel2("panel2")); 
>}
> }
> 
> ***
> Panel2.html:
> http://wicket.apache.org";>
>
> 
>
> Page1 <#>  
> Page2 <#>  
>
> 
>
> 
> 
> 
> Panel2.java:
> public class Panel2 extends Panel{
> 
>public Panel2(String id) {
>super(id);
>}
> 
>@Override
>protected void onInitialize() {
>super.onInitialize(); 
> 
> 
>add(new AjaxLink("page3") {
>@Override
>public void onClick(AjaxRequestTarget target) {
>   // ??
>}
>});
> 
> 
>add(new AjaxLink("page4") {
>@Override
>public void onClick(AjaxRequestTarget target) {
> //??
>}
>});
> 
>}
> }
> 
> ***
> Panel3.html:
> http://wicket.apache.org";>
>
>
> Panel 3 Content
> 
>
> 
> 
> Panel3.java:
> public class Panel3 extends Panel{
>public Panel3(String id) {
>super(id);
>}
> }
> 
> ***
> Panel4.html:
> http://wicket.apache.org";>
>
>
> Panel 4 Content
> 
>
> 
> 
> Panel4.java:
> public class Panel4 extends Panel{
>public Panel4(String id) {
>super(id);
>}
> }
> **
> After clicked on AjaxLink inside Panel2 I need display panel3 or panel4 in
> MainPage without reload all page. How can I do this?  Can I call
> wicket:id="homePanel" from MainPage.html inside Panel2.java and and replace
> panel3/panel4 after ajax request? Thank You for any hint.
> 
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-reload-necessary-Panel-inside-common-layout-tp4677948.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
> 



Proxy Error 502 for http://examples7x.wicket.apache.org/index.html

2017-05-30 Thread Francois Meillet
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /index.html.
Reason: Error reading from remote server


François




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



Cannot read Ajax response for multipart form submit

2017-05-30 Thread marco di gasbarro
Hi there,
I am struggling with this issue using Tomcat 8.5.14 and Wicket 6.24

When FileUploadBase$FileItemIteratorImpl constructor throws
SizeLimitExceededException, the ajax response is not read by the browser
client, which keeps waiting (Firefox) or aborts (IE) the connection, with
the following ajax error:
"Cannot read Ajax response for multipart form submit: TypeError: Permission
denied
Wicket.Ajax.Call.failure: Error while parsing response: No XML response in
the IFrame document"

Thank you
--
Marco


How reload necessary Panel inside common layout?

2017-05-30 Thread Sokab
Hi. I follow this post 
 ( 
https://stackoverflow.com/questions/24061261/loading-wicket-panels-dynamically-in-a-div

  
) and try display necessary Panel inside layout but I really can't do it.

I created a sample project:

public class WicketApplication extends WebApplication{
@Override
public Class getHomePage()
{
return MainPage.class;
}

@Override
protected void init() {
super.init();
}
}

***
MainPage.html:

http://wicket.apache.org";>
  

Main Page

   
   
  




MainPage.java:

public class MainPage extends WebPage{

@Override
protected void onInitialize() {
super.onInitialize(); 

add(new Panel1("panel1"));  
}
}

***
Panel1.html:
http://wicket.apache.org";>








Panel1.java:
public class Panel1 extends Panel{

public Panel1(String id) {
super(id);
}

@Override
protected void onInitialize() {
super.onInitialize(); 

add(new Panel2("panel2")); 
}
}

***
Panel2.html:
http://wicket.apache.org";>



 Page1 <#>  
 Page2 <#>  






Panel2.java:
public class Panel2 extends Panel{

public Panel2(String id) {
super(id);
}

@Override
protected void onInitialize() {
super.onInitialize(); 


add(new AjaxLink("page3") {
@Override
public void onClick(AjaxRequestTarget target) {
   // ??
}
});
   

add(new AjaxLink("page4") {
@Override
public void onClick(AjaxRequestTarget target) {
//??
}
});

}
}

***
Panel3.html:
http://wicket.apache.org";>


Panel 3 Content




Panel3.java:
public class Panel3 extends Panel{
public Panel3(String id) {
super(id);
}
}

***
Panel4.html:
http://wicket.apache.org";>


Panel 4 Content




Panel4.java:
public class Panel4 extends Panel{
public Panel4(String id) {
super(id);
}
}
**
After clicked on AjaxLink inside Panel2 I need display panel3 or panel4 in
MainPage without reload all page. How can I do this?  Can I call
wicket:id="homePanel" from MainPage.html inside Panel2.java and and replace
panel3/panel4 after ajax request? Thank You for any hint.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-reload-necessary-Panel-inside-common-layout-tp4677948.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