Re: Making Component easier to Generify

2008-06-13 Thread igor . vaynberg
LOL. -igor On 6/13/08, James Carman <[EMAIL PROTECTED]> wrote: > On Fri, Jun 13, 2008 at 7:02 PM, Matthijs Wensveen <[EMAIL PROTECTED]> > wrote: > >> It's good to know that when you reach the same conclusion it is a >> deliberate >> one. >> BTW, interfaces are useful for this, but not a necessity

Re: Chaining components

2008-06-15 Thread Igor Vaynberg
On Sun, Jun 15, 2008 at 11:38 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > When I chain components, comboboxes and tables etc., I find myself > repeatedly solving the same problem: > * the parent component causes a data reload if you chain your models properly (make child's model depend

Re: Chaining components

2008-06-15 Thread Igor Vaynberg
On Sun, Jun 15, 2008 at 1:57 PM, Martin Makundi <[EMAIL PROTECTED]> wrote: >> if you chain your models properly (make child's model depend on >> parent's model) this should work transparently. > > Say I have a Person with properties Person.country and Person.city. > Then I have a countryCombo = dro

Re: Chaining components

2008-06-16 Thread Igor Vaynberg
AbstractReadOnlyModel> { should work iirc -igor On Mon, Jun 16, 2008 at 7:08 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: >>> What is your idea of nice chaining? >> >> http://wicketstuff.org/wicket13/ajax/choice > > I am using 1.4-m1 and I tried to make > > public abstract class AbstractListChoi

Re: Wicket 1.2 -> 1.3 upgrade question

2008-06-16 Thread Igor Vaynberg
eference. >> >> However, re-mapping the Wicket filter to "/test/*", I can get the >> image to appear if I change the model of my AttributeModifier as > follows: >> >>public HomePage(final PageParameters parameters) { >>WebComponent wmc

Re: Using Guice with IInitializer?

2008-06-16 Thread Igor Vaynberg
IInitializer.onInitializer(Application app) { ServletContext sc=((WebApplication)app).getServletContext(); } -igor On Mon, Jun 16, 2008 at 9:04 AM, cowwoc <[EMAIL PROTECTED]> wrote: > > Hi, > > Can anyone think of a way to inject members into an IInitializer or at least > gain access to an Inj

Re: Please check my fix to terracotta problem

2008-06-16 Thread Igor Vaynberg
i dont know how terracotta works so i will comment on wicket stuff only. looks like a good solution if you are looking to compress the page as far as the number of objects go. a cleaner way to do this might be to do it in sessionstore and share out that class through terracotta. -igor On Mon, Ju

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-16 Thread Igor Vaynberg
be working nicely. Memory problems disappeared. > > - Juha > > Igor Vaynberg wrote: >> >> if someone can confirm that the patch works in a production env i will >> be happy to commit it. i just havent had the time to test it myself >> yet. >> >> -i

Re: isVisible vs. setVisible

2008-06-17 Thread Igor Vaynberg
yep. the problem right now is that we have: set/isVisible - used by user to control visibility set/isVisibleAllowed - used by the framework to enforce visibility independent of user's choice isRenderAllowed - used by authorization strategies the true visibility of the component is actually the co

Re: Validation in FormComponentPanel

2008-06-17 Thread Igor Vaynberg
instead of invalid() call error(msg); -igor On Tue, Jun 17, 2008 at 8:01 AM, NTS <[EMAIL PROTECTED]> wrote: > > Hi, > I have written a simple date component with 3 dropdowns using > FormComponentPanel. > In the method convertInput, I am doing > >Integer day = (Integer) day.getConvertedI

Re: MultiFileUploadField - uploads collection always empty

2008-06-17 Thread Igor Vaynberg
what happens if you move the form out into a top level form? -igor On Tue, Jun 17, 2008 at 8:21 AM, Kurt Heston <[EMAIL PROTECTED]> wrote: > I took the code verbatim from the examples site and can't ever get anything > from the "uploads" collection. The UI components appear to work well in the >

Re: Contributing CSS with Panel components?

2008-06-17 Thread Igor Vaynberg
how do you know css is not contributed after ajax? do you not see it applied or do you not see the link tag when you view source in the browser? what version of wicket? what version of browser? -igor On Tue, Jun 17, 2008 at 3:55 PM, David Nedrow <[EMAIL PROTECTED]> wrote: > Hmm, Google is not bei

Re: Wicket Session Management (constructor called twice)

2008-06-17 Thread Igor Vaynberg
wicket creates temporary session objects for stateless pages until the session is persisted. -igor On Tue, Jun 17, 2008 at 4:29 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > Is there any reason why custom wicket web session is instantiated twice when > presented with login screen. The application u

Re: Wicket Session Management (constructor called twice)

2008-06-17 Thread Igor Vaynberg
you can bind the session in constructor, just call bind(); -igor On Tue, Jun 17, 2008 at 5:28 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > Is there anyway around this problem? I am trying to do automatic > authentication and i would like the Wicket Session to be the same as a > HttpSession (so

Re: Grabbing a form component's input before the form has been submitted

2008-06-17 Thread Igor Vaynberg
getinput() -igor On Tue, Jun 17, 2008 at 6:10 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I have a form that contains a date textfield. When a user fills out the > date and then launches a modal via another link I need to somehow pass > that field's input to the modal's panel. Problem is that

Re: Rare Style disabling and Ajax Panel Replacement Question

2008-06-18 Thread Igor Vaynberg
what happens if you ever need to use both panels on the page simultaneously. personally i would stick with the .panela selector stylesheets -igor On Wed, Jun 18, 2008 at 11:28 AM, German Morales <[EMAIL PROTECTED]> wrote: > Hi, > > I'm here with Francisco, discussing this subject. > > The main di

Re: Grabbing a form component's input before the form has been submitted

2008-06-18 Thread Igor Vaynberg
hat will send an ajax event to notify the server of the > component change so it is updated in the modal. > > > Michael Mehrle wrote: >> >> Nope - still getting null, although the field is populated. How can I >> force this without submitting the form? >> >>

Re: Grabbing a form component's input before the form has been submitted

2008-06-18 Thread Igor Vaynberg
e input and the model. Don't understand why this isn't > being updated. > > Thanks, > > Michael > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2008 5:45 PM > To: users@wicket.apache.org > Subject: Re:

Re: Generic component placeholder

2008-06-18 Thread Igor Vaynberg
wicket's default components do not mutate markup, so you cannot do that. a better contract is eg componentfactor { panel getpanel(string id); } eg ITab in extensions. that way you know it will always work. -igor On Wed, Jun 18, 2008 at 7:39 PM, Dreamage <[EMAIL PROTECTED]> wrote: > > Hi, > > If

Re: Modal Window question

2008-06-18 Thread Igor Vaynberg
why not just spit out some javascript that opens the results window to some bookmarkable url? -igor On Wed, Jun 18, 2008 at 11:06 PM, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: > Hmm, that's a hard one, because you have a requestTarget that does not even > look at the modal window (I think). A

Re: Breadcrumbs and Pages

2008-06-19 Thread Igor Vaynberg
why wouldnt it be possible? just roll your own breadcrumbs component. -igor On Thu, Jun 19, 2008 at 12:34 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > Hi, > We have pages in our web application (naturally). > We have a special XML structure that represents the Pages' hierarchies. > According to th

Re: Static text and condition

2008-06-19 Thread Igor Vaynberg
just give labels a model that can figure out which sentence to show. if you want them stored in .properties files that is fine too. -igor On Thu, Jun 19, 2008 at 6:18 AM, Goran Novak <[EMAIL PROTECTED]> wrote: > > Hi, > > What is the best (wicket) way to do the next: > > I have one page which has

Re: Change to PageParameters?

2008-06-19 Thread Igor Vaynberg
in 1.3 pageparameters properly support string[] arrays like httpservletrequest. you should use pageparameters.getstring(keystring); -igor On Thu, Jun 19, 2008 at 12:29 PM, Frank Silbermann <[EMAIL PROTECTED]> wrote: > In my Wicket 1.2 application I used PageParameters like a simple > HashMap, ca

Re: Session end method

2008-06-19 Thread Igor Vaynberg
according to the servlet spec by the time you get session invalidation notification you can no longer access session attributes in the invalidated session so you cannot store information like this in session itself. instead you need some sort of map:session->info, but then you have to cluster that

Re: Session Creation Problem

2008-06-20 Thread Igor Vaynberg
use a stateless form -igor On Fri, Jun 20, 2008 at 1:21 AM, Jürgen Lind <[EMAIL PROTECTED]> wrote: > Hi, > > I am facing a little annoyance in conjunction with session creation that I > have > been unable to fix until now: > > 1. My pages are guarded using MetaDataRoleAuthorizationStrategy > 2. W

Re: Callback URL raises JavaScript syntax error

2008-06-20 Thread Igor Vaynberg
you have to give it the name of javascript function which will invoke the url, not just the url itself. eg addeventlistener(this, function() { window.location='url'; }) or addeventlistener(this, myfunc); function myfunc() { window.location='url'; } -igor On Fri, Jun 20, 2008 at 6:44 AM, burnt99

Re: wicket servlet mapping to subdirectory

2008-06-20 Thread Igor Vaynberg
interesting 1) you can remove filter init params, when wicket servlet is used the path can be determined from servletrequest 2) can you try with wicket-1.3.x branch to see if we have already fixed it 3) if its still broken file a jira issue -igor On Fri, Jun 20, 2008 at 5:19 AM, Thomas Lutz <[EM

Re: Combine custom component with Button

2008-06-20 Thread Igor Vaynberg
dont use button since you are not submitting the form, instead use a webmarkupcontainer and attach it to the html button tag of type="button"; then wmc.add(new ajaxeventbehavior("onclick") { onevent(ajaxrequesttarget t) { t.appendJavascript("alert('hi');"); }}); if you dont need a roundtrip to th

Re: Session Creation Problem

2008-06-20 Thread Igor Vaynberg
session is created immediately by wicket. Any clues? > > J. > > Igor Vaynberg wrote: >> >> use a stateless form >> >> -igor >> >> On Fri, Jun 20, 2008 at 1:21 AM, Jürgen Lind <[EMAIL PROTECTED]> >> wrote: >>> >>> Hi, >

Re: Session Creation Problem

2008-06-20 Thread Igor Vaynberg
would be great as well. I looked through the > wicket docs but did not find anything relevant. > > Cheers, > > J. > > Igor Vaynberg wrote: >> >> wicket will create session instances for every request if there is no >> session stored in httpsession. the session

Re: Session Creation Problem

2008-06-20 Thread Igor Vaynberg
, > perhaps I will take me some time to figure it out by looking into the > source... > > Thanks, > > J. > > Igor Vaynberg wrote: >> >> once the wicket sesson object is "bound" (stored in httpsesson) their >> lifecycles are the same. it is httpsessi

Re: Setting HiddenField name attrribute value

2008-06-20 Thread Igor Vaynberg
override getinputname() -igor On Fri, Jun 20, 2008 at 2:28 PM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > Is it possible to set specific name to the hidden field component? > > Here is my usage scenario - > > 1. I have radio group for shipping options on a page. > 2. Depending on the shipping

Re: User needs to set timer duration and start and stop

2008-06-20 Thread Igor Vaynberg
you might have to roll your own variant that has both start() and stop() methods. -igor On Fri, Jun 20, 2008 at 9:02 PM, Karen Schaper <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to use the AjaxSelfUpdatingTimer to implement a request to be > able to turn the timer off and on. > > The users

Re: MarkupResourceStream and classloading

2008-06-21 Thread Igor Vaynberg
we shouldnt have a dependency, but if there is something we can improve to make this easier we would be all for it. -igor On Sat, Jun 21, 2008 at 8:34 AM, james yong <[EMAIL PROTECTED]> wrote: > > My take is to implement your own version of IClassResolver. > Wicket shouldn't have dependency on os

Re: MarkupResourceStream and classloading

2008-06-21 Thread Igor Vaynberg
nick, have you tried asking on pax wicket mailing list? those guys use wicket with osgi all the time. perhaps they have a clean solution. -igor On Fri, Jun 20, 2008 at 6:38 AM, Nick Giles <[EMAIL PROTECTED]> wrote: > We're using Wicket within an OSGi evironment (Equinox 3.3.0), and have run > in

Re: How to tell when a page transition occurs?

2008-06-22 Thread Igor Vaynberg
since you are the one performing the transition from A to B you can commit yourself, no? -igor On Sun, Jun 22, 2008 at 12:02 AM, Justin Morgan - Logic Sector <[EMAIL PROTECTED]> wrote: > Hopefully a simple problem for the group... What's the best way to be > notified when the application transit

Re: wicket:head and HeaderContributors

2008-06-22 Thread Igor Vaynberg
if we switch the ordering then someone else will complain :) maybe they add a javascript library via wickethead and have a contributor spitting out some dynamic javascript. point is its a bad idea to depend on the ordering, whichever way it currently is. -igor On Sun, Jun 22, 2008 at 9:52 AM, J

Re: How to tell when a page transition occurs?

2008-06-22 Thread Igor Vaynberg
u're going to transition to > a new page now", so that the programmer has a chance to do any cleanup etc. > That's why I was hoping there's a "onPageTransition()" method on the > application object, or something along those lines. > > - J > > On J

Re: Best practice for navigating between pages

2008-06-22 Thread Igor Vaynberg
On Sun, Jun 22, 2008 at 12:03 PM, brian.diekelman <[EMAIL PROTECTED]> wrote: > > > Passing a Page instance to the constructor of another Page doesn't sound > right to me. Again, it depends on what you're trying to do, but I haven't > seen many instances where passing an instance of 'Page a' versus

Re: wicket:head and HeaderContributors

2008-06-22 Thread Igor Vaynberg
ed only once (which > I can achieve nicely with a HeaderContributor) > > Is there some other way to handle this situation? > > J. > > Igor Vaynberg wrote: >> >> if we switch the ordering then someone else will complain :) >> >> maybe they add a javascr

