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

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: 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: 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: 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: 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: 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: 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: 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'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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: wicketAjaxGet in 1.6

2012-06-28 Thread Pedro Santos
Oh, also the best place to address this question is in the Wicket users list, redirecting... Pedro Santos 2012/6/29 Pedro Santos > Hi Daniel, > > if you want to call back a AJAX behaviour, you can also check the method > AbstractDefaultAjaxBehavior#getCallbackScript() > >

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: 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: 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: 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
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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: WebMarkupContainer update affecting scrollbar which is outside container

2010-12-06 Thread Pedro Santos
Hi David, you can specify your css for clicked links wiht the pseudo-class :visited, also you can send back to browser only the javascript needed to style the clicked links, like: request.appendJavascript("Wicket.$('linkId').style.someProperty = 'some value'"); On Wed, Dec 1, 2010 at 8:56 AM, drf

Re: reverse proxy / http / https

2010-12-06 Thread Pedro Santos
I think you can use http://code.google.com/p/xebia-france/wiki/XForwardedFilter and watch/help https://issues.apache.org/jira/browse/WICKET-3015 On Mon, Dec 6, 2010 at 9:11 AM, Markus Meixner wrote: > Hi everybody > > Perhaps this is more a apache reverse proxy configuration thing, but > perhaps

Re: Displaying decimal places using a TextField

2010-12-06 Thread Pedro Santos
Hi Ian, you can provide an BigDecimalConverter that works with an NumberFormat with its minimumFractionDigits setted to 2 On Mon, Dec 6, 2010 at 12:38 PM, Ian Marshall wrote: > > I use a TextField as shown below. Since this field represents a > currency unit (in this case, pound sterling) I want

Re: Display component feedback message once: "safety net" renders them always before

2010-12-06 Thread Pedro Santos
Hi Joseph, I use an ComponentFeedbackPanel next to the component when I want its feedback message presented in an special place. On Thu, Dec 2, 2010 at 9:52 AM, Joseph Pachod wrote: > Hi > > I'm trying to apply the behaviors presented by Alastair Maw in his > presentation Wicket Forms > with Fla

Re: Extending Wicket's Button class to do some extra styling

2010-12-06 Thread Pedro Santos
sure On Fri, Dec 3, 2010 at 12:21 PM, Stefan Droog wrote: > Thanks for your reply but I prefer to add the image and label via > > add(new Image(..,...)); > add(new Label(..,..)); > > Instead of replacing the body. > > Is that possible as well? > > Stefan > > > 2010/12/3 Alexander Morozov > > >

Re: resource for href="...

2010-12-13 Thread Pedro Santos
Can u use only the Image component? I don't think you actually need an Link at your component structure if your JavaScript framework needs only the src attribute value at the img tag. 2010/12/13 Ladislav DANKO > It is link for lightbox so it will know where the image for display is. > > Laco > >

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread Pedro Santos
proxyClass.getSuperclass() gives you the dao type On Tue, Dec 14, 2010 at 8:45 AM, smallufo wrote: > I have a page with such definition : > > public class CrudPage extends WebPage > { > public CrudPage(PageParameters pps , AbstractDao dao) > {...} > } > > and here is how I initialize the page

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
use the onConfigure to set the paging-toolbar onConfigure(){ setVisible( getDataGrid().getTotalRowCount() != 0); } On Tue, Dec 14, 2010 at 3:39 PM, Daniel Soneira wrote: > Hi there, > > In the private method Form#isMultiPart the visitor algorithm does not check > for components that implement IF

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
o I have no influence > on that. That's what I would do if it _was_ my code though ;) > Maybe inmethod-grid adapts the new onConfigure / onInitialize methods. I'm > currently using 1.4.1 which I _think_ is the latest official release. > > > On 14.12.2010 18:52, Pedro Santos

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
gt; releases from here: > > http://wicketstuff.org/maven/repository/ > > > On 14.12.2010 19:21, Pedro Santos wrote: > >> ops, I miss that, can u send a quickstart? The last version is 1.4.14, you >> can use >> >> >> org.wicketstuff >>

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
ing maven in my tool chain (ant guy) so I get the binary >> releases from here: >> >> http://wicketstuff.org/maven/repository/ >> >> >> On 14.12.2010 19:21, Pedro Santos wrote: >> >>> ops, I miss that, can u send a quickstart? The last version

