Can someone confirm if this:
if (e instanceof StalePageException) {
return super.onException(cycle, e);
}
is the right way to let StalePageException be handled by wicket?
Is there a problem if the page has PageParameters?
--
View this message in context:
Hi.
I have a WebPage which gives me a StalePageException when more requests are
made to it at the same time by same user's page, every one with a different
PageParameters object. I also have an AbstractRequestCycleListener with an
onException method in my application.
I read about
In Wicket 5 it was as easy as using br tags inside summary String.
In Wicket 6 this simple way does not work anymore. Why?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-add-line-breaks-in-the-summary-text-of-Wizard-properties-file-tp4660589p4664234.html
Sent
Thanks.
I did the following:
@Override
public Component getHeader(final String id, final Component parent, final
IWizard wizard) {
Component c = super.getHeader(id, parent, wizard);
c.get(summary).setEscapeModelStrings(false);
return c;
}
--
View
I also recently find that I need to tweak Wicket Palette component look,
because on Android a multiple select will not show all the options. You have
to click it for selection and after that you can see only the first selected
item no matter how big is the height for select markup. I have written
I also tried to make a desktop Wicket application to look good on Android
phone.
1. Depending on application there is a big possibility to not be able to
show all the information. For me, it was ok to use css media query to have a
different css for Android phone. I had to tweak with fonts size
Hi.
I want to have a table with a Link PropertyColumn which contains a
LinkResource. When user clicks on the link I want to be able to pass the row
model to resource first and then have the resource loaded.
I created a ResourceLinkPropertyColumn class like:
public class
The only solution I have is to create my own class ResourceLink with a
method:
public void beforeResourceRequested() {} (here I will set rowModel to
my resource)
and use it inside onResourceRequested:
/**
* @see org.apache.wicket.IResourceListener#onResourceRequested()
Thank you Ernesto.
I was doing respond(attributes); but inside resource onResourceRequested
instead to do inside the frame :)
My mistake.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Displaying-content-in-an-iframe-tp4657207p4657214.html
Sent from the
I understand.
I wondered if it is possible that to have a behavior inside my panel and
inside renderOnLoadJavaScript (from renderHead) to call a javascript like :
wicketAjaxGet(' + getCallbackUrl() + width=...'
I have to get the width from javascript somehow with a function, and I have
no idea
As the bug link states you have to create date object by yourself. It's ugly
as a witch I know. But for wicket 1.5 I had no other solution. I do not know
how DateField and DateTimeField perform in wicket 1.6.
--
View this message in context:
Yes. I was too tired not to think about getApplication() :)
I also saw that for a
mountPage(/myPage, MYPage.class)
to make unmount to work I have to do
unmount(myPage)
without the starting /.
Is this the normal behavior? I find it a bit misleading why the unmount does
not work with a
Added here:
https://issues.apache.org/jira/browse/WICKET-4836
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Mount-Page-tp4653318p4653335.html
Sent from the Users forum mailing list archive at Nabble.com.
The strange thing is that only when the browser is just opened we see this
behavior. It is not deterministic and sometimes everything is ok from start.
Anyway, after a browser refresh, everything is ok. Also if we keep the
browser open, and new tabs with the iframes are opened, these are also ok.
see this:
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-ListMultipleChoice-add-Serializable-values-td4585991.html#a4586026
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Migration-to-1-5-X-is-not-a-valid-Serializable-tp4651757p4651764.html
Sent from the
We also have this problem after migrating to 1.5. Everything seems to work
ok, but the logs get full with this error. We did not find a solution to
this.
--
View this message in context:
In my WebApplication is there possible to know the session id inside
newSession method?
public Session newSession(Request request, Response response) {
Session session = super.newSession(request, response);
...
String id = session.getId(); // returns null;
}
--
Thanks a lot.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337p4650339.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail:
You make you panel invisible (first time when you create it), but where are
you make it visible?
The idea is to override
public boolean isVisible() {
return !commentDomainList().isEmpty();
}
in your panel.
--
View this message in context:
Hi.
I have a wicket 1.4 application with a AuthenticatedWebSession with
authenticate(String username, String password) method. I use annotations to
allow for seeing some components : @AuthorizeAction(action = Action.RENDER,
roles = Roles.ADMIN) for example.
I want when user logs in to save a
Hi.
My problem is not how to read the cookie. I do not know WHERE to read it,
because my authentication is done from LoginPanel / LoginValidator, and I do
not want my LoginPanel to be shown anymore.
--
View this message in context:
I made it by reading cookies in my AuthenticatedWebApplication in
@Override
public Session newSession(Request request, Response response) {
Session session = super.newSession(request, response);
I used the workaround with position: static !important. I also had to put a
width with the calendar container (otherwise it looks ugly)
.yui-calcontainer {
width: 140px;
}
--
View this message in context:
Any news about this? Wicket 1.5.5 has the same problem.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/WICKET-2056-broke-DatePicker-in-ModalWindow-in-1-4-16-tp3416225p4642684.html
Sent from the Users forum mailing list archive at Nabble.com.
As I see in css :
div class=w_content_2
div class=w_content_3
div class=w_content
div id=_wicket_window_3 class=w_content_container
style=overflow: auto;
because there is a style overflow: auto everything that is inside the
dialog will be scrolled.
I wonder how can put
Hi.
I have a code that was working in 1.4 but it shows an error message in
wicket 1.5.
I have a TextField, an AjaxSubmitLink and a ListMultipleChoice. When I click
the submit link I want to add the value from text field to the list.
ArrayListSerializable list = new ArrayListSerializable();
I forgot to say my object model from TextField is
private Serializable objectModel;
I do not understand how a String is not Serializable?
This code worked on wicket 1.4 without problems. I think something is done
different in wicket framework.
Can you tell me what class throws this error
Yes Decebal. You are right. If I have a TextField of some type but my model
is a generic one (in my case objectModel is of type Serializable), I have to
overwrite getConverter method like:
final TextFieldString textField = new TextFieldString(txtValue,
new
A DateTimeField does not need the converter to populate a Serializable model:
final DateTimeField txtTime = new DateTimeField(txtTime,
new PropertyModelDate(this, objectModel));
But there are other bugs with it
(https://issues.apache.org/jira/browse/WICKET-4496), so if something
I saw that the resolution for this
bug(https://issues.apache.org/jira/browse/WICKET-4496) is Not a problem
using getDefaultModelObject().
But it remains a question. If I have a DatetimeField and I want an
AjaxFormComponentUpdatingBehavior so that if I click the button, or if I
change the hours or
The class I put here was the full code:
import java.util.Date;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.datetime.markup.html.form.DateTextField;
import
import java.util.Date;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.datetime.markup.html.form.DateTextField;
import org.apache.wicket.extensions.yui.calendar.DateField;
import
This workaround works. But it seems DateField and DateTimeField are buggy in
Wicket 1.5.5.
So the only solution for now is to create my new components DateField and
DateTimeField.
--
View this message in context:
For a DateField and a DateTimeField in the onUpdate method for an
AjaxFormComponentUpdatingBehavior , the model is never updated, it rests
with the initial date selection.
--
View this message in context:
Here is the link
https://issues.apache.org/jira/browse/WICKET-4496
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DateField-and-AjaxFormComponentUpdatingBehavior-in-wicket-1-5-5-tp4551607p4554218.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi.
I have a set of components C (anything you want Label, DateField,
TextField, DropDownChoice ...)
and another ChechBox inside a ListItem. I want to use the checkbox for
enabling / disabling of all components C (when checkbox is selected I want
to disable all C components):
final
Thanks a lot. I did not see it.
Also my first error in Wicket Ajax Debug was because I had some invisible
components in my ListItem.
So after I checked also for visibility everything was ok.
--
View this message in context:
I created a simple page with a DateField and an
AjaxFormComponentUpdatingBehavior where I want to read the model. The
following code does work in Wicket 1.4.16 (prints the selected date), but
does not in Wicket 1.5.5 (prints null):
public class DatePage extends WebPage {
private
It does not matter. Your code (DateTextField instead DateField) does not work
either in Wicket 1.5.5 It prints just the current date no matter what date I
choose.
--
View this message in context:
I want to add a tooltip behavior to a ContextImage in Wicket 1.5.5.
public class SimpleTooltipBehavior extends Behavior{
private String tooltip;
public SimpleTooltipBehavior(String tooltip) {
super();
this.tooltip = tooltip;
}
I have a panel like :
public class IntervalFieldPanel extends Panel {
private TextFieldString intervalText;
public IntervalFieldPanel(String id, final IModel model) {
super(id, model);
...
intervalText = new TextFieldString(intervalText, model);
I have an application in wicket 1.4 with a wizard. Inside a WizardStep I have
a simple DropDownChoice with an AjaxFormComponentUpdatingBehavior where
inside onUpdate method i get the model object
protected void onUpdate(AjaxRequestTarget target) {
Did anyone see this?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542632.html
Sent from the Users forum mailing list archive at Nabble.com.
I found the problem.
Inside html I also had the id like:
input wicket:id=intervalText id=intervalText ... /
In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not
overwritten by wicket.
So I removed it, and everything is ok.
--
View this message in context:
The problem was also the id inside html components. When we have both
wicket:id and id, in 1.5.5 id is not overwritten and no events are triggered
for that component.
I wonder why this was not put inside the migration guide to 1.5.
Could be possible to get some warning in case we have something
In wicket 1.4.17 I want to have AjaxFormComponentUpdatingBehavior on a
DateTimeFiled for all its components (text field, hours field, minutes
field).
I can do this only on date text field :
DateTimeField txtTime = new DateTimeField(txtTime, generalModel) {
@Override
protected
Thank you. But I had to look inside the source to see the index of component
children:
dateTimeField.get(1).add(new AjaxFormComponentUpdatingBehavior() ...)
dateTimeField.get(2).add(new AjaxFormComponentUpdatingBehavior() ...)
Is DateTimeField.HOURS a constant defined in wicket 1.5? (I use
=test type=file onchange=
document.getElementById('secondBox').value =
document.getElementById('test').value;
/input
input id=secondBox type=text /
/form
On Tue, Feb 9, 2010 at 3:22 AM, dpmihai dpmi...@yahoo.com wrote:
What I really want is that after file selection automatically set
What I really want is that after file selection automatically set the text of
another TextField (inside my form) with a string derived from selected file
name.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
49 matches
Mail list logo