Re: AutoCompleteTextField Stateless

2017-06-29 Thread Pedro Santos
Hi Marieke, in a similar situation I chose to send the components that should be presented in the modal window in the markup, hidden by the page CSS, and to create a modal window to show them using purely javascript. cheers Pedro Santos On Thu, Jun 29, 2017 at 11:33 AM, Marieke Vandamme

Re: wicket:link doesn't work on srcset attribute

2017-02-23 Thread Pedro Santos
Hi Brosich, it's true. I think Wicket's wicket:link tag handler can be improved to cover this attribute. Cheers Pedro Santos On Thu, Feb 23, 2017 at 11:11 AM, Brosich, Alberto <abros...@inogs.it> wrote: > Hello to all, > > I'm using the srcset attribute of a source tag insid

Re: Java Wickets Dynamic DataView

2017-02-07 Thread Pedro Santos
that is affected by you transaction. Cheers Pedro Santos On Tue, Feb 7, 2017 at 2:31 PM, ASHU_JAVA <ashu@gmail.com> wrote: > Thanks Padro for your response. > I'm a newbie to Java Wickets, so can you please share some more insights > regarding this. > > I'm using below code:- >

Re: Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-02-04 Thread Pedro Santos
@Inject, it would make it easier to migrate to CDI as well cheers Pedro Santos On Tue, Jan 31, 2017 at 5:26 AM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > I use @SpringBean in my applications. > The only reason one to switch to @Inject is if your applicati

Re: Java Wickets Dynamic DataView

2017-02-04 Thread Pedro Santos
Hi Ashu, just make sure the the add button inside the modal re-renders the DataView. If the input data was correctly add to the database, the DataView's IDataProvider should correctly start to provide them and they will show up in the response. cheers Pedro Santos On Thu, Feb 2, 2017 at 4:29

Re: Christmas / new year [NON-BIZ]

2016-12-31 Thread Pedro Santos
Thank you! Feliz ano novo! (portuguese :) Cheers Pedro Santos Pedro Santos On Sat, Dec 24, 2016 at 9:33 AM, Tobias Soloschenko <tobiassolosche...@googlemail.com> wrote: > Hi all, > > I wish you a merry christmas and happy new year. :-) > > ki

[ANNOUNCE] CVE-2016-6793 Apache Wicket deserialization vulnerability

2016-12-30 Thread Pedro Santos
on the DeferredFileOutputStream attribute. Mitigation: Upgrade to Apache Wicket 6.25.0 or 1.5.17 Credit: This issue was discovered by Jacob Baines, Tenable Network Security and Pedro Santos References: https://wicket.apache.org/news

Re: How allow select from a disabled field

2016-12-02 Thread Pedro Santos
abled" attribute as the default presentation of a disabled text field. Cheers Pedro Santos On Fri, Dec 2, 2016 at 7:07 AM, Dan Haywood <d...@haywood-associates.co.uk> wrote: > The Apache Isis project [1] uses Wicket for its main viewer, and we > recently had this question [

Re: Wicket 6 - How to fill form based on listview selected row

2016-09-18 Thread Pedro Santos
onClick(){ form.setDefaultModelObject(itemModel.getObject()); } } Pedro Santos On Sat, Sep 17, 2016 at 3:05 PM, Iamuser <superbiss...@gmail.com> wrote: > Hello, > > I have a page with a : > 1. a listview > 2. an input form > > When first entering the page, th

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 pedros...@gmail.com Hi Daniel, if you want to call back a AJAX behaviour, you can also check the method AbstractDefaultAjaxBehavior#getCallbackScript() cheers

Re: JavaScript noJavaScript Navigation

2011-12-14 Thread Pedro Santos
Hi, you can add the body as a WebMarkupContainer, set it to output its markup id, and replace it by decorating the AJAX response with the transition effect JS. If the client is using IE you just redirect it him to the target page. Pedro Henrique Oliveira dos Santos 2011/12/14 daslicht

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Pedro Santos
Hi Thomas, encoding the page ID in the URL would respond an expired page. Pedro Henrique Oliveira dos Santos 2011/12/14 Thomas Götz t...@decoded.de The situation: I have a mounted page containing several AJAX components. Whenever the session expires and an AJAX request is triggered

Re: Suppress page serialization

