RE: quickstart POM has wrong artifactId for jetty maven plugin

2010-03-26 Thread dukehoops
FWIW, this is happening because version/ is omitted in generated pom.xml plugin/ tag. To fix: change plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId

isVisibilityAllowed() not consulted before calling onBeforeRender()?

2008-11-23 Thread dukehoops
I have a component whose parent does this: class Parent extends Panel private Component child; onBeforeRender() { child.setVisibilityAllowed(false); super.onBeforeRender(); } I would expect child's onBeforeRender() to not be executed but it is, because Component.internalBeforeRender calls

Re: isVisibilityAllowed() not consulted before calling onBeforeRender()?

2008-11-23 Thread dukehoops
JIRA filed: https://issues.apache.org/jira/browse/WICKET-1954 Apologies, but I am not setup to create a quick-start. Hopefully, description is precise enough. - Nikita Tovstoles vside.com -- View this message in context:

Permgen OOM - *not* reloading context

2008-10-19 Thread dukehoops
Our production servers running tomcat6, JVM 1.6 and Wicket 1.3.4 are running out of PermGen space after a couple of hours an a few thousands requests, eventually resulting in cannot detach Request from Session exceptions followed by PermGen OOM. We are NOT reloading app contexts - appservers are

list of possible message resource keys?

2008-10-14 Thread dukehoops
Is there a list of all possible message bundle resource keys that wicket 1.3.4 recognizes? I thought it's: name of class implementing IValidator sans trailing Validator but then there are Required and LengthValidator keys so I guess not... thanks! -nikita - Nikita

Re: list of possible message resource keys?

2008-10-14 Thread dukehoops
Is it whatever AbstractValidator.resourceKey() returns? dukehoops wrote: Is there a list of all possible message bundle resource keys that wicket 1.3.4 recognizes? I thought it's: name of class implementing IValidator sans trailing Validator but then there are Required

Re: Example of pseudo-ajax file uploading using iframes

2008-10-09 Thread dukehoops
Does anyone have a copy of this (or any other) Ajax file upload example? The attachment mentioned below does not open. thanks -nikita Carlos Pita-4 wrote: Hi all, here is a hopefully functional example showing how to use an iframe to upload a file and afterwards call a behavior on a

markup for component extending RadioGroup?

2008-10-09 Thread dukehoops
Hi, I created a component MyRadioGroup that extends RadioGroup (has two Radios inside). I cannot figure out what to put in MyRadioGroup.html. The following does not work because it expects MyRadioGroup to be a Panel: wicket:panel input wicket:id=radio1 type=radio/ input wicket:id=radio2

please review my CompoundPropertyModel use

2008-10-07 Thread dukehoops
The following code works (have unit tests) but I would appreciate a code review from someone. Legend MyPojo - bean backing up form MyProperty - another POJO that is property of MyPojo (MyPojo has field 'myProperty' of type MyProperty) MyFormComponent - custom form component that

Re: please review my CompoundPropertyModel use

2008-10-07 Thread dukehoops
I thought that as well, but turns out in that case MyFormComponent.getModelObject() returns MyPojo, and NOT MyProperty. That presents two problems: -MyFormComponent does not really need to know of MyPojo to begin with (what if MyProperty is obtained some other way) -in

Re: Custom Radio component with children?

2008-10-06 Thread dukehoops
I made my component a subclass of FormComponentPanel and overrode convertInput(). However when form containing this formComponentPanel is submitted, panel's convertInput method is never called. As result panel displays correctly, but changes are lost on submission. Any ideas? -

Re: Custom Radio component with children?

2008-10-06 Thread dukehoops
Sure, here it is below. Test selects a non-default value from 'publicLocationChoices' drop down. Problems are: -on form submit, LocationSelectionPanel.convertInput() is not called (have breakpoint there) -in debugger, I can see dropDown's rawInput changing on form submit, but model's object

Re: Custom Radio component with children?

2008-10-06 Thread dukehoops
It is not easy for me to check whether this component functions outside of test harness at the moment (dependency issues) but I will do so tomorrow. In the mean time, debugging the unit test further I can tell that: radioGroup and DropDownChoices are the only components that get called by

Custom Radio component with children?

