Re: AutocompleteTextField and object (not just String)

2012-08-01 Thread Igor Vaynberg
On Wed, Aug 1, 2012 at 4:08 AM, Martin Grigorov wrote: > Hey Sven, > > On Wed, Aug 1, 2012 at 2:01 PM, Sven Meier wrote: >>> DropDown has a clear pattern: >>> the renderer is used only for >>> rendering purpose >> >> BTW this is not correct: all choice components use their renderer for >> render

Re: wicket 1.6 snapshot - cdi - inject - NullPointerException

2012-07-28 Thread Igor Vaynberg
egatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > ~[na:1.7.0_04-ea] > at java.lang.reflect.Constructor.newInstance(Constructor.java:525) > ~[na:1.7.0_04-ea] > at > org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPa

Re: wicket 1.6 snapshot - cdi - inject - NullPointerException

2012-07-28 Thread Igor Vaynberg
a stack trace would be helpful... -igor On Sat, Jul 28, 2012 at 11:26 AM, Francois Meillet wrote: > Hi All, > > The problem is : I got a NullPointerException after using @Inject > environment : wicket 1.6 snapshot - cdi (weld) - inject - > NullPointerException - tomcat 7 / jboss AS 7 > > modul

Re: I think it's time for a new book.... Igor and Co ?

2012-07-26 Thread Igor Vaynberg
On Fri, Jul 27, 2012 at 12:20 AM, Bertrand Guay-Paquet wrote: > >> Seeing how the previous book authors became less active after writing >> a book I think this is not a very good idea... :-/ > > Is this because the books didn't sell well enough? i can only speak for myself, define enough :) i ag

Re: Really slow code

2012-07-24 Thread Igor Vaynberg
Tue, Jul 24, 2012 at 9:26 PM, Brown, Berlin [GCG-PFS] wrote: > You have any more specifics or an example? Is there a metadata class? > > -Original Message- > From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] > Sent: Tuesday, July 24, 2012 1:34 PM > To: users@wicket.ap

Re: Really slow code

2012-07-24 Thread Igor Vaynberg
cache it in request cycle's metadata -igor On Tue, Jul 24, 2012 at 8:18 PM, Brown, Berlin [GCG-PFS] wrote: > With code like this, I have a model and within the 'load' method, I am > making a slower call that I don't want to call to get the data again. > > > > I may need the result 'bean' for ano

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
AjaxLink does not submit the form. use AjaxButton instead. also, you need to give the dropdownchoice a model (somewhere to store the value)...see form examples. -igor On Tue, Jul 24, 2012 at 9:20 AM, cosmindumy wrote: > Hi, > Just tried at home and still get null on getModelObject(). > Here is

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
:/ -igor On Mon, Jul 23, 2012 at 4:56 PM, Martin Grigorov wrote: > getModel(Object) > > On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy wrote: >> Hi, >> I'm trying to get the selected options from a ListMultipleChoice but didn't >> find a method to get a collection of selected options. >> I'm using

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
(Collection)getModelObject() -igor On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy wrote: > Hi, > I'm trying to get the selected options from a ListMultipleChoice but didn't > find a method to get a collection of selected options. > I'm using the getValue method that return a String of choices separ

Re: I think it's time for a new book.... Igor and Co ?

2012-07-22 Thread Igor Vaynberg
lol. my thoughts exactly :) -igor On Sun, Jul 22, 2012 at 12:53 PM, Josh Kamau wrote: > Who will bell the cat ? > > On Sun, Jul 22, 2012 at 12:51 PM, Michael Mosmann wrote: > >> Had the same idea... >> -- >> Diese Nachricht wurde von meinem Android-

Re: Wicket 6 and CDI

2012-07-16 Thread Igor Vaynberg
IPageRequestHandler). >> I had a quick look and so far I didn't find anything beyond renamed >> packages (but that's just a few minutes of looking). >> I might just give it a shot and try to get it running. >> >> CU >> Jochen >> >> On

Re: Wicket 6 and CDI

2012-07-15 Thread Igor Vaynberg
havent had time to try it out on wicket 6 yet, is anything actually broken? -igor On Sun, Jul 15, 2012 at 11:40 PM, Jochen Mader wrote: > To get that out of the way: I know that Wicket 6 won't be shipped with > CDI directly :) > I still would like to use Wicket 6 in Glassfish. > Are there plans

Re: I have to say.....

