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
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.
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
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 style section of the html for our Panel, and then
Found the problem:
The style section had been placed within the wicket:panel tags.
FireFox was fine with that but not so for IE.
Moving the style section to wicket:head and it works in IE.
--
View this message in context:
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 AutoCompleteTextFieldCity.
This is populated with a list of City objects, and because City.toString()
is overriden, everything displays nicely in the list.
When I create a TextField as follows:
TextField postCode = new TextFieldString( new ModelString(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
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,
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
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
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
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
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.
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
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
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 the
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.
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:
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
.
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=nodenode=227i=0by-user=t
wrote:
Is there any way to automate the clicking of a link or button, similar to
WicketTester, but within a running
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) {
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?
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
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:
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
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:
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:
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 {
//
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
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
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
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
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();
}
--
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 DIV.
2. on the right
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
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
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.
That was a just typo in the question
It is
div wicket:id=pageContainerdiv class=mainPageDiv
wicket:id=mainPage/div/div
Do you have any other ideas ? Thank you very much !
--
View this message in context:
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
I am having a problem that my DropDownChoice is not selecting the item I
expect, only Choose one. Here is the code:
...
private ListLong accountList = new ArrayListLong();
private Long selectedAccount;
public AccountsDropDownChoice(String id, final Component component) {
super(id);
Apache Wicket]
ml-node+2402968-632920498-65...@n4.nabble.com 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:
I am having
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
:02 PM, drf wrote:
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
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:
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
58 matches
Mail list logo