Re: Redirect to the HomePage on newSession

2013-02-15 Thread vov
Hi Stefan, It's a good solution but I have external authentication system and only thing that I know - is creation of the new session:( -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-to-the-HomePage-on-newSession-tp4656365p4656384.html Sent from the

Redirect to the HomePage on newSession

2013-02-14 Thread vov
Is it possible to redirect user to the HomePage when new session is created? @Override public Session newSession(Request request, Response response) { //RequestCycle.get().setResponsePage(getHomePage()); //or //RequestCycle.get().replaceAllRequestHandlers(new RenderPageRequestHandler(new

Re: Redirect to the HomePage on newSession

2013-02-14 Thread vov
Hi, unfortunately it does not help. Use session listener roughly the same with using newSession method. I found one solution but looks like workaround without a real needed. 1) throw CustomExceprion on the onCreated method of the ISessionListener. 2) Replace DefaultExceptionMapperProvider with

Use DataTable in the ModalWindow

2012-12-19 Thread vov
Hi All, When I create modal window with the Panel as content and this panel contains DataTable(eg.AjaxFallbackDefaultDataTable or custom implementation) and this table contains FilteredToolbar(with ChoiceFilters) - I get Are you sure you want to leave the page? everytime when I use those filters.

wicketGlobalFailureHandler in wicket 6

2012-12-14 Thread vov
Hi all, Does anybody know how to use wicketGlobalFailureHandler from Wicket 1.4 in the Wicket 6 I need a function which will be executed onFailure, but how to register it now? -- View this message in context:

Re: wicketGlobalFailureHandler in wicket 6

