Problems with wicket-select2 and session timeout

2014-04-01 Thread Tom Götz
Hello everyone,

I already posted this on https://github.com/ivaynberg/wicket-select2/issues/83 
but thought I could mention it here also, as I’m not sure yet if the described 
problem is related to wicket-select2 or Wicket itself:

if my current session is already expired and I click a Select2Choice, Wicket 
creates an ajax response containing a redirect (see here: 
http://bit.ly/1flepiM) but this response is never digestet by 
wicket-ajax-jquery.js, because it is not even loaded on the current page (no 
ajax components/behaviors). Even if there are other ajax components on the page 
and wicket-ajax-jquery.js is loaded, processAjaxResponse is never called. The 
result is that the redirect is not happening and the select2 gets stuck (like 
this: http://bit.ly/1fligwv).

I created a quickstart to demonstrate this: http://bit.ly/1flfQOc (the session 
timeout is set to 1min in web.xml):

- open browser on localhost:8080
- wait for >1min
- click on select2
- look at response in e.g. firebug

Wicket identifies the request as „ajax“ because wicket-select2 sets the 
WebRequest.PARAM_AJAX parameter. If the request is processed correctly, the 
JSON response is returned and digested, but in case of a server-side error 
(e.g. PageExpiredException) the returned ajax response is not consumed 
(wicket-ajax-jquery.js not loaded) , as far as I do understand the code.

Any hints?

Cheers,
   -Tom




Exception thrown when refreshing the page.

2014-04-01 Thread chathuraka.waas
Hi,

i have a form which as few text field elements. and when i submit the form
it works fine. but after submit if i go and refresh the page it gives me an
expception.

my java and html code is below. 

TextFieldfirstName = new TextField("firstName", false, 50);
firstName.setOutputMarkupId(true);
fragment.add(firstName);
fragment.add(new Label(firstName.getId() +
".feedback").setOutputMarkupId(true));


First
Name





and here's the exception i'm getting. 


org.apache.wicket.WicketRuntimeException: Exception in rendering component:
[Component id = firstName.feedback]
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2578)
at
org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:56)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1530)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1485)
at
org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.onComponentTagBody(FragmentMarkupSourcingStrategy.java:86)
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1494)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1530)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1485)
at
org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1696)
at
org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
at 
org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1494)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at 
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1390)
at 
org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1555)
at org.apache.wicket.Page.onRender(Page.java:887)
at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
at org.apache.wicket.Component.internalRender(Component.java:2381)
at org.apache.wicket.Component.render(Component.java:2309)
at org.apache.wicket.Page.renderPage(Page.java:1024)
at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:121)
at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:219)
at
org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.fanminder.HibernateFilter.doFilter(HibernateFilter.java:24)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.

Synchronous Wicket.Ajax.get

2014-04-01 Thread Brad Grier
I've implemented an AbstractDefaultAjaxBehavior as part of a custom
implemention of jqueryui dialog. In a nutshell...

This is the function bound to the dialog's beforeClose event. Returning
false cancels dialog close:
Wicket.Ajax.get({'u': '" + callbackUrl + "', 'async': false});return ok;

In the behavior's respond() method:
target.appendJavaScript("ok = true"); // or ok = false depending on
validation

This works fine when the user closes the dialog via the "X" button in the
title bar. However closing it via the dialog's close() method (triggered as
part of an ajax form submit - the form is in the dialog) doesn't work. After
debugging, I can see the callback function is called but not synchronously.
This means the ok variable isn't set when the function returns.

Any ideas? Any other approaches to hooking into beforeClose?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Synchronous-Wicket-Ajax-get-tp4665211.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: Netbeans and "Compile On Save"