2011-12-14 Thread Pedro Santos
Hi Stefan, does it makes sense to move this object to the session? Make sure you make your page instance manager touching each affected page after to change the object. e.g. Session.get().touch(affectedPage); Pedro Henrique Oliveira dos Santos 2011/12/14 Stefan Lindner lind...@visionet.de

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Pedro Santos
Götz t...@decoded.de Can you give an example? AFAIK the pageId *is* already encoded in the URL bei Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the page is rendered. Doing AJAX requests on the page does not change the URL though … Cheers, -Tom Pedro Santos wrote: Hi

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Pedro Santos
(not a StalePageException, StalePageException is for another case ). Pedro Henrique Oliveira dos Santos 2011/12/14 Thomas Götz t...@decoded.de Don't know either, but since I don't have any other idea at the moment: how would I do this? Cheers, -Tom Pedro Santos wrote: Bleh, my bad

Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Pedro Santos
. Pedro Henrique Oliveira dos Santos 2011/12/14 Thomas Götz t...@decoded.de Yes, that was what I had in mind. But where can I configure my custom PageProvider (i.e. that Wicket knows that my PageProvider implementation should be used)? Cheers, -Tom Pedro Santos wrote: You can

Re: Stateful pages without page Id in the url

2011-09-15 Thread Pedro Santos
Hi, yes you can, but F5 will instance the page again and its state will get lost. I think the problem is related to https://issues.apache.org/jira/browse/WICKET-4014 Can you open a ticket so we can track it? 2011/9/15 hok ivanvasi...@gmail.com Hello, I have an application where all the pages

Re: stateless page + click on stateless link = stateful page

2011-09-13 Thread Pedro Santos
Yes, otherwise the F5 would not work. It can be prevented by redirecting to a stateless page, even if it was the last accessed one. 2011/9/13 Bertrand Guay-Paquet ber...@step.polymtl.ca Hello, I have a stateless page with a stateless link on it. The stateless link is used to set the session

Re: Updates on model of FormComponents not being displayed after Ajax call

2011-08-31 Thread Pedro Santos
Hi Jonas, you need to notify those form components about their model value change. e.g. formComponent.modelChanged(); target.add(formComponent); 2011/8/31 Jonas Pohlandt jonas.pohla...@lbi.com Hello everyone, in an AjaxFormComponentUpdatingBehavior callback I make some changes to the object

Re: Updates on model of FormComponents not being displayed after Ajax call

2011-08-31 Thread Pedro Santos
internalOnModelChanged and onModelChanged are empty in their default implementation by Component (which is not overwritten by RequiredTextField or any of its superclasses). Jonas -Ursprüngliche Nachricht- Von: Pedro Santos [mailto:pedros...@gmail.com] Gesendet: Mittwoch, 31. August 2011

Re: nested table

2011-08-25 Thread Pedro Santos
Hi, you can nestle repeater components like: new ListView(id, listOfClass2){ onPopulate( item){ item.add( ... ); item.add(new ListView(id, listOfClass1OfThisClass2){ onPopulate( innerItem ){ innerItem.add( ... ); } }); } } 2011/8/25 preben

Re: Problem with Android and ajax?

2011-08-25 Thread Pedro Santos
Hi Palmer, it is possible related to https://issues.apache.org/jira/browse/WICKET-3820 , upgrade to 1.4.18 2011/8/25 PALMER, THOMAS C (ATTCORP) tp3...@att.com We have a problem with a mobile site on an Android. Basically, we're updating select options via ajax with one option that should be

Re: Wicket 1.5: Question (or feature request) afterOnInitialize()

2011-08-10 Thread Pedro Santos
Hi Armando, the problem #1 is rather about not have the entire component tree connected already. onInitialize is called when the component is aware of its path to page, at this moment, a triggered even will not reach new nodes addition in the component tree. On Wed, Aug 10, 2011 at 7:23 AM,

Re: 1.5 - wicket module build question

2011-08-07 Thread Pedro Santos
wicket module under trunk is there just to be an agregator of the main dependencies needed to run Wicket for maven users. On Sun, Aug 7, 2011 at 5:53 PM, Kaz C kaz@gmail.com wrote: I checked out Wicket (all modules) from trunk and executed mvn install. Build was successful. So, if I check

Re: DataViw double clickable rows and ModalWindow

2011-08-03 Thread Pedro Santos
looks like a bug On Wed, Aug 3, 2011 at 2:46 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hello I have a panel with a DataTable and, in newRowItem() I added an AjaxEventBehavior(ondblclick). Everything works fine if I add the panel in a WebPage but doesn't work in a ModalWindow. It's a bug