Re: Page mounting

2010-12-16 Thread Pedro Santos
you can mount AdminLogin to some Login.class extension like class AdminLogin extends Login{ constructor(){ super(someParameters); } } On Wed, Dec 15, 2010 at 9:42 PM, Jeffrey Schneller < jeffrey.schnel...@envisa.com> wrote: > I think this was discussed here but I can't seems to find i

Re: CheckboxMultipleChoice doesn't support Ajax Behavior?

2010-12-20 Thread Pedro Santos
use AjaxFormChoiceComponentUpdatingBehavior istead of AjaxFormComponentUpdatingBehavior On Mon, Dec 20, 2010 at 2:22 PM, Martin Grigorov wrote: > try with "onclick" > > On Mon, Dec 20, 2010 at 5:20 PM, eugenebalt wrote: > > > > > I have a CheckBoxMultipleChoice which doesn't seem to support Aja

Re: famous ajaxuploadpanel

2010-12-20 Thread Pedro Santos
please provide a quickstart On Mon, Dec 20, 2010 at 11:19 PM, fachhoch wrote: > > I am using the famous ajaxupload panel which uses IFrame to simulate ajax > fileupload. > > till this time I was saving the uploaded file to database and in > onUploadFinished method I used to update a refreshing

Re: Visibility setting with Ajax

