Running a local process using Wicket

2015-03-23 Thread drf
We want to replace our fat client application (developed using C#) with a web application. Wicket is one of the technology options we are considering. Our question: Is it possible, and if so, how, to run a local process on the users machine (normally run from the command line) from Wicket. Thanks

Form in a Wizard is not showing state of the Model

2010-07-17 Thread drf
Can anyone help Am using the Wicket wizard from the extensions package. Have extended Wizard and WizardStep - nothing fancy, and the wizard flow is working. Problem is this: I have a Model which is passed into the constructor of each step. The first page of the wizard displays one of the fields o

Re: Form in a Wizard is not showing state of the Model

2010-07-18 Thread drf
Thanks a lot. You are right that I did not need the Form, but it turned out the problem was something else: - I was using a TextArea instead of TextField, which did work. Now I need to understand why a TextArea did not display the data. -- View this message in context: http://apache-wicket.1842

DropDownChoice - how to select default item

2010-09-01 Thread drf
I am having a problem that my DropDownChoice is not selecting the item I expect, only "Choose one". Here is the code: ... private List accountList = new ArrayList(); private Long selectedAccount; public AccountsDropDownChoice(String id, final Component component) { super(id); initializeAcco

Re: DropDownChoice - how to select default item

2010-09-01 Thread drf
Apache Wicket] wrote: > Should be working fine. > > Are you sure you're showing the actual code, i.e. accountList vs > accountsList ? > > BTW are you accounts really just represented as Longs? > > Regards > > Sven > > On 09/01/2010 01:15 PM, drf wrote: >&g

Re: DropDownChoice - how to select default item

2010-09-01 Thread drf
Mike Thanks - not sure if the problem is with the fact that the code is in the constructor: 1) the In Action book seems to setup dropdowns ect in the constructor - where else would I define the drop down? 2) the debugger and syout both show that selectedAccount has the correct value prior to cons

Re: DropDownChoice - how to select default item

2010-09-01 Thread drf
unt variable. > > Put a breakpoint on that line and check the return value of > getDefaultAccount(). > > BTW using Model and IChoiceRenderer gives you some advantages > (always up-to-date account list, don't keep selected account in session, > ...). > > Sven &g

Weird Error

2010-09-15 Thread drf
This evening I started getting a strange error which does not appear to be connected with anything that has changed in my application code. The exception I am getting related to the wicket-extensions jar: WicketMessage: Unable to find component with id 'panel' in [MarkupContainer [Component id =

Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?

2010-09-19 Thread drf
in which class are call calling setOutputMarkupId(true) on the wizard ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-there-an-ajax-WizardButton-to-use-in-a-wizard-inside-a-ModalWindow-tp1876283p2545937.html Sent from the Users forum mailing list archive at Nabb

Backbutton support

2010-10-15 Thread drf
Does anyone have any resources on BackButton support with Wicket? My application, although complex, is all one WebPage, it uses Ajax to switch panels dynamically. What would be the best way to handle the back button in this case? Ideally, I would like a way to disable it completely. -- View this

ModalWindow question

2010-10-17 Thread drf
Does anyone have ideas on how to handle the following issue: During processing of a wizard, I store a boolean flag in the Session object to indicate that the wizard has not completed. If, during the course of the wizard, the user clicks on another menu item, the flag in the session is checked, an

Re: ModalWindow question

2010-10-18 Thread drf
Neither of the suggested solutions will work: 1) The Cookie idea relies on session timeout - or some timeout - which is not relevant here. The user could click the back button and then straight away select a menu item. 2) Clearing the value in the Wicket Session from the constructor of the page

WiQuery and AjaxFallbackLink

2010-10-19 Thread drf
When adding javascript to an AjaxFallbackLink, it is not possible to simply do: link.add(new SimpleAttributeModifier(...)), rather one has to use IAjaxCallDecorator http://apache-wicket.1842946.n4.nabble.com/Confirmation-dialog-td1844404.html Does anyone know if there is a similar issue when usi

Re: WiQuery and AjaxFallbackLink

2010-10-19 Thread drf
Ernesto Thanks - but that is really my question - is it actually possible to add a WiQuery dialog to an AjaxFallbackLink? I ask as it is not possible to add JavaScript to an AjaxLink (at least not simply using SimpleAttributeModifier) , and as jQuery is built upon JavaScript, am asking if that w

Re: Confirmation dialog

2010-10-20 Thread drf
I am having a problem when using IAjaxDecorator as described. In the predecorate method, I have: return "if(test-variable) return confirm('text');" + script; The confirm button appears, but even on clicking 'OK', it looks as if false is getting returned every time, because the code in onClick(Aj

Re: Confirmation dialog

2010-10-20 Thread drf
Do not know what my mistake is in the previous example, but this works: return "if (test) {if (!confirm('TEXT')) return false;}" + script; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Confirmation-dialog-tp1844404p3003762.html Sent from the Users forum mailing list

Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread drf
In our application, we want to do the following: 1) Keep a hidden field in a form with a specified id 2) At a certain point in the app, change the value of the field (or hide it completely using setVisible(false)). 3) In the onClick javascript event of a link, check either the existence of the f

