Re: EmailAddressValidator triggers on empty input field

2011-02-18 Thread hrbaer
Any idea? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EmailAddressValidator-triggers-on-empty-input-field-tp3299464p3312795.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: EmailAddressValidator triggers on empty input field

2011-02-18 Thread hrbaer
Finally I got it. If you add setType( String.class ) to your TextField the EmailAddressValidator triggers on null/empty input. If you leave this everything works fine... I thought it would be useful to declare my inputfields as a certain type. Obviously it's not needed but also the outcome of

Re: how to access component values within a dynamic table?

2011-02-21 Thread hrbaer
No idea how to deal with multiple panels within a listView (because of the name clash)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-access-component-values-within-a-dynamic-table-tp3310939p3316929.html Sent from the Users forum mailing list archive at

Re: how to access component values within a dynamic table?

2011-02-22 Thread hrbaer
Sorry, but I just don't get this :( I'm totally missing the forest through the trees...so I tried to reduce the example to the very minimum. Maybe someone can provide me an idea how to deal with my issue?! This is the scenario: I have a form with two rows. Within each row there is one label and

Re: how to access component values within a dynamic table?

2011-02-22 Thread hrbaer
Hi Hans, this is working!! Thanks you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-access-component-values-within-a-dynamic-table-tp3310939p3319092.html Sent from the Users forum mailing list archive at Nabble.com.

(...) is managed by a different Object Manager

2011-02-24 Thread hrbaer
Hi all, I try to store data within my database using JDO but I get the following exception: ...is managed by a different Object Manager. So I tried a view constallations but I didn't find the solution yet. First of all here are my POJOs - // KATALOG

Re: (...) is managed by a different Object Manager

2011-02-25 Thread hrbaer
Meanwhile I tested a bit more and you really can reduce the example of eager/lazy-loading. After using Google a while I tried to add @Persistent( defaultFetchGroup=true ) private ArrayListQuestion fragen; to my POJO. But now I get the following (console) output: WARN [DataNucleus.MetaData] -

Re: (...) is managed by a different Object Manager