2010-12-21 Thread Pedro Santos
Make sure of set the OutputMarkupPlaceholderTag to true in uploadPanels also On Tue, Dec 21, 2010 at 10:46 AM, Tejash Tarun wrote: > Hi, > > What it looks to me that the panel of which visibility has been set is not > added to the target. > So, IMHO *target.add(uploadPanel2)* should do. > > Rega

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Pedro Santos
On Tue, Dec 21, 2010 at 5:50 PM, eugenebalt wrote: > > I have a piece of Ajax code, attached to some field (let's call it > sourceField), which looks like this: > > > sourceField.add(new AjaxFormChoiceComponentUpdatingBehavior() > { > > protected void onUpdate(AjaxRequestTarget target) >

Re: Select All / Clear All Checkboxes in CheckBoxMultipleChoice

2010-12-22 Thread Pedro Santos
There is the setModelValue(final String[] value) not deprecated. you can also do: CheckBoxMultipleChoice c; ((Collection)c.getDefaultModelObject()).addAll(c.getChoices()); On Wed, Dec 22, 2010 at 2:25 PM, eugenebalt wrote: > > Is there an easy way to select all/clear all checkboxes in > Check

Re: Unit-Test AjaxLazyLoadPanel on a page after successful load

2010-12-22 Thread Pedro Santos
Hi Per, you can use the AjaxLazyLoadPanelTester there is an example at: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.14/wicket-extensions/src/test/java/org/apache/wicket/extensions/markup/html/AjaxLazyLoadPanelTesterTest.java On Wed, Dec 22, 2010 at 5:07 PM, Per Newgro wrote: > H

Re: AjaxLazyLoadPanel and back button

2011-01-01 Thread Pedro Santos
Hi Flavius, please fill a ticket with a quickstart. On Thu, Dec 30, 2010 at 1:19 PM, flavius wrote: > > I'm using the AjaxLazyLoadPanel to load images I'm generating from reports. > When > I'm on a page with the AjaxLazyLoadPanel, click a link to another page > (like > a > BookmarkablePageLink)

Re: Display component feedback message once: "safety net" renders them always before

2011-01-03 Thread Pedro Santos
d by fp1 form.error("some message") register an message that will only be presented by the form On Wed, Dec 29, 2010 at 12:05 PM, joseph.pachod wrote: > > Hi Pedro Santos > > I hadn't seen your answer, sorry. > > In between, I had time again to look into my issu

Re: Display component feedback message once: "safety net" renders them always before

2011-01-03 Thread Pedro Santos
You are testing the behaviors types of reporter, but if two components with an FeedbackHighlightBehavior report an feedback you break the functionality A - no message should be rendered twice On Wed, Dec 29, 2010 at 12:05 PM, joseph.pachod wrote: > > Hi Pedro Santos > > I hadn

Re: Using CheckGroup with a listview

2011-01-05 Thread Pedro Santos
On Wed, Jan 5, 2011 at 7:21 AM, Josh Kamau wrote: > Hi guys; > > I am trying to use a CheckGroup component in a form with a ListView to > generate a list of checks. Now, everytime i reload the page, it shows all > the checkboxes checked instead of cheking only those that exist in the > model. Whe

Re: Using CheckGroup with a listview

2011-01-05 Thread Pedro Santos
ctor other than the > id. > > i have however changed the constructor of CheckGroup to new > CheckGroup("users", project.getUsers()); and it still hasnt worked. I have > also ensured that all my models override the Equals and HashCode methods. > > Josh. > > >

Re: one form - two submit buttons with different behavior

2011-01-05 Thread Pedro Santos
You can also move all your code from form.onSubmit to the standartButton.onSubmit On Wed, Jan 5, 2011 at 10:19 AM, Marek Pribyl wrote: > hi all, > I have form with two submit buttons & want different behavior for each > button. > > submitButton: > - standard submit button > - expected "onClick"

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread Pedro Santos
What about when responding you client just replace the content an return it in AJAX, I think it would implie in you create panels for you contents and not extended pages. Example of an click to a new content: onClick(target){ page.get("content").replace(new Content("content")); target.addComp

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread Pedro Santos
Also your page can override the onBeforeRender, test the request for some special parameter, iterate over all components testing they for any visibility rule, and set visibility to false when this test fails. Intercept the generated HTML to do that is not an light solution. I don't think also that

Re: check for component visibility on BehaviorRequestTarget introduced on 1.4.14

2011-01-11 Thread Pedro Santos
Hi Ernesto, the main concern is security, it is natural to expect that actions coded in behaviours will not get invoked when its components are disabled. Actually we treated this unexpected disabled behavior call as a bug since we discovered it[1]. On a side note, in Wicket 1.4 the Behavior needs

Re: AutoCompleteTextField - Event onSelect?!

2011-01-13 Thread Pedro Santos
If your text field is inside an form, you can add an AjaxFormComponentUpdatingBehavior to it. On Thu, Jan 13, 2011 at 8:38 AM, MattyDE wrote: > > Hi, > > iam using AutoCompleteTextField the first time, and it works very well for > me in basics. > > But iam a little disappointed that there is no

Re: session size

2011-01-17 Thread Pedro Santos
Pages don't go to session by default, I executed the PageMapTest#testPagemapIsNotReferencedBySession on Wicket 1.4.8 and it is ok. I suspect you are referencing some expensive objects in an custom session. On Mon, Jan 17, 2011 at 12:16 PM, Mihai Toma wrote: > Hi! > > > > I have an application bu

Re: Check for User-Modified ("Dirty") Fields before Form Submission

2011-01-17 Thread Pedro Santos
or you can test if the formComponent.getConvertedInput() is different from formComponent.getModelObject() at validation time (inside an IValidator implementation) On Mon, Jan 17, 2011 at 2:19 PM, Pedro Santos wrote: > I guess you want to test if the raw input is different from the model >

Re: Check for User-Modified ("Dirty") Fields before Form Submission

2011-01-17 Thread Pedro Santos
I guess you want to test if the raw input is different from the model value. On Mon, Jan 17, 2011 at 2:12 PM, eugenebalt wrote: > > Is there a way in wicket to check if a field has been modified by the user > before submitting the form? > > -- > View this message in context: > http://apache-wick

Re: Multipart issues in Wicket 1.4.15

2011-01-18 Thread Pedro Santos
Set the root form as multipart in the onInitialize method, Wicket will fail in detect the form as multipart if the inner one with the upload field is not visible at the first render. On Tue, Jan 18, 2011 at 8:43 AM, exl wrote: > > Encountering a show stopper for our project that involves being a

Re: Multipart issues in Wicket 1.4.15

2011-01-18 Thread Pedro Santos
in an AJAX response, in which case the form can possible do not have the correspondent enctype tag attribute. On Tue, Jan 18, 2011 at 3:43 PM, Pedro Santos wrote: > Set the root form as multipart in the onInitialize method, Wicket will fail > in detect the form as multipart if the inner one with

Re: [1.5 m3] SerializableChecker nullpointer?

2011-01-20 Thread Pedro Santos
Probably there are an non serializable object somewhere, but SerializableChecker stop searching for it due this proxy equals method NPE. IMO the checker would do better continuing to search the source of serialization problem, can you confirm that testing the patch at https://issues.apache.org/jira

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Pedro Santos
Hi Sam, you can change the feedback panel to show not only messages registered for the panel, but also for the inner components. The Wicket feedback panel uses the IFeedbackMessageFilter to filter what messages to display. You can provide one that test if the reporter is an panel children. See Cont

Re: Compound Property Model, sharing for children

2011-01-27 Thread Pedro Santos
No because the MyTextField will not be able to init its model based on the parent CompoundPropertyModel since it don't know him yet. Only after exit the form.add call MyTextField.getModel will work as expected. If MyTextField invokes getModel inside the onInitialize it will work fine, since at this

Re: Compound Property Model, sharing for children

2011-01-27 Thread Pedro Santos
meObjectMain, but this variable is not pointing to the SomeObject instance in the model. to update the model object you can call: form.getDefaultModelObject().setObj(new SomeObject.Inner()) or create the form as: new Form ( new CompoundPropertyModel(someObjectMain /*instead of create another SomeObject here*/ ));

Re: Adding attribute to selected menu item

2011-01-28 Thread Pedro Santos
Hi Haman, ListView items are recreated by default (see RepeatingView or ListView#setReuseItems). So your code is adding an AttributeAppender to an component that will be discarded in benefit of a new one for the next render. On Fri, Jan 28, 2011 at 10:28 AM, Haman Abel wrote: > Hello to all, > >

Re: Nesting Links

2011-01-28 Thread Pedro Santos
I think the problem is that only IE has the window.event. Look at the "Accessing the event" on http://www.quirksmode.org/js/introevents.html nested anchor tags are ilegal: http://www.w3.org/TR/html401/struct/links.html#h-12.2.2 On Fri, Jan 28, 2011 at 9:02 AM, armandoxxx wrote: > > Hey man > > I

Re: Custom implementation of IStringResourceLoader not working

2011-01-28 Thread Pedro Santos
Since loadStringResource(Component, String) implementation is returning the message key, the Localizer thinks the message for the key was found. Delegate its call to the loadStringResource(Class, String, Locale, String) method that uses the dictionary. On Fri, Jan 28, 2011 at 1:42 PM, armandoxxx w

Re: Strange Serialization Error

2011-01-30 Thread Pedro Santos
The error is in PivotConfiguration equals method implementation. It is possible trying to convert the object being tested to an PivotConfiguration to test its properties, but you can't assume that only PivotConfiguration objects will to be tested on this method. On Sun, Jan 30, 2011 at 6:42 PM, Mi

Re: correct way to get css classes of component

2011-01-31 Thread Pedro Santos
You can override the Component#onComponentTag or AbstractBehavior#onComponentTag method and use the ComponentTag API to deal with the tag attributes. On Mon, Jan 31, 2011 at 9:07 AM, Patrick Petermair < patrick.peterm...@openforce.com> wrote: > Hi! > > I was trying to solve the problem of replac

<    1   2   3   4   5   6   >