2012-06-21 Thread Igor Vaynberg
there is no other way to do it. the problem is that in the UI visual positioning doesnt always match nesting, so cannot filter by nesting. -igor On Thu, Mar 15, 2012 at 2:08 AM, wrote: > Yup I agre; except I think the way messages are shared across fedback panels > still defies logic. Am sure

Re: I have to say.....

2012-06-21 Thread Igor Vaynberg
now thats the way to beat bayesian filters. unless someone manually moderated this one through. -igor On Thu, Jun 21, 2012 at 5:35 AM, jaffa wrote: > An application server is a server which provides software applications with > services such as security, data services, transaction support, l

Re: Sync up sessions

2012-06-20 Thread Igor Vaynberg
wicket stores its Session object in the http session. so im not sure what you need to sync up, both wicket and spring have access to the same http session object. -igor On Wed, Jun 20, 2012 at 2:46 PM, wicket user wrote: > Yes taking Wicket Session and Spring Session and maintaining one session

Re: Sync up sessions

2012-06-20 Thread Igor Vaynberg
what do you mean by "sync up"? you want to retrieve http session inside wicket code? ((HttpServletRequest)getRequestCycle().getRequest().getContainerRequest()).getSession() -igor On Wed, Jun 20, 2012 at 10:57 AM, wicket user wrote: > how can we sync up the session with the existing session of

Re: Wicket Events

2012-06-19 Thread Igor Vaynberg
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket-core/6.0.0-beta1/org/apache/wicket/EventDispatcherTest.java#EventDispatcherTest -igor On Tue, Jun 19, 2012 at 12:31 PM, Douglas Ferguson wrote: > Where's the source repository located? > > > On Jun 19, 2012, at 2:20 PM, Mar

Re: onSelectionChanged without refreshing page

2012-06-18 Thread Igor Vaynberg
add AjaxFormComponentUpdatingBehavior instead of overriding wantOnSelectionChangeNotification() -igor On Mon, Jun 18, 2012 at 12:50 PM, Dan12321 wrote: > Hello, > is possible to execute some code when I change selected item in > DropDownChoice without refreshing page? > In onSelectionChanged met

Re: Wicket as Jboss Modules

2012-06-12 Thread Igor Vaynberg
we have to be sure we do not use any static fields anywhere in the code...it's not just the singletons that break this use case. eg we do not want caches to be shared across applications because it's not performant and can result in cross application object leakage. -igor On Tuesday, June 12, 201

Re: POSTing to an iframe

2012-06-12 Thread Igor Vaynberg
override getInputName() on the field and hardcode it to signed_request -igor On Tue, Jun 12, 2012 at 11:23 AM, Chris Merrill wrote: > Evidently what I need to do is not a great fit for Wicket, but it is only a > small > part of a page in a larger application for which Wicket is a good fit.  So

wicket job opportunity, we are hiring