Re: Using IResourceCachingStrategy with context relative resources(non PackageResource)

2011-08-02 Thread Pedro Santos
Yes, it is there for package resources. Better would be write a javax.servlet.Filter with the described logic. On Tue, Aug 2, 2011 at 11:46 AM, Serban.Balamaci thespamtr...@gmail.com wrote: Hello all, I'm using Wicket 1.5RC5.1. It seems that IResourceCachingStrategy can only be used on

Re: Disabling Entire Page, and Redirecting to Page in N Seconds

2011-08-02 Thread Pedro Santos
Hi, Jquery UI has a nice css to overlay components. You can try to present one protecting the page and presenting some message. e.g. Overlay = { show : function() { var w = $('body').width(); var h = $('body').height(); var markup = 'div

Re: Manually Rendering a DataGridView

2011-08-01 Thread Pedro Santos
the table. Specifically, I am trying to dynamically instantiate a jQuery DataTables using the JavaScript array method ( http://datatables.net/examples/data_sources/js_array.html). On Sun, Jul 31, 2011 at 10:40 PM, Pedro Santos pedros...@gmail.com wrote: The char sequence is returned

Re: Manually Rendering a DataGridView

2011-07-31 Thread Pedro Santos
Hi, I had a similar need and used the code at TableParser[1] to render the component tree to a mock response and later get its char sequence. 1 - https://github.com/wicketstuff/core/blob/master/jdk-1.5-parent/wicket-poi-parent/wicket-poi/src/main/java/org/wicketstuff/poi/excel/TableParser.java

Re: Manually Rendering a DataGridView

2011-07-31 Thread Pedro Santos
any public methods for that. On Sunday, July 31, 2011, Pedro Santos pedros...@gmail.com wrote: Hi, I had a similar need and used the code at TableParser[1] to render the component tree to a mock response and later get its char sequence. 1 - https://github.com/wicketstuff/core/blob/master/jdk

Re: DropDownChoice updates onchange event.

2011-07-27 Thread Pedro Santos
The DropDownChoice should respect the list sequence, show some code so we can track the source of the problem. On Wed, Jul 27, 2011 at 3:16 PM, Archana archanaacharya.adhik...@gmail.com wrote: I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C,

Re: How can i get inline styles of div in runtime?

2011-07-27 Thread Pedro Santos
I guess the simplest way is to encode the property you want in the AJAX callback URL. e.g. someComponent.add(new AjaxEventBehavior(someEvent) { protected void onEvent(AjaxRequestTarget target) { String encodedPropertyValue =

Re: Textfield to keep the value after being refreshed

2011-07-20 Thread Pedro Santos
Hi Anna, use an submit component like AjaxLink or AjaxButton to interact with server. Even if you skip the default form processing by set submitComponent.setDefaultFormProcessing(false) the input in the fieldName will be kept. On Wed, Jul 20, 2011 at 11:37 AM, Anna Simbirtsev

Re: Form Component models not updating .. why ?

2011-07-04 Thread Pedro Santos
Hi Armando, form still shows values inside of text field because you code it to do that in the last line: public cleanUp(){ (...) this.updateFormComponentModels(); -- Form#updateFormComponentModels updates all form fields based on field sent in request, ignoring anything you set before. }

Re: jsp check AuthenticatedWebSession.get().isSignedIn()

2011-06-30 Thread Pedro Santos
Hi, you can share this info in the HttpServletSession. On Tue, Jun 28, 2011 at 4:57 PM, fachhoch fachh...@gmail.com wrote: I have very few jsp pages and for these pages I want to check that user is authenticated. I tried calling AuthenticatedWebSession.get().isSignedIn()   and I getting this

Re: Override modal.js functionality because of issue with form inside form

2011-06-27 Thread Pedro Santos
. -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Sunday, June 26, 2011 11:27 PM To: users@wicket.apache.org Subject: Re: Override modal.js functionality because of issue with form inside form Hi Brown, submit a form inside a modal window should be fine, just make sure

Re: Override modal.js functionality because of issue with form inside form

2011-06-26 Thread Pedro Santos
Hi Brown, submit a form inside a modal window should be fine, just make sure you have an outer form higher in hierarchy. Nested forms inside a modal window works nice even in old versions. It is important because it prevents invalid markup like form tag inside form tag. About improvements in modal

Re: Page serialization filling up disc space

2011-06-10 Thread Pedro Santos
Hi Johan, DiskDataStore writes cyclic in data file storing pages, it will never exceed the defined limit. It also delete the file when session expires. In which Wicket version did you find this issue? Can you fill a ticket with a quickstart? On Fri, Jun 10, 2011 at 6:26 AM,

Re: Expanding tree and scrolling to item

2011-06-06 Thread Pedro Santos
Hi Christian, the appended JavaScript with AjaxReuqestTarget#appendJavascript already will be called after tree DOM update. Try to postpone your scroll JavaScript wrapping it in an function to setTimeout method. On Mon, Jun 6, 2011 at 10:38 AM, Christian Mader christian.ma...@univie.ac.at wrote:

Re: OnChange Ajax inside form within form?

2011-06-06 Thread Pedro Santos
Hi Neil, already Wicket prevents nested form tag by changing inner form tag by div one. I guess you need to change the AjaxFormSubmitBehavior to AjaxFormComponentUpdatingBehavior to handle the onchange event. On Mon, Jun 6, 2011 at 4:43 PM, Neil Curzon neil.cur...@gmail.com wrote: Hi users!

Re: Preserving user input on ajax changes

2011-06-06 Thread Pedro Santos
Hi Nelson, ListView recreate its items every render, so it looses their raw input. You can set reuse items flag - ListView.setReuseItems and prevent this problem. Also notify the list view about changes in the list to make it recreate its items by invoking ListView#removeAll Also you may want to

Re: WicketTester and clicking a tree node

2011-06-02 Thread Pedro Santos
Hi Mohammad, nice you created the test case. I just would recommend to don't make any reference from your domains objects (TreeNode) to view ones (AjaxLink) because they are usually packaged in different places. Take a look at how I created a similar test:

Re: Preserving user input on ajax changes

2011-06-02 Thread Pedro Santos
Hi Nelson, the raw input has preference and it remains in the form component until be converted and set in the form component model. For your use case you can use a simple AjaxLink targeting just the dynamic fields panel, not the whole form. On Thu, Jun 2, 2011 at 8:22 PM, Nelson Segura

Re: 1.5 rc 4.2 ajax radiochoice bug?

2011-05-31 Thread Pedro Santos
Hi, using in cojuction with the ldm should be fine. On Tue, May 31, 2011 at 8:15 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Ok I have it replicated with a quickstart.. Seems the cause are because I am using an ldm in conjunction with the form is it wrong todo so? 2011/5/31

Re: adding style to multiple form fields on validaton

2011-05-30 Thread Pedro Santos
Hi Rebecca, you can add the same behavior - ValidationStyleBehavior - in the field B. On Mon, May 30, 2011 at 7:14 AM, rebecca rivka.shis...@gmail.com wrote: Hello friends, I have form with fields A and B. When field A is invalid - it is colored in red (by adding ValidationStyleBehavior  to

Re: Expandable row in datatable

2011-05-30 Thread Pedro Santos
Hi, I easily achieved it using nested ListView components and one line of JavaScript: $('.expandableLine').click(function() { $(this).next().toggle(); }); On Mon, May 30, 2011 at 4:47 AM, ramlael grambab...@gmail.com wrote: Is any one know the solution?. -- View this message in context:

Re: WicketTester and clicking a tree node

2011-05-27 Thread Pedro Santos
You can use the ITreeState API to manipulate the expand/collapsed node state. Put your code inside a link or a button and call it from Wicket tester. On Fri, May 27, 2011 at 10:21 PM, msalman mohammad_sal...@yahoo.com wrote: Hi, I am trying to simulate/test clicking and expanding tree nodes.  

Re: How to check markup attributes?

2011-05-24 Thread Pedro Santos
You can create an behavior doing the check in the Behavior#onComponentTag. At this point you will have access to the final ComponentTag object. The test case would look like: testSomePageOrComponet(){ CollectMissingAttributes theBehaviorITalkedAbout = new (...); MyPageOrComponentType

Re: How to check markup attributes?

2011-05-24 Thread Pedro Santos
ops, invoke the tester.startPageOrComponent before the assert line. On Tue, May 24, 2011 at 5:25 PM, Pedro Santos pedros...@gmail.com wrote: You can create an behavior doing the check in the Behavior#onComponentTag. At this point you will have access to the final ComponentTag object. The test

Re: JavaScript onClick Handler Stops Form Submit

2011-05-18 Thread Pedro Santos
Hi, if you are using an AJAX submit button then you can't simple change the onclick tag attribute that is already changed by the component. Prepend your alert script in the attribute rather than modify it. e.g. submitComponent.add( new Behavior(){ onComponentTat(tag){ tag.put(onclick,

Re: Using SigInPage with IE9

2011-05-16 Thread Pedro Santos
related ideed, reopening the ticket On Mon, May 16, 2011 at 10:35 AM, Martin Grigorov mgrigo...@apache.org wrote: Can be related to https://issues.apache.org/jira/browse/WICKET-3566 On Mon, May 16, 2011 at 3:09 PM, Zhubin Salehi zhooz...@yahoo.com wrote: Hi, I'm using

Re: How to turn off the ModificationWatcher Task?

2011-05-16 Thread Pedro Santos
Set null in application resource poll frequency. e.g. class Application{ init(){ application.initApplication(); application.getResourceSettings().setResourcePollFrequency(null); } } On Mon, May 16, 2011 at 11:21 AM, eugenebalt eugeneb...@yahoo.com wrote: I recently started getting

Re: How to prevent browser from caching pages

2011-05-16 Thread Pedro Santos
You can decorate applicaiton's root request mapper to set in the anticache parameter in the mapped URL. You can also add a listener invoking WebResponse#disableCaching for all your responses. On Mon, May 16, 2011 at 10:20 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! We are

Re: How to prevent browser from caching pages

2011-05-16 Thread Pedro Santos
! Sounds nice, how exactly? ** Martin 2011/5/16 Pedro Santos pedros...@gmail.com: You can decorate applicaiton's root request mapper to set in the anticache parameter in the mapped URL. You can also add a listener invoking WebResponse#disableCaching for all your responses. On Mon, May 16, 2011

Re: Grouping DataView

2011-05-15 Thread Pedro Santos
Hi Marcus, it is very usual to nestle repeater components to present groups and its details. On Sun, May 15, 2011 at 11:46 AM, Marcus Breier mlist.mbre...@gmx.net wrote: Dear all, sorry for this newbie question, but I need a component to group Items within a DataView for display. Since I

Re: TextField not getting the value after a validation eror

2011-05-13 Thread Pedro Santos
Hi Mohammad, make sure of notify the textfield about the model change by invoking the Component#modelChanged method, inside the Link#onClick implementation after set the new value. e.g. field.modelChanged() On Friday, May 13, 2011, msalman mohammad_sal...@yahoo.com wrote: I have a text field

Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Pedro Santos
Hi Phil, I'm about to upload a quickstart to this ticket proving it is not a Wicket related problem. The container is always reading the entire input stream regardless of the application doing it or not. I talked about in IRC and Igor suggested me to close the stream if it exceed the max limit,

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread Pedro Santos
ListView is a good component to present lists. e.g. class MyFeedbackPanel extends Panel implements IFeedback{ onInitialize(){ super.onInitialize(); HashMapString,List messagesByCategory = getModelObject(); add(new ListView(messagesByCategory.keySet()){ populateItem(){

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-12 Thread Pedro Santos
Hi, the code I sent was only to give you an idea of how to use ListView. I understood by your previous mails that you already have a HashMapString,List. On Thu, May 12, 2011 at 10:41 AM, eugenebalt eugeneb...@yahoo.com wrote: Do I also have to override getModelObject()? If so, how? I'm getting

Re: New Website up using wicket

2011-05-12 Thread Pedro Santos
Cool! The site runs pretty fast here, congrats. On Thu, May 12, 2011 at 11:20 AM, Henrique Boregio hbore...@gmail.com wrote: Hey, just wanted to let you guys know that with the help of this community, I was able to build my first real website using wicket. Thanks everyone for the support in

Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Pedro Santos
this? On 5/12/2011 7:47 AM, Pedro Santos wrote: Hi Phil, I'm about to upload a quickstart to this ticket proving it is not a Wicket related problem. The container is always reading the entire input stream regardless of the application doing it or not. I talked about in IRC and Igor suggested me

Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-12 Thread Pedro Santos
is invisible and let the container do its thing?  I'm using Tomcat do you know of any way to set a max file size in Tomcat? On 5/12/2011 1:02 PM, Pedro Santos wrote: You can setup a firewall to prevent DOS attacks, I'm not sure if Wicket needs to read the input stream regardless of its HTTP header

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread Pedro Santos
FeedbackPanel is just a panel implementing IFeedback interface and presenting messages in session. You can write a completely different panel implementing IFeedback with custom presentation. It is nothing special. On Wed, May 11, 2011 at 4:59 PM, eugenebalt eugeneb...@yahoo.com wrote: I have a

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread Pedro Santos
By implementing IFeedback you are just comunicating about your type goal: be a feedback. Imagine that one can visit a page adding components implementing IFeedback to an AJAX request target. About handle messages, FeedbackPanel is just presenting messages in session, take a look at

Re: Children components

2011-05-09 Thread Pedro Santos
Hi Vitor, use an IVisitor On Mon, May 9, 2011 at 3:50 PM, Vitor Granzinoli Vellozo vitor.vell...@cpmbraxis.com wrote: Wicketers, How can I get a list of children components, for example, I need modify some things on the children components of a Form. Debuging I saw an attribute

Re: Monitoring progress of business layer service in presentation layer

2011-05-03 Thread Pedro Santos
I Mathias, you can add an AbstractAjaxTimerBehavior in the page plus an component presenting the service status. e.g. page{ add(new Label(id, new abstractreadyonlymodel(){ getobject(){ return service.getStatus(); } })); add(new AbstractAjaxTimerBehavior (){ onTimer(target){

Re: SubmitLink with confirmation dialog

2011-05-01 Thread Pedro Santos
Hi, SubmitLink already write some JavaScript in the onclick handler, so you need to prepend the confirmation JavaScript in order to maintain the default behavior. e.g. submitLink.add(new Behavior() { onComponentTag() { tag.put(onclick, if(!confirm('c')) return false; + tag.getAttribute(onclick));

Re: Forcing parent CSS to be contributed after all child CSS

2011-04-26 Thread Pedro Santos
See if you can implement your contribution sequence rule by decorating the IHeaderResponse e.g. [1] [2] 1 - http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket-examples/1.5-rc2/org/apache/wicket/examples/resourcedecoration/ResourceDecorationApplication.java?av=f 2 -

Re: Specific redirect after session timeout

2011-04-25 Thread Pedro Santos
Tracking the last visited page with a cookie would do the trick, but IMO the browser back button is enough. You can even use it with some JavaScript and move the user back to the last page. On Mon, Apr 25, 2011 at 4:51 AM, Peter Karich peat...@yahoo.de wrote: Hi there, is it possible to grab

Re: formComponentPanel with content generated by RepeatingView

2011-04-23 Thread Pedro Santos
On Sat, Apr 23, 2011 at 2:45 PM, kamiseq kami...@gmail.com wrote: heh i thought I was smart :] as each component in FormComponentPanel is converted and validated so it would be easy to intercept value set on components model and add it to List (which is model of whole FCPanel) because Im not

Re: formComponentPanel with content generated by RepeatingView

2011-04-22 Thread Pedro Santos
You can set any model in your form component panel. But its value will be set during the form processing, after the validation step. FormComponent#convertInput is invoked before the validation step, and it only sets the converted input in the FormComponent (see FormComponent#setConvertedInput). It

Re: [MIGRATE 1.5] NPE trying to use JavaScriptTemplate

2011-04-22 Thread Pedro Santos
Move to 1.5-RC3, if this problem remains report in https://issues.apache.org/jira/browse/WICKET-3187 On Fri, Apr 22, 2011 at 7:26 PM, Alexandros Karypidis akary...@yahoo.grwrote: Hi, I've just started preparing for 1.5 and have been modifying my code in order to conform with the new API.

Re: formComponentPanel with content generated by RepeatingView

2011-04-21 Thread Pedro Santos
Override convertInput is a good option. Keep in mind that at this point of the form processing (converting input), component models will not be updated yet. So you need to rely on children converted data (see FormComponet#getConvertedInput) in order to assemble the FormComponentPanel converted

Re: Dynamically injecting CSS on panel swap

2011-04-17 Thread Pedro Santos
Sounds like a bug. The expected behavior is to have the selected panel CSS dynamically injected. Please send us a quickstart reproducing the problem. On Mon, Apr 18, 2011 at 12:00 AM, Alec Swan alecs...@gmail.com wrote: Hello, I have a page with multiple tabs which I implemented using

Re: image in java script

2011-04-14 Thread Pedro Santos
In a similar use case I assembled the JavaScript in an IHeaderContributor#renderHead implementation and written it in response using IHeaderResponse#renderOnDomReadyJavascript e.g.: class SetupDatepicker extends Behavior{ @Override public void renderHead(IHeaderResponse response) {

Re: How to check if form submission succeeded using JavaScript?

2011-04-14 Thread Pedro Santos
Hi, you can set a cookie in the Button#onSubmit implementation, new Button(){ public void onSubmit() { //at this point all validations are tested ((WebResponse)RequestCycle.get().getResponse()).addCookie(new Cookie(name, value)); } } On Thu, Apr 14, 2011 at 1:25 PM, Alec

Re: Form composed of Panel components

2011-04-11 Thread Pedro Santos
Simply nestle sub Panel contain form components is fine if you make sure that there are a form component higher in hierarchy. FormComponentPanel is useful if you want the panel itself participating in form processing, I don't think this is the case. On Mon, Apr 11, 2011 at 10:08 AM, Chris Colman

Re: Form composed of Panel components

2011-04-11 Thread Pedro Santos
Form will process nested form components regardless of the web markup container component you used to group them. On Mon, Apr 11, 2011 at 10:46 AM, Chris Colman chr...@stepaheadsoftware.com wrote: I can't derive my Panels from FormComponentPanel because a strict inheritance hierarchy of

Re: Form composed of Panel components

2011-04-11 Thread Pedro Santos
derive from Panel? -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Monday, 11 April 2011 11:54 PM To: users@wicket.apache.org Subject: Re: Form composed of Panel components Form will process nested form components regardless of the web markup container

Re: Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-11 Thread Pedro Santos
IRequestParameters interface has PageParameters correspondent API to access page parameters. Can be accessed like: RequestCycle.get().getRequest().getQueryParameters() If you want to recreate page parameters for some request, you can use the PageParametersEncoder. On Mon, Apr 11, 2011 at 12:06

Re: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-05 Thread Pedro Santos
add X in the CheckBoxMultipleChoice model collection. e.g. IModelCollection multipleChoiceModel = (...); checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel ); multipleChoiceModel.getObject().add( X ); On Tue, Apr 5, 2011 at 2:57 PM, eugenebalt eugeneb...@yahoo.com wrote: I

Re: Wicket For Mobile

2011-04-04 Thread Pedro Santos
I don't remember of Wicket JavaScript mobile compatibility thread. I tested Wicket aplicaitons using AJAX on IE and Safari mobile versions, in both works nice. On Sun, Apr 3, 2011 at 11:33 AM, Ayodeji Aladejebi aladej...@gmail.comwrote: Hi, I like to find out the compatibility of wicket on

Re: UploadProgressBar Possible Bug

2011-04-04 Thread Pedro Santos
Please open a ticket, I will try to reproduce and upload a quickstart. I remember of it taking some time to be hidden, but just the time of form submit process (maybe your form do heavy processing, easily reproducible on quickstart). On Mon, Apr 4, 2011 at 12:43 PM, mzem...@osc.state.ny.us wrote:

Re: UploadProgressBar Possible Bug

2011-04-04 Thread Pedro Santos
mutlipart to true). I will open a jira if/when time permits, if you have the appropriate credentials please create a jira on my behalf, I am not currently an account holder. From: Pedro Santos pedros...@gmail.com To: users@wicket.apache.org Date: 04/04/2011 04:59 PM Subject:Re

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-02 Thread Pedro Santos
By nature of checkbox you mean nature of HTTP. As setRequired is Wicket API, IMO it should abstract the empty info about false input from framework users, in benefit of those who are deliberately sending a 'false' value in their form input. On Sat, Apr 2, 2011 at 12:30 PM, Bruno Borges

Re: How to display time for page generation ?

2011-04-02 Thread Pedro Santos
Hi, the RequestLogger API can help you. http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/RequestLogger.html On Sat, Apr 2, 2011 at 5:21 PM, Isammoc OFF isam...@gmail.com wrote: Hi all, I would like to display a footer with the time spent to generate the page. How can I

Re: Detach on ldm?

2011-04-01 Thread Pedro Santos
yep On Fri, Apr 1, 2011 at 2:02 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Shouldnt a call to detach on a cpm targeting a ldm chain detach so that it will reload? -- Pedro Henrique Oliveira dos Santos

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-01 Thread Pedro Santos
I vote for 2, checkbox needs always to satisfy the required requirement. As pointed, there are no parameter in the HTTP request reader for false inputs, we can't distinguish 'false' from 'null', so we can't consider that user isn't meeting the required condition. On Fri, Apr 1, 2011 at 2:34 PM,

Re: ModalWindow detach/serialize crashes wicket app

2011-04-01 Thread Pedro Santos
looks like your page is referencing session or pagemap somehow On Fri, Apr 1, 2011 at 4:15 PM, Russell Morrisey russell.morri...@missionse.com wrote: Guys, I'm having an intermittent issue in development where use of a ModalWindow on a page completely crashes wicket. I don't know of the

Re: Strange behaviour in WicketTester when Ajax-clicking on a deselected checkbox

2011-03-31 Thread Pedro Santos
Hi David, looks like a bug, please create a ticket + upload the quickstart. As a side note, wicket tester do not encode the form state between requests. If you submit a form a second time, the request parameters for fields you didn't set will be empty, and will look like the user had cleared the

Re: Error during headers validation since migration to 1.5

2011-03-28 Thread Pedro Santos
Hi adrien, yes, with a quickstart reproducing the error please. On Sun, Mar 27, 2011 at 8:54 PM, adriclad adrien.che...@gmail.com wrote: No answer... May I write a Jira ticket for 1.5-RC3 to inform this bug ? -- View this message in context:

Re: [1.5RC2] impossible to add cookies

2011-03-28 Thread Pedro Santos
Hi, just tested http://wicketstuff.org/wicket/authentication2 and the example set the cookie in response without problems. Open a ticket + quickstart reproducing the problem please. On Sun, Mar 27, 2011 at 8:48 PM, adriclad adrien.che...@gmail.com wrote: Anybody had the same problem ? May I

Re: HTML comment tag

2011-03-28 Thread Pedro Santos
An reusable behavior can be archived using the MarkupComponentBorder. On a side note, why do you want to write commented model values in markup? On Mon, Mar 28, 2011 at 11:02 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: This is simple code and works, do you think this is a way

Re: just having another question how to clear form fields

2011-03-28 Thread Pedro Santos
Set a null/empty value in their model plus notify the component about changed models e.g. Component#modelChanged. e.g. form = new Form(new CompoundPropertyModel(new Bean()) form.add(new Field(someProperty); (...) form.add(new SubmitComponent(id){ onSubmit(){ form.setDefaultModelObject(new

Re: Ajax modal window does not allow submit form under open browsers

2011-03-21 Thread Pedro Santos
The modal window's content is rendered into a set of new elements into the page body directly, this set include a form tag. If you add a root form inside the modal window content, the HTML for the opened window will be invalid because of nested form tags. I don't remember of any change in this.

Re: Ajax modal window does not allow submit form under open browsers

2011-03-21 Thread Pedro Santos
it into new tags on the top level. In the proposed patch this intermediate step is skipped, thus keeping the markup valid even in case of a form in the dialog's content. Pedro Santos wrote: I don't remember of any change in this. The patch was not accepted for 1.5. Best regards Sven

Re: Best way to remove content from a close Modal Window?

2011-03-21 Thread Pedro Santos
modalWindow.replace(new WebMarkupContainer(modalWindow.getContentId())); On Mon, Mar 21, 2011 at 3:36 PM, Chris Colman chr...@stepaheadsoftware.comwrote: I open a form in a ModalWindow. Even after the form is closed the content seems to remain because the form contents are serialized out with

Re: Caching Streamed Images on browser

2011-03-19 Thread Pedro Santos
Browser respect cache control headers of the HTTP response, u can set your caching rules there. On Sat, Mar 19, 2011 at 5:39 AM, Arjun Dhar dhar...@yahoo.com wrote: Hi, I have a resource (an Image which exists on the File System outside the Web Context). I stream the image resource. The

Re: Ajax modal window does not allow submit form under open browsers

2011-03-19 Thread Pedro Santos
To submit a form inside a modal window you must enclose it by a form in the main panel and use an AJAX submit component. Please open a ticket + quickstart if the issue remains. On Sat, Mar 19, 2011 at 7:45 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: When I use the ajax modal

Re: Ajax modal window does not allow submit form under open browsers

2011-03-19 Thread Pedro Santos
for illegal HTML -Original Message- From: Pedro Santos [mailto:pedros...@gmail.com] Sent: Saturday, March 19, 2011 8:02 PM To: users@wicket.apache.org Subject: Re: Ajax modal window does not allow submit form under open browsers To submit a form inside a modal window you must enclose

  1   2   3   4   5   6   >