back-button causes Wicket state and page displayed to be out of synch

2010-10-22 Thread drf
I have encountered the following serious issue: My application consists of one WebPage which has an AjaxTabbedPanel. Each tab has an associated panel which includes several menu items (links) which can be selected. This works well. However, if the user selects the back-button (once back, then onc

WiQuery Dialog when used with Ajax

2010-10-24 Thread drf
The WiQuery home page gives a simple example of opening a jQuery dialog, where the content already resides in the page. I wonder if anyone can provide code which shows how to use WiQuery to open a JQuery dialog with dynamic content, presumably using Ajax. For instance, you want to show an error m

Re: WiQuery Dialog when used with Ajax

2010-10-24 Thread drf
I'd like to make the question a little more specific: the dialog box has to the truly modal - nothing else in the browser can be accessed, ideally the rest of the window will be slightly grayed to indicate that only the modal window is enabled. Trying some of the examples on the web brings up a di

Re: WiQuery Dialog when used with Ajax

2010-10-25 Thread drf
Ernesto , thank you very much, this is great. It should not be too difficult to change the content (in your example, a Label) to a Panel with buttons for ok, cancel etc. Is it possible with WiQuery to add jQuery code which is to be run before the dialog opens, and to use the return value from th

DropDownChoice

2010-11-01 Thread drf
I wonder if anyone can help with the following bug in my code. It relates to a Panel which contains a DropDownChoice. This is the exception: java.lang.IllegalArgumentException: Cannot format given Object as a Number
 at java.text.DecimalFormat.format(DecimalFormat.java:487)
 at java.text

WebMarkupContainer issue

2010-11-29 Thread drf
I wonder if someone can help. In my code, I have a java class which extends Panel and associated html. This contains, among other things, a Panel object "mainPanel". Everything works fine. I now want to enclose the mainPanel object in a WebMarkupContainer. To do so, I declare an instance variable

Re: WebMarkupContainer issue

2010-11-29 Thread drf
sorry - can you point out exactly the difference in the html ? It's not clear to me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebMarkupContainer-issue-tp3063886p3063905.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: WebMarkupContainer issue

2010-11-29 Thread drf
That was a just typo in the question It is Do you have any other ideas ? Thank you very much ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebMarkupContainer-issue-tp3063886p3063922.html Sent from the Users forum mailing list archive at Nabble.com. ---

WebMarkupContainer update affecting scrollbar which is outside container

2010-12-01 Thread drf
I have an issue whereby an ajax update on a WebMarkupContainer is having unexpected effect on content outside the container. The page in question consists of two parts: 1. on the left hand side, a menu, composed of a list of AjaxFallbackLink objects. This is contained in a . 2. on the right hand

Re: WebMarkupContainer issue

2010-12-01 Thread drf
issue solved - I found another place in the code I was referencing the panel from the page itself directly, not via the WebMarkupContainer. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WebMarkupContainer-issue-tp3063886p3067980.html Sent from the Users forum maili

Re: Saving an Excel file using WebResource

2010-12-11 Thread drf
This worked: @Override public IResourceStream getResourceStream() { HSSFWorkbook workbook = getExcelWorkbook(new HSSFWorkbook()); byte[] bai = workbook.getBytes(); ByteArrayResource bar = new ByteArrayResource("application/vnd.ms-excel", bai); return bar.getResourceStream(); } -- V

How to retrieve ListItem objects from a ListView

2010-12-13 Thread drf
I have the following use case : Having built a page using a standard ListView and implementing populateItem(), I then want to pass the ListView to a method, extract the contents, and use those contents to build a spreadsheet, cvs file, etc. This way, there will be no need to repeat the same logi

Problems with Ajax update of part of a table

2011-01-23 Thread drf
I have the following issue doing an Ajax update on the headers in a table. In my application, clicking on the headers will dynamically change the icon associated with each column. If I do an update on a Panel object which contains the entire table then this works well. However, I specifically don

Wizard

2011-02-24 Thread drf
Using the Wizard from the wizard-extensions project, is there a way to move to a specific step, rather than simply navigating with say next() and previous() - for example, if the user is on step 4 and certain validation fails, is there a way of going straight back to step 2 ? Thanks a lot -- V

Re: Wizard

2011-02-27 Thread drf
When I do this, it's always going to a step beyond the one I want. I am using the getWizardModel().stepIterator() method to iterate through the steps to get the one I want. I then pass that step to setActiveStep(), but the active step will then be one beyond the step passed in. -- View this mes

Re: Wizard

2011-02-27 Thread drf
My problem was simply that I was calling setActiveStep() from the next button, so the next code was always getting called after setActiveStep() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wizard-is-there-a-way-to-skip-a-step-tp3322610p3327585.html Sent from the Us

Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Does anyone have any simple and clear examples as to how to call a javascript function within Wicket AND to then retrieve the output of the function? I see a few people trying to do the same thing but cannot find and clear examples. Any help is truly appreciated! -- View this message in contex

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Thanks, but what we are looking for is a fully working example of how to call a javascript function and retrieve the return value on the Java side. The examples provided are not full or clear to any of us. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-Ja

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Looked at the pdf - but there is no documentation or text and cannot see how the code addresses the problem of how to retrieve the return value from a javascript function within Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-Javascript-function-retur

Re: Getting Javascript function return value in Wicket

2011-02-28 Thread drf
Thanks a lot, but there are no comments or notes in the code and we cannot see how to apply the example provided to our use case. Let's say we create a class like this (notes are my understanding of what each method is doing): public class JSTest extends AbstractDefaultAjaxBehavior { //

Re: Getting Javascript function return value in Wicket

2011-03-01 Thread drf
Just want to add that the call to the class which would encapsulate the code to call the javascript function and get the result would not be in the constructor, rather in the onclick() of a button or the applyState() of the wizard. -- View this message in context: http://apache-wicket.1842946.n

Getting an AjaxRequestTarget from within a Form.onSubmit

2011-03-02 Thread drf
Wicket extensions contains a ModalWindow object. In order to open it, you call the show(AjaxRequestTarget) method. We want to call this from within Form.onSubmit(), the problem is, how do we get hold of a AjaxRequestTarget object? What can we add to the form that will give us this capability? Her

Re: Getting an AjaxRequestTarget from within a Form.onSubmit

2011-03-02 Thread drf
The form is being submitted by including this line in the javascript function: document.forms[0].submit() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-an-AjaxRequestTarget-from-within-a-Form-onSubmit-tp3331336p3331346.html Sent from the Users forum mailing

How to automate clicking of a link or button

2011-03-03 Thread drf
Is there any way to automate the clicking of a link or button, similar to WicketTester, but within a running Wicket WebApplication ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-automate-clicking-of-a-link-or-button-tp220p220.html Sent from the Users

Re: How to automate clicking of a link or button

2011-03-03 Thread drf
ing(); >} > } > > so you can just call: myService.doSomething() instead. > > In javascript you can do: Wicket.$("myButtonId").click() > > On Thu, Mar 3, 2011 at 2:16 PM, drf <[hidden > email]<http://user/SendEmail.jtp?type=node&node=227&i=0&by-