2012-06-05 Thread Igor Vaynberg
the company i work for ( 42lines.net ) is growing and we are looking for a few good devs. about our approach: * we are a distributed company with employees based predominantly in the usa, there are 27 of us now * everyone telecommutes either from home or a coworking space of your choice (paid for

Re: Full month calendar

2012-05-18 Thread Igor Vaynberg
we use this in production and it works fine. just tried wicket-fullcalendar-examples with both eclipse and mvn jetty:run which both worked fine as well... -igor On Fri, May 18, 2012 at 5:46 AM, Sandor Feher wrote: > Hi, > > The example Igor mentioned is nice but I'm still struggling with that.

Re: Full month calendar

2012-05-17 Thread Igor Vaynberg
you can try https://github.com/42Lines/wicket-fullcalendar -igor On Thu, May 17, 2012 at 2:23 AM, Sandor Feher wrote: > Hi, > > I need for a full month calendar view to indicate when was the employee on > holiday. I found at wicketstuff the calendars package and tried to used with > not too much

Re: VTD XML for wicket

2012-05-16 Thread Igor Vaynberg
xml is parsed only the first time a page/panel is accessed. broken down into a collection of chunks optimized for wicket's consumption. and cached. -igor On Wed, May 16, 2012 at 9:49 PM, kamiseq wrote: > hej, > have you ever consider using http://vtd-xml.sourceforge.net/ as xml > parsing library

Re: Wicket and JPA: please a simple way to go

2012-05-12 Thread Igor Vaynberg
that example will work with websphere, or without it. -igor On Sat, May 12, 2012 at 1:15 PM, hfriederichs wrote: > Igor, > > I suspect you didn't realize when you got up this morning that at the end of > the day you would acquire eternal fame, but there it is. To get it working > with WebSphere

Re: Wicket and JPA: please a simple way to go

2012-05-12 Thread Igor Vaynberg
On Sat, May 12, 2012 at 10:23 AM, hfriederichs wrote: > Igor, > > Josh suggested CDI as an alternative, in that respect it's the same as other > approaches I've tried: to cumbersome, to complex for my goals, so in respect > to what I want I don't think it's great. > > I'll look into the wicket-jee

Re: Wicket and JPA: please a simple way to go

2012-05-12 Thread Igor Vaynberg
On Sat, May 12, 2012 at 2:58 AM, hfriederichs wrote: > I looked at it, shortly. It's a perfect example of what I mean. I looked at a > blog by Igor V. And there we go again: you have to do this; and than that. > And then configure this. And don't forget to add a line in xml. > And in the end,

Re: Loadable-detachable model for ListView

2012-05-10 Thread Igor Vaynberg
which objects get stored in session? -igor On Thu, May 10, 2012 at 11:30 AM, sudeivas wrote: > Hello Igor & Dan, >          Can you please answer the question regarding storing objects in > Session for DataView? > Why does it store objects in Session since we are using LDM? > > -Suresh > > -- >

Re: Single sign on (SSO) for two WicketApplication

2012-05-10 Thread Igor Vaynberg
look at sso solutions such as CAS[1]. see how they work, and either use it directly, or implement your own variant if that suits you better. [1] http://www.jasig.org/cas -igor On Thu, May 10, 2012 at 4:02 AM, jensiator wrote: > What about if I say that its only wicket applications? Can we narro

Re: Loadable-detachable model for ListView

2012-05-09 Thread Igor Vaynberg
use PagingNavigator. there are examples here: http://www.wicket-library.com/wicket-examples/repeater/ -igor On Wed, May 9, 2012 at 4:11 PM, sudeivas wrote: > Thanks Igor for the response. > > If I use dataview.setItemsPerPage(50), then my Data View loads only the > first 50 entries. But how can

Re: Loadable-detachable model for ListView

2012-05-09 Thread Igor Vaynberg
call dataview.setitemsperpage(x) -igor On Wed, May 9, 2012 at 3:32 PM, sudeivas wrote: > I am using the below code in my application. But the data provider makes a > call to my service wrapper asking for all the entries. For example: if total > size of the list of 750, the first - 0 and count -

Re: Loadable-detachable model for ListView

2012-05-09 Thread Igor Vaynberg
use DataView/IDataProvider -igor On Wed, May 9, 2012 at 10:54 AM, sudeivas wrote: > Hello, >     Can any one please provide an example for implementing a list view with > loadable-detachable model? I am trying to minimize the size of the session. > Because sometimes, the size of the list view ca

Re: igor's select2 script

2012-05-09 Thread Igor Vaynberg
hi Uwe, Dan Retzlaff has created a wrapper, but as far as i know he hasnt publicly shared it yet. i havent really had much time to work on my own wrapper or to look at his yet. my recommendation, barring Dan doesnt share his code, is to create a very thin integration that you can later replace wi

Re: Wicket 1.5 and jbpm spring configuration

2012-05-03 Thread Igor Vaynberg
it usually helps to include the code you are referring to :) -igor On Thu, May 3, 2012 at 7:42 PM, jensiator wrote: > I got a weird problem. > I'm changing to wicket 1.5. In some places we use Jbpm. And I use > wicket-spring. I have not setup the Jbpm myself but when we used wicket 1.4 > the wic

Re: constant strings

2012-05-02 Thread Igor Vaynberg
no. if you do not want to store the string then instead of a new Model use new AbstratReadOnlyModel(). -igor On Wed, May 2, 2012 at 8:25 AM, Tom Eugelink wrote: > > On 2012-05-02 17:16, Igor Vaynberg wrote: >> >> if it doesnt store anything then where would it get the valu

Re: Form having error cannot be modified via Ajax

2012-05-02 Thread Igor Vaynberg
call form.clearinput() after you change its model. otherwise form components will use their cached values instead of pulling from the form. -igor On Wed, May 2, 2012 at 7:19 AM, theAnthony wrote: > Indeed, I'm using an AjaxEventBehavior listening for "onclick", in the > onEvent method, I send an

Re: constant strings

2012-05-02 Thread Igor Vaynberg
if it doesnt store anything then where would it get the value from when the second request needs to be processed? wicket components live across many requests. -igor On Wed, May 2, 2012 at 4:47 AM, Tom Eugelink wrote: > > The Wicket application I'm developing is an internal app which will only be