Re: wicket:head and HeaderContributors

2008-06-23 Thread Igor Vaynberg
On Sun, Jun 22, 2008 at 11:50 PM, Jürgen Lind <[EMAIL PROTECTED]> wrote: > Hi, > > Igor Vaynberg wrote: >> >> you can put the javascript that uses your library into window's onload >> or ondomready event, so it will be executed later. wicket-event.js and >

Re: Spring's AbstractMessageSource : read new label from DB

2008-06-23 Thread Igor Vaynberg
application.get().getresourcesettings().getlocalizer().clearcache(); -igor On Mon, Jun 23, 2008 at 1:27 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > Hello again, > > maybe some more clarification why I guess this is wicket related. > org.apache.wicket.resource.loader.IStringResourceLoader

Re: Regarding Loacale

2008-06-23 Thread Igor Vaynberg
no. session also has setlocale(locale) so you can call that on every request if you wanted to... -igor On Mon, Jun 23, 2008 at 3:39 AM, Wilhelmsen Tor Iver <[EMAIL PROTECTED]> wrote: >> When I, on the fly, change the language to something else >> (de_CH), the Locale in my application is not chang

Re: Session end method

2008-06-23 Thread Igor Vaynberg
session.invalidate() triggers the invalidation, just like it does in httpsession. you might want to read the javadoc. -igor On Mon, Jun 23, 2008 at 6:29 AM, Zappaterrini, Larry <[EMAIL PROTECTED]> wrote: > Ah, I see that now. I didn't dig deep enough. When I first started > working with Wicket se