2012-12-14 Thread vov
Thanks for the reply. Unfortunately I have not idea how to configure it on the application level(eg. execute script on all 'failure' in the application) It was possible in wicket 1.4 - BasePage.java: add(new Behavior() { @Override public void renderHead(Component component,

ModalWindow and Serialization

2012-03-19 Thread vov
Hi All, I have a lot of work with ModalWindows in my project and want to use objects which created on the base page and are changed in the modal windows. I found that ModalWindow was changed in wicket 1.5 and want to ask about solution. Please see short example: // Base Page public class MyPage

Re: ModalWindow and Serialization

2012-03-19 Thread vov
Thanks for your answer, of course session is not so simple as local variable - but it one of the solution Maybe in next releases of wicket someone will come up with a simpler solution -- View this message in context:

Re: ModalWindow and Serialization

2012-03-19 Thread vov
1) to as simple asgetSession().getAttribute(key) - getSession().getAttribute(key) It is not in the topic but: What it different between your proposal and getApplication().getSessionStore().setAttribute(requst, key, value); Maybe it's stupid question - how to remove object from session if you

Re: ModalWindow and Serialization

2012-03-19 Thread vov
As I understand - the correct way is change usage PageCreator to setContent:) Thank you very much for all your answers!!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ModalWindow-and-Serialization-tp4484547p4484858.html Sent from the Users forum mailing list

Re: Problem with setWindowClosedCallback

2012-03-07 Thread vov
Looks like serialization problem. Does anybody know how it works? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-setWindowClosedCallback-tp3823361p4452909.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Problem with setWindowClosedCallback

2012-03-06 Thread vov
Does this problem still not documented? Does anyone know a solution to this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-with-setWindowClosedCallback-tp3823361p4452543.html Sent from the Users forum mailing list archive at Nabble.com.

JQWicket BlockUIBehavior does not work after target.addComponent()

2012-02-09 Thread vov
Hi All, Simple example: - final BlockUIBehavior blockBehavior = new BlockUIBehavior(); final FormVoid form = new FormVoid(form); AjaxButton ajaxButton = new AjaxButton(block) { @Override

Problem with setWindowClosedCallback

2011-09-19 Thread vov
Hi All, in wicket 1.4 i can make: AjaxButton searchButton = new AjaxButton(search)//{1} { @Override protected void onSubmit(AjaxRequestTarget target, Form? ajaxForm) { window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { @Override

Re: Problem with setWindowClosedCallback

2011-09-19 Thread vov
Hi, Thanks for your reply please see short example: public class WindowClosedCallbackTest extends WebPage { public WindowClosedCallbackTest() { final ModalWindow window = new ModalWindow(window); window.setPageCreator(new ModalWindow.PageCreator() { @Override public

Modal Window does not open second time

2011-09-19 Thread vov
Hi All, when I tried to migrate to wicket 1.5 I found strange things. One of them is - modal window does not show second time. In sample below - click to show - on opened modal window click to close - second click to show does not make effect. //Base page: public ShowCloseTestPage() { final

Re: IE call wicket twice from JS

2011-05-14 Thread vov
Thanks for you reply. Unfortunately jQuery did't help. My new code: String script = $('#corruptedPackagesDiv').scroll(function(){ // + var var1 = $('#corruptedPackagesDiv').scrollTop(); // + var var2 = $('#corruptedPackagesDiv').height(); // + var var3 = $('#

Re: Nothing happens on AJAX call after session timeout

2011-05-13 Thread vov
Thanks for your reply Yes, I tried to use the filters but to no avail. http://apache-wicket.1842946.n4.nabble.com/file/n3519427/request.png request.png this is data from 'Tamper Data' plugin for FireFox(action clicking to link after session expired). May be it can help. -- View this message

IE call wicket twice from JS

2011-05-13 Thread vov
Hi All, I have a table and JS on the page - when table scrolling in the very down JS function call wicket and label which displayed on the page incremented. All good with FireFox and all good in case with IE if you will pull scrolling down by your mouse. But if you will use your mouse wheel -

Re: Nothing happens on AJAX call after session timeout

2011-05-13 Thread vov
I found the solutions but I do not know that it fully safely. variable wicketGlobalFailureHandler is used in wicket-ajax.js for registration of failure handlers. I added this code to my BaseWebPage class which superclass for all my pages: add(new AbstractBehavior() { @Override

Re: Nothing happens on AJAX call after session timeout

2011-05-13 Thread vov
And new question occur - how can I close all modal windows before redirecting to HomePage. Or how to redirect to Home Page my main window but not a modal? -- View this message in context:

Re: Nothing happens on AJAX call after session timeout

2011-05-11 Thread vov
Can anyone give an example? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3513980.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Nothing happens on AJAX call after session timeout

2011-05-11 Thread vov
Sorry for my may be stupid question but - how can I print the header? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3514154.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Nothing happens on AJAX call after session timeout

2011-05-10 Thread vov
JSP used only for Tomcat FORM authentication(http://onjava.com/onjava/2002/06/12/form.html) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3512818.html Sent from the Users forum mailing list archive at

Re: Nothing happens on AJAX call after session timeout

2011-05-06 Thread vov
http://apache-wicket.1842946.n4.nabble.com/file/n3502992/Test.rar Test.rar Please, see attached. It's test eclipse project for this case. It's based on the Tomcat FORM authentication(imho this is a cause for AJAX strange behavior) Make sure that for testing you will need append user in your

Re: Nothing happens on AJAX call after session timeout

2011-05-05 Thread vov
Do not work with Wicket 1.4.17. Can anybody post comment to last comment to http://apache-wicket.1842946.n4.nabble.com/Session-timeout-AJAX-enabled-controls-td1893184.html ? -- View this message in context:

Nothing happens on AJAX call after session timeout

2011-04-29 Thread vov
This issue same with http://apache-wicket.1842946.n4.nabble.com/Session-timeout-AJAX-enabled-controls-td1893184.html but there is no response to the last comment After session expire nothing happend for user if he click to AJAX link - but PageExpiredException needs. In 'wicket ajax debug' window

Re: Set FormComponent Type and EmailValidator

2011-03-18 Thread vov
Does anyone know how to solve this problem? Or is it a bug in wicket? Note: I use wicket 1.4.14 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-FormComponent-Type-and-EmailValidator-tp3356588p3387040.html Sent from the Users forum mailing list archive at

Re: Set FormComponent Type and EmailValidator

2011-03-16 Thread vov
I have a warning in my log if I use new TextField(text, new Model(): WARN [org.apache.wicket.markup.html.form.AbstractTextComponent] Couldn't resolve model type of

Set FormComponent Type and EmailValidator

2011-03-15 Thread vov
After submitting a form: add(new Form(form) // .add(new TextField(text, new Model(), String.class) // .add(EmailAddressValidator.getInstance( with empty field the fallowing error occur:('' is not a valid email address.) Without setting type for TextField - all fine --

Re: Perfomance of IDataProvider

2011-02-28 Thread vov
You can simply use something like this in your realization of DataProvider: @Override public IModelEntity model(Entity entity) { return new ModelEntity(entity); } -- View this message in context:

Link inside MootipPanel(wicket-minis)

2011-02-16 Thread vov
Hi All, The question about wicket-minis. How to append Link or AjaxLink inside MootipPanel? When I try to insert this I get the result in my tooltip as 'IBehaviorListener:0:-1',function() { }.bind..' I have not the problems with using BookmarkablePageLink or strict link inside HTML, but

AVI in Wicket

2011-01-27 Thread vov
Hi All, Can anybody say how to play video on wicket page? (Using Adobe Media Player or something else) Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AVI-in-Wicket-tp3241694p3241694.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AVI in Wicket

2011-01-27 Thread vov
Thank a lot!! I found wicket-html5 and hope that it help. Thanks!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AVI-in-Wicket-tp3241694p3241770.html Sent from the Users forum mailing list archive at Nabble.com.

Re: modal window IE8 parent page scrolbar

2011-01-21 Thread vov
Do anybody know solutions for this issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modal-window-IE8-parent-page-scrolbar-tp3056439p3229703.html Sent from the Users forum mailing list archive at Nabble.com.

Re: problem with Dropdown List

2010-10-27 Thread vov
Hello, Add your DDC to form and use SubmitLink instead Link. HTH form wicket:id=form select wicket:id=docType / [click me] /form FormVoid form = new FormVoid(form); add(form); form.add(getDocTypeDropDown(docType)); form.add(executeLink(execute)); private SubmitLink

Re: Re-Rendering Table after submitting results in error

2010-10-15 Thread vov
Hi, try to change your onUpdate method: protected void onUpdate(AjaxRequestTarget target) { TablePanel newTp = new TablePanel(tablePanel,columns,new PersonBeanProvider(searchFilter),12); tp.replaceWith(newTp); tp = newTp; target.addComponent(tp); -- View this

Re: DropDownChoice loses Selection in Disabled Panels

2010-10-12 Thread vov
Can you write your code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2991210.html Sent from the Users forum mailing list archive at Nabble.com.

Re: displaying error messages on respective panel

2010-10-08 Thread vov
new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(form) { @Override public boolean accept(FeedbackMessage message) { return {Your code}; } }); -- View this message in context:

Re: Forms ajax doesn't update components models

2010-10-06 Thread vov
Sorry, but I'm not see the problems. Try to debug your isVisible method after submitting the form and find the place in which this code return false. I think that isVisibleInHierarchy() for your RequiredTextFieldString(patente) will have a problem -- View this message in context:

Re: Forms ajax doesn't update components models

2010-10-05 Thread vov
Funny:) Your code is correct and in my tests all data was setting to model:) In your sample code you forgot to include feedback panel, but it was added to html. May be in your tests you forget to input some required data - in this case your model never updates but you also never been in your

Re: Forms ajax doesn't update components models

2010-10-04 Thread vov
Your code looks correct. You said 'when you click Registrar button, data from auto_info_panel don't appear in DispositivoDTO model'. I tried to create AutoInfoPanel like this: public AutoInfoPanel(String id, IModelDispositivoDTO model) { super(id); add(new TextFieldString(lastName,

Re: Forms ajax doesn't update components models

2010-10-01 Thread vov
How it currently must work? Example: Your open the page - change your Combo to 'AUTO' - input data to AutoInfoPanel and press 'Registrar' OR Your open the page - change your Combo to 'AUTO' - input data to AutoInfoPanel - change your Combo to 'PERSONA' - input data to PersonaInfoPanel and press

Re: Problems with AjaxFallbackDefaultDataTable in an AjaxLazyLoadPanel

2010-08-05 Thread vov
Try to move your table to separate Panel. This will work public Component getLazyLoadComponent(String id) { return new YourPanel(id); } public YourPanel(String id) { super(id); ListIColumnUser columns = new ArrayListIColumnUser(); columns.add(new

Re: any good ideas about how to add a confirm check before leaving a page?

2010-08-05 Thread vov
Hi, Do not forget to use google before posting the question :) http://wicketbyexample.com/wicket-ajax-confirmation-modal-window/ -- View this message in context:

Re: Model Is Not being Refreshed

2010-08-03 Thread vov
Create AjaxButton for refreshing your data: new AjaxButton(refresh) { onSubmit(AjaxRequestTarget target) { onNew(); targer.addComponent(detailsPanel); } } -- View this message in context:

Re: How to Update contents of a child component?

2010-07-30 Thread vov
Do not forgot about setOutputMarkupPlaceholderTag(true) for your components that initially as invisible. And use AJAX...:) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Update-contents-of-a-child-component-tp2307756p2307883.html Sent from the Wicket - User

FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread vov
Why did FileUpload.getClientFileName() return file name in 1.4.8 but it return all path to file in 1.4.9?? E.g. My_File_Name.txt in 1.4.8 and D:\MyFolder\My_File_Name.txt in 1.4.9 -- View this message in context:

Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread vov
Yes, but how to fix this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306431.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: FileUpload.getClientFileName() 1.4.9 vs 1.4.8

2010-07-29 Thread vov
Thanks for reply! It's help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306490.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: How to set the value of a Drop Down Choice

2010-07-28 Thread vov
Hi There are mistake in your code: programList.setDefaultModelObject(stringObjectModel); ...may be you want to call programList.setDefaultModel(stringObjectModel); -- View this message in context:

Re: AjaxButton OnSubmit Validation Overridden

2010-07-22 Thread vov
Hi, Read http://www.wicketframework.org/apidocs/wicket/markup/html/form/Form.html about nested forms. Also your can put your ListMultipleChoice and buttons to separate Panel -- View this message in context:

Re: TextArea StringValidator and DateValidator

2010-07-22 Thread vov
Create XML file that named same with your class and put ot it entry key=studyDescriptionTxtArea.StringValidator.rangeYOUR TEXT HERE is not between ${minimum} and ${maximum} characters long/entry instead studyDescriptionTxtArea must be wicket:id of your TextField -- View this message in

Re: TextFilteredPropertyColumn feature?

2010-07-15 Thread vov
Hi, idudko! Can your attach some code for example? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextFilteredPropertyColumn-feature-tp2289687p2289730.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: TextFilteredPropertyColumn feature?

2010-07-15 Thread vov
Your page look fine, but you do not attach code for 'MyDataProvider' -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextFilteredPropertyColumn-feature-tp2289687p2289754.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: TextFilteredPropertyColumn feature?

2010-07-15 Thread vov
I thing that you can have a problem with your FilterCriterionInterface: public String getComparedValue() { return filter.get(Name).toString(); } ...it can throw NullPointerExcaption if you did not input name filter Try to debug your dao.getResultSetFullSize(fltr) --

Re: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-15 Thread vov
see org.apache.wicket.model.LoadableDetachableModel -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Re-Wicket-s-Form-Model-using-hibernate-entity-or-value-objects-Design-tp2289854p2289870.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-12 Thread vov
Thanks. It working. But the button visibility will never be changed and button will be visible in this case even if 'visibleFlag' changed to false. This mean that is your change 'visibleFlag' to false than method onSubmit() will be call -- View this message in context:

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-09 Thread vov
It can't work. Please, see org.apache.wicket.Component.internalBeforeRender() method. Method onBeforeRendering() colling only in case when visibility of component is true. In our example boolean variable 'available' false by default. This mean that component never be rendered. Can someone

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-08 Thread vov
Hi! It is not a best solutions but you can try it ajaxButton.add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1))); -- View this message in context:

Re: org.apache.wicket.WicketRuntimeException: Submit Button ... is not visible

2010-07-08 Thread vov
But question is still open:) Look to example public static boolean visibleFlag = true; public VisibilityButtonTest() { FormVoid form = new FormVoid(form); add(form); AjaxButton ajaxButton = new AjaxButton(button1) { @Override public boolean isVisible() {

Re: Wicket Form problem

2010-07-07 Thread vov
Hi, is gramma mistace in your html form wicked:id=loginForm. Use wickeT:id Bu more closely in the future:) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Form-problem-tp2280712p2280730.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: dropdownchoice onchange event called before propertymodel updates

2010-07-02 Thread vov
Can you post more code from your example? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/dropdownchoice-onchange-event-called-before-propertymodel-updates-tp2275897p2276047.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Refreshing DataView fails if it was initially empty

2010-07-02 Thread vov
Use setOutputMarkupPlaceholderTag(true) for your component -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-DataView-fails-if-it-was-initially-empty-tp2273568p2276085.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: component .... not found on page for a Link colun in the Datatable after self refresh using the AjaxSelfUpdatingTimerBehavior

2010-07-02 Thread vov
Try to use AjaxLink(iconLink) instead your Link(iconLink) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-tp1892913p2276332.html Sent from the Wicket - User mailing

Re: Mulitple Forms in ListView

2010-06-30 Thread vov
Not a best solution but it works:) final FeedbackPanel feedback = new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(form) { @Override public boolean accept(FeedbackMessage message) { return

Re: Mulitple Forms in ListView

2010-06-30 Thread vov
Not a best solution but it works:) final FeedbackPanel feedback = new FeedbackPanel(feedback, new ContainerFeedbackMessageFilter(form) { @Override public boolean accept(FeedbackMessage message) { return

Re: wicket:panel to datatable

2010-06-29 Thread vov
columns.add(new AbstractColumnTest(new Model()) { @Override public void populateItem(ItemICellPopulatorTest cellItem, String componentId, IModelTest rowModel) { cellItem.add(new TestPanel(componentId)); } }); -- View this message in context:

Re: How do you create a toolbar of buttons for a datatabe?

2010-06-28 Thread vov
Look to DefaultDataTable addBottomToolbar(new NoRecordsToolbar(this)); You can append custom Bottom Toolbar to your table instead NoRecordsToolbar: public class MyBottomToolbar extends AbstractToolbar { public MyBottomToolbar(DataTable? table) { super(table); RepeatingView headers =

Re: inmethod custom PagingToolbar with dropdownchoice for setting rows not working correctly

2010-06-25 Thread vov
Try to use: yourDDC.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(yourGridComponent); //like MyGrid.this } }); -- View this message in context:

Re: Submitting a component value on a ajax call of a different component

2010-06-23 Thread vov
http://www.wicketstuff.org/wicket14/ajax/choice -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Submitting-a-component-value-on-a-ajax-call-of-a-different-component-tp2264940p2265189.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: how to extend wicket components from base page

2010-06-22 Thread vov
Try to change your Base Constructor to: public ContainerTemplate(String containerClass, String containerStyle) { this.containerClass = containerClass; this.containerStyle = containerStyle; // Your code } ...and in your nested page call super(your_container_class, your_container_style) Also you

AJAX Button does not submit form if RequiredTextField is empty

2010-06-18 Thread vov
FormVoid form = new FormVoid(form); form.add(new RequiredTextFieldString(filed)); final TextFieldString textField; form.add(textField = new TextFieldString(filed2, new ModelString())); form.add(new AjaxButton(button) { @Override protected void

RE: AJAX Button does not submit form if RequiredTextField is empty

2010-06-18 Thread vov
Thanks for replay Stefan. Nestet form is a good idea for my example. But am so sorry that simplified it. In some cases there is not easy to make markup using this way. For example I want to use in my onSubmit method model value from 2 or 3 different TextFields or other FormComponents. And all of