Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
A panel that is created with replaceWith() earlier in the code turns out to have a NULL parent. Is this normal, or are we supposed to keep links to the parent? Any explanation? Is there ever a case when an embedded panel would have a NULL parent? Thanks -- View this message in context:

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
In other words, a Read-only panel is replaced with an Editable panel after clicking Edit: panelReadOnly.replaceWith( new panelEditable()); The panelEditable is found to have a NULL Parent ID afterwards. We need to

Re: Panel's getParent() returns NULL after replaceWith

2013-10-25 Thread eugenebalt
Thanks Sven. I was actually talking about the new replacING component, not the old replaced one. That replacing component had NULL as its Parent. I found the solution discussed here: http://apache-wicket.1842946.n4.nabble.com/Component-parent-null-after-replace-td1890602.html The problem is it's

Make a Shared Variable-Length ListView (checkbox matrix with N columns)

2013-10-15 Thread eugenebalt
We have 2 cases where we need to display a matrix with checkboxes. In the first case, the matrix has 3 columns, in the second, it has 8. Both are working, and both were implemented as ListViews. But is there a way to make this a Shared Component, with a more elegant design? The problem is the

Re: Spacing IE7 Issue when doing Wicket.setVisible() on WebMarkupContainer

2013-10-08 Thread eugenebalt
Happily, we fixed this IE7-only problem. All we had to do was add the top-level Repeater (containing all the panels) to the Ajax target of the AjaxCheckbox triggering the visibility of these child panels. final AjaxCheckBox HQUserCheckBox = new AjaxCheckBox(HQUser, new PropertyModel(formObject,

Re: Spacing IE7 Issue when doing Wicket.setVisible() on WebMarkupContainer

2013-10-08 Thread eugenebalt
Thanks Sven. Unfortunately we can't test without the CSS, otherwise it's all just text. Any other ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Spacing-IE7-Issue-when-doing-Wicket-setVisible-on-WebMarkupContainer-tp4661733p4661752.html Sent from the Users

Spacing IE7 Issue when doing Wicket.setVisible() on WebMarkupContainer

2013-10-07 Thread eugenebalt
I don't know if anyone can help on this, but we ran into an IE7 issue (it doesn't happen in IE8) where, when we toggle the visibility of some MarkupContainers, the parent containers keep the original spacing they had before, and don't suppress/expand properly to accommodate the new layout (child

Re: Pre-Selecting Dropdown from Shared Panel serving 2 Model Databeans

2013-09-13 Thread eugenebalt
I found a solution, I'm passing the model Data Bean as a parameter to the Panel in the constructor. Then I have access to it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pre-Selecting-Dropdown-from-Shared-Panel-serving-2-Model-Databeans-tp4661306p4661307.html

Pre-Selecting Dropdown from Shared Panel serving 2 Model Databeans

2013-09-13 Thread eugenebalt
We have a shared Panel containing a dropdown. The Panel is used on 2 different pages where each page has its own model as an associated bean POJO class. My problem is that I have to pre-select the dropdown in the panel to a certain index. Normally, this is done by setting a Model value. I can't

Ajax setVisible(true) Action not Working after a single setVisible(false)

2013-09-10 Thread eugenebalt
A selection in one of my Ajax dropdowns controls the visibility of another dropdown. The code is very simple, and there are no other changes. choiceVerType.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { if

Re: Ajax setVisible(true) Action not Working after a single setVisible(false)

2013-09-10 Thread eugenebalt
Solved my problem - I had to set the output markup placeholder tag: choiceVerPeriod.setOutputMarkupPlaceholderTag(true); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-setVisible-true-Action-not-Working-after-a-single-setVisible-false-tp4661281p4661282.html

getInput() does not work on a disabled DropDownChoice

2013-08-21 Thread eugenebalt
I just wanted to verify that getInput() doesn't work on a pre-disabled, pre-populated DropDownChoice. getInput() only seems to work on enabled dropdowns. However, in my tests, getValue() works equally on both enabled/disabled dropdowns. Is that true, or is there some other distinction? -- View

Re: getInput() does not work on a disabled DropDownChoice

2013-08-21 Thread eugenebalt
thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getInput-does-not-work-on-a-disabled-DropDownChoice-tp4660987p4660992.html Sent from the Users forum mailing list archive at Nabble.com. - To

RE: Forcing Form Validation from another Form's onValidate()

2013-08-15 Thread eugenebalt
Looking further at my code, I see that the custom validators from the inner form DO get called; but the one that doesn't get called is .setRequired(true). There is one component in the inner form which is setRequired(true). And that validation is bypassed for some reason, although all the other

RE: Forcing Form Validation from another Form's onValidate()

2013-08-15 Thread eugenebalt
Actually, I figured it out. All the validators are getting called from the inner form. But there was an NullPointerException in the first validator which blocked all the others and I wasn't seeing them. Thanks for your help. -- View this message in context:

Checkboxes automatically disabled in ListView repeater

2013-08-14 Thread eugenebalt
We have a Panel which contains a WebMarkupContainer which contains a ListView repeater. The ListView repeats rows of 3 checkboxes; its populateItem is: protected void populateItem(ListItemEDocsPermissionModel item) { EDocsPermissionModel perm = item.getModelObject(); CheckBox cb1 = new

Re: Checkboxes automatically disabled in ListView repeater

2013-08-14 Thread eugenebalt
YES. That was the exact issue. Thanks Sven. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Checkboxes-automatically-disabled-in-ListView-repeater-tp4660888p4660890.html Sent from the Users forum mailing list archive at Nabble.com.

Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread eugenebalt
I have a Panel (P1) which contains its own form (P1_F1). The P1 panel also contains another panel inside itself, P1_A, which has its own inner form (let's call it P1_A_F1). Whenever the P_F1's validation is called, I also have to call the P1_A_F1 form validation. It doesn't get called

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread eugenebalt
In the final HTML, my form is flattened out, there is only Form. In my Wicket markup, the structure is: PANEL - FORM - SecondPanel - SecondForm The main PANEL's FORM is being submitted, and validated. But the SecondForm validation never gets called. -- View this message in context:

Re: Select AjaxCheckbox from Another AjaxCheckbox inside ListView

2013-06-27 Thread eugenebalt
I found a solution, but I'm not sure it's the best/most elegant one, there is a lot of messy code. Upon selecting a certain AjaxCheckbox A in a ListView, I had to 1) disable AjaxCheckbox B 2) set its value to TRUE and conversely, upon deselecting A, I had to (1) enable B and (2) set its value

Inter-Page Communication in Wicket

2013-06-26 Thread eugenebalt
Is there a way in Wicket to maintain different open pages that may be open in different windows? For example, make updates from one page that affect components on a different page. (Note: we are using Wicket 1.4.7) Thanks -- View this message in context:

Select AjaxCheckbox from Another AjaxCheckbox inside ListView

2013-06-26 Thread eugenebalt
I have a ListView which contains AjaxCheckboxes. (Each AjaxCheckbox is added as a ListItem inside the ListView.) I have the requirement that if a particular 'special' AjaxCheckbox is selected, that should instantly select another particular AjaxCheckbox. There is the overrideable method

Set the Null option manually in a NullValid Dropdown

2013-06-21 Thread eugenebalt
We have a dropdown which supports the NullValid property. If we need to set its selection to Null manually, setModel(null) does not seem to work. Should we set it to the first element of the backing model (which is an KeyValueBean list)? -- View this message in context:

Re: Injecting proxy services in page.

2013-06-17 Thread eugenebalt
We've heard that there is a fix for this available in Wicket 1.5. However, we are stuck with Wicket 1.4.7 and cannot upgrade, for various reasons. (We're also already using the AnnotationConfigWebApplicationContext referred to in the previous post.) Are there any other workarounds for this

Re: Wicket ID sometimes changes, sometimes stays the same

2013-06-06 Thread eugenebalt
Solution # 2 (setMarkupId) worked for us. But Sven's Solution # 1 did not. Even after adding id=datefield wicket:id=datefield to input type=text, the output still contained the attribute id=datefield7 or something similar. # 2 works for us, but I'm just wondering, is there something preventing #

Wicket ID sometimes changes, sometimes stays the same

2013-06-04 Thread eugenebalt
Some of my components have the same static Wicket ID, but others look like field7 or field5 while their ID is field. What is the rule governing whether an ID changes or not? And how can I enforce a static ID? Thanks -- View this message in context:

Display JavaScript Pop-up Alert Box In Wicket After Processing

2013-05-09 Thread eugenebalt
I have a Button which performs some processing in Wicket, and at the very end (not before), I need to show a JS popup alert box, with info from the processing. If I override protected IAjaxCallDecorator getAjaxCallDecorator() and add a JS function to display the popup, that will fire immediately.

Re: Display JavaScript Pop-up Alert Box In Wicket After Processing

2013-05-09 Thread eugenebalt
Never mind, the solution is easy: target.appendJavascript(alert('...')) at the end of the Ajax code. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Display-JavaScript-Pop-up-Alert-Box-In-Wicket-After-Processing-tp4658666p4658674.html Sent from the Users

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread eugenebalt
Thanks Sven, let me clarify something in your code: 1) #newItem only has the signature newItem(int); there is no newItem(int,IModel). 2) At the line super.configure() we get the error The method configure() is undefined for the type Check. 3) When you make references to enabled, I assume it's

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread eugenebalt
Thanks Sven. We don't have the below methods. We are using Wicket 1.4.7, probably time to upgrade. ListView#newItem(int, IModel) see Component#onConfigure() -- View this message in context:

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread eugenebalt
Paul: The Check is constructed *inside populateItem()*. This is already too late, my output shows this happens after the Ajax ecent. There is no way to construct a Check outside the populateItem, as far as I know. This is how Checks are used: CheckGroup cg = new CheckGroup(apps); add(cg);

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread eugenebalt
Here is the full code. This is an urgent problem so any advice much appreciated. ISSUE: Cannot enable/disable Checks in an Ajax update, their state remains the same. The Checks in the CheckGroup are supposed to change depending on a DropDown change. 1) On Page Construction, all Checks in the

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-26 Thread eugenebalt
Igor, The problem is, you do check.setEnabled(false) in *ListView.populateItem()* for a CheckGroup control. This method executes AFTER the Ajax update. It's too late to do check.setEnable(false) on the render of the CheckGroup's ListView. We need to disable/enable checkboxes in a CheckGroup as

