Re: Dunamic neted List Views

2010-10-11 Thread Arjun Dhar
ok as usual I bet myself to it, here is the answer : Basically use a ListView over a ListView! @Override public void renderMenu() { IModelMenuItemState modelState = getState(); final MenuItemState rootState = modelState.getObject();

RE: Testing concurrant updates on database

2010-10-11 Thread CREMONINI Daniele
Thank you for your reply. I'm using Wicket 1.3.4. The optimistic locking is enabled for sure (the program has been written by me) and metadata and data confirm that things are actually functioning the way I thought. Because the Page contains a LoadableDetachableModel, every time I submit the

Re: Customizing the Datepicker for a background mask

2010-10-11 Thread amigo
Hello all, Have anyone tried to resolve this issue with wicket datepicker earlier?... Any suggestions regarding how to proceed are also welcome. Thanks in advance, Amigo -- View this message in context:

Re: Testing concurrant updates on database

2010-10-11 Thread James Carman
You're really not supposed to be monkeying with the version property yourself. You're supposed to let the ORM provider do that. What I would do is create a hidden field and put a validator on that. The validator would check to make sure that the current version in the database is the same as

ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
Hi Team, I am looking for a dropdown list that narrows down based on what is typed and Loads the values from the database as the user types. Something like the dropdown in visural wicket http://wicket.visural.net/examples/app/dropdownbut doesnt preload all the values. My other option is the

Re: ajax lazy suggestion box

2010-10-11 Thread James Carman
It's called a auto-complete: http://wicketstuff.org/wicket14/ajax/autocomplete On Mon, Oct 11, 2010 at 4:19 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi Team, I am looking for a dropdown list that narrows down based on what is typed and Loads the values from the database as the user

Re: ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
I have looked at the autocomplete box that you have suggested. The issue i have with it is that if i type some text that appears in the middle , it wont be looked up. If for example am looking for United Arabs Emirates, i cant look up by typing Arabs. I have to start by typing United. get my

Re: ajax lazy suggestion box

2010-10-11 Thread James Carman
The lookup functionality is provided by you. You can do whatever you want with the input. Look at the example and implementation of the getChoices() method. It would be trivial to change it to do a contains rather than startsWith search. On Mon, Oct 11, 2010 at 4:29 AM, Josh Kamau

Re: ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
Thanks James. Let me look at it. Seems like there is always an answer with wicket. Regards. Josh On Mon, Oct 11, 2010 at 11:35 AM, James Carman ja...@carmanconsulting.comwrote: The lookup functionality is provided by you. You can do whatever you want with the input. Look at the example

Re: ajax lazy suggestion box

2010-10-11 Thread Josh Kamau
Just did it. It worked just as i wanted. Thanks. On Mon, Oct 11, 2010 at 11:39 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks James. Let me look at it. Seems like there is always an answer with wicket. Regards. Josh On Mon, Oct 11, 2010 at 11:35 AM, James Carman

Re: ajax lazy suggestion box

2010-10-11 Thread James Carman
No problem. Glad to help. Happy Wicketeering! On Mon, Oct 11, 2010 at 4:44 AM, Josh Kamau joshnet2...@gmail.com wrote: Just did it. It worked just as i wanted. Thanks. On Mon, Oct 11, 2010 at 11:39 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks James. Let me look at it. Seems

Re: Page Expired page with PatternDateConverter

2010-10-11 Thread Altuğ Bilgin Altıntaş
if you don't override IConverter then everything works fine ? 2010/10/11 Hemant Shah prot...@gmail.com Altuğ, thanks for responding. There are no errors reported in the log. All the classes in the project are serializable. Could this be a bug? Regards, Hemant On 10/10/2010 5:03

DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread splitshade
Hi, i have spent some time researching this strange behaviour. I have a Page with some Panels, that contain DropDownChoices. These Panels are initially disabled on the Page. If a validationError occurs on this page, ALL dropdownchoices that are in disabled panels lose their values. Is this a

Re: DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread Altuğ Bilgin Altıntaş
did you bind DropDownChoices with models (ex : PropertyModel) ? 2010/10/11 splitshade martin.dil...@googlemail.com Hi, i have spent some time researching this strange behaviour. I have a Page with some Panels, that contain DropDownChoices. These Panels are initially disabled on the Page.

Re: DropDownChoice loses Selection in Disabled Panels

2010-10-11 Thread splitshade
Hi, yes exactly. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2989706.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Page Expired page with PatternDateConverter

2010-10-11 Thread Hemant Shah
Yes, it works fine if we do not override the getConverter method. In which case it behaves like a normal AjaxEditableLabel, as would be expected, and we are using AjaxEditableLabel instances in many places in our application. - Hemant On 10/11/2010 6:24 AM, Altuğ Bilgin Altıntaş wrote: if

Re: chrome + wicket ajax + back button = problem?

2010-10-11 Thread Ryan Crumley
I have (I am using MixedParamHybridUrlCodingStrategy) however in this case the browser is not contacting the server on back button click so the UrlCodingStrategy does not come into play. Ryan On Wed, Oct 6, 2010 at 4:13 PM, mzem...@osc.state.ny.us wrote: I've had similar issues, have you tried

Re: chrome + wicket ajax + back button = problem?

2010-10-11 Thread Pointbreak
See https://issues.apache.org/jira/browse/WICKET-923 for a solution. On Mon, 11 Oct 2010 09:31 -0500, Ryan Crumley crum...@gmail.com wrote: I have (I am using MixedParamHybridUrlCodingStrategy) however in this case the browser is not contacting the server on back button click so the

RE: Testing concurrant updates on database

2010-10-11 Thread CREMONINI Daniele
SOLVED! I followed your advice and added an hidden field to the Page (this is much simpler than my previous solution) but instead of using a Validator I made the service layer catch OptimisticLockingFailureException (thrown by the ORM layer) and rethrow a custom Exception. Your advice on

Confused about Resource basics

2010-10-11 Thread Wayne Pope
Hi, I just realised that our session is getting loaded multiple times per web request. I see that aside from the page request the session is getting loaded for items such as css, js, etc that are referenced in the code. Now I'm trying to make sure I understand resources correctly in terms of

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma
meduolis wrote: Again, I can offer a hack :D public class DoSomeHackBehavior extends AbstractBehavior { private static final long serialVersionUID = 3554634545756435367L; @Override public void onComponentTag(Component component, ComponentTag tag) {

Re: Confused about Resource basics

2010-10-11 Thread Wayne Pope
Further to this - if I look at the code in the wicket filter: resource = webApplication.getSharedResources().get(resourceReferenceKey); // If resource found and it is cacheable if ((resource != null) resource.isCacheable())

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma
Again, I can offer a hack :D public class DoSomeHackBehavior extends AbstractBehavior { private static final long serialVersionUID = 3554634545756435367L; @Override public void onComponentTag(Component component, ComponentTag tag) { FormComponent? comp

Re: Integrating Separate Different Wicket Applications Into One

2010-10-11 Thread kugaprakash
Hi, Can you please let me know? thanks Kuga -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Separate-Different-Wicket-Applications-Into-One-tp1889319p2990281.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-11 Thread pjacobsma
Doh! Never mind. I just discovered that buried in my Page was this piece of code: AjaxFormValidatingBehavior.addToAllFormComponents(form,onblur); That's what was adding the onblur call to the dropdown. -- View this message in context:

repaint a fragment

2010-10-11 Thread fachhoch
I have a fragment I want to repaint when user click on ajax link here is my fragment private class ProgramFragment extends Fragment { Long sysAuditProgId; public ProgramFragment( final ProgramStatusDTO programStatusDTO) {

Re: repaint a fragment

2010-10-11 Thread Scott Swank
No html is rendered to represent a fragment. You will have to wrap it with a div and then refresh the div. Scott On Mon, Oct 11, 2010 at 5:06 PM, fachhoch fachh...@gmail.com wrote: I have a fragment I want to  repaint when user click on ajax link here is my fragment        private class  

Re: repaint a fragment

2010-10-11 Thread fachhoch
you mean If I put this fragment inside a webmarkupcontainer and add this webmarkupcontainer to target this will repaint my fragmnet ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2991045.html Sent from the Users forum mailing list

Re: Integrating Separate Different Wicket Applications Into One

2010-10-11 Thread Nivedan Nadaraj
Hi When you say integrate different applications, do u mean each one is a sub-application? Do those applications extend the WicketApplication class? If they don't then I have had some experience to integrate sub-modules into one main application. Let me know if that is what you mean. Otherwise I

Re: repaint a fragment

2010-10-11 Thread Scott Swank
Exactly. On Mon, Oct 11, 2010 at 7:24 PM, fachhoch fachh...@gmail.com wrote: you mean If I put this fragment inside a webmarkupcontainer and add this webmarkupcontainer to target this will repaint my fragmnet ? -- View this message in context:

Re: repaint a fragment

2010-10-11 Thread fachhoch
my fragment is inside a listitem ,on click I added this listitem to taget nothing happened but if I call listitem.replace with new fragment it was adding an additional div is ths the right way to repaint fragment ? -- View this message in context:

Re: repaint a fragment

2010-10-11 Thread Jeremy Thomerson
On Mon, Oct 11, 2010 at 10:59 PM, fachhoch fachh...@gmail.com wrote: my fragment is inside a listitem ,on click I added this listitem to taget nothing happened but if I call listitem.replace with new fragment it was adding an additional div is ths the right way to repaint fragment ? You can

tomcat host gives 404 on dynamic resources including wicket-events.js

2010-10-11 Thread Terry
wicket 1.4 - tomcat 6.0 or 7.0 Having issue with resolving dynamic resources when deployed as virtual host in tomcat server.xml snippet... Host name=a.bem.com appBase=webapps/BEMA unpackWARs=false autoDeploy=false Context path= docBase=./ /Host Host name=b.bem.com appBase=webapps/BEMB

Re: RadioChoice - what's wrong?

2010-10-11 Thread Jeremy Thomerson
Do you use Eclipse? There is a compiler warning that you can turn on (it should be on by default) that warns against this problem whenever you may inadvertently be hiding other variables. I suggest to everyone I teach that they turn it on (and perhaps even turn it up from warning to error), and