AjaxEventBehaviour on page onload

2011-03-03 Thread drf
I wonder if anyone can help with the following: I've added this code to a the constructor of a WebPage: this.add(new AjaxEventBehavior("onload") { @Override protected void onEvent(AjaxRequestTarget target) {

Redirecting to another page in a WebPage constructor

2011-03-10 Thread drf
In the constructor of a class which extends WebPage, is there a way to redirect to another page? setResponsePage() apparently will not work in a constructor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-to-another-page-in-a-WebPage-constructor-tp3345688p

AttibuteModifier question

2011-04-05 Thread drf
Just as one can use component.add(new AttributeModifier("class", new Model(""))); to modify the css class for a component, is there a way to either 1. get the existing class value, 2. or alternativly to append a class to the existing css classes set for that component, rather than replacing th

Re: AttributeModifier question

2011-04-05 Thread drf
Looks like I've found the answer - AttributeAppendor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AttributeModifier-question-tp3429987p3429998.html Sent from the Users forum mailing list archive at Nabble.com. --

AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread drf
I have a form with an AjaxButton, and it works fine. When the button is clicked, the onSubmit() method defined for the button is called. However, after adding a PasswordTextField to the form, the button ceases to work, meaning the onSubmit() method is no longer called. The browser is IE7 - the app