2014-04-01 Thread Brad Grier
I'm pretty sure I had the problem with 6.13. Unfortunately I've been working
around it for so long that I can't really say when it started happening.
It's possible I was using a different version of Netbeans or maybe it was
when I ported from Wicket 1.4 to 6 (although I don't think so). I haven't
had any luck finding a solution.

I'm using Tomcat, BTW.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Netbeans-and-Compile-On-Save-tp4665159p4665210.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: Why resource bundles and how to use them ?

2014-04-01 Thread Gabriel Landon
Is that what you are looking for :

http://wicketinaction.com/2012/07/wicket-6-resource-management/

https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/master/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/WicketApplication.java

Regards,

Gabriel.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207p4665209.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: Does wicket have parameter-based security?

2014-04-01 Thread armandoxxx
hey 

we use Apache SHIRO project for all security on wicket applications ... 
apache shiro has targets (part of permission) to resolve this kind of
issues. 

you can also write custom shiro filter to let wicket know if problems with
authorization accured .. or let shiro handle it in his own way ;)

Regards

Armando



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Does-wicket-have-parameter-based-security-tp4665174p4665208.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



Why resource bundles and how to use them ?

2014-04-01 Thread armandoxxx
Hey guys .. 

The problem I'm having is how to use a bundle added to application bundles
... 

Me expectation was ... 
when in renderHead() method and call to response.render(MY BUNDLE) would do
the magic and bundled references get rendered to page ... no luck .. so help
appreciated ... cant find any full blown resource bundle example ... 

Regards

Armando

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Why-resource-bundles-and-how-to-use-them-tp4665207.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: DOM element not found issue - Ajax response

2014-04-01 Thread Martin Grigorov
Hi,

It sounds like the old HTML element (the one to be replaced) is not there
or has a different markup id.

Another possibility is that the old element is in different document, e.g.
when ModalWindow with a Page is used the page's markup is put in an iframe
and any JS contributed by OnDomReadyHeaderItem that tries to find an HTML
element from the main page will fail. In this case you need to use
document.top.getElementById("theId") to be able to find it.

Martin Grigorov
Wicket Training and Consulting


On Tue, Apr 1, 2014 at 2:11 PM, Rakesh A  wrote:

> Hi,
>
> I am using Wicket v6.12.0, I've couple of Ajax links, clicking on which
> will
> replace a panel [ajax enabled - markup id is generated], and this click
> also
> results a piece of javascript, which will use the markup id of the panel.
> In some cases I see the the javascript fails saying the DOM element doesn't
> exists. When I enable Ajax debug window and see the response, I do see the
> panel with markup id and the javascript is using the same markup id, but
> still script fails to find the DOM element.
>
> This script is added using OnDomReadyHeaderItem. Can anyone point me how to
> find the cause of it?
>
> Thanks,
> Rakesh.A
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/DOM-element-not-found-issue-Ajax-response-tp4665201.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
>
>


DOM element not found issue - Ajax response

2014-04-01 Thread Rakesh A
Hi,

I am using Wicket v6.12.0, I've couple of Ajax links, clicking on which will
replace a panel [ajax enabled - markup id is generated], and this click also
results a piece of javascript, which will use the markup id of the panel.
In some cases I see the the javascript fails saying the DOM element doesn't
exists. When I enable Ajax debug window and see the response, I do see the
panel with markup id and the javascript is using the same markup id, but
still script fails to find the DOM element.

This script is added using OnDomReadyHeaderItem. Can anyone point me how to
find the cause of it?

Thanks,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DOM-element-not-found-issue-Ajax-response-tp4665201.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: JBoss Forge Plugin

2014-04-01 Thread Martin Grigorov
Hi David,

I'll check JBoss Forge 2.x these days.

Have fun and keep us posted with your progress ! :-)

Martin Grigorov
Wicket Training and Consulting


On Tue, Apr 1, 2014 at 1:34 PM, David Beer  wrote:

> Hi Martin
>
> Thanks for this interesting. JBoss Forge is gaining quite some interest and
> rapid development. Especially Forge 2.x https://forge.jboss.org/ a new
> website is on the way and is being developed more info on github
> https://github.com/forge. The JBoss Forge project is a little bit like
> Spring Roo, but much more powerful and goes beyond the initial project
> creation stage and allows a lot more.
>
> Forge can be used with a range of Java and other web technologies and
> integrates nicely. Lots of different plugins for different frameworks.
>
> I can see JBoss Forge being quite popular, very useful for wicket and
> adding component and pages quickly and easily.
>
> Thanks
>
> David
>
>
> On 1 April 2014 08:54, Martin Grigorov  wrote:
>
> > Forgot to give you a reference -
> > https://www.npmjs.org/package/generator-scalatra
> > Scalatra is also Servlet based framework like Wicket. It is written in
> > Scala.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Tue, Apr 1, 2014 at 9:34 AM, Martin Grigorov  > >wrote:
> >
> > > Hi,
> > >
> > > Maybe I am not following the right forums but I think JBoss Forge
> didn't
> > > gain much attention.
> > > I think doing a Yeoman generator for the same tasks + providing setup
> > > (Grunt/Gulp/Brocolli) for generating JS (from
> > > CoffeeScript/Dart/TypeScript/...) and CSS (from LESS/SCSS/Stylus/...),
> > > minification (by using UglifyJS), bundle generation
> (usemin/useref/...),
> > > CSS optimization (with UNCSS), etc. would be much cooler.
> > >
> > > All this would require writing JavaScript instead of Java but the
> Node.js
> > > ecosystem for this kind of tasks is much better than what is available
> in
> > > Java.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > >
> > >
> > > On Fri, Mar 28, 2014 at 1:20 PM, David Beer  > >wrote:
> > >
> > >> Hi All
> > >>
> > >> I am thinking of creating a JBoss Forge Plugin for wicket. The idea
> > being
> > >> that it would help create a  base project with the Filter set the Home
> > >> Page
> > >> and a Base Page to work from. It would also provide the ability to
> > create
> > >> a
> > >> new Page which would include creating Java source and HTML, the same
> > would
> > >> also be done for creating a panel and other commonly used parts.
> > >>
> > >> What do people think? Any suggestions on Features.
> > >>
> > >> Thanks
> > >>
> > >> David
> > >>
> > >
> > >
> >
>


Re: Adding/Remiving Panels

2014-04-01 Thread David Beer
Hi Martin

Thanks for your information here. So if I had a page which extends from a
base page and adds the header footer, then added the content which is
basically two column, in order to use a menu on the left to change some of
the content on the right I could use a combination of Ajax to swap the
content.

Thanks

David



On 1 April 2014 08:04, Martin Grigorov  wrote:

> Hi,
>
>
> On Mon, Mar 31, 2014 at 1:53 PM, David Beer 
> wrote:
>
> > Hi All
> >
> > I am in the process of building a user account page, which will have a
> menu
> > on the left, and the related content on the right.
> >
> > I would like the content on the right to be swapped depending on the
> > selection on the left. As in the content on the right might well be
> > generated by panels or fragments and then added to the page and the
> > previous unrelated removed.
> >
> > Is it better to have all the code added to the html and then hide certain
> > components and then re-enable them on selection and disable them or is it
> > better to use a panels and a page hierarchy and to pass information
> between
> > panels and parent page.
> >
>
> In my experience I have preferred the second approach - a mix of pages and
> panels.
> If you want to replace the right part with Ajax then you need to replace
> panels.
> If Ajax is not required then you can show a sub page that inherits the base
> layout from a main page and has something custom in the right part.
>
>
> >
> > Any thoughts and examples are always appreciated.
> >
> > Thanks
> >
> > David
> >
>


Re: JBoss Forge Plugin

2014-04-01 Thread David Beer
Hi Martin

Thanks for this interesting. JBoss Forge is gaining quite some interest and
rapid development. Especially Forge 2.x https://forge.jboss.org/ a new
website is on the way and is being developed more info on github
https://github.com/forge. The JBoss Forge project is a little bit like
Spring Roo, but much more powerful and goes beyond the initial project
creation stage and allows a lot more.

Forge can be used with a range of Java and other web technologies and
integrates nicely. Lots of different plugins for different frameworks.

