Re: Painting a ListView in Ajax via a transparent container fails

2010-11-29 Thread Pedro Santos
When an transparent resolved component is rendered, it is able to correctly resolve any wicket:id in the inner html object because it delegates the Component#get to its parent, and it is able to know who are its children components traversing the html at at the markupStream object. So this special

Re: component not visible exception

2010-11-26 Thread Pedro Santos
Look for any setVisible(false) or isVisible implementation changing your form visibility in an undesirable way. Basically you user in clicking in an not visible in the hierarchy submitting component. On Fri, Nov 26, 2010 at 2:12 PM, Douglas Ferguson doug...@douglasferguson.us wrote: I have an

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
On Wed, Nov 10, 2010 at 12:03 PM, Henrique quiqu...@gmail.com wrote: The business logic is a simple access to a DAO to save what the user has entered into the form, like so: public void onSubmit() { Item item = (Item)getModelObject();

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
If you don't solve your problem, do you mind to fill an ticket on JIRA with an quickstart demonstrating the problem? On Wed, Nov 10, 2010 at 5:17 PM, Henrique quiqu...@gmail.com wrote: Yes, even in what would be the second submit, with all the right input entered. It's as if the form just

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
There are good information at http://wicket.apache.org/contribute/patch.html On Wed, Nov 10, 2010 at 5:49 PM, Henrique quiqu...@gmail.com wrote: No problem...I'll keep for a little while and if it persists I can fill a ticket. What's the URL for wicket's jira?

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
I mean: http://wicket.apache.org/help/ On Wed, Nov 10, 2010 at 2:55 PM, Pedro Santos pedros...@gmail.com wrote: There are good information at http://wicket.apache.org/contribute/patch.html On Wed, Nov 10, 2010 at 5:49 PM, Henrique quiqu...@gmail.com wrote: No problem...I'll keep

Re: Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread Pedro Santos
Use an dinamic model, ex: Label currentPage = new Label(currentPage, new AbstractReadOnlyModelString() { public String getObject() { return pagination.getPageable().getCurrentPage(); } }); On Tue, Nov 9, 2010 at 2:04 PM, Vishal Popat

Re: Cannot get current page from AjaxPagingNavigator

2010-11-09 Thread Pedro Santos
I think you need to implement the AjaxPagingNavigator#onAjaxEvent method and add the currentPage component on target. On Tue, Nov 9, 2010 at 4:20 PM, vp143 vishal.po...@cipriati.co.uk wrote: Thank you both for your responses- I totally forgot about it being dynamic. However, I have tried

Re: How to hide ListView rows the right way?

2010-11-08 Thread Pedro Santos
On Mon, Nov 8, 2010 at 1:34 PM, MattyDE ufer.mar...@gmail.com wrote: Hi Folks, i abuse the ListView Component (2 of them nested) to iterate over a bunch of type-save objects to build my own GridView Component, which works very well. But now, i want to spare out the showing of some rows

Re: AjaxSubmitLink problem

2010-10-27 Thread Pedro Santos
use the formCoponent.getRawInput() On Wed, Oct 27, 2010 at 12:24 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, I am using AjaxSubmitLink and I have setDefaultFormProcessing(false) to avoid form validation. The only problem is that none of the form values get submitted. If I need to

Re: How to combine JSF and Wicket components on the same page

2010-10-27 Thread Pedro Santos
I'm using frames to that, but I'm not a big fan of this solution. On Wed, Oct 27, 2010 at 9:43 PM, gouthamrv goutha...@yahoo.com wrote: Is there way I can combine a JSF component and a Wicket component on the same web page? I have a menu bar component created in Wicket and a form component

Re: problem with Dropdown List

2010-10-26 Thread Pedro Santos
Hi Mehmet, I think you need change this line: @Override protected void setTDokar(TDokar dokart) { dokar = *docType*; -- DocSearchPage.this.*docType *=* *dokart; }

Re: problem with Dropdown List

2010-10-26 Thread Pedro Santos
- Von: Pedro Santos [mailto:pedros...@gmail.com] Gesendet: Dienstag, 26. Oktober 2010 12:37 An: users@wicket.apache.org Betreff: Re: problem with Dropdown List Hi Mehmet, I think you need change this line: @Override protected void setTDokar

Re: Fwd: Nested CompoundModel

2010-10-25 Thread Pedro Santos
If you have n MyPanelData on a page, you will be fine with the RepeatingView. Otherwise use the Listview to generate the correct number of items with MyPanel each render. On Mon, Oct 25, 2010 at 8:19 PM, Jan Ferko julyl...@gmail.com wrote: well, I have all fields which have to be create

Re: Remove ListView item in ModalWindow

2010-10-18 Thread Pedro Santos
Remove the element at the list view model list rather then at the list view components list. About the 'leave page' message, see if at your form onsubmit method there is some redirect rule implemented. On Mon, Oct 18, 2010 at 12:23 PM, armandoxxx armando@dropchop.comwrote: Hey ppl Need a

Re: Remove ListView item in ModalWindow

2010-10-18 Thread Pedro Santos
Are you using an static model at the list view? See if your objects on it correctly implement the hash and equals method... I can't wonder why at the response your browser is trying to leave the page :S On Mon, Oct 18, 2010 at 1:07 PM, armandoxxx armando@dropchop.comwrote: Hey ... 10x

Re: Ajax component's constructor target parameter

2010-10-18 Thread Pedro Santos
If you are using an AjaxFallbackButton then you need to check for NPE On Mon, Oct 18, 2010 at 6:05 PM, meduolis meduol...@gmail.com wrote: Hi, do we need to check if target is null? Is it possible to get null pointer exception here? Example onSubmit(AjaxRequestTarget target, Form? form)

Re: WicketStuff JMX

2010-09-10 Thread Pedro Santos
Hi Gerolf, sorry to take so much time to reply, but I would like to merge our components. I think it will be interest to do that now when Wicket Stuff devs are updating their projects to maintain it up to date with Wicket 1.5 version. I'm planning bring the wicketstuff-jmx-panel to the core Wicket

Re: Alert on ajax activity

2010-09-06 Thread Pedro Santos
You can use javascript call handlers, ex: Wicket.Ajax.registerPreCallHandler( function(){ window.onbeforeunload = function() { return There is some activity going on, please wait until the activity indicator disappears; }; } );

Re: StringResourceModel - On the Fly

2010-09-06 Thread Pedro Santos
Won't be reasonable use ResourceBundle directly in your case? Like: ResourceBundle.getBundle( *.properties, locale).getString(msgResult) Otherwise StringResourceModel just would delegate your call to this api... On Mon, Sep 6, 2010 at 10:00 AM, msantos mpssan...@gmail.com wrote: Hello there.

Re: ajax links produce too long javascript

2010-09-01 Thread Pedro Santos
https://cwiki.apache.org/WICKET/wicket-15-ajax.html On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk koval...@gmail.com wrote: Consider this javascript generated by AjaxFallbackLink: wicketShow('overlapping-div');var wcall=wicketAjaxGet('../../?x=Gusbl7hNSWOo5OPifLRHlQ',function() {

Re: ajax links produce too long javascript

2010-09-01 Thread Pedro Santos
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax+rewriting On Wed, Sep 1, 2010 at 12:34 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: that should be renamed to wicket-later, not happening in 1.5 -igor On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos pedros...@gmail.com wrote

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Pedro Santos
Use javascript to do that, for example: var target = document.getElementById('somecomponentid'); target.style.position = 'relative'; var close = document.createElement(span); close.innerHTML = 'x'; close.style.position = 'absolute'; close.style.top = 0; close.style.right = 0; close.onclick =

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Pedro Santos
actually, if you re-render the component after hide it, it will to be visible... perhaps you can add some callback on the close handler that updates the visibility property on the wicket component. On Tue, Aug 31, 2010 at 11:08 AM, Pedro Santos pedros...@gmail.com wrote: Use javascript to do

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Pedro Santos
, 2010 at 8:13 AM, Pedro Santos pedros...@gmail.com wrote: actually, if you re-render the component after hide it, it will to be visible... perhaps you can add some callback on the close handler that updates the visibility property on the wicket component. On Tue, Aug 31, 2010 at 11:08 AM, Pedro

Re: exception when last tab of AjaxTabbedPanel is removed

2010-08-27 Thread Pedro Santos
I think it is fixed: https://issues.apache.org/jira/browse/WICKET-2828 On Thu, Aug 26, 2010 at 5:50 PM, Clément Tamisier clement.tamis...@gmail.com wrote: Hi, I am using wicket 1.4.6 and AjaxTabbedPanel class. I add and remove tabs dynamically. I have an exception when i remove the last

Re: Object AutoComplete -Clear Input

2010-08-18 Thread Pedro Santos
IModel#setObject On Wed, Aug 18, 2010 at 11:33 AM, Alis ajcalve...@yahoo.es wrote: Hello! I need help. How do i clear input the user in the autocomplete? With what method? Thank you! -- View this message in context:

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

2010-08-05 Thread Pedro Santos
Hi Joe, take a look at the ModalWindow component, it require the described confirmation to exit the current page. As I remember, this is implemented with javascript on the modal.js On Thu, Aug 5, 2010 at 10:36 AM, Joe Hudson joe.hud...@clear2pay.comwrote: Hi, I'm wondering if anyone has had to

Re: FormComponentPanel Behavior

2010-07-29 Thread Pedro Santos
Hi Bernard, did you call setRequired method on your FormComponentPanel input components? like: formComponentPanel.fieldOne.setRequired(true) On Thu, Jul 29, 2010 at 4:33 PM, b...@actrix.gen.nz wrote: Hi, org.apache.wicket.markup.html.form.FormComponentPanel aims to act to the outside world

Re: DropDownChoice for opening a new Window

2010-07-29 Thread Pedro Santos
Yes, use javascript to reach that functionality. For instance, you can add an AjaxFormComponentUpdatingBehavior for the onchange event of your DropDownChoice. At the onUpdate method implementation, you can append the needed javascript to open your new window. On Thu, Jul 29, 2010 at 4:58 PM,

Re: DropDownChoice for opening a new Window

2010-07-29 Thread Pedro Santos
...@visionet.de wrote: Dear Pedro, thank you! Do you have any code snipplet or just a function name for google? Stefan -Ursprüngliche Nachricht- Von: Pedro Santos [mailto:pedros...@gmail.com] Gesendet: Donnerstag, 29. Juli 2010 22:21 An: users@wicket.apache.org Betreff: Re: DropDownChoice

Re: Additional attributes to ajax events

2010-07-21 Thread Pedro Santos
You can override the getAjaxCallDecorator method from AjaxFormComponentUpdatingBehavior and return an IAjaxCallDecorator that append your custom javascript On Wed, Jul 21, 2010 at 10:26 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With the onblur ajax calls, is it possible to

Re: Additional attributes to ajax events

2010-07-21 Thread Pedro Santos
on what you said, it looks like you are suggesting adding the javascript method in the Java code. -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Wednesday, July 21, 2010 2:15 PM To: users@wicket.apache.org Subject: Re: Additional attributes to ajax events You

Re: wicket hell

2010-07-20 Thread Pedro Santos
Hi Brown, I think it is unfair say that Wicket present an unexpected behavior with the markup, because every functionality are well documented. I saw some situations where some one complain that the id tag attribute value was changed. But the Component documentation is clear saying that this

Re: How to prevent rendering of unauthorized components?

2010-07-19 Thread Pedro Santos
Hi Martin, I'm suspect answering this question, because I like the current design that treat authorization restriction as an exception. You can override the logRuntimeException method on your app RequestCycle and implement rules to hide the authorization exception from the log. About to have an

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

2010-07-16 Thread Pedro Santos
Hi Nivedan, Jeremy write IModelfoo as a private variable and James Your form can edit two different objects. It will edit whatever you bind your fields to If you have an form with some fields for some bean, and other fields for other beans, you can do something like: class panel { private

Re: How to prevent rendering of unauthorized components?

2010-07-16 Thread Pedro Santos
Hi Martin, the AuthorizationException handle mechanism that redirect response to the AccessDeniedPage is implemented at AbstractRequestCycleProcessor response method. You can set the onunauthorizedaccess page at the accessDeniedPage property on the ApplicationSettings. I don't understand what do

Re: Preventing double-click of AjaxButtons in ModalWindow

2010-07-15 Thread Pedro Santos
You can use an IAjaxCallDecorator to disable buttons and re-enable them with the ajax request completes On Wed, Jul 14, 2010 at 7:53 PM, Alex Grant alex.gr...@unimarket.comwrote: I have ModalWindows whose content contains OK AjaxButtons, which, assuming validation passes, will do some

Re: Wicket wicket-contrib-tinymce populate Styles drop-down

2010-07-09 Thread Pedro Santos
wicket-contrib-tinymce. Would you care to explain little more about integration? Peter From: Pedro Santos pedros...@gmail.com To: users@wicket.apache.org Sent: Thu, July 8, 2010 5:09:08 PM Subject: Re: Wicket wicket-contrib-tinymce populate Styles drop-down

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

2010-07-08 Thread Pedro Santos
someFlag is an static variable? 2010/7/8 Conny Kühne conny.kue...@gmail.com I have an AjaxButton with @Override public boolean isVisible() { return someFlag; } In a race condition, if user B sets someFlag to false, and then user A clicks the button A gets the following exception

Re: Configure Wicket to detect some special HTML characters?

2010-07-06 Thread Pedro Santos
Hi David, there are a lot of methods that escape the characters, for instance you can use org.apache.wicket.util.string.Strings.escapeMarkup method. But they make sense when you are writing an xml, like the page returned to browser. On Tue, Jul 6, 2010 at 9:08 AM, David Chang

Re: Model for simple UI state? (Apart from 'regular' Model)

2010-07-05 Thread Pedro Santos
UI state as properties in the component should be to fine, see if using session relative urls the problem remains On Mon, Jul 5, 2010 at 4:10 PM, Anh 7za...@gmail.com wrote: Hi, I'm having trouble on how to best implement something simple: I'm frequently finding the need to have 2 Models

Re: Animating the opening of a modal window

2010-07-05 Thread Pedro Santos
Hi Chris, if you simple want to add an javascript effect to an browser component, there is no need to use an wicket integration with an javascript frameworks. About the browser compatibility, use only the component api provided by the javascript framework, there is no reason to have browser aware

Re: signinpanel and base64

2010-07-01 Thread Pedro Santos
one way around is to set the form as not persistent and don't present the rememberMe checkbox On Thu, Jul 1, 2010 at 7:35 AM, Mathias math...@afjochnick.net wrote: Hi, i have a problem with the wicket signinpanel/form and non-ascii (Swedish) characters. Whenever a user enters a username

Re: signinpanel and base64

2010-07-01 Thread Pedro Santos
If you have non ascii characters on your cookie, it can to be problematic on tomcat considering that their understanding is that this is not allowed by RFC 2109. You can require help to customize the cookie header parser on the tomcat user list. http://www.ietf.org/rfc/rfc2109.txt NAME=VALUE

Re: signinpanel and base64

2010-07-01 Thread Pedro Santos
your custon IValuePersister you will need to override the Form getValuePersister method. As SignInPanel is using the SignInForm, that is an final class, you may want to copy and past the SignInPanel code to do that. On Thu, Jul 1, 2010 at 9:31 AM, Pedro Santos pedros...@gmail.com wrote: If you

Re: javascript message after ajax request

2010-07-01 Thread Pedro Santos
you can use the appendJavascript method from the AjaxRequestTarget like: target.appendJavascript (alert('some message')); On Thu, Jul 1, 2010 at 1:21 PM, Maris Orbidans maris.orbid...@ingg.comwrote: Wicket experts, I have a form with Ajax submit button. Upon completing ajax request I want

Re: ajaxPagingNavigation, Dataview, CheckGroup and check. Persist items checked

2010-06-23 Thread Pedro Santos
Basically make sure that the state selected is on the component model before the user change the page. Maybe you need to put an AjaxFormComponentUpdatingBehavior or AjaxFormChoiceComponentUpdatingBehavior at your item checked On Tue, Jun 22, 2010 at 2:02 PM, Fernando Wermus

Re: How to implement tabs without using panels?

2010-06-14 Thread Pedro Santos
Hi Alec, you can create an wrapper panel, that receive as parameter an component, in your case an fragment, to use in your tabbed panel. Actually I think that will to be more natural if the ITab interface had an getTab method, that return an Component object instead of the getPanel one, since

Re: How to implement tabs without using panels?

2010-06-14 Thread Pedro Santos
I am working with a web designer who delivers a single HTML page which should display a panel with tabs. Simply use javascript With arbitrary number of, loaded from the database at runtime Is preferable to implement an component at server side with the tabs assemble and presentation rules. On

Re: How to implement tabs without using panels?

2010-06-14 Thread Pedro Santos
at runtime because they don't have HTML ids and hence cannot be reference via AJAX. Is that right? Thanks On Mon, Jun 14, 2010 at 10:11 AM, Pedro Santos pedros...@gmail.com wrote: I am working with a web designer who delivers a single HTML page which should display a panel with tabs

Re: How to implement tabs without using panels?

2010-06-14 Thread Pedro Santos
wicket:container. I don't think it is possible to swap container components at runtime because they don't have HTML ids and hence cannot be reference via AJAX. Is that right? Thanks On Mon, Jun 14, 2010 at 10:11 AM, Pedro Santos pedros...@gmail.com wrote: I am working with a web designer who

Re: How to do a multiple page form?

2010-06-04 Thread Pedro Santos
Do you searching for an wizard implementation? http://www.wicket-library.com/wicket-examples/wizard/ On Fri, Jun 4, 2010 at 11:49 PM, David Chang david_q_zh...@yahoo.comwrote: Hi, I would like to do a multiple page form. For example, I have a two-page form. Both pages have a few fields that

Re: Question about usage of PageMap

2010-06-04 Thread Pedro Santos
I believe that passing the page where user click Add as parameter to the wizard is an simple solution to has an reference to set on the cancel response. On Fri, Jun 4, 2010 at 3:55 AM, Swanthe Lindgren swanthe.lindg...@megasol.se wrote: Hello all. I our application we have a lot of search and

Re: Show/hide form components best practice

2010-06-01 Thread Pedro Santos
2 or 3 since there is no relevant state on the server side you want to consider to implement the component visibility rule. On Tue, Jun 1, 2010 at 7:37 AM, Iain Reddick iain.redd...@beatsystems.comwrote: Say I have a form with a check box that, when checked, shows some other field (i.e. it

Re: Wicket Cobertura problem

2010-05-21 Thread Pedro Santos
http://www.jeremythomerson.com/blog/2008/11/wicket-quickstart-tutorial/ On Fri, May 21, 2010 at 4:16 PM, David Alves dal...@student.dei.uc.ptwrote: Hum... quickstart? What's that? David On May 20, 2010, at 6:07 PM, nino martinez wael wrote: Damn, what about making a quickstart, and we

Re: Empty List Default Message

2010-05-17 Thread Pedro Santos
Hi, just an idea: class EmptyMessage extends Label{ EmptyMessage(Model listModel, String message){ super(new AbstractReadyOnlyModel(){ getObject(){ listModel.getObject().size()==0?message:null; } }); } } On Mon, May 17, 2010 at 8:06 AM, Ayodeji Aladejebi

Re: parent window

2010-05-17 Thread Pedro Santos
If I understand, you need to use the value of the text field on the page on your modal panel. Pass it as parameter to the modal panel, as constructor parameter for instance. add( new AjaxButton(){ onSubmit(requestTarget){ (...) modal.setContent(new ModalPanel(,

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-19 Thread Pedro Santos
Hi Dan On Mon, Apr 19, 2010 at 2:04 PM, Dan Haywood dkhayw...@gmail.com wrote: Another form-related question. I can see how to install a validator on a Form - Form#add(IFormValidator) - but it seems that AbstractFormValidator, the adapter, always requires a specific FormComponent to be

Re: how to make a BookmarkablePageLink enabled when its parent component is disabled?

2010-04-19 Thread Pedro Santos
Hi, you can override the isEnable method and implement your rule, like: new BookmarkablePageLink { boolean isEnabled() { return form.getState() == allowedState; } } or you can add the link higher in the component hierarchy, don't as an form child. On Mon, Apr 19, 2010

Re: Another beginner localization question

2010-04-19 Thread Pedro Santos
Your ChoiceRenderer can implement IHeaderContributor and add your javascript to IHeaderResponse object, since when the user change the value on the selection component, the page will to be re-rendered On Mon, Apr 19, 2010 at 4:54 PM, Alexandros Karypidis akary...@yahoo.grwrote: Hi, I'm using

Re: Catch Wicket.Error with FireBug

2010-03-30 Thread Pedro Santos
WicketAjaxDebug.original = WicketAjaxDebug.logError; WicketAjaxDebug.logError = function(msg){WicketAjaxDebug.original(msg);console.log(msg);}; On Tue, Mar 30, 2010 at 7:11 AM, Martin U ufer.mar...@googlemail.comwrote: Hi Folks, have everyone of you any experience in catching the wicket-ajax

Re: feedbackpanel for component using ComponentFeedbackMessageFilter doesn't appear in Listview

2010-03-24 Thread Pedro Santos
The ListView itens are rebuild every render. So the original field that you made reference from the feedback filter, is longer presented by the ListView. Take a look at http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ and the ListView.setReuseItems javadoc On Wed, Mar 24,

Re: Static files with Wicket and OSGi

2010-03-24 Thread Pedro Santos
Put then in the top-level directory of a web module. http://java.sun.com/javaee/5/docs/tutorial/doc/bnadx.html#bnadz A web module has a specific structure. The top-level directory of a web module is the *document root* of the application. The document root is where JSP pages, *client-side*

Re: Choose One Text Without Property File?

2010-03-24 Thread Pedro Santos
You can add to your application an Localizer that return the user designated verbiage for the string key null On Wed, Mar 24, 2010 at 12:51 PM, Matthias Keller matthias.kel...@ergon.chwrote: Hi Brad You'd probably have to subclass DropDownChoice and override the method getDefaultChoice() to

Re: throw new PageExpiredException(Request cannot be processed. The target page does not exist anymore.);

2010-03-23 Thread Pedro Santos
Hi, give you page an constructor that your application IPageFactory know how to create. For instance, use the PageParameters. If your request cycle don't find your page in the session page map, and don't know how to create it, you got the mentioned exception. On Tue, Mar 23, 2010 at 3:44 AM,

Re: Handling Composite Data Table Efficiently

2010-03-22 Thread Pedro Santos
Take a look at: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/table-parent/table/src/main/java/org/wicketstuff/table/cell/renders/LenientTextField.java hope it give you some ideas. On Sat, Mar 20, 2010 at 1:41 PM, rock stone tempche...@gmail.com wrote: Hi, I have

Re: Deleting items form ListView (ajaxed)

2010-03-22 Thread Pedro Santos
Hi, take a look at: http://markmail.org/search/?q=list%3Aorg.apache.wicket.users+from%3A%22Pedro+Santos%22+view#query:list%3Aorg.apache.wicket.users%20from%3A%22Pedro%20Santos%22%20view+page:1+mid:442snjhrd3mjyjl2+state:results about how to remove the border, you can implement the designated

Re: DropDownChoice and Null value

2010-03-22 Thread Pedro Santos
About the first question: http://www.jarvana.com/jarvana/view/org/apache/wicket/wicket/1.4.0/wicket-1.4.0-javadoc.jar!/org/apache/wicket/markup/html/form/AbstractSingleSelectChoice.html#setNullValid%28boolean%29 On Mon, Mar 22, 2010 at 7:06 AM, Ivan Dudko ivan.du...@gmail.com wrote: Hello guys!

Re: Remove error message for a specific component

2010-03-15 Thread Pedro Santos
You can use FormComponent#valid() method to make them valid, an still present the validations messages. On Mon, Mar 15, 2010 at 2:59 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, How can I remove error message for a specific component? In the Component.class, it checks that the

Re: onkeyup ajax call with the key pressed

2010-03-12 Thread Pedro Santos
Yes, for example you can add an ajax behaviour to you page, and using his callback url mount an script like wicketAjaxGet(callbackUrl + 'key=' + event.keyCode); on your div onkeyup event. On Fri, Mar 12, 2010 at 6:55 AM, Istvan Soos istvan.s...@gmail.com wrote: Hi, Is there a way to

Re: OnlyTargetActivePage param

2010-03-05 Thread Pedro Santos
One method will return an url that address the behavior, the another one will to return an script that send an ajax request to that behaviour. the usage in javascript looks like: document.location = generatedUrlReturnedByBehaviour; eval( generatedScriptGeneratedByBehaviour); On Thu, Mar 4, 2010

Re: [newbie] Wicket, Spring, Hibernate and transactions in views.

2010-03-02 Thread Pedro Santos
Consider to use OpenSessionInViewFilter http://static.springsource.org/spring/docs/1.2.9/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.html The doc: Intended for the Open Session in View pattern, i.e. to allow for lazy loading in web views despite the original

Re: Wicket DropDownChoice problem

2010-02-24 Thread Pedro Santos
You may want use setNullValid method On Wed, Feb 24, 2010 at 6:55 AM, saravana kumar shav...@gmail.com wrote: Hi, My DropDownChoice have Values like follows Choose One(default for wicket) One Two Three If i choose one,some panel disabled and enabled If i choose two,some panel

Re: Wicket Multi-Threading with access to the session

2010-02-10 Thread Pedro Santos
About share your application IStringResourceLoader objects with your thread ? On Wed, Feb 10, 2010 at 9:25 AM, Matthias Keller matthias.kel...@ergon.chwrote: Hi Ernesto Thanks for your reply. This would basically be possible but very complicated because the threads need dozens to hundreds of

Re: PropertyListView problem

2010-02-08 Thread Pedro Santos
You are calling setReuseItems method from listview. From it api: if you modify the listView model object, than you must manually call listView.removeAll() in order to rebuild the ListItems. On Mon, Feb 8, 2010 at 10:55 AM, Alexander Monakhov domin...@gmail.comwrote: Hi, friends. Could you

Re: Save a form's markup

2010-02-02 Thread Pedro Santos
If I understand, you can override getOnClickScript from Button to return an javascript that set the innerHTML property of your form component as an parameter. Maybe providing an hiding field, and setting it value with: value = document.getElementById(+myForm.getMarkupId()+).innerHTML On Tue, Feb

Re: Wicket Pattern to reduce session size

2010-01-28 Thread Pedro Santos
Then this image will to be the same for all sessions. If you don't want that object on your session, make sure at getImageData method implementation that you are always creating your chart object, and not keeping it in any instance variable. On Thu, Jan 28, 2010 at 8:28 AM, Gaetan Zoritchak

Re: Confirmation dialog

2010-01-28 Thread Pedro Santos
Similar: http://old.nabble.com/javascript-confirm---seems-to-work-fine-with-link-markup-but-not-with-button-markup-td27242553.html On Thu, Jan 28, 2010 at 5:00 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi Team lnkDelete.add(new SimpleAttributeModifier(onClick,return confirm('Are you sure

Re: Page load after an action

2010-01-27 Thread Pedro Santos
LoadableDetachableModel to avoid the call to detach() method. It does not seem that is the right way. Somebody can explain me why ? Stéphane Pedro Santos a écrit : by calling getDefaultModel inside onClick, you get an reference to the link component model. You need to detach the model on your list view

Re: Using AjaxFormSubmitBehavior

2010-01-27 Thread Pedro Santos
onError is called.); target.addComponent(contact_feedback); } }); On Tue, Jan 26, 2010 at 2:05 PM, Pedro Santos pedros...@gmail.com wrote: Even using AjaxButton? Can you send the code? On Tue, Jan 26, 2010 at 4:55 PM, Anna Simbirtsev asimbirt

Re: AjaxSelfUpdatingTimerBehavior

2010-01-26 Thread Pedro Santos
You can override getPreconditionScript method to test an counter value on document object. When you refresh the page, you got a new document. On Tue, Jan 26, 2010 at 10:05 AM, Sam Barrow s...@sambarrow.com wrote: Is there any way to make the AjaxSelfUpdatingTimerBehavior execute X number of

Re: Page load after an action

2010-01-26 Thread Pedro Santos
Call news.getDefaultModel().detach(), and look for more info about detachable models. http://cwiki.apache.org/WICKET/detachable-models.html On Tue, Jan 26, 2010 at 1:35 PM, Stéphane Jeanjean stephane.jeanj...@softeam.com wrote: Hi, I don't use Hibernate. My persistence layer uses JDBC.

Re: Page load after an action

2010-01-26 Thread Pedro Santos
missing line: call detach method just after delete your item. On Tue, Jan 26, 2010 at 1:41 PM, Pedro Santos pedros...@gmail.com wrote: Call news.getDefaultModel().detach(), and look for more info about detachable models. http://cwiki.apache.org/WICKET/detachable-models.html On Tue, Jan 26

Re: Page load after an action

2010-01-26 Thread Pedro Santos
the refresh issue getNewsDao().delete(item.getModelObject()); ourLogger.debug(News deleted); getDefaultModel().detach(); } Pedro Santos a écrit : missing line: call detach method just

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
Do you have an feedback panel on the model? If don't, add one and see if your form don't pass in some validation like on required field. On Tue, Jan 26, 2010 at 4:07 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hello, I have a modal window that is used to create a contact and needs to

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
incorrect. div wicket:id=popup_feedback id=popup_feedback/div contact_form.add(new FeedbackPanel(popup_feedback, new ContainerFeedbackMessageFilter(contact_form) )); On Tue, Jan 26, 2010 at 1:32 PM, Pedro Santos pedros...@gmail.com wrote: Do you have an feedback panel on the model? If don't, add

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
them and gives the same errors in the feedback panel. On Tue, Jan 26, 2010 at 1:41 PM, Pedro Santos pedros...@gmail.com wrote: Take a look at the AjaxButton if you need an asynchronous submit, and implement your onError handlers with: target.addComponent

Re: Generics

2010-01-25 Thread Pedro Santos
Basically the list view depend from List interface due some calls to his get(index) method. It means that the order of the components on the collections, are meaninful to the component. If it is not your case (order, item indexes doesn't matters), you can use an wrapper model in an list view,

Re: Generics

2010-01-25 Thread Pedro Santos
now (wrapped model). Just wondering if there was a technical reason behind it. Sent via BlackBerry from T-Mobile -Original Message- From: Pedro Santos pedros...@gmail.com Date: Mon, 25 Jan 2010 13:03:16 To: users@wicket.apache.org Subject: Re: Generics Basically the list view

Re: dynamically adding components to a ListView

2010-01-22 Thread Pedro Santos
You are putting view objects inside the model of other view object. Models are meant to keep your application domain data, and over that you create your view. So: For what MyPanel was designed? 1 - For present MyData container.add(new ListViewMyData(panels, panels) { protected void

Re: Objects.cloneModel() on google app engine

2010-01-20 Thread Pedro Santos
Hi Lionel, I had the same issue, but calling the setDefaultModelObject, that call methods on IPageVersionManager at some point. In my case, the solution was simple change that call for comp.getDefaultModel().setObject() On Tue, Jan 19, 2010 at 11:32 PM, Lionel Port lionel.p...@gmail.com wrote:

Re: Objects.cloneModel() on google app engine

2010-01-20 Thread Pedro Santos
Thank u! that will work for me too On Wed, Jan 20, 2010 at 8:21 AM, Lionel Port lionel.p...@gmail.com wrote: The gae security restriction looks pointless because Objects.cloneModel is just using a ByteArrayOutputStream (why should there be restrictions on that?) but because the Objects calls

Re: Getting control of Wicket Session.

2010-01-19 Thread Pedro Santos
like rich text editors work, keeping the session from timing out. Interested to see your solution. cheers, Steve On 19/01/2010, at 10:19 AM, Pedro Santos wrote: Use attributes from HttpSession like getLastAccessedTime() and getMaxInactiveInterval(). You can get access

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Pedro Santos
Everything was going well until it dawned on me that the markup page has to include all the Wicket tags to match the Wicketcomponents and if they don't you get an exception. You can override the onComponentTag method from the component that is throwing the exception, and remove the tag

Re: Adding a form field at run time... is it possible?

2010-01-19 Thread Pedro Santos
Wicket tags are meant to be used to make an template. The final markup will to be generated from that template. Do you realize that you are talking about dynamically generate an template? There is no need for. Take a closer look at repeaters. On Tue, Jan 19, 2010 at 10:59 AM, David Legg

Re: notification system

2010-01-19 Thread Pedro Santos
Can look how FeedbackMessages and FeedbackPanel work too On Tue, Jan 19, 2010 at 1:33 PM, chinedu efoagui chinedub...@gmail.comwrote: hello please am trying to build a notification system on an application.I have completed most of work. where I am stuck is how to trigger events that will

Re: final in MarkupContainer#add(Component...) method

2010-01-18 Thread Pedro Santos
About the lenient form component, I thought that you are having trouble adding text fields to your form (for example), since they validate the markup tag (nothing to do with add modifier). As you are adding this kind of component dynamically, you can't write on development time on your markup, the

Re: final in MarkupContainer#add(Component...) method

2010-01-18 Thread Pedro Santos
And if I may to try and adjust the course of this discussion a bit -- the issue with repeaters is not the only argument against final add(..) method. As I mentioned in passing, there's also issue of Page inheritance where subclasses with wicket:extend cannot use add(..) method if parent Page

Re: display busy indicator while external image is fetched

2010-01-14 Thread Pedro Santos
Nice! I'm planing to show an busy indicator too, and the idea I had so far was: image = new Image(); code for show some busy indicator; image.onload = function(){ code for stop the busy indicator} image.src = 'path'; now I change my mind. On Thu, Jan 14, 2010 at 10:48 AM, Martijn Dashorst

<    1   2   3   4   5   >