Hello, I download file by
getRequestCycle().setRequestTarget(requestTarget);
How can I redirect to other page after download?
setResponsePage(MyPage.class); does not work
Thanks in advance
--
View this message in context:
Hello, is it possible to handle validation of maxSize of file upload
(FileUploadField)? I need something like this
onFileMaxSizeError() {
someOtherField.error(someValidationMessage);
}
I hope someone understand what I want :D, if not, please let me know, i will
try to describe
I dont know if it works, but you can try to make a hack :)
endDateDropDown = new DropDownChoiceDate(endDateDropDown, new
PropertyModel(viewHistoryCriteria, endDate),
ProcessDateContext.getSixtyDayRange());
endDateDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) {
protected
Again, I can offer a hack :D
public class DoSomeHackBehavior extends AbstractBehavior {
private static final long serialVersionUID = 3554634545756435367L;
@Override
public void onComponentTag(Component component, ComponentTag tag) {
FormComponent? comp =
It's working, thanks a lot ;)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Catching-validation-error-of-fileUpload-maxSize-failing-tp2968831p2970111.html
Sent from the Users forum mailing list archive at Nabble.com.
You can use ListView's:
https://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html
https://cwiki.apache.org/WICKET/page-with-dynamic-components.html
https://cwiki.apache.org/WICKET/create-dynamic-markup-hierarchies-using-panels.html
--
View this message in context:
Hi, do we need to check if target is null? Is it possible to get null pointer
exception here?
Example
onSubmit(AjaxRequestTarget target, Form? form) {
// is it possible to get null target here?
}
--
View this message in context:
Hello, anyone have an idea how to avoid getting model object if component is
not rendered?
ListModelCustomUser usersListModel = new ListModelCustomUser() {
private static final long serialVersionUID = -4520573537970008038L;
@Override
public
Oh, ..., thanks for a sharp eye ;)..Then I will need to find another way how
to get rid of that default drop down value Choose one. Thank you
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Avoid-getObject-on-Model-if-component-not-rendered-tp3006125p3006137.html
Hello, is it possible to show only modal window content without all these
title bar stuff, close button and frames?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-show-only-content-tp3029858p3029858.html
Sent from the Users forum mailing list archive at
Just tried Igor's solution with JavaScript disabled using AjaxFallbackButton
Exception appears:
java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = xlsUploadForm]]
Components tree:
Page
TabbedPanel
Panel
Form
Button
Any ideas how
input type=button value=next wicket:id=next/
Remove bolded quote :)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Is-this-a-bug-tp3473469p3473539.html
Sent from the Users forum mailing list archive at Nabble.com.
Try to use character code #62; instead
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Is-this-a-bug-tp3473469p3473554.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To
Try this:
input type=submit wicket:id=next
wicket:message=value:yourLocalizedMessage /
And write this 'yourLocalizedMessage' in your localization properties file
like this:
yourLocalizedMessage=Submit
More info about localization:
Why do you want to switch page using ajax? :D If you redownload all page
contents, do not use ajax :), it only complicates everything. Use ajax, when
you want to refresh only some of page components, like table, other
containers--
View this message in context:
I think that your example would finish with ClassCastExeption in
TabbedPanel.java:382 line
return (Integer)getDefaultModelObject();
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3487936.html
Sent from the Users forum mailing list
Thanks for help, I solved my problem by extending original TabbedPanel with
some additional properties.--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3488031.html
Sent from the Users forum mailing list archive at Nabble.com.
Use ajax with responsibility. To much ajax can make bad things :]. I can not
undestand, why you would like to change page to panel, and rerender it all,
just like setResponcePage does. Try to sit and decide, which parts of page
should be ajaxified and which should be left as it is.--
View this
Hi, is there any way to check if JS is enabled from wicket code?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540451.html
Sent from the Users forum mailing list archive at Nabble.com.
I have noticed, that there is one issue when you click back button on
browser. If it was ajaxified page and you click on any control after back
button clicked in browser you will get exception that clicked component not
found or something.
I did some research and found this as one of solutions:
Already tried this. No success because of
http://apache-wicket.1842946.n4.nabble.com/Odd-behaviour-after-setGatherExtendedBrowserInfo-true-td1857093.html
:/
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540522.html
Sent
Could you please provide any simple example? Because I don't understand your
solution :]
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Ajax-and-browser-Back-button-tp3540454p3540573.html
Sent from the Users forum mailing list archive at Nabble.com.
Just wondering if any other noticed how strange wiquery behaves on IE 9?
It sometimes works, sometimes don't.
Created issue ticket here:
http://code.google.com/p/wiquery/issues/detail?id=184
If any have similar problems, please share yours
Solutions to fix this are welcome.
--
View this
hariharansrc do not worry about those traces of wicket usage :). No one going
to hack your app :D
Put wicket logo on your web page instead ;)
Powered by Apache Wicket :)
--
View this message in context:
Is there any way to update onClick method for the same link?
Let say I have link
add(new Link(myLink) {
public void onClick() {
// do something here...
}
);
And later, when I click other control I want to update myLink onClick logic
public void onClick() {
// do something
I will update this onClick recursive, need some more dynamic solution
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Link-onClick-method-update-on-runtime-tp3568895p3568935.html
Sent from the Users forum mailing list archive at Nabble.com.
Why do you want to store images in database? I think that is not a very good
idea. You better store images in your file system, and persist into database
only the paths to images.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p3574812.html
Sent
Hello, I tried to setup tomcat over apache2 following
https://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
guidelines. But I cant get it working. When I enter any page I always see my
wicket custom 404 error page.
I am using mod_proxy and mod_proxy_http plugins for apache2.
Wicket
Hello guys, how do I properly reload content via Ajax using AjaxLink?
I have label component like this:
And there is an AjaxLink:
After I click this link, label value stays not changed. Any ideas what I am
doing wrong? :)
--
View this message in context:
Thanks, that solved my problem:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Reloading-content-via-Ajax-tp4570233p4570286.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To
Hello this is quick start project which reproduces my case
http://apache-wicket.1842946.n4.nabble.com/file/n4597599/project.zip
project.zip
The problem is, that I cannot set value for object after form validation
fails.
How to reproduce:
1. Startup my quicstart app;
2. Do not fill required
I believe that this is not the right place to ask for Elephas engine howto :)
This discussion board is for Elephas http://groups.google.com/group/elephas
http://groups.google.com/group/elephas :D
--
View this message in context:
This solves my problem. Is there any way to collect all components that
fails?
or I just have to check each separate component if it has any feedback
messages (level ERROR) and then clear it's value by myself?
--
View this message in context:
OK, I got the idea :), thanks a lot for helping.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Setting-value-to-object-when-validation-failed-tp4597599p4599127.html
Sent from the Users forum mailing list archive at Nabble.com.
Hello,
I am using CompoundPropertyModel with some text fields. One of them is:
Later, when I try to enter invalid value for that field like qwerty (not
decimal type), I got validation message that wrong value entered. Even if I
have not added type validator.
But today, after I try to enter
Hello,
I am using CompoundPropertyModel with some text fields. One of them is:
Later, when I try to enter invalid value for that field like qwerty (not
decimal type), I got validation message that wrong value entered. Even if I
have not added type validator.
But today, after I try to enter
Hello,
I am using CompoundPropertyModel with some text fields. One of them is:
Later, when I try to enter invalid value for that field like qwerty (not
decimal type), I got validation message that wrong value entered. Even if I
have not added type validator.
But today, after I try to enter
Hello,
I am using CompoundPropertyModel with some text fields. One of them is:
Later, when I try to enter invalid value for that field like qwerty (not
decimal type), I got validation message that wrong value entered. Even if I
have not added type validator.
But today, after I try to enter
Hello, how to properly set generic for FilUploadField model?
I try like this, but it does not compile:
I get error message
:), help, please
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Generic-for-FileUploadField-model-tp4650519.html
Sent from the Users forum
Use reCaptcha
http://alexo-web.blogspot.com/2011/02/integrating-recaptcha-in-wicket.html
http://alexo-web.blogspot.com/2011/02/integrating-recaptcha-in-wicket.html
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-captcha-example-tp4650531p4650532.html
Sent
Iam, thanks for trying to help, but my form have CompoundPropertyModel too,
but I don't want to use it for my FileUploadField, so I create new model for
this. Everything works fine, just I can not put generics correctly.
--
View this message in context:
Hi, is there any way to create non-detachable objects model for list view?
I want to load actual objects from database for listview items, so I will be
able to modify them without reloading.
Let say:
If I use
as my listView model I will not be able to delete them right away like this
I will
I get same exception with your updates. Looks like I have to reload object
from database before it's deletion or delete it by id. Anyway, thanks for
help.
--
View this message in context:
Yes, this is what I wanted. But after I made some investigation how to apply
this OSIV filter I found that it could bring more mess then happiness :D;
Source:
http://stackoverflow.com/questions/1103363/why-is-hibernate-open-session-in-view-considered-a-bad-practice
Source how to apply:
Hi, does anybody knows how to repaint ListView properly using AjaxLink?
This
https://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
https://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html
does not work for me.
If I use Link, everything works. But not with
Hi, I try to append attribute for my list item using ajax link. But it does
not append.
Expected: class=image-box selected
Actual: class=image-box
=
Markup:
=
Java:
Hi,
I try to set locale for my custom session on application newSession method
like this:
When application start I get my pages localized in EN language, not in XX.
What am I doing wrong here? Please help :)
--
View this message in context:
Thanks for reply, it was my browser cache :). Thanks anyway.
The code I mentioned above works as expected.
Issue solved.
Thank you
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-properly-set-locale-on-application-startup-tp4660439p4660443.html
Sent from the
Hello, does anybody knows, what I could be doing wrong with wicket-bootsrap
setup?
I keep getting this error when entering wicket application:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909.html
Sent from
Wicket is 6.11.0
Bootstrap:
also tried this bootstrap version:
The same exception with both of them. I install Bootstrap into application
using those settings in init() method:
--
View this message in context:
If you are using DataTable a a repeater, this thread might help for you:
http://stackoverflow.com/questions/10796342/making-entire-row-of-a-wicket-datable-clickable
http://stackoverflow.com/questions/10796342/making-entire-row-of-a-wicket-datable-clickable
It lets you to make all row
Try to add something like this onSubmit: System.out.println(It's up to date
compiled code running here) and check console if you get this output :).
I think you need to recompile your sources and application. Because this
code snipped does nothing.
I might be wrong, we all do mistakes :)
--
Hi, Martin,
As we can see wicket-request.jar is different version then other wicket
modules. So, I have downloaded wicket-request.jar of 6.11.0 version manually
and replaced it in application AND IT WORKED :).
So, I really do not know, why bootstrap download wrong version. Maybe I need
to
When/how should I trigger JS to update attribute? I have never used pure JS
in my Wicket applications. I always try to use Wicket components/behaviors.
Also, to avoid problem you mentioned about path to child I can pass it as a
parameter which would be static field for both child component and
Does your VPS and your computer uses same databases? If not, check if user
that you want to log in exists in VPS DB
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Signing-in-works-on-localhost-but-not-on-VPS-server-tp4662167p4662169.html
Sent from the Users forum
The only thing I googled related to final and wicket is this:
7. Java nuances — There are two Java nuances that catch many Wicket
newcomers off-guard.
1. The first is serialization. Wicket uses Java serialization to store the
state of your component hierarchy (the page and all its components
I have noticed that localization does not work for wicket when pages
versioning happens.
Let say I have three components in my page:
1. wicket:message key=localizedResouceKey /
2. new Label(contentNoModel, resolveLocalizedContent());
3. new Label(contentWithModel , new Model() { getObect()
Exactly, I am really confused now. As I understand from your answer - this is
expected behavior.
I thought that back action should behave exactly the same when you
navigating the site using wicket controls.
Should I override back action somehow and do it myself?
--
View this message in
Hi Martin,
so, if I want browser back action to show the same result, I have to
choose between components with static models or components with dynamic
models only? Because if I use different types I will get different results
when backing to older page version?
I am really not getting the thing
So, back button does not restore locale value in session?
Ok, I will be more specific:
*action 1.* I click link switchLanguageToEN; (VERSION 1) (both labels (with
static and dynamic models) updates to english);
*action 2.* I click link switchLanguageToDE; (VERSION 2)(... updates to
german);
Storing it in page will not work as it will reset each time I call
setResponsePage.
Storing it in data base will not work also, because locale will became
global for all visitors.
So I tried to pass it using page parameters. Also, I have updated dynamic
label model to LoadableDetachableModel.
Those are screenshots taken from quickstart project I have provided:
1. (0 page version) We enter the page. Default locale is EN.
Everything are localized in english because locale is correct for all
components
http://apache-wicket.1842946.n4.nabble.com/file/n4662342/1-enterTheSite.jpg
2. (1
You have three different consructors for TabPanel1:
1. TabPanel1(BookDetails bookDetails);
2. TabPanel1();
3. TabPanel1(BookDetails bookDetails, String id);
If you create instance of that class using first constructor you don't have
any component added yet.
--
View this message in context:
Thanks for help,
I used this example to make localization work as I wanted:
http://www.wicket-library.com/wicket-examples-6.0.x/pub/?0
It does not reload page after setting new locale, so no new page version is
created and when you navigate back, using browser, locale stays the same.
Also I had
Hello,
I am not sure if it's a Wicket bug, or a lack of my wicket knowledge , but I
really need an assistance here.
I have a simple form with two different input fields: RequiredTextField and
PasswordTextField. Also there is a feedback panel, but it filters out
PasswordTextField feedback message
Hello,
I am not sure if it's a Wicket bug, or a lack of my wicket knowledge , but I
really need an assistance here.
I have a simple form with two different input fields: RequiredTextField and
PasswordTextField. Also there is a feedback panel, but it filters out
PasswordTextField feedback message
attaching quickstart: feedbackI18n.zip
http://apache-wicket.1842946.n4.nabble.com/file/n4662505/feedbackI18n.zip
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662505.html
Sent from the Users forum mailing list
Thanks Francois, it works.
I am changing locale in BasePage, so I had to add postprocessLocaleChange()
and override it on it's subclasses to get it working.
So it would be great if we could clear messages using something like
FeedbackCollector.clearAll() without any knowledge about what
68 matches
Mail list logo