Re: Invisible fields in wicket

2008-06-23 Thread Igor Vaynberg
see component.setOutputMarkupPlaceHolderTag(true). that should cure your ailment. -igor On Mon, Jun 23, 2008 at 6:44 AM, andresc <[EMAIL PROTECTED]> wrote: > > Hi everybody, this is my first post in the list. > > I would like to ask for advice on the following topic: I am developing a > view with

Re: wicket servlet mapping to subdirectory

2008-06-23 Thread Igor Vaynberg
t's > relative to the webapp context, but not including the servlet path. > > I am playing around to find a workaround, if I am lucky I'll post the > solution here, in case other unlucky oc4j users are out there :-). > > Thanks again, > Tom > > > > Igor Vay

Re: Session end method

2008-06-23 Thread Igor Vaynberg
sed? > > Thanks, > Larry > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 11:11 AM > To: users@wicket.apache.org > Subject: Re: Session end method > > session.invalidate() triggers the invalidation, just like it

Re: Including wicket in JSPs?

2008-06-23 Thread Igor Vaynberg
http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/ google is your friend -igor On Mon, Jun 23, 2008 at 8:24 AM, <[EMAIL PROTECTED]> wrote: > Hello ! > > We are using a JSP-based content management system for navigation, page > layout etc. > Now we're evaluating Wicket as our

