Re: Get return value of ajax event in Wicket 6.9.1

2013-11-13 Thread Daniela L
Hi, I have another problem regarding this question. Now every time the page is left the message Do you want to leave the page is popping up, but when the user correctly fills the form on the page and hits the submit button he should be redirected to another page showing the result of his input. I

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-13 Thread Martin Grigorov
Hi, #onSubmit() would be called after the user agrees to leave the page. You can set some JS variable/flag when the submit button is used and depending on this flag do not ask for confirmation in onbeforerender. On Wed, Nov 13, 2013 at 10:02 AM, Daniela L danigal...@gmail.com wrote: Hi, I

Re: quick CRUD application

2013-11-13 Thread Marco Di Sabatino Di Diodoro
Hi, take a look at Apache Syncope. Apache Syncope is an Open Source system for managing digital identities. The console is implemented with Apache Wicket. BR Marco Il giorno 12/nov/2013, alle ore 23:39, saty satya...@gmail.com ha scritto: Ok, thanks -- View this message in

Re: Wicket localization in stateful pages

2013-11-13 Thread Martin Grigorov
So I tried to pass it using page parameters. Also, I have updated dynamic label model to LoadableDetachableModel. This is an option for you. See http://www.wicket-library.com/wicket-examples-6.0.x/mappers/en_US There are three links (EN, DE and BG). The demo uses LocaleFirstMapper to set the

Re: quick CRUD application

2013-11-13 Thread Ernesto Reinaldo Barreiro
There was something like http://wicketopia.sourceforge.net/ I don not know if it still actively maintained. I personally did some experiments creating Wicket auto-CRUDs on project https://code.google.com/p/antilia/ Which is now defunct. This is not very difficult to achieve using panel and

Wicket 6 reset Form fields