Re: AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread drf
what is the best way to get the error within onError() ? form.getFeedbackMessage() returns null thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-wont-work-with-PasswordTextField-in-IE7-tp3447260p3447335.html Sent from the Users forum mailing list ar

Running Wicket under WebSphere

2011-05-01 Thread drf
We are using WebSphere 6.1, front ended by Apache (IBM HTTP Server) Our Wicket application uses WicketFilter When moving our war file from our Eclipse/Jetty environment to Websphere, WebShpere is not finding the url of the project. However, if we put a static resource, eg an html file, under the ap

Re: Wicket in Websphere 6.1

2011-05-01 Thread drf
This uses Spring 2 and ContextLoaderServlet Does anyone have an example of a web.xml defined using Spring3 - ContextLoaderListener - and Wicket -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-in-Websphere-6-1-tp1886967p3487523.html Sent from the Users forum mail

Re: Running Wicket under WebSphere

2011-05-01 Thread drf
I should add that we are using Spring 3, which uses ContextLoaderListener, not ContextLoaderServlet -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Running-Wicket-under-WebSphere-tp3487476p3487531.html Sent from the Users forum mailing list archive at Nabble.com. -

Getting Parameters from URL

2011-05-12 Thread drf
We have code in our session object as follows: public class OurSession extends WebSession { public OurSession(Request request)}{ super(request) // GET PARAMETERS FROM REQUEST userId = request.getParameter("userId"); } } This works the first time, so if the url has a pa

AutoCompleteTextField

2011-05-31 Thread drf
Which method has to be implemented in order to place code to execute when a value is selected in an AutoCompleteTextField? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-tp3562675p3562675.html Sent from the Users forum mailing list archive at Nab

Basic TextField question

2011-06-07 Thread drf
When I create a TextField as follows: TextField postCode = new TextField( new Model("xxx")); the object is created and shows the correct value. However, once the object is created, I do not seem to be able to change the value. postCode.setModelObject("zzz"); and postCode.setModet(new Model("zzz")

Re: Basic TextField question

2011-06-07 Thread drf
Still does not work -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Basic-TextField-question-tp3579272p3579294.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-m

AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread drf
I have a model which backs a form. One of the fields in the model is a custom object type, City. In the form I have a field defined as AutoCompleteTextField. This is populated with a list of City objects, and because City.toString() is overriden, everything displays nicely in the list. However, whe

ModalWindow - CSS problem in IE

2011-07-13 Thread drf
We are using the standard Wicket ModalWindow. To this we add our own Panel. In order to override the CSS which is used by ModalWindow (defined in the file model.js) , we are taking the existing CSS (which we grab using Firebug), add it to the

Re: ModalWindow - CSS problem in IE

2011-07-13 Thread drf
Found the problem: The

Button component not enabled in FireFox

2011-07-18 Thread drf
We are using the standard ModalWindow in our base page. To our modal we add a panel with one button, used to close the window. >From our base page, we instantiate a wizard. Works great, on all browsers, apart from the following issue: In FireFox, when the modal is opened in the last step in the w

Re: Button component not enabled in FireFox

2011-07-18 Thread drf
Wicket: 1.4.16 FireFox:3.5.4 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Button-component-not-enabled-in-FireFox-tp3675168p3677363.html Sent from the Users forum mailing list archive at Nabble.com. -