Re: Session end method

2008-06-23 Thread Igor Vaynberg
k on Session such as > onUnbind. Maybe this isn't a common enough use case to warrant a new > method though. > > Thanks, > Larry > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 12:48 PM > To: users@wicket.a

Re: Session end method

2008-06-23 Thread Igor Vaynberg
ogging > information about the session when it is invalidated fits this > description. > > -----Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2008 1:22 PM > To: users@wicket.apache.org > Subject: Re: Session end method >

Re: PageableListView and Detachable Models

2008-06-23 Thread Igor Vaynberg
detach() is indeed called in the end of every request. what exactly is your requirement? you want to run the query once, upon page entry, and then always reuse the same resultset without doing another query? in that case store the list of ids in your resultset as a property of the page. the model

Re: PageableListView and Detachable Models

2008-06-23 Thread Igor Vaynberg
the model can be aware that it is used by the listview. the separation here is that the listview is unaware of where or how its list is built. for database stuff i prefer using dataview, it has database semantics more closely built into it. -igor On Mon, Jun 23, 2008 at 1:55 PM, Jürgen Lind <[EM

Re: PageableListView and Detachable Models

2008-06-23 Thread Igor Vaynberg
<[EMAIL PROTECTED]> wrote: > Ok, but since I pass the model into the constructor of the listview, how > is the model informed which part of the data to load? Is there a method > that I have been missing? > > J. > > Igor Vaynberg wrote: >> >> the model can be awa

Re: SubmitLink enter listener

2008-06-23 Thread Igor Vaynberg
form.setdefaultbutton(link) -igor On Mon, Jun 23, 2008 at 2:21 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > How can I get SubmitLink , AjaxSubmitLink and preferrably Link, AjaxLink to > respond to enter? > > I'd hoped that submit did this but maybe this requires javascript? > --

Re: Google friendly urls

2008-06-23 Thread Igor Vaynberg
setResponsePage( new ItemPage( filters ) ) ; that wont work because it does not generate a bookmarkable url. you have to encode filters in pageparameters and use bookmarkable page links, such as: add(new bookmarkablepagelink(ItemPage.class, filtersPageParameters)); you can also use StatelessLink

Re: Google friendly urls

2008-06-23 Thread Igor Vaynberg
pretty much. once you have to go this route you lose wicket's automagic state management ability and have to marshal objects to url and back yourself like you would in struts, etc. -igor On Mon, Jun 23, 2008 at 3:22 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Thanks! > > But this you m

generics

2008-06-23 Thread Igor Vaynberg
development of the 1.4 branch has been quiet lately, this is because the core team has been busy working on an alternative way of generifiing the framework. an early result of that effort can be found here [1]. The key difference in [1] is that we have decoupled the component from the type of the m

Re: add image tag to the ajax link

2008-06-23 Thread Igor Vaynberg
two ways: 1) wrap the link and img into panel 2) see how label works and write out the img tag as a raw string -igor On Mon, Jun 23, 2008 at 11:00 PM, nasrin mansour <[EMAIL PROTECTED]> wrote: > hi, > there is an sub class from ajax link that i add a image to it . and i use it > in many panel >

