Re: field values

2012-04-09 Thread Martin Grigorov
Hi, On Thu, Apr 5, 2012 at 9:01 PM, mnish tosh wrote: > Hi, > > This is the situation: > > I have a page with two tabs, on each of these tabs there are form fields. > Some of the fields are the same on both the tabs. What I want to be able to > do is when I click on the tabs back and forth the va

Re: DropDownChoice - filtering and pagination

2012-04-09 Thread Martin Grigorov
On Thu, Apr 5, 2012 at 4:32 PM, Michal Wegrzyn wrote: > Hi, > > What is the best way to create option components with Wicket for large > datasets? > DropDownChoice renders all contained items. Do you maybe know any wicket > implementation of drop down choice which allows pagination? > > Other th

Re: Session existence not working

2012-04-09 Thread Martin Grigorov
Fire the debugger and see what happens. On Fri, Apr 6, 2012 at 11:26 AM, kshitiz wrote: > I am able to solve my problem by checking whether session object is pointing > to null or not but i am not able to understand why session.exists() is not > able to verify session existence if I am using sess

Re: reloading of HTML and classes

2012-04-09 Thread Martin Grigorov
On Sun, Apr 8, 2012 at 5:38 AM, Bernard wrote: > Hi, > > The HTML part is covered if your IDE copies HTML files to the > deployment directory when you save them. Wicket will then pick up this > change and reload the corresponding pages. This works for existing > markup but not for new markup that

Re: Wicket and Menu support

2012-04-09 Thread Martin Grigorov
On Sun, Apr 8, 2012 at 8:04 PM, Tom Eugelink wrote: > > Is there any documentation on this jquery support in wicket 6? I'm setting > up a new project ARM and instead of including all kinds of side kick > projects, core support is preferable. https://cwiki.apache.org/confluence/display/WICKET/Migr

Re: Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread Martin Grigorov
On Tue, Apr 10, 2012 at 7:38 AM, Wilhelmsen Tor Iver wrote: >> In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not >> overwritten by wicket. > > Presumably they changed it so that it would work as a markup equivalent to > setMarkupId(), though I haven't checked the changes l

RE: How to embedded CheckBox in the DropDownChoice Options

2012-04-09 Thread Wilhelmsen Tor Iver
> I want to embedded CheckBox in the DropDownChoice Options so that I can > select multi options in the page. Browsers render multiple-select controls differently, adding checkboxes to a DropDownChoice (single-select) makes no sense since the browser will be sending one value anyway. Look into

RE: Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread Wilhelmsen Tor Iver
> In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not > overwritten by wicket. Presumably they changed it so that it would work as a markup equivalent to setMarkupId(), though I haven't checked the changes list to verify that. :) - Tor Iver ---

Re: a model for passing data between pages

2012-04-09 Thread Dan Retzlaff
You can get type safety and loose-coupling with o.a.w.Session's metadata support. This is our constructor for such a model: SessionMetaDataModel(T defaultObject, MetaDataKey key) The implementation just uses Session#setMetaData() and Session#getMetaData(). On Mon, Apr 9, 2012 at 5:34 PM, Carl-Eri

Re: a model for passing data between pages

2012-04-09 Thread Carl-Eric Menzel
On Mon, 9 Apr 2012 16:23:38 -0700 (PDT) armhold wrote: > SessionModel model = new SessionModel(MyDTO.KEY, new > MyDTO()); > > Not typesafe, as you pointed out, but fairly concise. If you have a lot of different types where you use that, this map-like approach is probably better, yes. > > Alter

Re: a model for passing data between pages

2012-04-09 Thread armhold
Hi duesenklipper. > I'd rather use a custom Session subclass with typesafe getters and > setters: > class MySession extends WebSession { > private MyDTO dtoForFlow; > public MyDTO getDtoForFlow() { > return dtoForFlow; > } Typesafety via custom sessions is nice, but I think that would

Re: PageableListView without Ajax call

2012-04-09 Thread Igor Vaynberg
use PagingNavigator instead of AjaxPagingNavigator. -igor 2012/4/9 Andre Schütz : > Hello, > > I use the PageableListView with an AjaxPagingNavigator. The > PageableListView replaces the elements with an Ajax call. My > customer wants a complete page rebuild without the Ajax call > when a link is

PageableListView without Ajax call

2012-04-09 Thread Andre Schütz
Hello, I use the PageableListView with an AjaxPagingNavigator. The PageableListView replaces the elements with an Ajax call. My customer wants a complete page rebuild without the Ajax call when a link is clicked in the AjaxPagingNavigator. Is it possible to use the PageableListView without this

Re: Page Expired with Google Analytics Tracking Code

2012-04-09 Thread Andre Schütz
Hello, I tried your approach and could find one mistake in my code. After the stepwise adding of the components to my results page, I found an error in two of my classes that are used on that page. These two classes did not implement the Serializable interface. I added the interface to these two c

dynamic wizard - update model

2012-04-09 Thread Frederico Rodrigues
Hello I have implement wicket wizard, but i have a small problem, i have an ajaxbutton and i want update the model, but only have success with this when i call processInput() inside the onclick event, there is another solution for this? i don´t want to call processInput() for all components

Re: a model for passing data between pages

2012-04-09 Thread Carl-Eric Menzel
On Mon, 9 Apr 2012 07:24:34 -0700 (PDT) armhold wrote: > I'm thinking of storing the DTO in the user's session as a detached > entity, and using a model like the following on the various pages: That is perfectly valid approach, and one that we've been using for some usecases. However, instead of

a model for passing data between pages

2012-04-09 Thread armhold
I have a use case where several pages of a flow need to edit a DTO. Changes to the DTO (which may be an existing JPA Entity, or a not-yet-persisted one) are saved at the end of the flow (assuming the user clicks "save"). The user is allowed to navigate back-and-forth among the pages, so the obviou

Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
The problem was also the id inside html components. When we have both wicket:id and id, in 1.5.5 id is not overwritten and no events are triggered for that component. I wonder why this was not put inside the migration guide to 1.5. Could be possible to get some warning in case we have something l

Re: Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread dpmihai
I found the problem. Inside html I also had the id like: In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not overwritten by wicket. So I removed it, and everything is ok. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-markup-id-for

Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
Did anyone see this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542632.html Sent from the Users forum mailing list archive at Nabble.com. -

Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice

2012-04-09 Thread dpmihai
I have an application in wicket 1.4 with a wizard. Inside a WizardStep I have a simple DropDownChoice with an AjaxFormComponentUpdatingBehavior where inside onUpdate method i get the model object protected void onUpdate(AjaxRequestTarget target) { Strin

Wicket 1.5 markup id for a reused TextField is the same

2012-04-09 Thread dpmihai
I have a panel like : public class IntervalFieldPanel extends Panel { private TextField intervalText; public IntervalFieldPanel(String id, final IModel model) { super(id, model); ... intervalText = new TextField("intervalText", model); ... } }