Re: Set with PageableListView

2010-11-30 Thread Pedro Santos
On Tue, Nov 30, 2010 at 4:23 AM, nivs wrote: > > Hi > > I have a question related to using a collection (Set) within a > PageableListView. At runtime I get an exception > Hi, you are trying to make an component that depend on the collection elements sequence work with a not sequenced collection.

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 a

Re: StackOverflowError

2010-11-18 Thread Pedro Santos
ail in this discussion thread for why it is wrong. > > Regards, > Erik. > > > Op 17-11-10 21:05, Pedro Santos schreef: > > I think it is to specific. You can override the Session on your app an >> catch >> this situation like: >> >> private voi

Re: StackOverflowError

2010-11-17 Thread Pedro Santos
I think it is to specific. You can override the Session on your app an catch this situation like: private void writeObject(java.io.ObjectOutputStream out) throws IOException { if (Application.get() != null && Application.get().getConfigurationType().equals(Application.DEPLOYMENT)) {

Re: Newbie Question - Wicket Session Growth

2010-11-17 Thread Pedro Santos
ample page does not change > between successive refreshes, it was pointless to store multiple versions of > it. > > Cheers, > > Andrew. > > > -Original Message- > From: Pedro Santos [mailto:pedros...@gmail.com] > Sent: 17 November 2010 12:11 > To: users@

Re: Newbie Question - Wicket Session Growth

2010-11-17 Thread Pedro Santos
You has an statefull page in the quickstart, so each refresh generates a new page version. As you are tracking the file maintained by the DiskPageStore, you are seeing what is going on at the secondary memory: page after page versions being stored. You can use an stateless page if you don't want to

Re: Wicket + GAE

2010-11-12 Thread Pedro Santos
If I correctly remember, I had the same problem, solved by calling page.setVersioned(false) On Fri, Nov 12, 2010 at 2:30 PM, Martin Grigorov wrote: > Hi GAE users, > > I'm trying to run Wicket 1.5 application in Google AppEngine and I'm > experiencing problem for which I cannot find a solution so

Re: Memory Leak in 1.4.13?

2010-11-11 Thread Pedro Santos
Hi guys, can you give a try? https://issues.apache.org/jira/browse/WICKET-3108?focusedCommentId=12931123&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12931123 On Thu, Nov 11, 2010 at 10:05 AM, Martijn Dashorst < martijn.dasho...@gmail.com> wrote: > It is real, i

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 wrote: > There are good information at > http://wicket.apache.org/contribute/patch.html > > > On Wed, Nov 10, 2010 at 5:49 PM, Henrique wrote: > >> No problem...I'll keep for a li

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 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
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 wrote: > Yes, even in what would be the "second" submit, with all the right > input entered. > > It's as if the form just stopped respond

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
On Wed, Nov 10, 2010 at 12:03 PM, Henrique 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(); > > User us

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 wrote: > > Thank you both for your responses- I totally forgot about it being dynamic. > > However, I have tried both code snippets above bu

Re: Cannot get current page from AjaxPagingNavigator

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

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 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 in the outer L

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 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 is > created

Re: AjaxSubmitLink problem

2010-10-27 Thread Pedro Santos
use the formCoponent.getRawInput() On Wed, Oct 27, 2010 at 12:24 PM, Anna Simbirtsev wrote: > 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 get the value of on

Re: problem with Dropdown List

2010-10-26 Thread Pedro Santos
. > > -----Ursprüngliche Nachricht- > 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: > >

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; } anywa

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 wrote: > well, I have all fields which have to be create dynamicaly grouped in on

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 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: 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 wrote: > > Hey ... > > 10x for your fast reply ...

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 wrote: > > Hey ppl > > Need a little help with my

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: 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 wrote: > > Hello there. > > I am using th

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"; }; } ); Wicket.Ajax.registe

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 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 wrote: >> https://cw

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 wrote: > Consider this javascript generated by AjaxFallbackLink: > > wicketShow('overlapping-div');var > wcall=wicketAjaxGet('../../?x=Gusbl7hNSWOo5OPifLRHlQ',function() { > ;wicketHide('overlapp

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

2010-08-31 Thread Pedro Santos
gt; Alec > > On Tue, Aug 31, 2010 at 8:13 AM, Pedro Santos 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. &g

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 wrote: > Use javascript to do that, for exam

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 = fun

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 l

Re: Object AutoComplete -Clear Input

2010-08-18 Thread Pedro Santos
IModel#setObject On Wed, Aug 18, 2010 at 11:33 AM, Alis 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: > http://apache-wicket.1842946.n4.nabble.com/Object-AutoComplete-Clear-Input-tp23

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 wrote: > Hi, I'm wondering if anyone has had to tackle this before and m

Re: DropDownChoice for opening a new Window

2010-07-29 Thread Pedro Santos
e: > 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.a

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, Stefa

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, wrote: > Hi, > > org.apache.wicket.markup.html.form.FormComponentPanel > aims to act to the outside world as one component

Re: Additional attributes to ajax events

2010-07-21 Thread Pedro Santos
rkup : onblur="alert('update')" > > Based 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:

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 t

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 attr

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 cle

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: Wicket's Form Model (using hibernate entity or value objects) Design

2010-07-16 Thread Pedro Santos
Hi Nivedan, Jeremy write " IModel 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 m

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 wrote: > I have ModalWindows whose content contains OK AjaxButtons, which, assuming > validation passes, will do some processing and then close the M

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

2010-07-09 Thread Pedro Santos
from wicket-contrib-tinymce. > Would you care to explain little more about integration? > > Peter > > > > > > ____ > From: Pedro Santos > To: users@wicket.apache.org > Sent: Thu, July 8, 2010 5:09:08 PM > Subject: Re: Wicket wicket-contri

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

2010-07-08 Thread Pedro Santos
Hi, you can use an DropDownChoice to present the available styles for your app, and allow user to select one. Example: public class StyleSelect extends DropDownChoice { public StyleSelect(String id, List options) { super(id, options); setModel(new IModel() { public Object get

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 > > 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 > > org.apache.wi

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 wrote: > In Spring

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 j

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 Mod

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 wrote: > > Wicket experts, > > I have a form with Ajax submit button. Upon completing ajax request > I want to show javascrip

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 wrote: > If you have non as

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
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 wrote: > > Hi, > > i have a problem with the wicket signinpanel/form and non-ascii (Swedish) > characters. Whenever a user enters a username with, for example 'å'

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 wrote: > Hi all, >

Re: How to implement tabs without using panels?

2010-06-14 Thread Pedro Santos
nest Fragments so that I can support multiple > levels of tabs? > > Thanks, > > Alec > > On Mon, Jun 14, 2010 at 11:17 AM, Pedro Santos > wrote: > > wicket:container are meant to don't output invalid markup when using > > repeaters. You can use AjaxTabbedP

Re: How to implement tabs without using panels?

2010-06-14 Thread Pedro Santos
ainer 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 > wrote: > > "I am working with a web designer who delivers a single HTML page

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.

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 there

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 searc

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 wrote: > 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 need validation. The fir

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 wrote: > Say I have a form with a check box that, when checked, shows some other > field (i.e. it controls the visibility of oth

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 wrote: > 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 can see if we can

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("", textField.getVa

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 wrote: > I thin

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 wrote: > Hi, > > I'm using a tags, proper

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 a

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 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 specified in its e

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 wrote: > Hi Folks, > > > have everyone of you any experience in catching the wicket-ajax and > js-errors with t

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 wrote: > Hi Brad > > You'd probably have to subclass DropDownChoice and override the method > getDefaultChoice() to return whatever val

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* class

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, 20

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, Ferna

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 wrote: > Hello guys! > > I am trying to

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 space

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 wrote: > Hi, > > I have implemented a data table

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 wrote: > Hi, > > How can I remove error message for a specific component? > In the Component.class, it checks that the component is valid the fo

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 wrote: > Hi, > > Is there a way to combine onkeyup e

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 at

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 transact

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 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 disabled a

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 wrote: > Hi Ernesto > > Thanks for your reply. This would basically be possible but very > complicated because the threads need dozens to hundreds of values, so it > woul

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 wrote: > Hi, friends. > > Could you help me with s

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, F

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 wrote: > Hi Team > > lnkDelete.add(new SimpleAttributeModifier("onClick","return confirm('Are > you > sure you want to De

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 < g.

Re: Using AjaxFormSubmitBehavior

2010-01-27 Thread Pedro Santos
t;) >@Override >protected void onError(AjaxRequestTarget target, Form form) >{ > System.out.println("Inside contact link's onError is > called."); >target.addComponent(contact_feedback); >

Re: Page load after an action

2010-01-27 Thread Pedro Santos
now ;-) > > I use 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 >>

Re: Using AjaxFormSubmitBehavior

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

Re: Using AjaxFormSubmitBehavior

2010-01-26 Thread Pedro Santos
ect. > > > > contact_form.add(new FeedbackPanel("popup_feedback", new > ContainerFeedbackMessageFilter(contact_form) )); > > On Tue, Jan 26, 2010 at 1:32 PM, Pedro Santos wrote: > > > Do you have an feedback panel on the model? If don't, add one and see if > > yo

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 wrote: > Hello, > > I have a modal window that is used to create a contact and needs to submit > data to the s

Re: Page load after an action

2010-01-26 Thread Pedro Santos
public void onClick() { > // TODO : check the refresh issue > getNewsDao().delete(item.getModelObject()); > ourLogger.debug("News deleted"); > getDefaultModel().detach(); >

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 wrote: > Call news.getDefaultModel().detach(), and look for more info about > detachable models. > > http://cwiki.apache.org/WICKET/detachable-models.html > > On Tue, Ja

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: 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 wrote: > Is there any way to make the AjaxSelfUpdatingTimerBehavior execute X > number of times and then stop

Re: Generics

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

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, like:

Re: Message Bundles - 1.3.2

2010-01-25 Thread Pedro Santos
> I need to use wrapOnAssignment: > > new ResourceModel("myResourceKey").wrapOnAssignment(this) > > Is this the correct approach, or should I be doing it differently? If the model of AjaxLabelLink is just an property you have created, yes this is the correct aproach. > I looked briefly at the sou

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 ListView("panels", panels) { protected void populateItem

<    1   2   3   4   5   6   >