2008-10-03 Thread dukehoops
I'd like to create a component that consists of: -radio -dropdown choice The component would be part of a RadioGroup, drop down should only be enabled when radio is selected. The component, radio, and dropdown's getModelObject() would return same MyBean pojo (Dropdown's is displaying a list of

Re: Custom Radio component with children?

2008-10-03 Thread dukehoops
You mean check the convertedinput() of radiogroup not radio, correct? igor.vaynberg wrote: the easiest way to do this would be to make your component a formcomponentpanel then you have formcomponentpanel -radiogroup --radio1 --radio2 -dropdown and in your fcp's convertinput()

Re: why does ExternalLink generate span instead of a simple a

2008-08-07 Thread dukehoops
igor.vaynberg wrote: you can add the link to a fragment, and then add the fragment to the column. I did the above and it worked like a charm. Thanks and -again - nice job on the framework! - Nikita Tovstoles vside.com -- View this message in

Re: Invalid Spring Context with ERROR dispatcher?

2008-08-06 Thread dukehoops
The problem may be same as here: http://jira.springframework.org/browse/SPR-4480 Unfortunately, Spring's fix created seems to be JSF-specific, so I guess it is not possible to have a Wicket error page that accesses Spring context and is forwarded to using ERROR dispatcher because: -

why does ExternalLink generate span instead of a simple a

2008-08-05 Thread dukehoops
This code: ExternalLink profileLink = new ExternalLink(componentId, profileURL, dto.getUserName()); profileLink.setPopupSettings(new PopupSettings()); Produces this markup: NOTE: ',' replaced with '[,]' [span onclick=var w =

Re: why does ExternalLink generate span instead of a simple a

2008-08-05 Thread dukehoops
I see, but in this case I didn't provide any markup. ExternalLink is being added in a PropertyColumn.populateItem method to a (cell) Item of PropertyColumn of a DataTable. The markup is solely this: [table wicket:id=filter-data cellspacing=0 cellpadding=2 class=grid

ChoiceFilteredPropertyColumn does not filter out; where to debug?

2008-08-04 Thread dukehoops
I have a ChoiceFilteredPropertyColumn displaying enum values (as part of AjaxFallbackDefaultDataTable). Column itself renders same enum as bean property. On dropdown update form submits, and - via debugger - I can see that filter state gets updated to new enum selection. However rows with

Re: ajax request timeout different from Session timeout?

2008-07-26 Thread dukehoops
Excellent point! Perhaps (assuming that code review for non-serializable state is not possible in the near term) we should replace DiskPageStore with InMemoryPageStore (that we'd write). Do you know where DiskPageStore actually stores this data - I'd like to check out that file size in our

ajax request timeout different from Session timeout?

2008-07-25 Thread dukehoops
Hi, My webapp's session-timeout is set to 30 minutes but some ajax requests result in PageExpiredExceptions if AjaxSubmitLinks are clicked after about 5 minutes of inactivity. Is there a timeout value for ajax requests (or page expiration timeout values) that is distinct from HttpSession's

recommend a CMS to integrate w/our wicket-based webapp?

2007-10-27 Thread dukehoops
Hi, We're developing our (social networking ;- ) site using wicket talking to our Spring-managed services layer. We're going to need to provide content management features for our internal users (admins, moderators, marketers) and I'm exploring possible solutions. I realize we can build our

Re: redirect request for Page A to page B without contructing A?

2007-10-17 Thread dukehoops
Implemented a SimplePageAuthorizationStrategy; works but there is a gotcha: Say the home page has a (non-ajax) login form: 1. unauthenticated users navigates to home page and is authorized 2. user submits valid login info. 3. At this point I'd assumed Home page would be re-requested (does wicket

Re: redirect request for Page A to page B without contructing A?

2007-10-16 Thread dukehoops
profile page -nikita Eelco Hillenius wrote: If it is intercepting what you're after (like you'd do when enforcing authorization), look at IComponentInstantiationListener. What is your use case? Eelco On 10/16/07, dukehoops [EMAIL PROTECTED] wrote: Hi, I'd like to redirect requests

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread dukehoops
I'm seeing the same problem. My markup: wicket:container id=loginInfoContainer [userName] !--Hello, # [userName] /a-- /wicket:container Code: //in

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread dukehoops
Duh, my markup was wrong! should have been wicket:container wicket:id dukehoops wrote: I'm seeing the same problem. My markup: wicket:container id=loginInfoContainer __span wicket:id=userNameLabel[userName]/__span

Re: wicket:container beta3 and post snapshots

2007-10-05 Thread dukehoops
once I fixed my markup typo everything worked fine - so nothing to fix here. -nikita igor.vaynberg wrote: submit a quickstart and make sure you are trying against trunk -igor On 10/5/07, dukehoops [EMAIL PROTECTED] wrote: Duh, my markup was wrong! should have been wicket:container

webpage instance scope?

2007-10-03 Thread dukehoops
Hi, I'm evaluating Wicket as a potential replacement for JSF and have a question (tried searching, read wiki): What is the lifespan of a WebPage / Panel subclass instance? In JSF, page-backing beans can be request/session/app scoped. I read that Wicket is an unmanaged framework. Does that mean

is wicket well-suited for integrating JS widgets?

2007-10-03 Thread dukehoops
I'm a complete newbie to wicket (coming from JSF, Swing world) and am in process of building small examples as part of framework eval. I'm looking for a framework that'd make it easy to integrate arbitrary JS ui components. Let's say Y!UI or Script.aculo.us develops a new super-accordion (or

Re: webpage instance scope?

2007-10-03 Thread dukehoops
On 10/3/07, dukehoops [EMAIL PROTECTED] wrote: Hi, I'm evaluating Wicket as a potential replacement for JSF and have a question (tried searching, read wiki): What is the lifespan of a WebPage / Panel subclass instance? In JSF, page-backing beans can be request/session/app scoped. I read