Re: Can't Ajax-Update CheckGroup with new ListView

2013-04-26 Thread eugenebalt
Paul, how would the model specify enabled/disabled status? The model contains the values of the checkboxes. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-Ajax-Update-CheckGroup-with-new-ListView-tp4658090p4658323.html Sent from the Users forum mailing list

Re: Can't Ajax-Update CheckGroup with new ListView

2013-04-22 Thread eugenebalt
Any help on this issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-Ajax-Update-CheckGroup-with-new-ListView-tp4658090p4658162.html Sent from the Users forum mailing list archive at Nabble.com.

Disabling Individual Checkboxes in CheckGroup

2013-04-22 Thread eugenebalt
How would you disable individual checkboxes in a CheckGroup? With a CheckBoxMultipleChoice, it's easy: just override isDisabled(int index) for the particular index you want to disable. But we are using a CheckGroup, not CheckBoxMultipleChoice, because we need a grid layout for our set of

Can't Ajax-Update CheckGroup with new ListView

2013-04-18 Thread eugenebalt
We have an Ajax method in some component where we have to update a CheckGroup on the form. (The update is that some checkboxes get enabled/disabled.) We construct a new ListView object, then addOrReplace it to the checkGroup; and finally, after that, we add the CheckGroup to target.addComponent.