I can see JBoss Forge being quite popular, very useful for wicket and
adding component and pages quickly and easily.

Thanks

David


On 1 April 2014 08:54, Martin Grigorov  wrote:

> Forgot to give you a reference -
> https://www.npmjs.org/package/generator-scalatra
> Scalatra is also Servlet based framework like Wicket. It is written in
> Scala.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Tue, Apr 1, 2014 at 9:34 AM, Martin Grigorov  >wrote:
>
> > Hi,
> >
> > Maybe I am not following the right forums but I think JBoss Forge didn't
> > gain much attention.
> > I think doing a Yeoman generator for the same tasks + providing setup
> > (Grunt/Gulp/Brocolli) for generating JS (from
> > CoffeeScript/Dart/TypeScript/...) and CSS (from LESS/SCSS/Stylus/...),
> > minification (by using UglifyJS), bundle generation (usemin/useref/...),
> > CSS optimization (with UNCSS), etc. would be much cooler.
> >
> > All this would require writing JavaScript instead of Java but the Node.js
> > ecosystem for this kind of tasks is much better than what is available in
> > Java.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Fri, Mar 28, 2014 at 1:20 PM, David Beer  >wrote:
> >
> >> Hi All
> >>
> >> I am thinking of creating a JBoss Forge Plugin for wicket. The idea
> being
> >> that it would help create a  base project with the Filter set the Home
> >> Page
> >> and a Base Page to work from. It would also provide the ability to
> create
> >> a
> >> new Page which would include creating Java source and HTML, the same
> would
> >> also be done for creating a panel and other commonly used parts.
> >>
> >> What do people think? Any suggestions on Features.
> >>
> >> Thanks
> >>
> >> David
> >>
> >
> >
>


Re: Netbeans and "Compile On Save"

2014-04-01 Thread David Beer
Hi All

I did some further research on this and it very much depends on the
container, and the way that NetBeans IDE interacts with it or deploys the
resulting application. If you search for Compile On Save NetBeans IDE you
will get various hits and results. Some saying it works great for tomcat
and Glassfish but not JBoss containers. I have this working great with
tomcat but not JBoss Containers or wildfly. The problem is that this
NetBeans specific technology and uses the availble connector for deploying
to web container all of them are different.

Thanks

David


On 1 April 2014 08:08, Martin Grigorov  wrote:

> Hi,
>
> Do you experience the same problem with 6.13 ?
> It may be some configuration issue with the way Netbeans deploys the app in
> your preferred web container (Glassfish ?!).
> But it is also possible that Wicket regressed somehow and keeps references
> to classes/class loaders and thus the (un)deployment process cannot do its
> job.
>
>  Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 27, 2014 at 5:05 PM, Brad Grier  >wrote:
>
> > I used to be able to make code changes in Netbeans, save and test the
> > results
> > immediately. For some time now, this "compile on save" functionality no
> > longer works unless I first log out of my web app. It seems the session
> is
> > invalid after the intermediate compile. I'm getting a
> NoClassDefFoundError
> > for the current page  (ultimately originating out of
> > DefaultPageFactory.newPage line 65 in wicket 6.14).
> >
> > I've ignored the problem for awhile now but I'd like to get it resolved.
> If
> > I forget to sign out after save, I have to restart the entire application
> > to
> > continue. Has anyone seen this and found a workaround? I'm using
> Netbeans 8
> > but the problem also existed in 7.4.
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Netbeans-and-Compile-On-Save-tp4665159.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: JBoss Forge Plugin

2014-04-01 Thread Martin Grigorov
Forgot to give you a reference -
https://www.npmjs.org/package/generator-scalatra
Scalatra is also Servlet based framework like Wicket. It is written in
Scala.

Martin Grigorov
Wicket Training and Consulting


On Tue, Apr 1, 2014 at 9:34 AM, Martin Grigorov wrote:

> Hi,
>
> Maybe I am not following the right forums but I think JBoss Forge didn't
> gain much attention.
> I think doing a Yeoman generator for the same tasks + providing setup
> (Grunt/Gulp/Brocolli) for generating JS (from
> CoffeeScript/Dart/TypeScript/...) and CSS (from LESS/SCSS/Stylus/...),
> minification (by using UglifyJS), bundle generation (usemin/useref/...),
> CSS optimization (with UNCSS), etc. would be much cooler.
>
> All this would require writing JavaScript instead of Java but the Node.js
> ecosystem for this kind of tasks is much better than what is available in
> Java.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Fri, Mar 28, 2014 at 1:20 PM, David Beer wrote:
>
>> Hi All
>>
>> I am thinking of creating a JBoss Forge Plugin for wicket. The idea being
>> that it would help create a  base project with the Filter set the Home
>> Page
>> and a Base Page to work from. It would also provide the ability to create
>> a
>> new Page which would include creating Java source and HTML, the same would
>> also be done for creating a panel and other commonly used parts.
>>
>> What do people think? Any suggestions on Features.
>>
>> Thanks
>>
>> David
>>
>
>


Re: EqualInputValidator for PasswortTextfield

2014-04-01 Thread Daniela L
Hi Alasdair,
thanks a lot for your quick response. I  changed the "EqualInputValidator"
key to the same text as EqualPasswordInputValidator:
EqualInputValidator =${label0} und ${label1} m\u00fcssen gleich sein.
I propose to change the default text in the wicket
Application_de.properties file in the same way or change the word "Label"
to "Feld" because outside the IT world the word Label is not really known
in germany.
Best regards,
Daniela


2014-03-31 12:42 GMT+02:00 Collinson, Alasdair <
alasdair.collin...@senacor.com>:

> Hi!
>
> In such a case the error with the key "EqualInputValidator" is used; the
> Application_de.properties-file defines the message you see. You could
> override that in your local properties file. However you probably want to
> use the EqualPasswordInputValidator anyway which is a specialisation of the
> EqualInputValidator which should produce the output you want. Here you
> could of course override the value as well if you like.
>
> Best regards,
> Alasdair
>
> -Ursprüngliche Nachricht-
> Von: Daniela L [mailto:danigal...@gmail.com]
> Gesendet: Montag, 31. März 2014 12:24
> An: users@wicket.apache.org
> Betreff: EqualInputValidator for PasswortTextfield
>
> Hi,
> I have two PasswordTextfields with a EqualInputValidator using wicket
> 6.12.0 the 2 fields have Labels with localized Names. When the user leaves
> one PasswordTextfield empty the feedback message presented is containing
> the word Label like this:
> '' vom Label E-Mail und 'testemailaddr...@test.com' vom Label E-Mail
> Adresse wiederholen müssen gleich sein.
> How can I avoid the word Label in the feedback message?
> Best regards
> Daniela
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: JBoss Forge Plugin

2014-04-01 Thread Martin Grigorov
Hi,

Maybe I am not following the right forums but I think JBoss Forge didn't
gain much attention.
I think doing a Yeoman generator for the same tasks + providing setup
(Grunt/Gulp/Brocolli) for generating JS (from
CoffeeScript/Dart/TypeScript/...) and CSS (from LESS/SCSS/Stylus/...),
minification (by using UglifyJS), bundle generation (usemin/useref/...),
CSS optimization (with UNCSS), etc. would be much cooler.

All this would require writing JavaScript instead of Java but the Node.js
ecosystem for this kind of tasks is much better than what is available in
Java.

Martin Grigorov
Wicket Training and Consulting


On Fri, Mar 28, 2014 at 1:20 PM, David Beer  wrote:

> Hi All
>
> I am thinking of creating a JBoss Forge Plugin for wicket. The idea being
> that it would help create a  base project with the Filter set the Home Page
> and a Base Page to work from. It would also provide the ability to create a
> new Page which would include creating Java source and HTML, the same would
> also be done for creating a panel and other commonly used parts.
>
> What do people think? Any suggestions on Features.
>
> Thanks
>
> David
>