Re: Sonar (Architecture) and Wicket

2012-04-25 Thread Igor Vaynberg
these types of cycles are common in applications. they are only a problem *iff* you want to separate your base page into a different jar than the subclass pages. if you are planning on doing that there are well known patterns for how to do that, but they will make your code more complex. so you ha

Re: urlFor in wicket 1.5

2012-04-20 Thread Igor Vaynberg
issue, but if the user has been using that to > store URLs, it cannot do it anymore. > > -Nelson > > > On Fri, Apr 20, 2012 at 1:42 PM, Igor Vaynberg > wrote: >> bookmarkable just means the url contains no session-state. it doesnt >> mean that it is absolute. >&g

Re: urlFor in wicket 1.5

2012-04-20 Thread Igor Vaynberg
ocalhost/search instead of http://localhos/fts/search > > -Nelson > > > On Fri, Apr 20, 2012 at 1:27 PM, Igor Vaynberg > wrote: >> if you are currently on a /fts/ url, then "search" is correct >> because relative to /fts/ it will produce /fts/search. >

Re: urlFor in wicket 1.5

2012-04-20 Thread Igor Vaynberg
if you are currently on a /fts/ url, then "search" is correct because relative to /fts/ it will produce /fts/search. -igor On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura wrote: > Using Wicket 1.5.4 > > Have the following mountedPage() > > mountPage("/fts/search", FTSResultsPage.class); > > > In

Re: Sonar (Architecture) and Wicket

2012-04-20 Thread Igor Vaynberg
why exactly are they "problems"? -igor On Fri, Apr 20, 2012 at 5:40 AM, romanasu wrote: > There is a web application using sonar for code analyses. > I have some problems with cycling dependencies. > For example, i have a TemplatePage(in com.myPackage) which is extended by > all others pages. In

Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-04-18 Thread Igor Vaynberg
its a servlet container thread, probably not safe to kill... maybe we can have implement a hard-evict from the store, and some strategy to handle these cases. -igor On Wed, Apr 18, 2012 at 11:42 AM, Martin Makundi wrote: > You can kill it in Session but killing a thread will leave it in unknown

Re: WicketStuff Animator

2012-04-17 Thread Igor Vaynberg
fork the project into your github account, commit the patch, and create a pull request. -igor On Tue, Apr 17, 2012 at 2:52 PM, andy wrote: > Hi guys, > > I have just upgraded a large project from wicket 1.3 to 1.4(.18) and > needed to update wicketstuff-animator. > I now have a patch against th

Re: "It is a better practice to push changes to state rather than pull"

2012-04-16 Thread Igor Vaynberg
correct. an instance of a component can live through multiple iterations of data. lets say we override isVisible(). there are two problems: 1) the implementation MUST return consistent data, not only during processing of the same request, but also during the processing of the next callback. examp

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
in that case a bit of logic in the page that checks the product id in onconfigure() against one in the model, and if they are different redirects to the correct page... -igor On Thu, Apr 12, 2012 at 1:56 PM, Bertrand Guay-Paquet wrote: >> you simply need to check what page class is mounted, and

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
istence of a page with pageId 0 in the page >>> store user sees page1, not page2 as user2 intended" >>> >>> So, what is the page id in ../mp/oid/123.9 url? >>> >>> >>> On Thu, Apr 12, 2012 at 9:58 AM, Igor Vaynberg >>>  wrote: &

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
On Thu, Apr 12, 2012 at 8:55 AM, Martin Grigorov wrote: > On Thu, Apr 12, 2012 at 6:43 PM, Igor Vaynberg > wrote: >> On Thu, Apr 12, 2012 at 8:22 AM, Alec Swan wrote: >>> Igor, >>> >>> The link I click ends with /mp/oid/123.9, where 123 is a product id.

Re: Same versioned link opens different pages on different machines

2012-04-12 Thread Igor Vaynberg
; Hi, >> >> A ticket regarding this was created and resolved in 1.5 (WICKET-4488). From >> the work log: >> "There was code for this situation but it didn't cover the case 100%. >> Now if a request to page2?0 is made and the type of the found page with id=0

Re: Page Map versions and Ajax Requests