Re: add image tag to the ajax link

2008-06-23 Thread Igor Vaynberg
etc but i dont realy know what xmltag must be written > > > On Tue, Jun 24, 2008 at 9:33 AM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> two ways: >> >> 1) wrap the link and img into panel >> 2) see how label works and write out the img tag as a raw

Re: DataTable-like component for open-ended data sets

2008-06-24 Thread Igor Vaynberg
simply return Integer.MAX_SIZE from dataprovider.size(), and subclass the dataprovider and hide the gotoend link. -igor On Tue, Jun 24, 2008 at 2:29 AM, Jan Stette <[EMAIL PROTECTED]> wrote: > The application I'm working on needs several instances of a > DataTable/GridView-like component where th

Re: help with RadioGroup in Table

2008-06-24 Thread Igor Vaynberg
create a quickstart and post it somewhere. its hard for anyone to wave their dead chicken in front of the screen. -igor On Tue, Jun 24, 2008 at 4:59 AM, jnorris <[EMAIL PROTECTED]> wrote: > > This problem is a real show-stopper for me so I really need some help if > anyone has done something simi

Re: default data table and navigation toolbar

2008-06-24 Thread Igor Vaynberg
roll your own datatable subclass instead of the default one, and override isvisible on the navigation label to work how you want it to. -igor On Tue, Jun 24, 2008 at 5:07 AM, Karen Schaper <[EMAIL PROTECTED]> wrote: > Hi, > > I have a question about the navigation toolbar on my DefaultDataTable >

Re: Trying to use spring with wicket

2008-06-24 Thread Igor Vaynberg
i think this maven archetype might be what you are looking for http://www.wicketstuff.org/teamcity/viewType.html?buildTypeId=bt17 -igor On Tue, Jun 24, 2008 at 8:29 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote: > Hello guys, > > I'm trying to get Wicket use Spring & Hibernate correctly. I don'

Re: generics

2008-06-24 Thread Igor Vaynberg
should compile now, there maybe be some failing tests, but mvn clean install -Dmaven.test.skip=true works for sure -igor On Tue, Jun 24, 2008 at 7:41 AM, Martin Funk <[EMAIL PROTECTED]> wrote: > >> basically we feel this is a much cleaner way then what is 1.4m2. this >> is a call for confirmation