Re: Variables Assigned to ModalWindow are not the same as in the Callback

2014-04-01 Thread Martin Grigorov
Hi,

Yes.
I believe the problem comes because the entity is deserialized.
The easier way to check is to remove java.io.Serializable from its
interfaces. Wicket will tell you when it tries to serialize it with a
detailed exception message.

Martin Grigorov
Wicket Training and Consulting


On Thu, Mar 27, 2014 at 5:58 PM, arnzel  wrote:

> Hi
>
> In a Component i create a ModalWindow. To this ModalWindow i add a
> Component/Page. In the Constructor i put an reference to an entity. when i
> use this reference in the callback of the Modal Window i got two diferent
> references. Can this be, bcause the reference in the modal window was
> serialized ? How can i find out why the serialization did not work ?
>
>
>
> AjaxLink ajaxButton = new AjaxLink(){
>
> onClick(AjaxRequestTarget target){
> MyEntity myEntity = ...;
> showModal(target,entity);
> }
>
> }
>
> public void showModal(AjaxRequestTarget target,MyEntity myEntity){
> WindowClosedCallback windowClosedCallback = new WindowClosedCallback()
> {
> private static final long serialVersionUID = 1L;
>
> public void onClose(AjaxRequestTarget target) {
>
> // this reference
> myEntity.save();
>
> MyEnclosingPanel.this.refresh(target);
>
> setResponsePage(MyEnclosingPanel.this.getPage());
>
> }
> };
>
>
> Panel panel = new MyPanel(myEntity)
>
> ModalWindow modalWindow = new ModalWindow();
> modalWindow.setWindowClosedCallback(windowClosedCallback);
> modalWindow.show(panel, target);
> }
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Variables-Assigned-to-ModalWindow-are-not-the-same-as-in-the-Callback-tp4665161.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: Netbeans and "Compile On Save"

2014-04-01 Thread Martin Grigorov
Hi,

Do you experience the same problem with 6.13 ?
It may be some configuration issue with the way Netbeans deploys the app in
your preferred web container (Glassfish ?!).
But it is also possible that Wicket regressed somehow and keeps references
to classes/class loaders and thus the (un)deployment process cannot do its
job.

 Martin Grigorov
Wicket Training and Consulting


On Thu, Mar 27, 2014 at 5:05 PM, Brad Grier wrote:

> I used to be able to make code changes in Netbeans, save and test the
> results
> immediately. For some time now, this "compile on save" functionality no
> longer works unless I first log out of my web app. It seems the session is
> invalid after the intermediate compile. I'm getting a NoClassDefFoundError
> for the current page  (ultimately originating out of
> DefaultPageFactory.newPage line 65 in wicket 6.14).
>
> I've ignored the problem for awhile now but I'd like to get it resolved. If
> I forget to sign out after save, I have to restart the entire application
> to
> continue. Has anyone seen this and found a workaround? I'm using Netbeans 8
> but the problem also existed in 7.4.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Netbeans-and-Compile-On-Save-tp4665159.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: Adding/Remiving Panels

2014-04-01 Thread Martin Grigorov
Hi,


On Mon, Mar 31, 2014 at 1:53 PM, David Beer  wrote:

> Hi All
>
> I am in the process of building a user account page, which will have a menu
> on the left, and the related content on the right.
>
> I would like the content on the right to be swapped depending on the
> selection on the left. As in the content on the right might well be
> generated by panels or fragments and then added to the page and the
> previous unrelated removed.
>
> Is it better to have all the code added to the html and then hide certain
> components and then re-enable them on selection and disable them or is it
> better to use a panels and a page hierarchy and to pass information between
> panels and parent page.
>

In my experience I have preferred the second approach - a mix of pages and
panels.
If you want to replace the right part with Ajax then you need to replace
panels.
If Ajax is not required then you can show a sub page that inherits the base
layout from a main page and has something custom in the right part.


>
> Any thoughts and examples are always appreciated.
>
> Thanks
>
> David
>