2012-04-12 Thread Igor Vaynberg
s needs to be handled at a higher level... -igor > > On Wed, Apr 11, 2012 at 11:47 PM, Igor Vaynberg > wrote: > >> whats happening is this >> >> user hits the page /foo >> goes to /foo?1 >> does a bunch of ajax stuff, staying on /foo?1 >> clicks

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-12 Thread Igor Vaynberg
weld doesnt wrap ejbs in serializable proxies. if you want to inject ejbs you should do it with wicket-jee module found in wicketstuff. -igor On Thu, Apr 12, 2012 at 5:55 AM, Jonathan Tougas wrote: > @Override >    protected void onBeforeRender() { >    System.out.println( foo ); >    System.out

Re: IDataProvider#size()

2012-04-12 Thread Igor Vaynberg
if count == n*pageSize then the last > page will be blank. > > Best regards, > Michal Wegrzyn > >> -Original Message- >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] >> Sent: Thursday, April 12, 2012 6:06 >> To: users@wicket.apache.org >>

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Igor Vaynberg
whats happening is this user hits the page /foo goes to /foo?1 does a bunch of ajax stuff, staying on /foo?1 clicks refresh, so hits /foo?1 listview refreshes, changing hierarchy, creating page version 2 the ajax behavior's url is rendered as /foo?2:... the page is rendered, but not redirected to

Re: IDataProvider#size()

2012-04-11 Thread Igor Vaynberg
why not just fake the size to current page+1? that way you always have a "next" link and once you receive the current page you should know if you have more or not so you dont have to add the one on the last page -igor On Wed, Apr 11, 2012 at 6:59 PM, Dan Retzlaff wrote: > Hi all. Time to st

Re: Same versioned link opens different pages on different machines

2012-04-11 Thread Igor Vaynberg
page 5 in your session can be completely different then page 5 in user's session. non-bookmarkable urls cannot be emailed...thats kind of the point. -igor On Wed, Apr 11, 2012 at 2:37 PM, Alec Swan wrote: > Hello, > > I received a link from a customer to a versioned page (.version at the > end

Re: HTML5 button Javascript without a form

2012-04-10 Thread Igor Vaynberg
On Tue, Apr 10, 2012 at 11:57 AM, cmagnollay wrote: > Hi all, > > So two questions. > > 1) I looked through the wicket 1.5 changes and did not see any mention of a > component similar to the html 5 button element. Is there something with > similar functionality in the wicket component library? yo

Re: DropDownChoice - filtering and pagination

2012-04-10 Thread Igor Vaynberg
no, it will not be added to core. it will live in my github account. -igor On Tue, Apr 10, 2012 at 4:44 AM, Michal Wegrzyn wrote: > Hi Martin, > > Sounds and looks great! > Will it be added to wicket-core? 6.x? > > Best regards, > Michal Wegrzyn > > >> -Original Message- >> From: Martin

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

Re: wicketstuff.org - down

2012-04-03 Thread Igor Vaynberg
redirect on the registrar... -igor On Tue, Apr 3, 2012 at 2:26 PM, Martin Grigorov wrote: > If the site is down then how the redirect would work ? :-) > Read the content of the page. There is a link to the examples > > On Tue, Apr 3, 2012 at 11:23 PM, Brown, Berlin [GCG-PFS] > wrote: >> Could s

Re: Wicket Application on GoDaddy

2012-04-03 Thread Igor Vaynberg
weird. that always worked for me on tomcat. i suggest you read their docs about root contexts. -igor On Tue, Apr 3, 2012 at 9:31 AM, Satrix wrote: > I changed the name of WAR file to ROOT.war but no luck now it's > www.domain.com/ROOT/home :/ > From what I know there is tomcat 5 running > > -- >

Re: Wicket Application on GoDaddy

2012-04-03 Thread Igor Vaynberg
name your war ROOT.war if you are running on tomcat -igor On Tue, Apr 3, 2012 at 8:13 AM, Satrix wrote: > Hello, > > I'm trying to deploy my application on GoDaddy and it works but... let's say > that I've domain that is available under www.domain.com > WAR file name is: warfilename > > When the

Re: 1.4.7 migration to 1.5.5 failing on AWS Elastic Beanstalk caused by Form class

2012-03-31 Thread Igor Vaynberg
we run a few 1.5.x apps in aws on tomcat and have not experienced a problem like this. its probably something weird in your environment. -igor On Sat, Mar 31, 2012 at 10:58 AM, roddo123 wrote: > I haven't been able to have much success with visualvm in that environment. > But a test I did do was

Re: 1.4.7 migration to 1.5.5 failing on AWS Elastic Beanstalk caused by Form class