2011-02-25 Thread hrbaer
Out of the frying pan into the fire :( Given is a table with all KATALOG entities. Within each row there is a count of the size of QUESTION, f.eg.: Row 1: name of the KATALOG - katalog.getFragen().size() - CREATE_EINTRAG-Link Row 2: name of the KATALOG - katalog.getFragen().size() -

update label using (Ajax)Link

2011-03-15 Thread hrbaer
Hi, I try to update a component (vorname within my example) once the user click on a link within a table. (In fact it doesn't matter if it is an ajax link or a normal one. My example is using an ajax link.) This im my JAVA code: public class Test extends WebPage {

Re: update label using (Ajax)Link

2011-03-15 Thread hrbaer
Thanks Ernesto for you quick reply. Unfortunatelly this is not working :( But if I debug within the onClick method of my AjaxLink item.getModelObject() returns null? Any idea why this happens? Or is this just a problem with my debugging configuration of eclipse? I would expect I can access

Re: update label using (Ajax)Link

2011-03-15 Thread hrbaer
Sorry @ all, I just forgot to restart the server so the approach with the AbstractReadOnlyModel is working! Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/update-label-using-Ajax-Link-tp3356575p3356773.html Sent from the Users forum mailing list archive at

dynamic navigation/side content depending on login status

2011-03-17 Thread hrbaer
Hi, how can I display navigation points and page content depending on the login status? I have a login box and only after a sucessfully authentication I want to 1.) extend the existing navigation 2.) make content visible on (already) public sites Seems like I have to create my own Session

Re: dynamic navigation/side content depending on login status

2011-03-17 Thread hrbaer
Meanwhile I already implemented the part if there is a visible link to a page that requires authentication the user get's redirected to the login page. But how can I make links invisible if a user is not logged in? -- View this message in context:

Re: dynamic navigation/side content depending on login status

2011-03-17 Thread hrbaer
Thanks...that was really an easy one :) But while playing around with this topic I do have a few other questions: Within the wicket signin example I have to provide a method called newSession( Request request, Response response ) within my TestApplication.java file. So if I call /test/* and this

Re: dynamic navigation/side content depending on login status

2011-03-18 Thread hrbaer
Thanks Michael for the hint. I already adapt that example and this is working - at least in parts. Those are my two pain points at the moment: 1.) share one session 2.) seperate Login page Regarding 1.): I've implemented two Links. Both do need a authentication so both xxxApplication.java

Re: dynamic navigation/side content depending on login status

2011-03-21 Thread hrbaer
Hi all, any idea how do share sessions? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dynamic-navigation-side-content-depending-on-login-status-tp3384641p3394125.html Sent from the Users forum mailing list archive at Nabble.com.

Re: dynamic navigation/side content depending on login status

2011-03-21 Thread hrbaer
Isammoc OFF wrote: I don't really understand why you have two xxxApplication.java for only two links. In my mind, I would make only one xxxApplication.java for both pages. If both links would be on the same page - yes. But if you have several pages you need a separate xxxApplication.java

Re: dynamic navigation/side content depending on login status

2011-03-24 Thread hrbaer
Hi, thanks for your feedback, Isammoc and Zilvinas. But I don't get your point. In fact I would assume I already did everything like the example you provided but still I get a login page even if the user already authenticated successfully before. @ Isammoc: You told me that I don't have to

Re: dynamic navigation/side content depending on login status

2011-03-24 Thread hrbaer
Maybe I missed one interesting detail. While searching the web for some examples/explanaitions for my problem I found a few threads where the author of the thread had to explain why he uses multiple xxxApplication files. For some reasons a lot of users are of the opinion that you should only use

Re: dynamic navigation/side content depending on login status

2011-03-24 Thread hrbaer
Ok, I modified my application so there is only one xxxApplication file. And as already assumed now it is working. Because I'm still playing around with this framework it's not really a pain for me. I will refactor my application and that's it. But there are still two open question I have in

Re: hide empty table

2011-03-27 Thread hrbaer
Thanks shetc. Meanwhile I did some additional research and beside add a WebMarkupContainer which I can make (in-/)visible there is another option: wicket:enclosure. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/hide-empty-table-tp3409461p3409570.html Sent from the

make link invisible via onclick

2011-03-28 Thread hrbaer
Hi, is there a possibility to make a link invisible itself via onClick? At the moment I get an error The local variable link may not have been initialized. code: -- final Link link = new Link( test ) { @Override public void

RE: make link invisible via onclick

2011-03-28 Thread hrbaer
this works like a charm - thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/make-link-itself-invisible-via-onclick-tp3411327p3411347.html Sent from the Users forum mailing list archive at Nabble.com.

issue with input type=reset

2011-03-28 Thread hrbaer
Hi all, let's assume there is a form with an input field an two buttons: submit and reset. Within the java code I add a new form component (extends Form) with an input field and implement the onSubmit() method. But: Is there a chance to implement some onReset() method so I can do some more stuff

Re: issue with input type=reset

2011-03-28 Thread hrbaer
Meanwhile I tried to add another submit button and just labeling that as a reset button. This is almost working but after calling the onSubmit method of my reset button the onSubmit method of my form get's triggered as well?! This is my button: - Button

RE: issue with input type=reset

2011-03-28 Thread hrbaer
thanks - that's it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/issue-with-input-type-reset-tp3411379p3411433.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

flexible authentication

2011-03-29 Thread hrbaer
Hi all, my web application is using the wicket authentication approach (AuthenticatedWebSession) and all my secure java files are marked with @AuthorizeInstantiation(ADMIN) So once I added this annotation there is no chance to bypass the authentication. But what if there is the need to be

Re: flexible authentication

2011-03-29 Thread hrbaer
it's not about to bash the framework. Because I'm still a beginner I just want to make sure that this approach is not working for me. It seems like the demo implementation just allows two options: - need authentication - don't need authentication but there is no option to make it more flexible.

problems with spring integration

2011-03-29 Thread hrbaer
Hi all, I did some research within the forum but I didn't find the answer yet :( I tried to integrate Spring (using https://cwiki.apache.org/WICKET/spring.html#Spring-ApplicationObjectApproach Spring + WICKET ) but I still have an error. I added the following lines to my web.xml: wicket

Re: flexible authentication

2011-03-29 Thread hrbaer
Thanks for all the good hints ... let me check the links/advices. Hopefully there is no need to ask any further questions :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/flexible-authentication-tp3415413p3416489.html Sent from the Users forum mailing list archive

Re: problems with spring integration

2011-03-30 Thread hrbaer
I added wicket-spring-annot to my project, removed all of the previous spring code and just added getComponentInstantiationListeners().add(new SpringComponentInjector(this)); to the init method of my xxxApplication class. But now I'm getting an error: The type

Re: problems with spring integration

2011-03-30 Thread hrbaer
No, I don't. So adding wicket-ioc.jar to my project solves this problem. But because of the fact I don't have a default constructor I get an exception. My constructor looks like public Test( PageParameters params ){ ... }. -- View this message in context:

Re: problems with spring integration

2011-03-30 Thread hrbaer
Just to summarize my status: I've added addComponentInstantiationListener( new SpringComponentInjector(this) ); to the init method of my xxxApplication file, I added to my applicationContext and withing my WebPage I have this code: public class Test extends WebPage { @SpringBean

Re: problems with spring integration

2011-04-01 Thread hrbaer
This works like a charm - thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-spring-integration-tp3416484p3421269.html Sent from the Users forum mailing list archive at Nabble.com.

changing image on locale change

2011-04-01 Thread hrbaer
Hi all, is there any chance to change an image once the user choose another language? With a text it's very easy because the only thing you have to provide are the different language property files. Let's assume there is a dropdown with different languages. I've added DropDownChoices and

Re: changing image on locale change

2011-04-01 Thread hrbaer
Thanks Igor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/changing-image-on-locale-change-tp3421291p3421371.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

link within modal window should reload parent page

2011-04-08 Thread hrbaer
Hi all, at the moment I have a modal window with a link in it. If I click the link (it's a BookmarkablePageLink) the new page get's loaded within the modal window. But what I want to achieve is that the modal window get's closed and the parent page get's redirected to the new page. How can I

Re: link within modal window should reload parent page

2011-04-09 Thread hrbaer
I tried to add a AjaxLink but I didn't get it so far. This is my code: public class ModalPage extends WebPage{ public ModalPage( final ModalWindow modalwindow ){ add( new AjaxLink( link ) { public void onClick( final AjaxRequestTarget target ) {

Re: link within modal window should reload parent page

2011-04-10 Thread hrbaer
Ok, thanks. This is working. But if a user clicks on the link within the modal page a confirmation dialog pops up. http://apache-wicket.1842946.n4.nabble.com/file/n3439885/dialog.jpg (It's about a warning message for the user if he want's to leave the page (because of the redirect)). Would

Re: link within modal window should reload parent page

2011-04-11 Thread hrbaer
Thanks for the hint but the behaviour is still present. I added your code to both ModalPage and parent Webpage but the popup still appears. Any idea? -- View this message in context:

Re: link within modal window should reload parent page

2011-04-11 Thread hrbaer
It does! I didn't expect that the modalwindow.close( target ); triggers the WindowClosedCallback function. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3443067.html Sent from the Users forum

Re: link within modal window should reload parent page

2011-04-11 Thread hrbaer
ok - I just realised that the WindowCloseCallback method gets triggered if a user clicks on the link but also if he wants to close the popup. That's not that good :( Is there a chance to differ whether the user uses the link or just click on the x button to close the popup? -- View this message

Re: link within modal window should reload parent page

2011-04-13 Thread hrbaer
-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3447299.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: link within modal window should reload parent page

2011-04-13 Thread hrbaer
MZemeck wrote: The only thing that comes to mind is storing a flag in session. That is the approach I already implemented but with the same discomfiture you mentioned before. Meanwhile I tried to add the embedded javascript but without any success yet. I added the code both to my