2013-11-13 Thread Vadimus
Hi everyone. I use Wicket 6.11.0. I designed my own component BaseDialog. BaseDialog.java /public class BaseDialog extends Panel { private WebMarkupContainer dialogDiv; private AbstractDefaultAjaxBehavior beforeOpen; private IndicatingAjaxButton sbt; private

Re: Wicket 6 reset Form fields

2013-11-13 Thread Martin Grigorov
Hi, Next time please use any paste bin service with syntax highlighting. It is much easier to read the code than here. On Wed, Nov 13, 2013 at 10:54 AM, Vadimus sottomar...@gmail.com wrote: Hi everyone. I use Wicket 6.11.0. I designed my own component BaseDialog. BaseDialog.java

Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
Hi, Need your help ... in MyPage .java { //bla bla ... private class FormulaireRechercheAgent extends FormAgent{ public FormulaireRechercheAgent(String id) { super(id,new

How to set the page title?

2013-11-13 Thread mike.hua
Dear All: Can I change the page title(*set .. between head tag*) in java code? What shoul I do? Thanks a lot!Mike -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372.html Sent from the Users forum mailing list archive at

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Sven Meier
You're adding the label after the submit only @Override public void onSubmit(AjaxRequestTarget target, Form? form) { formulaireRechercheAgent.add(labelAgentMailpro); } Sven On 11/13/2013 11:23 AM, Selom wrote: Hi, Need

Re: How to set the page title?

2013-11-13 Thread Ernesto Reinaldo Barreiro
head title wicket:id=title/title and public abstract class BasePage extends WebPage { private static final long serialVersionUID = 1L; @SuppressWarnings(serial) public BasePage(final PageParameters parameters) { super(parameters); add( new Label(title, getTitle() ) ); ? On Wed, Nov 13,

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Sven Meier
You'll have to add the label beforehand, either keep it invisible before submit or add a placeholder instead. Sven On 11/13/2013 11:48 AM, Selom wrote: Hello, Thanks you for yours reply. Of course, I want to show my label if only if the form formulaireRechercheAgent is submitted

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
Hello, Thanks you for yours reply. Of course, I want to show my label if only if the form formulaireRechercheAgent is submitted successfully. I believe the form is not called yet , since I can not reach the html page. Sincerly yours. -- View this message in context:

Re: How to set the page title?

2013-11-13 Thread mike.hua
Dear Ernesto: *My page extends a parent container.*When I code that,the Exception happened. Sorry, I've forgotten to say that. Mike The error message is Last cause: The component(s) below failed to render. Possible reasons could be that: 1) you have added a component in code but forgot to

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
You are right, adding add(labelAgentMailpro) beforesolved the problem. Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Another-same-probleme-with-wicket-enclosure-tag-tp4662371p4662378.html Sent from the Users forum mailing list

Re: How to set the page title?

2013-11-13 Thread Ernesto Reinaldo Barreiro
Add it to the parent container... make getTitle() abstract and override it on extensions? On Wed, Nov 13, 2013 at 12:07 PM, mike.hua hz...@sohu.com wrote: Dear Ernesto: *My page extends a parent container.*When I code that,the Exception happened. Sorry, I've forgotten to say that. Mike

Re: How to set the page title?

2013-11-13 Thread mike.hua
Here is the related codes: Child page html: ?xml version=1.0 encoding=utf-8 ? !DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org;

Re: How to set the page title?

2013-11-13 Thread mike.hua
*make getTitle() abstract and override it on extensions*?? Sorry, In 6.x API, I can't find *getTitle()* in WebPage's functions. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4662381.html Sent from the Users forum mailing list

Re: How to set the page title?

2013-11-13 Thread Ernesto Reinaldo Barreiro
See my previous e-mail. Add *title wicket:id=pageTitleLogin Page/title* Too Template (assuming it is a page). Also Label pageTitle = new Label(pageTitle, getTitle()); this.add(pageTitle); To template where get Title is abstract or can ve overriden by super On Wed, Nov 13, 2013 at

Re: How to set the page title?

2013-11-13 Thread mike.hua
OK, the problem is resolved with your opinion. Thank you for your help! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-page-title-tp4662372p4662383.html Sent from the Users forum mailing list archive at Nabble.com.

Re: How to set the page title?

2013-11-13 Thread Ernesto Reinaldo Barreiro
getTitle is your own method on Template proctected abstract IModelString getTitle() then on super classes you provide an implementation. On Wed, Nov 13, 2013 at 12:23 PM, mike.hua hz...@sohu.com wrote: *make getTitle() abstract and override it on extensions*?? Sorry, In 6.x API, I can't

weld conversation propagation page

2013-11-13 Thread brazz
Hi, after spending a hard time debugging i found this problem: i have to pages: FirstPage.class SecondPage.class on FirstPage.class i create a new conversation with conversation.begin(); and on FirstPage.class i have a link: *setResponsePage(SecondPage.class);* this link results in a new

Re: wicket library example, but with tabs

2013-11-13 Thread eostermueller
That fixed it, thx. Now, all the tab code is loading the book detail in the TabPanel1 which is great, but tabs are not part of the html. I updated the github code but need to noodle on this more tomorrow. --Erik -- View this message in context:

Rendering a component into a String

2013-11-13 Thread Martin Dietze
In a legacy project I've inherited I've got a piece of code that no longer works since the project was upgraded from Wicket 1.4 to Wicket 6. It's about rendering a component (a Wicket panel) into a string in order to return it wrapped into a webservice reply. The webservice is based on Wicket,

Re: Rendering a component into a String

2013-11-13 Thread Martin Grigorov
Hi, See the source of http://www.wicket-library.com/wicket-examples-6.0.x/mailtemplate/?2 example On Wed, Nov 13, 2013 at 3:04 PM, Martin Dietze d...@fh-wedel.de wrote: In a legacy project I've inherited I've got a piece of code that no longer works since the project was upgraded from Wicket

Re: Rendering a component into a String

2013-11-13 Thread Martin Dietze
On Wed, November 13, 2013, Martin Grigorov wrote: See the source of http://www.wicket-library.com/wicket-examples-6.0.x/mailtemplate/?2 example In short: instanciate my component, put it into a ComponentRenderer, be happy. That was astonishingly simple :) Cheers, M'bert -- --- /

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-13 Thread Daniela L
Hi, I am sorry I don't get it. How and when to set the JS variable? Like this: mySubmitButton.add(new AjaxEventBehavior(onclick) { @Override protected void onEvent(AjaxRequestTarget target) { AjaxRequestAttributes ajaxRequestAttributes = new

Re: Another same probleme with wicket:enclosure tag

2013-11-13 Thread Selom
Now I replace the label by a form like this private FormulaireAgent formulaireAgent = new FormulaireAgent(formulaireAgent, new Agent()){ @Override protected void onConfigure(){ if (agentBySesame==null){

Iframe problem with jQuery 1.10.1 in IE

2013-11-13 Thread Heikki Uotinen
Hi, if iframe content (Wicket page) is loaded from external domain loading of jQuery 1.10.1 (and Wicket) fails due to a bug http://bugs.jquery.com/ticket/13980 This has been fixed in jQuery 1.10.2 that we are now using by setting JQueryReference and it seems to

Re: weld conversation propagation page

2013-11-13 Thread Igor Vaynberg
this is the desired behavior. see conversation propagation settings. by default conversations are only propagated to non-bookmarkable pages. -igor On Wed, Nov 13, 2013 at 4:36 AM, brazz alexander.li...@man.eu wrote: Hi, after spending a hard time debugging i found this problem: i have to

Re: Get return value of ajax event in Wicket 6.9.1

2013-11-13 Thread Martin Grigorov
Hi, mySubmitButton.add(AttributeAppender.append(onclick, window.dontAsk = true; return true;)) response.render(new OnDomReadyHeaderItem(window.onbeforeunload = function (e) { + if (!window.dontAsk) { + + var message = 'Your confirmation message goes

Re: Iframe problem with jQuery 1.10.1 in IE

2013-11-13 Thread Martin Grigorov
Hi, Wicket 6.13.0 will come with jQuery 1.10.2 Thanks for informing us about this problem! On Wed, Nov 13, 2013 at 8:36 PM, Heikki Uotinen heikki.uoti...@syncrontech.com wrote: Hi, if iframe content (Wicket page) is loaded from external domain loading of jQuery 1.10.1 (and Wicket) fails