Re: Can't Ajax-Update CheckGroup with new ListView

2013-04-18 Thread eugenebalt
In other words, we set the individual check box's Enabled/Disabled in ListView.populateItem(). This populateItem() call happens after the target.addComponent(listView), even though in the code it precedes it. -- View this message in context:

Re: Can't Ajax-Update CheckGroup with new ListView

2013-04-18 Thread eugenebalt
Here is the code. As I said, we need to selectively enable/disable certain checkboxes in a CheckGroup as part of some other component's Ajax event. The issue is that the Ajax update is happening *before* we get a chance to disable the checkbox in the ListView's populateItem(). So our checkboxes

Re: How to Add JS Modifer to a Non-Form-Processing AjaxButton

2013-04-15 Thread eugenebalt
Hi, I overrode the IAjaxCallDecorator as below, but it still doesn't work: there is no action when I click OK (although the popup appears). Do I need to add something else? Thanks, linkDelete = new AjaxButton(linkDelete) {

Re: How to Add JS Modifer to a Non-Form-Processing AjaxButton

2013-04-15 Thread eugenebalt
Never mind, I got it work. What I had to do was this: public CharSequence decorateScript(CharSequence script) { // TODO Auto-generated method stub return super.decorateScript(var x = confirm('Are you

Suppress Are you sure you want to navigate away from this page? in Panel

2013-04-15 Thread eugenebalt
We have a Panel with a Form, and when anything changes on the form, we get the browser message Are you sure you want to navigate away from this page? You have unsaved changes. We need to suppress this warning for this Panel only (but not others). I think there are some JS handlers for that, but

How to Add JS Modifer to a Non-Form-Processing AjaxButton

2013-04-11 Thread eugenebalt
We have an AjaxButton with the following flag, to disable default form processing (we don't want it to submit the form): ajaxButton.setDefaultFormProcessing(false); The problem is that we need to attach a JS alert box (Are you sure? OK/Cancel) when this button is clicked. If OK is clicked, we go

How to Add JS Modifer to a Non-Form-Processing AjaxButton

2013-04-11 Thread eugenebalt
There was some error submitting the first post, so I'll resubmit: We have an AjaxButton on which defaultFormProcessing = FALSE. I need to attach a JS modifier to it with an alert box (Are you sure? OK/Cancel), but when I add a SimpleAttributeModifier, I don't go through with the onClick

AjaxButton doesn't work in WebMarkupContainer

2013-03-28 Thread eugenebalt
I have the below block of code. A Link or an AjaxLink works perfectly here inside a WebMarkupContainer. But when I use an AjaxButton (with a setDefaultFormProcessing=False), I get an error. Thanks AjaxButton linkCopy = new AjaxButton(linkCopy) { @Override

Re: AjaxButton doesn't work in WebMarkupContainer

2013-03-28 Thread eugenebalt
Disregard - problem solved. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-doesn-t-work-in-WebMarkupContainer-tp4657633p4657636.html Sent from the Users forum mailing list archive at Nabble.com.

Adding to the existing AjaxBehavior of a component

2013-03-21 Thread eugenebalt
We have a large panel containing components with multiple Ajax behaviors. In one context where this panel is used, we need to augment (add) the existing AjaxBehavior of a certain component by adding extra functionality to it. It seems that if we add it the usual way (add (new

Re: Adding to the existing AjaxBehavior of a component

2013-03-21 Thread eugenebalt
For example, the Panel was showing/hiding some components inside itself, based on the selection in those components; that was working correctly. Right now, we're using the Panel on a separate page and have an external component that needs to respond to the events in one of the Panel's dropdowns.

.properties File for Custom Dropdown Message Not Found

2013-03-20 Thread eugenebalt
Where do I put the .properties file with my custom message that overrides Please Choose One for a dropdown? I have a panel which uses this dropdown, and I created a .properties file with the same name as the panel, in the same package. But it's not getting activated. (isNullValid is TRUE for

Re: .properties File for Custom Dropdown Message Not Found

2013-03-20 Thread eugenebalt
So I'll try to clarify: 1) isNullValid = TRUE on this dropdown 2) I created a .properties file in the same location as the Page. Referenced the component's full hierarchy and set .null form.panel.mydropdown.null=TEST 3) This isn't working. Thanks -- View this message in context:

Re: .properties File for Custom Dropdown Message Not Found

2013-03-20 Thread eugenebalt
Problem solved. It had to be .nullValid (I was using .null). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/properties-File-for-Custom-Dropdown-Message-Not-Found-tp4657377p4657387.html Sent from the Users forum mailing list archive at Nabble.com.

Some Validators Not Kicking In

2013-03-14 Thread eugenebalt
We're having an issue where some of our validators aren't kicking in. A bunch of Component- and Form-level validators are added in the page constructor. We have output statements in each. The output shows that in some situations some of the validators are short-circuited and don't get executed

Re: Some Validators Not Kicking In

2013-03-14 Thread eugenebalt
That may be it. The Form-level ones are the ones not executing sometimes. So to check if it's invalid, I just see if getDependentComponents() returns NULL? And what could cause it to be NULL, if I'm specifying the right valid components that exist on the form? Thanks again -- View this

Re: Some Validators Not Kicking In

2013-03-14 Thread eugenebalt
So if I have something wrong with my field (by itself), than any Form validators that involve it as well, won't kick in? From the documentation: These validators are added to the form and only executed if all form components returned by getDependentFormComponents() have been successfully

Re: Some Validators Not Kicking In

2013-03-14 Thread eugenebalt
Sorry to keep posting, but does order matter? We're adding the validators in all kinds of order. Sometimes, we have a field that shows messages associated with itself, AND its Form-level validator. But that doesn't work for other fields, which don't show the Form-associated validator. -- View

Ajax Behavior not working after 1 time

2013-03-14 Thread eugenebalt
We have a DropDown whose selection affects the 2nd DropDown (hide+disable). This is done in Ajax onchange on the 1st DropDown, very simple. In the Ajax behavior, we specify if (condition) { choice2.setEnabled(false); choice2.setEnabled(false); target.addComponent(choice2); } else {

Re: Ajax Behavior not working after 1 time

2013-03-14 Thread eugenebalt
Martin, we're already doing setOutputMarkupId(true) on both dropdowns. Is that one different from OutputMarkupId? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Behavior-not-working-after-1-time-tp4657254p4657257.html Sent from the Users forum mailing list

Validator Question

2013-03-06 Thread eugenebalt
I have a Form-level Validator which works on a pair of Date fields, and makes sure that one can't be filled in without the other. (None or both filled in is fine.) The Validator is Form-level because it is multi-component; it must work generically on any pair of Component IDs, because it's shared

The best way for designers and Wicket developers to collaborate

2013-02-19 Thread eugenebalt
We have a Web design team and a Java development team on our project. We're using Wicket for our pages. I know Wicket was designed to make it easy for designers and developers to work together, but we're actually finding the opposite -- it's difficult to communicate changes back and forth. We're

Re: Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

2013-02-11 Thread eugenebalt
Thanks, Variants worked. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Same-Panel-but-Formatted-in-2-Different-Ways-Diff-Presentation-tp4656063p4656240.html Sent from the Users forum mailing list archive at Nabble.com.

Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

2013-02-04 Thread eugenebalt
Is it possible to have a Panel implemented in .java which has multiple .html's? We have a panel with the same data but different formatting. -- View this message in context:

Does a SimpleAttributeModifier Overwrite or Append JavaScript?

2012-11-02 Thread eugenebalt
Suppose I have this: arg0.add(new SimpleAttributeModifier( onclick, myfunction();)); Will that replace any previous onClick's, or append to them? I need to preserve any previous JS in this attribute (append). -- View this message in context:

Re: Does a SimpleAttributeModifier Overwrite or Append JavaScript?

2012-11-02 Thread eugenebalt
I can't try right now because of a system failure. If I could try it I wouldn't ask it here. I was hoping for a quick response. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Does-a-SimpleAttributeModifier-Overwrite-or-Append-JavaScript-tp4653568p4653570.html Sent

Check if a .JS Reference Already Included in HTML

2012-11-01 Thread eugenebalt
I need to dynamically add a .js reference to the rendered result. In Wicket 1.5, I understand the way to do it is (https://cwiki.apache.org/WICKET/adding-javascript-or-css-using-a-resource.html) Question: How can I check if the .js has already been included? I don't want to include it twice.

Write Out HTML without WicketId

2012-11-01 Thread eugenebalt
Is there a way to write out literal HTML from Wicket, without using a Wicket:Id? Example: We need to go thru all our pages, and add a div component. If we were to do it the proper way we'd have to alter our HTML to add a wicket:id for this div. But we want a one-pass-through in the common

Unable to Traverse with IVisitor: Some Class Names Have $1 at the end

2012-11-01 Thread eugenebalt
I am using the IVisitor to traverse all components on the current page. I'm printing the class names on the console. visitChildren(new IVisitor() { @Override public Object component(Component arg0) { System.out.println(arg0.getClass().toString());

Re: Unable to Traverse with IVisitor: Some Class Names Have $1 at the end

2012-11-01 Thread eugenebalt
Thanks Duesen, but if I get the superclass, how can I actually get the type of *this* class? I need to find out if the anonymous class is a Button, a TextField, a Link, etc. -- View this message in context:

Re: Unable to Traverse with IVisitor: Some Class Names Have $1 at the end

2012-11-01 Thread eugenebalt
Thanks. Working now. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unable-to-Traverse-with-IVisitor-Some-Class-Names-Have-1-at-the-end-tp4653532p4653538.html Sent from the Users forum mailing list archive at Nabble.com.

Quickly Check if a Component Contains Ajax Behaviors

2012-11-01 Thread eugenebalt
Thanks for the answers so far. My latest question is, I need to check if a cfomponent has any Ajax behaviors added to it. For some reason, a Component does not have visitChildren() defined for it. I see a method called contains() but you have to have a Component reference passed to it -- all my

How to See if a Button Goes To the Server

2012-11-01 Thread eugenebalt
I appreciate the help so far. A somewhat unusual question: We need a way to identify all Buttons which don't go to the server for anything. Is there a way to identify these client-side-only Buttons? As an example, we have a Wicket Button constructed the usual way in our form, but its only

Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread eugenebalt
We are using a JS library to veil our forms after the user clicks Submit. (This is done to show a busy status, and prevent the user from doing anything else until it's done.) The veil is not a Wicket veil -- rather, we are using a separate jQuery library. It's working fine. We have 2 apps, one

Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread eugenebalt
Is there a way to tell, just by looking at the rendered HTML, whether the component was a Wicket AjaxButton or a Wicket Button? (All buttons may have various JavaScript appended to them, so you can't just see if onClick is empty or not. For instance, a Button might have a Confirm popup appended

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread eugenebalt
I guess what I'm asking is, is there a common Post-Constructor place that could be generically called in Wicket, where I could iterate through all components and append a JavaScript modifier to selective ones (Button and Link types)? -- View this message in context:

Re: Distinguish AjaxButton from Button in Final HTML

2012-10-31 Thread eugenebalt
To see my usecase, look at the thread above this one, Append JavaScript to all Buttons/Links in App. We need to generically append a JS reference to all buttons throughout our app. We can do it either on the Wicket side or the JavaScript side. - On the JavaScript side, we'd need to distinguish

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread eugenebalt
Hi Nick, In the BasePage, we haven't created any of our components yet. We create them in the Page. I need a *POST*-constructor of some kind, by which points all the components will be created. If I do anything in the BasePage, no components exist there yet. -- View this message in context:

Re: WicketRuntimeException: Submit Button ... is not enabled

2012-10-16 Thread eugenebalt
Hi, Sorry, I have to bump thread back up again. We still have no clear idea how to address this issue, which only happens sporadically on our production server (and we can't reproduce it locally). We have screens with Ajax Buttons which submit forms, but also disable/hide these Ajax buttons. I

Re: WicketRuntimeException: Submit Button ... is not enabled

2012-10-16 Thread eugenebalt
Thanks Sven, that was it! They were clicking again while the form was still processing. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-Submit-Button-is-not-enabled-tp4651180p4653019.html Sent from the Users forum mailing list archive at

Catch the doGet/doPost on every request and override it

2012-09-17 Thread eugenebalt
In Wicket, is there an easy way to override the doGet/doPost on every request in order to add some common code that should fire on every request? I used to know but forgot. The idea is to add some common code e.g. database transaction start/end for the request scope. -- View this message in

Re: Catch the doGet/doPost on every request and override it

2012-09-17 Thread eugenebalt
What I'm looking for is some kind of an overridable onRequest() or a Request Listener that would apply to all requests within the Wicket app. (This must be done on the Request level, not on the Page level.) -- View this message in context:

Re: Catch the doGet/doPost on every request and override it

2012-09-17 Thread eugenebalt
Thanks, I found an example here: http://wicket.apache.org/apidocs/1.5/org/apache/wicket/request/cycle/IRequestCycleListener.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652044.html Sent from

Re: Catch the doGet/doPost on every request and override it

2012-09-17 Thread eugenebalt
Sorry, one more question. Is it possible to know which active Page I'm currently on during this request interception? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652045.html Sent from the Users

Re: Catch the doGet/doPost on every request and override it

2012-09-17 Thread eugenebalt
Thanks so much!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catch-the-doGet-doPost-on-every-request-and-override-it-tp4652038p4652047.html Sent from the Users forum mailing list archive at Nabble.com.

Pre-Select DropDownChoice Selection, but No Model yet

2012-08-28 Thread eugenebalt
I am in the form-construction part of my code (the Model has not been created yet, because Submit hasn't been pressed yet). I have a DropDownChoice, and I need to pre-select a certain item. How do I do it? The DropDownChoice has already been constructed. I can't do setModelObject(..) because the

Re: Pre-Select DropDownChoice Selection, but No Model yet

2012-08-28 Thread eugenebalt
(Note: In my form, I am using a CompoundPropertyModel. So my DropDownChoice is automatically tied to the field in my bean.) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pre-Select-DropDownChoice-Selection-but-No-Model-yet-tp4651578p4651579.html Sent from the

Ajax onUpdate (DropDown) Invoked In One Place, But Not The Other

2012-08-22 Thread eugenebalt
I have a reusable Panel which contains a DropDownChoice. The DropDownChoice has an Ajax onChange action defined on it, protected void onUpdate(AjaxRequestTarget target) { ... } When I add the Panel to one of my forms, the Ajax action gets invoked correctly on the DropDown change, but when I add

Re: Ajax onUpdate (DropDown) Invoked In One Place, But Not The Other

2012-08-22 Thread eugenebalt
Looking further in our code, I see that the 2nd form (which has the problem) defines an additional Ajax onchange on its own, it finds the dropdown and adds this extra Ajax code: final DropDownChoice myDropDown = (DropDownChoice)((Panel)get(myPanel)).get(myDropDown); myDropDown.add(new

Re: Ajax onUpdate (DropDown) Invoked In One Place, But Not The Other

2012-08-22 Thread eugenebalt
Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-onUpdate-DropDown-Invoked-In-One-Place-But-Not-The-Other-tp4651438p4651442.html Sent from the Users forum mailing list archive at Nabble.com.

Re: WicketRuntimeException: Submit Button ... is not enabled

2012-08-14 Thread eugenebalt
Thanks a lot. In our case, we have an AjaxButton that maps to a input type=submit. Would using the input type Button get rid of this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketRuntimeException-Submit-Button-is-not-enabled-tp4651180p4651231.html

Re: WicketRuntimeException: Submit Button ... is not enabled

2012-08-14 Thread eugenebalt
It is true that we have multiple buttons on our form that we are disabling/hiding selectively. Our scenario: a panel that contains the button Edit, and then when it's clicked, the panel opens and Edit is replaced by two other visible buttons - Submit and Cancel. Edit is gone. We need this dynamic

WicketRuntimeException: Submit Button ... is not enabled

2012-08-13 Thread eugenebalt
We have an Ajax button which, when clicked, occasionally produces this WicketRuntimeException: ERROR [WebContainer : 17] (RequestCycle.java:1521) - Submit Button myPanel:editButton (path=myForm:myPanel:editButton) is not enabled org.apache.wicket.WicketRuntimeException: Submit Button

Form Submit Button not recognizing latest Ajax changes in included Panel

2012-07-12 Thread eugenebalt
We have a Form which has a regular Form Submit button (a Button). Inside the Form there is a Panel with various actions happening via Ajax. The Panel has 4 dropdowns where each selection triggers create/delete of other dropdowns. These Ajax actions are all outsourced to the Panel. Our problem is

AjaxCheckBox inconsistently showing state (value)

2012-06-13 Thread eugenebalt
I have an AjaxCheckBox; when selected, several components get hidden, otherwise the extra components are shown. It works, but several times, when selecting the AjaxCheckBox, the extra components go away correctly, but the value of the AjaxCheckBox quickly changes from selected *back* to

Re: AjaxCheckBox inconsistently showing state (value)

2012-06-13 Thread eugenebalt
Actually, the solution I found is to do this in the AjaxCheckBox's onUpdate(): *arg0.addComponent(this);* This works - the checkbox always returns to the correct value after switching it. But what could possibly lead to this? Why would there be a situation where I need to addComponent(this)? --

Re: AjaxCheckBox inconsistently showing state (value)

2012-06-13 Thread eugenebalt
Problem resolved - there was another large Ajax update from another component that was interfering and hadn't finished yet. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxCheckBox-inconsistently-showing-state-value-tp4649941p4649943.html Sent from the Users forum

Close Pop-up Window From Server?

2012-04-18 Thread eugenebalt
Maybe this isn't strictly a Wicket question, but I have a link from the main page which opens a pop-up window. The pop-up has a form handled by a servlet (in my case, a Wicket page mounted to a servlet-like URL). Upon completing the form in the pop-up, I need to close the pop-up window *from the

RE: AjaxIndicatingDropDownChoice

2012-03-27 Thread eugenebalt
Thanks, good solution. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxIndicatingDropDownChoice-tp4506224p4509566.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: AJAX Requests Too Slow, Have a Delay on Component Refresh

2012-03-26 Thread eugenebalt
I'll try the IndicatorAjax, but is there a reason for the noticeable delay? Is it possible to configure a shorter period for Ajax updates? -- View this message in context:

AjaxIndicatingDropDownChoice

2012-03-26 Thread eugenebalt
I found another user's code for an Ajax-Busy-Indicator DropDownChoice: http://apache-wicket.1842946.n4.nabble.com/Wicket-extensions-AjaxIndicatingDropdownChoice-td3088554.html but how do I use this code? When I construct the DropDown, I need to give it an extra parameter, a MarkupContainer. What

Re: AjaxIndicatingDropDownChoice

2012-03-26 Thread eugenebalt
Sorry, to clarify: This guy defines AjaxIndicatingDropDownChoice as an abstract class. Why is it abstract? I want to be able to add it to my form like a regular dropdown choice. And why isn't this component already available in Wicket? -- View this message in context:

Re: AjaxIndicatingDropDownChoice

2012-03-26 Thread eugenebalt
Disregard. I got everything to work by implementing IAjaxIndicatorAware. My only remaining question is this: I see the spinner, but my cursor is still Auto rather than Wait (Hourglass). How do I change the cursor to Wait as long as the spinner is also spinning? Thanks. -- View this message in

  1   2   3   >