Hi Stefan,
It's a good solution but I have external authentication system and only
thing that I know - is creation of the new session:(
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Redirect-to-the-HomePage-on-newSession-tp4656365p4656384.html
Sent from the Users
Hi,
unfortunately it does not help. Use session listener roughly the same with
using newSession method.
I found one solution but looks like workaround without a real needed.
1) throw CustomExceprion on the onCreated method of the ISessionListener.
2) Replace DefaultExceptionMapperProvider with
Is it possible to redirect user to the HomePage when new session is created?
@Override
public Session newSession(Request request, Response response)
{
//RequestCycle.get().setResponsePage(getHomePage());
//or
//RequestCycle.get().replaceAllRequestHandlers(new
RenderPageRequestHandler(new //Pag
Hi All,
When I create modal window with the Panel as content and this panel contains
DataTable(eg.AjaxFallbackDefaultDataTable or custom implementation) and this
table contains FilteredToolbar(with ChoiceFilters) - I get "Are you sure you
want to leave the page?" everytime when I use those filters
Thanks for the reply.
Unfortunately I have not idea how to configure it on the application
level(eg. execute script on all 'failure' in the application)
It was possible in wicket 1.4 - BasePage.java:
add(new Behavior()
{
@Override
public void renderHead(Component component, IHea
Hi all,
Does anybody know how to use wicketGlobalFailureHandler from Wicket 1.4 in
the Wicket 6
I need a function which will be executed onFailure, but how to register it
now?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicketGlobalFailureHandler-in-wicket-6-tp4
As I understand - the correct way is change usage PageCreator to setContent:)
Thank you very much for all your answers!!!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-and-Serialization-tp4484547p4484858.html
Sent from the Users forum mailing list archiv
1) to as simple asgetSession().getAttribute(key) -
getSession().getAttribute(key)
It is not in the topic but:
What it different between your proposal and
getApplication().getSessionStore().setAttribute(requst, key, value);
Maybe it's stupid question - how to remove object from session if you u
Thanks for your answer,
of course session is not so simple as local variable - but it one of the
solution
Maybe in next releases of wicket someone will come up with a simpler
solution
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-and-Serialization-tp4484
Hi All,
I have a lot of work with ModalWindows in my project and want to use objects
which created on the base page and are changed in the modal windows.
I found that ModalWindow was changed in wicket 1.5 and want to ask about
solution.
Please see short example:
// Base Page
public class MyPage ext
Looks like serialization problem.
Does anybody know how it works?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Problem-with-setWindowClosedCallback-tp3823361p4452909.html
Sent from the Users forum mailing list archive at Nabble.com.
Does this problem still not documented?
Does anyone know a solution to this problem?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Problem-with-setWindowClosedCallback-tp3823361p4452543.html
Sent from the Users forum mailing list archive at Nabble.com.
-
Hi All,
Simple example:
-
final BlockUIBehavior blockBehavior = new BlockUIBehavior();
final Form form = new Form("form");
AjaxButton ajaxButton = new AjaxButton("block")
{
@Override
protect
Hi All,
when I tried to migrate to wicket 1.5 I found strange things.
One of them is - modal window does not show second time.
In sample below - click to "show" -> on opened modal window click to "close"
-> second click to "show" does not make effect.
//Base page:
public ShowCloseTestPage()
{
Hi,
Thanks for your reply
please see short example:
public class WindowClosedCallbackTest extends WebPage
{
public WindowClosedCallbackTest()
{
final ModalWindow window = new ModalWindow("window");
window.setPageCreator(new ModalWindow.PageCreator()
{
@Override
public
Hi All,
in wicket 1.4 i can make:
AjaxButton searchButton = new AjaxButton("search")//{1}
{
@Override
protected void onSubmit(AjaxRequestTarget target, Form ajaxForm)
{
window.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
{
@Override
Thanks for you reply.
Unfortunately jQuery did't help.
My new code:
String script = "$('#corruptedPackagesDiv').scroll(function(){" //
+ "var var1 = $('#corruptedPackagesDiv').scrollTop();" //
+ "var var2 = $('#corruptedPackagesDiv').height();" //
+ "var var3 =
And new question occur - how can I close all modal windows before redirecting
to HomePage. Or how to redirect to Home Page my main window but not a modal?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3520
I found the solutions but I do not know that it fully safely.
variable wicketGlobalFailureHandler is used in wicket-ajax.js for
registration of failure handlers.
I added this code to my BaseWebPage class which superclass for all my pages:
add(new AbstractBehavior()
{
@Override
pub
Hi All,
I have a table and JS on the page -> when table scrolling in the very down
JS function call wicket and label which displayed on the page incremented.
All good with FireFox and all good in case with IE if you will pull
scrolling down by your mouse. But if you will use your mouse wheel -> wi
Thanks for your reply
Yes, I tried to use the filters but to no avail.
http://apache-wicket.1842946.n4.nabble.com/file/n3519427/request.png
request.png this is data from 'Tamper Data' plugin for FireFox(action
clicking to link after session expired). May be it can help.
--
View this message i
Sorry for my may be stupid question but - how can I print the header?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3514154.html
Sent from the Users forum mailing list archive at Nabble.com.
-
Can anyone give an example?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3513980.html
Sent from the Users forum mailing list archive at Nabble.com.
JSP used only for Tomcat FORM
authentication(http://onjava.com/onjava/2002/06/12/form.html)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3512818.html
Sent from the Users forum mailing list archive at Nabbl
http://apache-wicket.1842946.n4.nabble.com/file/n3502992/Test.rar Test.rar
Please, see attached. It's test eclipse project for this case.
It's based on the Tomcat FORM authentication(imho this is a cause for AJAX
strange behavior)
Make sure that for testing you will need append user in your
tomca
Do not work with Wicket 1.4.17.
Can anybody post comment to last comment to
http://apache-wicket.1842946.n4.nabble.com/Session-timeout-AJAX-enabled-controls-td1893184.html
?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-time
This issue same with
http://apache-wicket.1842946.n4.nabble.com/Session-timeout-AJAX-enabled-controls-td1893184.html
but there is no response to the last comment
After session expire nothing happend for user if he click to AJAX link - but
PageExpiredException needs.
In 'wicket ajax debug' window f
Does anyone know how to solve this problem?
Or is it a bug in wicket?
Note: I use wicket 1.4.14
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Set-FormComponent-Type-and-EmailValidator-tp3356588p3387040.html
Sent from the Users forum mailing list archive at Nabble.co
I have a warning in my log if I use "new TextField("text", new Model()":
WARN [org.apache.wicket.markup.html.form.AbstractTextComponent] Couldn't
resolve model type of
Model:classname=[org.apache.wicket.model.CompoundPropertyModel$AttachedCompoundPropertyModel]:nestedModel=[Model:classname=[org.a
After submitting a form:
add(new Form("form") //
.add(new TextField("text", new Model(), String.class) //
.add(EmailAddressValidator.getInstance(
with empty field the fallowing error occur:('' is not a valid email
address.)
Without setting type for TextField - all fine
You can simply use something like this in your realization of DataProvider:
@Override
public IModel model(Entity entity)
{
return new Model(entity);
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Perfomance-of-IDataProvider-tp3325777p3328194.html
Sent fr
Hi All,
The question about wicket-minis.
How to append Link or AjaxLink inside MootipPanel?
When I try to insert this I get the result in my tooltip as
'IBehaviorListener:0:-1',function() { }.bind..'
I have not the problems with using BookmarkablePageLink or strict link
inside HTML, but Lin
Thank a lot!!
I found wicket-html5 and hope that it help.
Thanks!!
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AVI-in-Wicket-tp3241694p3241770.html
Sent from the Users forum mailing list archive at Nabble.com.
-
Hi All,
Can anybody say how to play video on wicket page?
(Using Adobe Media Player or something else)
Thanks
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AVI-in-Wicket-tp3241694p3241694.html
Sent from the Users forum mailing list archive at Nabble.com.
Do anybody know solutions for this issue?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/modal-window-IE8-parent-page-scrolbar-tp3056439p3229703.html
Sent from the Users forum mailing list archive at Nabble.com.
--
Hello,
Add your DDC to form and use SubmitLink instead Link.
HTH
[click me]
Form form = new Form("form");
add(form);
form.add(getDocTypeDropDown("docType"));
form.add(executeLink("execute"));
private SubmitLink executeLink(String id)
{
return new SubmitLink(id)
Hi,
try to change your onUpdate method:
protected void onUpdate(AjaxRequestTarget target) {
TablePanel newTp = new TablePanel("tablePanel",columns,new
PersonBeanProvider(searchFilter),12);
tp.replaceWith(newTp);
tp = newTp;
target.addComponent(tp);
--
View this m
Can you write your code?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2991210.html
Sent from the Users forum mailing list archive at Nabble.com.
---
new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(form)
{
@Override
public boolean accept(FeedbackMessage message)
{
return {Your code};
}
});
--
View this message in context:
http://apache-wicket.1842946.n4.nabbl
Sorry, but I'm not see the problems.
Try to debug your isVisible method after submitting the form and find the
place in which this code return false. I think that isVisibleInHierarchy()
for your RequiredTextField("patente") will have a problem
--
View this message in context:
http://apache-wicke
Funny:) Your code is correct and in my tests all data was setting to model:)
In your sample code you forgot to include feedback panel, but it was added
to html.
May be in your tests you forget to input some required data - in this case
your model never updates but you also never been in your onSub
Your code looks correct.
You said 'when you click "Registrar" button, data from "auto_info_panel"
don't appear in DispositivoDTO model'.
I tried to create AutoInfoPanel like this:
public AutoInfoPanel(String id, IModel model)
{
super(id);
add(new TextField("lastName", new PropertyModel
How it currently must work?
Example:
Your open the page -> change your Combo to 'AUTO' -> input data to
AutoInfoPanel and press 'Registrar'
OR
Your open the page -> change your Combo to 'AUTO' -> input data to
AutoInfoPanel -> change your Combo to 'PERSONA' -> input data to
PersonaInfoPanel and pr
Hi,
Do not forget to use google before posting the question :)
http://wicketbyexample.com/wicket-ajax-confirmation-modal-window/
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/any-good-ideas-about-how-to-add-a-confirm-check-before-leaving-a-page-tp2314872p2314880.htm
Try to move your table to separate Panel. This will work
public Component getLazyLoadComponent(String id)
{
return new YourPanel(id);
}
public YourPanel(String id)
{
super(id);
List> columns = new ArrayList>();
columns.add(new PropertyColumn(new Model("First Na
Create AjaxButton for refreshing your data:
new AjaxButton("refresh")
{
onSubmit(AjaxRequestTarget target)
{
onNew();
targer.addComponent(detailsPanel);
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Model-Is-Not-being-Refreshed-tp2311457p23
Do not forgot about setOutputMarkupPlaceholderTag(true) for your components
that initially as invisible.
And use AJAX...:)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-Update-contents-of-a-child-component-tp2307756p2307883.html
Sent from the Wicket - User ma
Thanks for reply!
It's help.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306490.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---
Yes, but how to fix this problem?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1-4-8-tp2306372p2306431.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
Why did FileUpload.getClientFileName() return file name in 1.4.8 but it
return all path to file in 1.4.9??
E.g. My_File_Name.txt in 1.4.8
and D:\MyFolder\My_File_Name.txt in 1.4.9
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/FileUpload-getClientFileName-1-4-9-vs-1
Hi
There are mistake in your code:
programList.setDefaultModelObject(stringObjectModel);
...may be you want to call programList.setDefaultModel(stringObjectModel);
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-set-the-value-of-a-Drop-Down-Choice-tp2303973
Create XML file that named same with your class and put ot it
YOUR TEXT HERE is
not between ${minimum} and ${maximum} characters long
instead studyDescriptionTxtArea must be wicket:id of your TextField
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Re-TextArea-Stri
Hi,
Read
http://www.wicketframework.org/apidocs/wicket/markup/html/form/Form.html
about nested forms.
Also your can put your ListMultipleChoice and buttons to separate Panel
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Re-AjaxButton-OnSubmit-Validation-Overridden-
see org.apache.wicket.model.LoadableDetachableModel
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Re-Wicket-s-Form-Model-using-hibernate-entity-or-value-objects-Design-tp2289854p2289870.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
I thing that you can have a problem with your FilterCriterionInterface:
public String getComparedValue()
{
return filter.get("Name").toString();
}
...it can throw NullPointerExcaption if you did not input name filter
Try to debug your dao.getResultSetFullSize(fltr)
--
V
Your page look fine, but you do not attach code for 'MyDataProvider'
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/TextFilteredPropertyColumn-feature-tp2289687p2289754.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Hi, idudko!
Can your attach some code for example?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/TextFilteredPropertyColumn-feature-tp2289687p2289730.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
Thanks. It working. But the button visibility will never be changed and
button will be visible in this case even if 'visibleFlag' changed to false.
This mean that is your change 'visibleFlag' to false than method onSubmit()
will be call
--
View this message in context:
http://apache-wicket.18429
It can't work.
Please, see org.apache.wicket.Component.internalBeforeRender() method.
Method onBeforeRendering() colling only in case when visibility of component
is true.
In our example boolean variable 'available' false by default. This mean that
component never be rendered.
Can someone explai
But question is still open:)
Look to example
public static boolean visibleFlag = true;
public VisibilityButtonTest()
{
Form form = new Form("form");
add(form);
AjaxButton ajaxButton = new AjaxButton("button1")
{
@Override
public boolean isVisible()
{
Hi!
It is not a best solutions but you can try it
ajaxButton.add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1)));
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-WicketRuntimeException-Submit-Button-is-not-visible-tp2282413p2282506.html
Hi,
is gramma mistace in your html
. Use wickeT:id
Bu more closely in the future:)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-Form-problem-tp2280712p2280730.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Try to use AjaxLink("iconLink") instead your Link("iconLink")
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-tp1892913p2276332.html
Sent from the Wicket - User maili
Use setOutputMarkupPlaceholderTag(true) for your component
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Refreshing-DataView-fails-if-it-was-initially-empty-tp2273568p2276085.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
Can you post more code from your example?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/dropdownchoice-onchange-event-called-before-propertymodel-updates-tp2275897p2276047.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Not a best solution but it works:)
final FeedbackPanel feedback = new FeedbackPanel("feedback", new
ContainerFeedbackMessageFilter(form)
{
@Override
public boolean accept(FeedbackMessage message)
{
return requiredTextField.getModel().equals(((Requ
Not a best solution but it works:)
final FeedbackPanel feedback = new FeedbackPanel("feedback", new
ContainerFeedbackMessageFilter(form)
{
@Override
public boolean accept(FeedbackMessage message)
{
return requiredTextField.getModel().equals(((Requ
columns.add(new AbstractColumn(new Model())
{
@Override
public void populateItem(Item> cellItem, String
componentId, IModel rowModel)
{
cellItem.add(new TestPanel(componentId));
}
});
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-panel-to-datatabl
Look to DefaultDataTable addBottomToolbar(new NoRecordsToolbar(this));
You can append custom Bottom Toolbar to your table instead NoRecordsToolbar:
public class MyBottomToolbar extends AbstractToolbar
{
public MyBottomToolbar(DataTable table)
{
super(table);
RepeatingView headers = n
Try to use:
yourDDC.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
@Override
protected void onUpdate(AjaxRequestTarget target)
{
target.addComponent(yourGridComponent); //like MyGrid.this
}
});
--
View this message in context:
http://apache-wic
http://www.wicketstuff.org/wicket14/ajax/choice
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Submitting-a-component-value-on-a-ajax-call-of-a-different-component-tp2264940p2265189.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---
Try to change your Base Constructor to:
public ContainerTemplate(String containerClass, String containerStyle)
{
this.containerClass = containerClass;
this.containerStyle = containerStyle;
// Your code
}
...and in your nested page call super("your_container_class",
"your_container_style")
Also y
Thanks for replay Stefan.
Nestet form is a good idea for my example.
But am so sorry that simplified it. In some cases there is not easy to make
markup using this way.
For example I want to use in my onSubmit method model value from 2 or 3
different TextFields or other FormComponents. And all of
Form form = new Form("form");
form.add(new RequiredTextField("filed"));
final TextField textField;
form.add(textField = new TextField("filed2", new
Model()));
form.add(new AjaxButton("button")
{
@Override
protected void onSubmit(AjaxRequestTarget target,
@Suppre
74 matches
Mail list logo