Re: Changing default form button via Ajax

2008-06-24 Thread Igor Vaynberg
i would take what is now AjaxFormSubmitBehavior and rip out the bits that actually process the form, and then use that instead of ajaxformcomponentupdatingbehavior -igor On Tue, Jun 24, 2008 at 11:03 AM, n0_fixed_ab0de <[EMAIL PROTECTED]> wrote: > > Got a problem and don't know what I'm doin and

Re: Updating ListView via AJAX

2008-06-24 Thread Igor Vaynberg
protected void populateItem(final ListItem item) { GroupMembership groupMembership = (GroupMembership) item.getModelObject(); item.add(new Label("group", new PropertyModel(item.getmodel(), "group")); item.add(new CheckBox("member", new PropertyModel(item.getmodel(), "selected"))); } -igor O

Re: Updating ListView via AJAX

2008-06-24 Thread Igor Vaynberg
, the ListView is still > not updating after making those changes. Any other ideas? > > Thanks again, > Ryan > > On Jun 24, 2008, at 3:46 PM, Igor Vaynberg wrote: > >> protected void populateItem(final ListItem item) { >> GroupMembership groupMembership = (GroupMem

Re: Client side validation

2008-06-24 Thread Igor Vaynberg
the reason we have not done this is that client side validation is limited. also a lot of applications want a consistent look and feel for javascript validation, which is not possible via a framework. what we are going to do in 1.5 is allow ivalidator to also implement ibehavior, this will allow a

Re: Client side validation

2008-06-24 Thread Igor Vaynberg
yes -igor On Tue, Jun 24, 2008 at 2:38 PM, Manuel Corrales <[EMAIL PROTECTED]> wrote: > Ok, great. I dont fully get what is the issue with the look and feel? Do you > mean the way that errors are displayed? (popups, colored inputs, lists) > > Manuel. > > On Tue, Jun 2

Re: How to know the markupStream of a border body

2007-12-13 Thread Igor Vaynberg
the markup stream of the border's body is that of border's parent. -igor On Dec 13, 2007 7:42 AM, Jan Vermeulen <[EMAIL PROTECTED]> wrote: > > We have created an FieldSet component that automatically creates components > for the input fields in the form using information of the bean passed to it

Re: Keep state of values between AjaxTabbedPanel tab change

2007-12-13 Thread Igor Vaynberg
instead of returning ajaxfallbacklink return ajaxsubmitlink or use javascript tabs rather then serverside tabs -igor On Dec 13, 2007 10:18 AM, Daniel Wu <[EMAIL PROTECTED]> wrote: > > Hi, > How can I keep the state of the fields of a tab (DropDownChoice and > TextField fields) when I switch tab

Re: GWT + Wicket

2007-12-13 Thread Igor Vaynberg
let us know when you are ready to contribute something like this :) -igor On Dec 13, 2007 9:02 AM, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote: > rather than have Wicket/GWT > > sincerely i envision a wicket contrib project that can help us generate > javascript on the fly from pure java code wi

Re: GWT + Wicket

2007-12-13 Thread Igor Vaynberg
i believe we have halped dan on irc. he was afraid that the wicket filter would block requests to the servlet used to communicate with gwt, when in fact this is not the case. wicket filter will not handle non-wicket related requests, thus they will be passed down to the servlet. -igor On Dec 11,

Re: Getting Error "Field not serializable" on one of the constructor attrib ?

2007-12-13 Thread igor . vaynberg
your form anonymous class keeps the ref to your login svc instance -igor On 12/13/07, mfs <[EMAIL PROTECTED]> wrote: > > Ok...so here is the LoginPanel class...with the constructor i was referring > to .. further the implementation for I_LoginService (i.e. LoginService...on > which the serializab

Re: Question about wicket:message

2007-12-13 Thread Igor Vaynberg
have you tried encoding the column's : char into &whatever; ? if that doesnt work then add an rfe into our jira -igor On Dec 13, 2007 3:22 PM, AshleyAbraham <[EMAIL PROTECTED]> wrote: > > I am trying to use wicket:message inside a tag in the following format > wicket:message="attribute:resource_

Re: Using Spring beans with session scope

2007-12-13 Thread Igor Vaynberg
i think it should work, you simply have to declare the bean as scope=session in spring config -igor On Dec 13, 2007 3:57 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > I am a newbie to wicket. Our wicket application is integrated with Spring > using the SpringComponentInjector. Is it possible to se

Re: Using Spring beans with session scope

2007-12-13 Thread Igor Vaynberg
show us the complete stack trace -igor On Dec 13, 2007 9:08 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > Igor, > > The exception happens while loading the spring config files - > > Caused by: java.lang.IllegalStateException: No thread-bound request found: > Are you referring to request attributes

Re: Using Spring beans with session scope

2007-12-13 Thread Igor Vaynberg
this is a spring error not a wicket one. im guessing there is some sort of a filter you need to map to web.xml that lets spring retrieve the http session. -igor On Dec 13, 2007 10:36 PM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > > Caused by: org.springframework.beans.factory.BeanCreationException:

Re: Getting Error "Field not serializable" on one of the constructor attrib ?

2007-12-14 Thread Igor Vaynberg
On Dec 14, 2007 9:54 AM, mfs <[EMAIL PROTECTED]> wrote: > > hmm..but should it do that?...its not an instance within the form, i mean > we'll be invoking the service layer from within the form.onsubmit (most of > the times) event, and that would require all the service or other classes > invoked to

Re: Session.invalidate()

2007-12-14 Thread Igor Vaynberg
session.invalidate(); setresponsepage(new mypage()); requestcycle.setredirect(true); <=== -igor On Dec 14, 2007 8:14 PM, NateRedding <[EMAIL PROTECTED]> wrote: > > Hello, > > I am writing a web application that has a need to log the user out when a > certain action is performed. So, I do a Sessi

Re: Session.invalidate()

2007-12-15 Thread Igor Vaynberg
gt; > I see 2 options > > Session.invalidat() > setResponsePage(new mypage()); > setRedirect(false) > > Or > Session.invalidat() > setResponsePage(mypage.class); > setRedirect(true) > > > > On 12/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > session.invalid

Re: Two home pages?

2007-12-15 Thread Igor Vaynberg
probably easier to factor out those two pages into panels and have a single homepage that shows the right panel. -igor On Dec 15, 2007 8:44 PM, Cristina <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm working on an app where users and admins will perform mutually exclusive > use cases. That's quit

Re: Getting Error

2007-12-16 Thread Igor Vaynberg
this is how java works. look public class Foo { public void foo() { final OutputStream out=System.out; Link link=new Link("link") { public protected void onclick() { out.println("clicked"); }} serialize(link); }} what happens in serialize() ? Link is an anonymous class so it automatically

Re: Suckerfish dropdowns for wicket

2007-12-17 Thread Igor Vaynberg
give us your sf.net name and we will add you to the project. -igor On Dec 17, 2007 11:07 AM, JulianS <[EMAIL PROTECTED]> wrote: > > > Matej Knopp-2 wrote: > > > > Why don't you post a comment to the article? > > > > -Matej > > > I'm the author and I'd be happy to contribute the code to wicket-st

Re: How to set the current application to a new thread?

2007-12-17 Thread Igor Vaynberg
you cannot push a page to the browser, the browser has to request it. so what i would do is have a timer on client side that requests a new page every x seconds. see AbstractAjaxTimerBehavior -igor On Dec 17, 2007 2:16 PM, dzenanr <[EMAIL PROTECTED]> wrote: > > I have been trying to develop a s

Re: dynamic url

2007-12-17 Thread Igor Vaynberg
keep in mind this wont work if javascript is disabled -igor On Dec 17, 2007 11:23 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > I'm using wicket to develop an online exam system and its important that > > users dont open new tabs in the same browser and start answering different > > questio

Re: Ajax Feedback Problem in 1.3

2007-12-18 Thread Igor Vaynberg
On Dec 18, 2007 1:25 AM, SantiagoA <[EMAIL PROTECTED]> wrote: > > vwdComponent.add(new AjaxFormComponentUpdatingBehavior("onblur"){ > private static final long serialVersionUID = 4932149086847602955L; > @Override > protected void onUpdate(AjaxRequestTarget target){ > l

Re: ListView TextFields return null

2007-12-18 Thread Igor Vaynberg
the way you are using compound modelevery textfield is writing into the same property - so no matter how many you have you will only keep the input of the last one processed. you need a model that can properly populate a list...makes sense? -igor On Dec 18, 2007 3:39 AM, Alexander Landsnes K

Re: Accessing username from Page & Unit test

2007-12-18 Thread Igor Vaynberg
interface icredentialsprovider { credentials getusercredentials(); } public class customwebsession extends authenticatedsession implements icredentialsprovider { } class mocksession extends websession implements icredentialsprovider { } ((icredentialsprovider) getSession()).getUserCrede

Re: Ajax Feedback Problem in 1.3

2007-12-18 Thread Igor Vaynberg
any exceptions in the log/console? seems pretty damn strange to me. can you verify onerror() is being called on the ajax behavior? -igor On Dec 18, 2007 11:27 PM, SantiagoA <[EMAIL PROTECTED]> wrote: > > Thanks for the answer, but that doesn´t work either. > It´s a bit strange, but if I set the

Re: AjaxEditableLabel not saving

2007-12-19 Thread Igor Vaynberg
and what about rc3? -igor On Dec 19, 2007 9:54 AM, Artur W. <[EMAIL PROTECTED]> wrote: > > > Azarias Tomás wrote: > > > > Hi, > > > > I am this exception when editing an AjaxEditableLabel : > > > > java.lang.IllegalAccessError: tried to access method > > org.apache.wicket.Component.onModelChangi

Re: Ajax Feedback Problem in 1.3

2007-12-19 Thread Igor Vaynberg
is onupdate called? -igor On Dec 19, 2007 12:34 AM, SantiagoA <[EMAIL PROTECTED]> wrote: > > No exceptions in the console. Debug shows that the onError() is never called. > > -Santiago > > > > igor.vaynberg wrote: > > > > any exceptions in the log/console? seems pretty damn strange to me. > > ca

Re: Accessing username from Page & Unit test

2007-12-19 Thread Igor Vaynberg
class mockwebapp extends webapplication { newsession() { return new mockwebsession(); }} new WicketTester(new mockwebapp()); -igor On Dec 19, 2007 8:11 AM, Ravi_116 <[EMAIL PROTECTED]> wrote: > > Igor, > Thanks for the reply. How can i set the MockWebSession on the session object > ? Is there an

Re: [AuthenticatedWebSession] Constructor called twice

2007-12-19 Thread Igor Vaynberg
can you show us the two stack traces? -igor On Dec 19, 2007 8:21 AM, Pills <[EMAIL PROTECTED]> wrote: > > Hi everybody, > > I found something a bit strange. I put a "System.out.println("here")" on my > AuthenticatedWebSession's constructor, and it seems to be called twice for > each new user...

Re: Writing Ajax applications that gracefully degrade

2007-12-19 Thread igor . vaynberg
yes it is possible and not too hard. Don't know if we support it thoroughly enough, but start with *ajaxfallback* components. -igor On 12/19/07, oliverw <[EMAIL PROTECTED]> wrote: > > Being totally new to Wicket I would like to know if it would be technically > feasible to write Ajax applications

Re: [AuthenticatedWebSession] Constructor called twice

2007-12-19 Thread Igor Vaynberg
you can generate the stack traces -igor On Dec 19, 2007 1:45 PM, Pills <[EMAIL PROTECTED]> wrote: > > > igor.vaynberg wrote: > > > > can you show us the two stack traces? > > > > -igor > > > > There is no really stack trace. I have this output in my console when I > launch it from eclipse. >

Re: How to call the clear() method on MarkupCache class from my webpage

2007-12-19 Thread Igor Vaynberg
see IMarkupCacheKeyProvider class mypage extends webpage implements IMarkupCacheKeyProvider { } -igor On Dec 19, 2007 3:15 PM, venky221 <[EMAIL PROTECTED]> wrote: > > Hi, > I am trying to clear the markupstream as my markup content will keep > changing but the container remains same. How c

Re: Getting Error "Field not serializable" on one of the constructor attrib ?

2007-12-19 Thread Igor Vaynberg
class DependencyProvider implements Provider, Serializable { private String typeName; public final DependencyProvider(Class dependencyType) { typeName=dependencyType.getName(); } public T get() { return ((MyApplication)Application.get()).getDependency(Class.forName(typeName)); }

Re: How to flush the markup stream in getMarkupResourceStream() method

2007-12-19 Thread Igor Vaynberg
public class DisplayPage extends WebPage implements IMarkupResourceStreamProvider, **IMarkupCacheKeyProvider** {...} -igor On Dec 19, 2007 11:34 PM, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > Me Too! > > Well, not exactly, but similar issue: > > We read markup files from the file systems, and co

Re: Strange wicket bug in DataView?

2007-12-20 Thread Igor Vaynberg
that is actually in our gotchas wiki page - images with src="" cause a request to the page... -igor On Dec 20, 2007 6:54 PM, Tauren Mills <[EMAIL PROTECTED]> wrote: > I think this problem is caused by the browser. Using Firebug, it > looks like the browser is actually requesting the page a seco

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