2012-03-30 Thread Igor Vaynberg
attach visualvm to your aws instance and see whats hanging it up. -igor On Fri, Mar 30, 2012 at 7:43 PM, roddo123 wrote: > I have been running a wicket 1.4.7  application on the aws elastic beanstalk. > (It controls the server so the user only needs to deploy the war).  I > migrated to 1.5.5 and

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
nd the event out > but the event is never picked up.  Does every panel need to have its own > onEvent method to listen for the events. > > If so, I think the old method of handling ajax is going to be easier. > > > -----Original Message- > From: Igor Vaynberg [ma

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
rkupId(true); >                p2Link.setMarkupId("p2Link"); >                add(p2Link); > >                AjaxLink p3Link = new AjaxLink("p3Link") { >                        @Override >                        public void onClick(AjaxRequestTarget

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
(replacement); > -or- > MyPage.this.panel.replaceWith(replacement); > > Or do I need to define workingPanel as a private member of my page class and > then have: > > MyPage.this.workingPanel.replaceWith(replacement); > MyPage.this.workingPanel = replacement; > > > > > > > --

Re: Event handling and swapping panels

2012-03-28 Thread Igor Vaynberg
OuterPanelClass.this.panel.replaceWith(replacement); OuterPanelClass.this.panel=replacement; -igor On Wed, Mar 28, 2012 at 11:33 AM, Jeffrey Schneller wrote: > I want to swap panels using the event model in 1.5.  This is very similar to > the panel swapping code (wicket 1.4.x)  found in the Apa

Re: What real life scenario calls for page ID?

2012-03-27 Thread Igor Vaynberg
On Tue, Mar 27, 2012 at 2:53 PM, armhold wrote: > Martin wrote: > >> HomePageMapper is explicitly registered in SystemMapper (the default >> compound root mapper).  The resource mapper example in >> wicket-examples also mounts custom home mapper. > > Thanks Martin. I managed to get something worki

Re: Access current request in IAuthorizationStrategy

2012-03-25 Thread Igor Vaynberg
RequestCycle.get() -igor On Sun, Mar 25, 2012 at 11:14 PM, Jürgen Lind wrote: > Hi, > > I need a way to decide wether a certain page can be opend based on the URL it > was called with. Therefore, I need > access to the current request in the 'isInstantiationAuthorized' method of > IAuthorizati

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
in 1.4 what we are using does look at the mount if > the page doesn't exists any more. And we depend on that, am i reading it > right that we lost that in 1.5? > On Mar 22, 2012 11:12 PM, "Pointbreak" > wrote: > >> >> >> On Thu, Mar 22, 2012, at 14:3

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
we are using does look at the mount if >> the page doesn't exists any more. And we depend on that, am i reading it >> right that we lost that in 1.5? >> On Mar 22, 2012 11:12 PM, "Pointbreak" >> wrote: >> >> > >> > >> > On Thu,

Re: keep component state?

2012-03-22 Thread Igor Vaynberg
lier jQuery solution that updates all link targets in > the page when your accordian gets clicked. :) > > On Thu, Mar 22, 2012 at 2:35 PM, Igor Vaynberg wrote: > >> ah. well, if you want it to be preserved across link clicks then you >> have to keep the state on the server.

Re: keep component state?

2012-03-22 Thread Igor Vaynberg
the hash is keeped? Maybe I did not > express correctly, when I typed "refresh the page" I wanted to say > "when you click a link and wicket renders the page again". I think > when you click any link, a new url is generated without the hash. > Thanks anyway > &

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 1:58 PM, Pointbreak wrote: > On Thu, Mar 22, 2012, at 12:30, Igor Vaynberg wrote: >> On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak >> wrote: >> > On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: >> >> On Thu, Mar 22, 2012

Re: disable editing for the whole page

2012-03-22 Thread Igor Vaynberg
form.setenabled(false), or even page.setenabled(false) -igor On Thu, Mar 22, 2012 at 11:54 AM, albgentius wrote: > I am trying to disable the editing for every element in the page (something > like @AuthorizeAction would do) after we click a button and get no errors > back from the user action.

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 12:24 PM, Pointbreak wrote: > On Thu, Mar 22, 2012, at 12:05, Igor Vaynberg wrote: >> On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak >> wrote: >> > On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: >> >> On Thu, Mar 22, 2012

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 11:55 AM, Pointbreak wrote: > On Thu, Mar 22, 2012, at 11:42, Igor Vaynberg wrote: >> On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak >> wrote: >> > On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: >> >> On Thu, Mar 22, 2012

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 11:37 AM, Pointbreak wrote: > On Thu, Mar 22, 2012, at 10:56, Igor Vaynberg wrote: >> On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak >> wrote: >> > On Thu, Mar 22, 2012, at 09:49, Igor Vaynberg wrote: >> >> On Thu, Mar 22, 2012

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 10:20 AM, Pointbreak wrote: > On Thu, Mar 22, 2012, at 09:49, Igor Vaynberg wrote: >> On Thu, Mar 22, 2012 at 8:54 AM, Pointbreak >> wrote: >> > On Thu, Mar 22, 2012, at 08:23, Igor Vaynberg wrote: >> >> On Thu, Mar 22, 2012 at 7:59 AM,

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 8:54 AM, Pointbreak wrote: > On Thu, Mar 22, 2012, at 08:23, Igor Vaynberg wrote: >> On Thu, Mar 22, 2012 at 7:59 AM, Pointbreak >> wrote: >> > On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: >> >> i think there is some confusi

Re: keep component state?

2012-03-22 Thread Igor Vaynberg
add the state to the hash of the page. and when initializing accordion check the hash and restore it. this should survive page refreshes. -igor On Thu, Mar 22, 2012 at 7:20 AM, Alfonso Quiroga wrote: > Hi, in my job we are using wicket and I've made some components like > Accordion, etc. The pr

Re: What real life scenario calls for page ID?

2012-03-22 Thread Igor Vaynberg
On Thu, Mar 22, 2012 at 7:59 AM, Pointbreak wrote: > On Sun, Mar 18, 2012, at 20:00, Igor Vaynberg wrote: >> i think there is some confusion here. wicket 1.4 had page ids. it also >> had page versions. in 1.5 we simply merged page id and page version >> into the same variable

Re: Two submit buttons in a form, one of them does not trigger validation

2012-03-21 Thread Igor Vaynberg
yeah, but its pretty easy to visit all formcomponents and call convertinput()/updatemodel() from one place rather then changing every form component to be aware of the button...just sayin... -igor On Wed, Mar 21, 2012 at 9:22 AM, Martin Grigorov wrote: > On Wed, Mar 21, 2012 at 6:10 PM, I

Re: Two submit buttons in a form, one of them does not trigger validation

2012-03-21 Thread Igor Vaynberg
button.setdefaultformprocessing(false) ? -igor On Wed, Mar 21, 2012 at 3:30 AM, Martin Grigorov wrote: > Hi, > > We needed once to do something similar and we came with the following > solution: > override FormComponent#validate() for the components which have > validators and do: > public voi

Re: What real life scenario calls for page ID?

2012-03-20 Thread Igor Vaynberg
On Tue, Mar 20, 2012 at 8:52 AM, Martin Grigorov wrote: > On Tue, Mar 20, 2012 at 5:42 PM, Igor Vaynberg > wrote: >> On Tue, Mar 20, 2012 at 8:28 AM, Martin Grigorov >> wrote: >>> On Tue, Mar 20, 2012 at 5:20 PM, Igor Vaynberg >>> wrote: >>>>

Re: What real life scenario calls for page ID?

2012-03-20 Thread Igor Vaynberg
On Tue, Mar 20, 2012 at 8:28 AM, Martin Grigorov wrote: > On Tue, Mar 20, 2012 at 5:20 PM, Igor Vaynberg > wrote: >> On Tue, Mar 20, 2012 at 1:07 AM, Martin Grigorov >> wrote: >>> On Tue, Mar 20, 2012 at 12:55 AM, Igor Vaynberg >>> wrote: >>>&g

Re: What real life scenario calls for page ID?

2012-03-20 Thread Igor Vaynberg
On Tue, Mar 20, 2012 at 1:07 AM, Martin Grigorov wrote: > On Tue, Mar 20, 2012 at 12:55 AM, Igor Vaynberg > wrote: >> indeed. we should check that the page pointed to by the id maps back >> to the mount, and create a new instance based on the mount if it >> doesnt.

Re: What real life scenario calls for page ID?

2012-03-19 Thread Igor Vaynberg
indeed. we should check that the page pointed to by the id maps back to the mount, and create a new instance based on the mount if it doesnt. jira please. -igor On Mon, Mar 19, 2012 at 3:52 PM, Pointbreak wrote: > It's a problem when users bookmark it. Because ...?5 this session is an > entirely

Re: Images, ajax requests and caching

2012-03-18 Thread Igor Vaynberg
we have a noncachingimage subclass... :) -igor On Sun, Mar 18, 2012 at 9:33 PM, Bertrand Guay-Paquet wrote: > Hi, > > I have image resources which fetch the proper thumbnail picture stored in a > DB based on the image's file name. I used the file name instead of > parameters to make sure client-

Re: What real life scenario calls for page ID?

2012-03-18 Thread Igor Vaynberg
On Sun, Mar 18, 2012 at 5:27 PM, Chris Colman wrote: > I've been thinking about the new 1.5 page ID/versioning feature (which > we disabled as soon as we discovered it) and wondering if there is > actually a real world scenario for stateful pages that actually requires > this functionality. > > I

Re: Check if FormComponent is valid in later request

2012-03-14 Thread Igor Vaynberg
if the form is invalid your button's onsubmit() wont get fired... -igor On Wed, Mar 14, 2012 at 1:53 PM, Thomas Götz wrote: > Hi! > > I have the following situation: > > I have a form containing several FormComponents and Validators, submitted via > Ajax. Then I have an AjaxButton on the same p

Re: Apache Wicket 1.4.20 is released

2012-03-12 Thread Igor Vaynberg
outside of security fixes this is most likely the last release. -igor On Mon, Mar 12, 2012 at 9:39 AM, Thomas Singer wrote: > Just curious: how long do you plan to support Wicket 1.4? > > Tom > > > On 12.03.2012 09:06, Martin Grigorov wrote: >> This is the twentieth maintenance release of the Wi

Re: Best practice for adding style to a component

2012-03-08 Thread Igor Vaynberg
html is best for static classes for java subclass the component and override oncomponenttag and set the class from there. if you cannot do that or you have some cross-component-cutting logic then use an attribute modifier. -igor On Thu, Mar 8, 2012 at 12:58 PM, Uvex wrote: > I am new in wicke

Re: How to Reference a /WebContent File from Wicket

2012-03-07 Thread Igor Vaynberg
see how ContextImage does it -igor On Wed, Mar 7, 2012 at 10:45 AM, eugenebalt wrote: > I am adding a shared resource to my app, and I need to reference a file which > resides under /WebContent. > > Our app code structure is this: > > > > The /src folder has all the HTML/Java's for Wicket. > > T

Re: Wicket 1.5 - Accessing the "Previously Requested Page"

2012-03-02 Thread Igor Vaynberg
write your own irequestcyclelistener, implement onrequesthandlerresolved() and in that method check if the handler is a IPageRequestHandler and stash the page anywhere you want, like in the request cycle's metadata. -igor On Fri, Mar 2, 2012 at 8:08 AM, Douglas Ferguson wrote: > This doesn't wor

Re: How to use autoAdd?

2012-02-28 Thread Igor Vaynberg
@param markupStream *Null, if the parent container is able to provide the markup. Else the markup *stream to be used to render the component. -igor On Tue, Feb 28, 2012 at 7:55 PM, Martin Makundi wrote: > Nope. It requires MarkupStream as its parameter a

Re: onConfigure()

2012-02-28 Thread Igor Vaynberg
shouldnt be. -igor On Tue, Feb 28, 2012 at 2:58 PM, Allen Gilbert wrote: > OK, one more question, then I'll stop pestering everyone...at least for now > : ). > > Is it problematic to make changes to a Component's model in its > onConfigure() method? > > -Allen --

Re: Component implementation - instance variables

2012-02-28 Thread Igor Vaynberg
On Tue, Feb 28, 2012 at 2:49 PM, Allen Gilbert wrote: > I understand that it's not a good idea to store model bean objects as > instance variables in a Component, but I'm not clear on this: is it OK to > store references to child Components as private fields in a parent > Component (e.g. a Panel)?

Re: Performance optimization

2012-02-25 Thread Igor Vaynberg
then its a panel -igor On Sat, Feb 25, 2012 at 4:44 PM, Martin Makundi wrote: >> this is the same as add(new label("foo", new loadabledetachablemodel() >> { load() { return "markup" }}).setescapemdoelstrings(false)) > > Is not completely same, because a MarkupResourceStreamProvider can > als

Re: Performance optimization

2012-02-25 Thread Igor Vaynberg
this is the same as add(new label("foo", new loadabledetachablemodel() { load() { return "markup" }}).setescapemdoelstrings(false)) -igor On Sat, Feb 25, 2012 at 2:00 PM, Martin Makundi wrote: > Now that I am working with the markupresourcestream directly, I am > beginning to think that Wicket s

<    1   2   3   4   5   6   7   8   9   10   >