Hi Vineet,
thanks for the reply. The line
tester.getServletRequest().setParameter(myParam, testParam);
But now Im breaking my head with the next issue. If you look at my first post,
Im trying to do a test where a second page is rendered after a submit on an
AjaxButton. The test code looks like
Hi all,
I want to set the focus to a ModalWindow when it is opened. This allows me to
close the ModalWIndow with the esc key without having to click on it before.
suggestions?
Thanks
M
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127
Hi,
You open it with modal.show(target), right ?
Since you have the 'target' you can use it to execute an arbitrary
JavaScript after opening the modal: target.append(someJsToFocus).
The JS should look like: document.getElementById(
+modal.getMarkupId()+ ).focus();
On Mon, Aug 20, 2012 at 11:44
Hi, possibly it's already discussed by I don't see it.
How to set focus on a variable field during a check? For example a form with
address fields.
Every field is checked and when, for example, the zipcode is wrong I want to
set focus on the zipcode.
What to do?
--
View this message in
I add target.appendJavaScript(document.getElementById(' +
editModalWin.getMarkupId() + ').focus(););
But not work...
Here you can found my code:
final AjaxLink createLink = new IndicatingAjaxLink(createLink) {
private static final long serialVersionUID =
Only form elements can be focused in HTML by default.
To make a normal div focusable you need to add 'tabindex' attribute to it.
Experiment with Firebug/DevTools first. Find the JS that can focus
your modal window and then just add it in your Java code.
On Mon, Aug 20, 2012 at 12:54 PM, Marco Di
I tried this, but I can't figure out how to convert from datatable to an
AbstractRepeater.
DataTable table = new DataTable(datatable, columns, kostenOVProvider, 10){
protected Item newRowItem(String id, int index, IModel
model) {
Item item =
On Mon, Aug 20, 2012 at 11:57 AM, bala ji balaji@gmail.com wrote:
I've added a scenario where i need to use wicket:fragments.
wicket:extend
...
span wicket:id=myPanelExample input (will be removed)/span
...
wicket:fragment wicket:id=frag1panel 1/wicket:fragment
hi,
Can u give me the exact solution whether the fragments inside wicket:extend
are working in wicket 1.5.3 or not.
On Mon, Aug 20, 2012 at 3:41 PM, Thomas Matthijs li...@selckin.be wrote:
On Mon, Aug 20, 2012 at 11:57 AM, bala ji balaji@gmail.com wrote:
I've added a scenario where i need
Thoughts, anybody?
On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:
The main problem I am facing is that in Wicket 1.4.x I can't figure
out how to access ART from the component that was not added to this
ART, e.g. during ajax form submission.
I tried to add
You can access current ART associated with request by calling static
AjaxRequestTarget.get()
Tibor
On Mon, Aug 20, 2012 at 5:10 PM, Alec Swan alecs...@gmail.com wrote:
Thoughts, anybody?
On Sun, Aug 19, 2012 at 1:07 PM, Alec Swan alecs...@gmail.com wrote:
The main problem I am facing is that
It seems that I cannot access ART from the component that is not
updated by that ART because that component is not rendered during the
lifecycle of that ART.
Here is the problem description:
1. A page is rendered with a feedback panel and a form
2. The form is later submitted via AJAX and does
data table has the NoRecordsToolbar
-igor
On Mon, Aug 20, 2012 at 3:01 AM, Delange delan...@telfort.nl wrote:
I tried this, but I can't figure out how to convert from datatable to an
AbstractRepeater.
DataTable table = new DataTable(datatable, columns, kostenOVProvider, 10){
Hi,
I haven't used 1.4 much so I'm not sure it exists there. Maybe you could
add a IRequestCycleListener to your app via getRequestCycleListeners()
which adds the feedback panel in onRequestHandlerResolved? In that
method, check if the handler type is an AjaxRequestTarget and add your
IRequestCycleListener was added in 1.5.x. Is there anything else I can
do in 1.4.x?
On Mon, Aug 20, 2012 at 12:15 PM, Bertrand Guay-Paquet
ber...@step.polymtl.ca wrote:
Hi,
I haven't used 1.4 much so I'm not sure it exists there. Maybe you could add
a IRequestCycleListener to your app via
https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java
is all you need.
in your AjaxButton#onSubmit(ART target) {
target.addListener(new AjaxFeedbackPanelUpdater());
}
Or override
that test looks ok to me ,please attach a quickstart
On Mon, Aug 20, 2012 at 12:23 PM, JCoder i...@jcoder.de wrote:
Hi Vineet,
thanks for the reply. The line
tester.getServletRequest().setParameter(myParam, testParam);
But now Im breaking my head with the next issue. If you look at my first
I want to place some html in my messages.
So that some text can be high lighted
For example:
VKAB=Your licence will be downgraded to {1,date,medium} at 1 feb 2012
The message is added by a list
ChoiceRendererString renderer = new
ChoiceRendererString(value,key);
Thanks, Martin. I ended up using WebApplication#newAjaxRequestTarget()
approach because AjaxFeedbackPanelUpdater approach requires me to know
all forms that can be displayed in the page ahead of time and modify
their onSubmit code.
On Mon, Aug 20, 2012 at 3:01 PM, Martin Grigorov
19 matches
Mail list logo