Hi,
try calling setReuseItem(true) on list. See ListView JavaDoc for further
details (the WARNING paragraph) .
I got some trouble with the FeedbackPanel.
My scenario looks like this. I got a custom panel which can be added to a
page. Within the panel I add a FeedbackPanel to show any errors
Hi,
running your app in development mode do you get any message of this kind
-Component-targetted feedback message was left unrendered.?
Mh, sorry I told you something wrong I'm not using a list but instead I'm
using a DefaultDataTable with a SortableDataProvider.
But I followed you advise and
Hi Shunmuga,
try with this http://web.itu.edu.tr/uyar/wicket-tutorial/wicket-tutorial.pdf
it's a basic Wicket tutorial for beginners.
Hi Per Newgro,
Thanks for your valuable information. I dont
know wicket basics also. If u have any tuorials or tutorial links
means pls
Hi Jencity,
you use 'gateway' as model object. Probably this object has one or more
numeric field binded to a String TextField.
In this case you should use a numeric TextField (for example
TextFieldInteger...)
Hello,
i have got a problem with getting my form working. I have got a form
Hi,
I'm not sure I have fully understood your situation. You should have:
1- a page which opens a modal dialog via Javascript
2- another page which is rendered inside modal dialog
3- in this last page (the one inside modal window) you want a link to
the page in background (the starting page)
Hi Chris,
your library looks really useful! Are you planning to release also a
version based on Wicket 1.5?
Hello Fellow Wicketers,
Step Ahead Software has made available new sample code and a live demo
of our open source ModalX wicket library that provides a convenient and
efficient way of
Hi eugenebalt,
why not just call setEnabled(false) on form component?
Thanks. Good suggestion. Will give it a try, but never worked with jQuery
before.
--
View this message in context:
Hi,
I've adapted (and tested) my solution to wicket 1.4.17. It's slightly
different from 1.5 because you should pass
target.addComponent just moduleContentPanel and not the whole window.
The code of my solution is this:
//modal window constructor
add(new AjaxLink(btn) {
Hi Mathilde,
why not simply substitute modal window content instead of reloading page
and creating a brand new modal window?
Your code doesn't work because setResponsePage create a new instance of
QuestionnairesPage different from the one referenced by qPage variable.
Hi all,
I have a
Try to use just one modal window and switch content panels. I.e:
-Create modal window with questionnaireContentPanel as initial content:
modalQuestionnaireModule = new
ModalWindowE4N(modalQuestionnaireModule,);
questionnaireContentPanel = new
Sorry, you are right. Under wicket 1.5 works calling replaceWith on old
content. In your code should be something like :
moduleContentPanel =
questionnaireContentPanel.replaceWith(moduleContentPanel);
target.addComponent(moduleContentPanel);
I didn't tested it with 1.4.x version.
I
Hi,
I've looked at your code but is not clear to me how and when you read
the selected value in savedReportsDropDown. Is trackingProfileVO an
instance of SelectedTrackProfileVO?
Here is the code:
private DropDownChoiceSelectedTrackProfileVO savedReportsDropDown;
savedReportsDropDown =
Hi,
try adding to ajaxRequestTarget the parent component instead of D1 and D2.
Hi,
In my page I have two dialog box say D1 and D2.
When clicking some link D1 should come, and it is happening. It is a
confirmation dialog box.
Now when I click ok button in D1 then D2 should be shown by
Hi,
attach the code from onUpdate(AjaxRequestTarget target) method. This
should be responsible of changing order.
I mean to say before the onUpdate was executed the DropDownChoice contains in
the order of (A, B, C, D).
But after the execution of onUpdate() the DropDownChoice contains in the
Hi,
try using ajaxRequest.appendJavaScript(JQuery here) to restore data
picker functionality on updated field.
Dear Forum,
I'm have a jquery date picker field that I can update by adding
AjaxFormComponentUpdatingBehavior to a drop down choice.
After I have updated the date field using ajax
Hi,
which AJAX component are you using? is likely that your field's form is
not submitted, hence field's model is not updated
Hi,
I refresh the page using target.addComponent(fieldName);
The value that was entered in the text field is cleared. How can I get it to
keep the value?
Thanks
Anna
Can you reproduce this issue in a quickstart project and attach it to JIRA?
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
Hi,
which version of Firefox and Wicket are you using?
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
Hi,
you can use Loop component to generate a dynamic number of links. For
example:
HTML code:
ol title=MenĂ¹ class=main_menu
li style=list-style: none; wicket:id=itemList
a wicket:id=menuItem/a
/li
/ol
Java code:
ListAbstractLink linkList = ...
Loop loop = new Loop(itemList,
Hi,
If you have an ajax event and then you call target.addComponent on
another component or collection of other components.
What do you mean with another component? You should be able to add any
component you want, except AbstractRepeater subclasses (ListView,
RepeatingView, ecc...). These
Hi Mike,
take a look at interfaces IMarkupResourceStreamProvider and
IMarkupCacheKeyProvider. Using the first one you can implement method
getMarkupResourceStream which returns an IResourceStream with your
custom HTML. The second interface has a method called getCacheKey. You
must override
Right, I've looked at code and it uses an hashmap
in last case i think rendering will be once because the components are
kept in map with markupid of component as key in ajaxrequesttarget.
On Thu, Jul 14, 2011 at 9:11 PM, Andrea Del Beneadelb...@ciseonweb.it wrote:
Hi Mike,
have you tried org.apache.wicket.request.URLEncoder?
Hi,
is wicket providing a class encoding a page parameter string for url?
Usecase: I have a searchword. This is put plain into the page parameters.
But if i use for example the searchword myword% i get
ERROR - RequestCycle
Hi,
attach java code and HTML of this new class so we can take a look.
Hi,
I am extending a class SomeDetailPage which extends SomePage which in turn
extends WebPage. Now this SomeDetailPage is working fine and has no issues.
But I have created a new class and extended some of its features and
Hi,
why don't simply put the inner form out of the outer one? Anyway, you
could remove inner form's validators before the outer form is submitted
and add them again when submit process is over (onFormSubmitted() )
Hi all,
I have two forms nested within each other (wicket 1.4.17). The inner
I thought it was easier...anyway in the example I posted yesterday
calendar is closed with a specific click handler:
// Hide Calendar if we click anywhere in the document other than the
calendar
2Event.on(document, click, function(e) {
3
4var el = Event.getTarget(e);
5var
Hi,
here http://developer.yahoo.com/yui/examples/calendar/calcontainer.html
you can find an example of YUI calendar that closes when you click
outside its area. You can see how it is configured and using this
configuration in your DatePicker overriding configure() method.
Hi,
I have used the
Hi nino,
AbstractRepeater class (superclass of ListView) calls onPopulate during
onBeforeRender, so as long as this event is not triggered listviews
should be empty.
changing it from onconfigure to onbeforerender does the trick.. Im not
sure what the difference are though..
2011/7/4 nino
mmm...I didn't find any wiki about it.
I sorta figured it had something todo with the fact that
onbeforerender was called at a later time than onConfigure.
Is there a good description of the timeline of these methods somewhere?
2011/7/4 Andrea Del Beneadelb...@ciseonweb.it:
Hi nino,
You should add form reference to Ajax target.
target.addComponent(form)
Remeber to call setOutputMarkupId on form instance.
thanks it worked but how do i refresh the ManageAATemplatePanel now?
--
View this message in context:
Hi,
you should not recreate the whole ManageAATemplatePanel each time you
submit your form.
In this way in addition to waste memory and cpu time, you are not able
to update your form and components via AJAX because you replace them
with new instances.
So adding your form to ajaxrequesttarget
HI,
are you sure that button submit is executed? Have you debugged it? Maybe
the code is not executed because form has some validation errors...
Hi,
im taking input from user in the form components and trying to reset them
when they are shown next time, i have tried doing form.clearInput(), i
Hi,
on click of link try to replace your code with this one:
WebMarkupContainer tmp = new ModifyAATemplate(modifyAATemplatePanel, aat);
modifyPanel.replaceWith(tmp);
modifyPanel = tmp;
tmp.setOutputMarkupId(true);
target.addComponent(modifyDialog);
modifyDialog.open(target);
Hi,
im
Hi,
do you use the same Wicket version on development and production
environments? Anyway the problem could be due to ListView which by
default replaces all child components with new instances each time is
rendered.
Try calling setReuseItems(true) on your ListView.
Hi,
i'm having the
Hi,
take a look at the fantastic :-) free chapter from Wicket Cookbook. It's
about what are you doing with tables.
not as simple as
if
(Application.get().getConfigurationType().equalsIgnoreCase(development))
{
invalidate();
}
It isn't clear to me how I might go about that but It would need to run in
something like onAfterRender()?
Andrea Del Bene wrote:
Well...is a little bit complicated
HI Decebal,
you should merge User and Customer classes into a single class, or you
can create a common super class, for example an AbstractUser. Once you
have a single class for user's authentication, you could do a single
login page with a checkbox to tell apart Customer users from
Hi,
WizardStep is a panel so you can use startPanel.
I have a RegistrationPage containing a Wizard with 5 steps.
Now I want to write a WicketTester test for ONE specific WizardStep, let's
say step 4.
How?
(I could write a test clicking through all steps before step 4 as I
understood
Hi rush66,
you are right, method getResource in TextTemplateResourceReference
reads resource just the first time you call it. You can override this
method like this:
@Override
public IResource getResource(){
if(Application.get().getConfigurationType() ==
Sorry, I was checking Wicket 1.5 source where getResource() is not final.
Isn't there an issue with overriding the getResource() method in
ResourceReference if it is marked as final?
--
View this message in context:
Well...is a little bit complicated but you should call
ResourceReference's invalidate() after your pages have been rendered.
But I don't know how you should put this method call.
Sorry I did not clarify that we are on 1.4.17.
While I would love to migrate our project to 1.5 I don't know how
HI,
have you tried with AjaxFormComponentUpdatingBehavior? As Palette's
JavaDoc says:
Ajaxifying the palette: The palette itself cannot be ajaxified because
it is a panel and therefore does not receive any javascript events.
Instead ajax behaviors can be attached to the recorder component
Hi Alex,
maybe I'm facing the same problemyour modal windows' content is a
Page or a Panel?
Hello
I got a strange problem with multiply Modal Windows.
Let's imagine we have an Entity A with field of entity B (1 to 1
relation) . Now we create the Edit page, which contains a form and
I'm going to open an issue on JIRA
Page. I found your discussion with Marieke Vandamme. Looks very
similiar to my case.
On 17 June 2011 14:02, Andrea Del Beneadelb...@ciseonweb.it wrote:
Hi Alex,
maybe I'm facing the same problemyour modal windows' content is a Page
or a Panel?
The issue is here: https://issues.apache.org/jira/browse/WICKET-3809
I trust in you, a colleague
On 17 June 2011 15:15, Andrea Del Beneadelb...@ciseonweb.it wrote:
I'm going to open an issue on JIRA
-
To unsubscribe,
If I understand right you should not pass to ModalWindow:
-model of parent page
-an instance of parent page
In these two scenarios when you close ModalWindow Wicket restore the
original version of parent page, that is the version existing before
opening modal window.
To avoid this problem
Hi,
your last version (the one using inter-component events) works fine if
you pass ModalWindowPage PageReference instead of page instance, i.e:
public ModalWindowPage(final PageReference pageReference){
add(new AjaxLink(btn) {
/**
*
Right, I agree. As soon as possible I will open a JIRA issue.
Hello,
1. And if I want to use ModalWindow with ModalWindowPage from a Panel?
I can pass the PageReference to, but than I will have to catch the event on
each page the panel is added.. Not really handy when using Panel as reusable
Hi Marieke ,
I've tried your code and I have your same problem. Tomorrow I will try
to investigate further and maybe I will create an issue.
Hi,
I just tried it with the inter-component events, and it's the same problem
as with the abstract functions..
Please try my code:
HomePage:
public
Hi Marieke,
please attach the code that should modify HomePage's model. Anyway, to
solve this problem you could use the new inter-component events
mechanism included with Wicket 1.5:
https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Intercomponentevents
Just
Hi Mathilde,
have you got any ListView component in your form? Do you use AJAX for
form submitting?
Hi all,
I have a form which can send error message (on validation or on submit) and
I try to show them in feedbak panel :
I try with FeedBack panel like this :
Java :
add(new
No no, it doesn't interfere. But since you use ajax for form submitting
you have to ensure that feedback panel is refreshed adding it to
AjaxRequestTarget.
Have you done it in your code?
Is Ajax interfering with feedback Panel?
Hi Zeldor,
you could register a custom converter for Double type which displays
value with the desired precision. Take a look at this page
https://cwiki.apache.org/WICKET/using-custom-converters.html, example
for Wicket 1.3 is what you need.
Hi,
I have labels showing data that is in Double
Hi,
as Martin said this kind of strong interaction is not part of standard
API. But you could do a very simple thing to warn your users: start a
Javascript time-event with session timeout as time-interval:
http://www.w3schools.com/js/js_timing.asp.
I.e:
var t=setTimeout(/alert('Back to your
Hi,
I've started to explore the converting mechanism of wicket. I've red
javadoc and both Wicket in Action and Wicket Cookbook but there still be
something not completely clear to me.
Converter are created by converter locator, which creates one instance
of converter for each java type,
Hi Zeldor,
do these two links depend for any reason on the button you make
visible/invisible? Have you overridden method isEnabled on this two links?
Hi,
I have rather weird problem. I have a page with navigation panel [mostly
bookmarkable links]. It works fine on all but one. On that one
Hi,
are you sure that setModelObject or setModel are really called in your
code? If you modify TextField via Ajax be sure you have added it to
AjaxRequestTarget
When I create a TextField as follows:
TextField postCode = new TextFieldString( new ModelString(xxx));
the object is created and
Can you reproduce this behavior in a quickstart project and attach it to
Wicket JIRA?
Nope, panel is separate. There should be no connection... I will rather paste
some code, maybe it will give a hint...
add(new FeedbackPanel(errorMsg));
// starting form
private boolean col_approval =
Hi,
why you would open a new tab with an ajax link? I mean, on a new you tab
you should display a full page, not just an ajax response which usually
is a portion of a page.
Hello,
My question is there any possibility to use AjaxLink with html markup
target=_blank?
In my code wicket ignore
Hi,
I guess the problem is method save() which delays closing of the form
and let you click few times consecutively. You can decorate your submit
link with an IAjaxCallDecorator in order to disable link on the first click:
public class AjaxDisableComponentDecorator implements
Hi,
if I'm not wrong in wicket 1.5 page map has been removed and you should
have a compilation error if you write page.getPageMap().
Hello,
Is it possible to return to previous page with wicket-link (not browser
link).
In 1.4 I used:
PageprevPage =
I don't know if in wicket 1.5 there is something to use in place of your
old code. Anyway, you could always implement a custom link with a
PageReference to the previous page.
Yes, indeed that's because I post it on the mailinglist, to know what I
should use in place.
More info: I can't use
Hi,
you can consider to attach/remove behaviors to you link. For example :
link = new Link(link){
@Override
public void onClick() {
}
};
link.add(new AjaxEventBehavior(onclick) {
protected void onEvent(AjaxRequestTarget target) {
You can mount a page to a static path in you Application class. in
Wicket 1.4.x just call mountBookmarkablePage:
//url for asterisk calls
mountBookmarkablePage(/DialPage, DialPage.class);
Under Wicket 1.5 you should call mountPage instead of mountBookmarkablePage.
but I don't know how get the
Hi,
as far as I know there's no standard handler for onselect event in
AutoCompleteTextField. But you could attach it a
AjaxFormComponentUpdatingBehavior(onChange) to execute some code when
value changes.
Alternatively you could implement a custom AbstractAutoCompleteRenderer
which exposes a
Can you debug onBeforeRender and see if CompoundPropertyModel refers to
the original Panel's field containing the calendar?
Or model's object is already null?
I tried to call getModel() in onBeforeRender() to get hold of the
parent's model (the CompoundPropertyModel of the panel) which works.
is done during the
constructor (the one with just the component id).
On Sat, May 28, 2011 at 8:27 AM, andrea del bene
andrea.on@libero.it wrote:
Hi,
Have you called setType(Calendar.class) in your custom form
component? Does
its model remain 'null'?
Hi all,
I am pretty new to Wicket (using
Hi,
sorry but I don't understand where is the model you are trying to
modify. Are you sharing a model instance between modal window and
RadioListFilterDialog? What does refreshRadioListAreaResponse method do?
Andre,
Line 41 opens the dialog. The object ID of the page is the same
there, on
Hi,
Have you called setType(Calendar.class) in your custom form component?
Does its model remain 'null'?
Hi all,
I am pretty new to Wicket (using 1.4.10) and have some hard time to
figure out how the interaction between components and models exactly
works. So I was hopeing that someone here
Store data and sharing them across pages/components should be Wicket
model's purpose. In your code you create a RadioListFilterDialog as
modal window content. Do you pass it the original model of RadioListPage?
Wicket creates a new version of the page after a popup Modal Window
closes. This
Hi Scott,
attach onClose() callback code, the problem should be there.
Out app has a WebPage that opens a ModalWindow dialog passing in the
page. The dialog allows the user to modify the model of one of the
page's components. When the dialog closes and the onClose() callback
in the page is
Hi Mathilde,
maybe the form id you use in test is not correct. How do you add form to
modalWindow? Can you attach code?
Hi all,
I have a modal window with a login form inside that works fine when I test
it manually.
I try to test it with wicket tester since yesterday. I saw in some mails
Form id is corret, but remember that form and feedback panel are not
added directly to modal window. They are inside ConnexionContentPanel
which in turn is added to modalwindow.
In your test you should be able to access form calling getContent()
before get(loginForm), i.e:
Sorry, I didn't noticed that getContent() is protected. The solution you
found is perfect :-)
I didn't find getContent() method to modalWindow component, but it works
well in two steps :
ConnexionContentPanel loginPanel = (ConnexionContentPanel)
modalWindow.get(modalWindow.getContentId());
Form?
Hi Marieke,
you could try to read page parameters before redirecting to
interceptPage and build an instance of this page passing these
parameters. Something like:
//read parameters
...parameters = RequestCycle.get().getResquest().getQueryParameters() ;
//convert parameters to PageParameters
Spring is not required and you can use just Hibernate. But as best
practice is strongly recommended to use Hibernate with some kind of
container framework and let it manage Hibernate for you.
Spring is probably the most used container framework around the world,
but you can choose other
Take also a look at this post, maybe could be useful for you.
http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
to integrate wicket with other frameworks such as hibernate and itext
any other configuration needed or just we can integrate
and then we can create connection
Your welcome lucast!
Don't hesitate to post again if you need more help or some other tricks.
Hi Andrea,
As you have suggested, on the SubmitOnceForm class, I've added two
variables, page reference and page relative path,
on calling process I get the copy the values:
public void
By the way, I gave for granted that you move back from the view person
panel to the create person one with browser 'back' button. Is it correct
or do you use a specific link or button?
Hi Andrea,
As you have suggested, on the SubmitOnceForm class, I've added two
variables, page reference and
On 19/05/11 10:58, lucast wrote:
process(IFormSubmittingComponent submittingComponent) on SubmitOnceForm
class calls updateProcessedForms(); and super.process(submittingComponent)
if the form hasn't been processed, so I changed the order of the above so
that it calls
Probably your form is removed from component hierarchy when it is
submitted.That's why you don't get exceptions if you call get page
before form processing. When does your code replace panel? What's inside
form's onSubmit method?
Hi Andrea,
Thanks for your reply.
I call updateProcessedForms()
HI,
giving a quick look at your code it seems that your form's parent and
the form itself are removed in onsubmit method when it calls
callViewPersonPanel.
If you wanna call super.process first and then updateProcessedForm in
SubmitOnceForm, you should save current page reference and form
Hi,
I've just finished to implement a custom string resource loader which
checks for existing resource bundle in database. For now i've used a
simple HashMap to store loaded entries and to retrieve them without
reading again from database. I've choose HashMap over HashTable because
I need
Did you implemented this cache using some framework (ehcache,
terracotta, spring cache, )?
I've used a second level cache, works like a charm.
- matt
--
iPhone Mail
On 18.05.2011, at 20:22, andrea del beneandrea.on@libero.it wrote:
Hi,
I've just finished to implement a custom
Hi Mike,
maybe is not related to your problem, but I think you shouldn't recall
vistiChildren inside visitor because visitChildren already traverse the
whole hierarchy of children.
Hi,
i use a component twice. Layout of first component has to be
horizontal of second vertical (MainMenu,
Is there any software on the infamous machine that could interfere
with the tcp/ip connection (firewall, antivirus, security suite, etc...) ?
Yes Clint. In fact extends from BasePage wich extends from WebPage. But the
point is, it's working except for one user y one computer.
Andrea, It's so
Hi Brown,
I've never used isTransparentResolver but I know it was removed in
wicket 1.5 because it was it was quite confusing for users:
http://apache-wicket.1842946.n4.nabble.com/remove-MarkupContainer-isTransparentResolver-td1909586.html
You can try to replace it using one of the solutions
Do you mean that on another computer with the same user you don't get
the error?
That sounds weird. Have you tried cleaning cache and temporary files on
pc that gives error?
Hi, I'm having this error:
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
for component
Hi lucast,
it would help watching source code of event's class to figure out what's
wrong
Dear Forum,
I have yet another question about PropertyModel not binding to an object
field but this time using DropDownChoice.
In my form I have
DropDownChoiceHowOftenType
Hi Marcus
I guess you have already had a look at standard Wicket repeaters:
http://wicketstuff.org/wicket14/repeater
If no one of them satisfy your needs you can consider to implement a
custom table view which reproduces the behavior of ERXGroupingRepetition
Dear all,
sorry for this
So far as i know Wicket can't help you that much since this is a pure
client side problem.
Thank you andrea, but i already managed to use javascript to show a confirm
dialog.
What I would like to know is if it is possible to change the default
behavior of the browser and to show a wicket popup
Hi,
in your you can use static method RequestCycle.get().getRequest() to get
the current request and extract parameters.
We have code in our session object as follows:
public class OurSession extends WebSession {
public OurSession(Request request)}{
super(request)
// GET
Hi,
disabled input components are not submitted by HTML forms. You can try
to hack this standard behavior with some JavaScript:
http://stackoverflow.com/questions/849693/what-is-the-best-way-to-submit-disabled-inputs-as-part-of-a-jquery-ajax-request
can the disbaled checked check boxes be
Hi Carlo,
what kind of error/exception do you get when you use
setResponsePage(new ConfirmPage())? Does it work if you use
setResponsePage( ConfirmPage.class);
Hi There,
I'm mounting bookmarkable pages in the Wicket Application. For example,
mount(index, IndexPage.class);
Sorry, I've misread mail subject :)
There is no error. Just the generated url contains a state
(wicket:interface=.) which means use this page instance when the
user tries to open this Url.
Using setResponsePage(Class) has no state and creates a Url which when
targeted will create a *new*
FileUploadField resets model at end of the request (see JavaDoc). You
can use a Label or a DownloadLink to display/download the uploaded file.
I've noticed that all the fields keep their values after you submit; the
DropDowns, for example, don't get erased.
But the FileUploadField does get
Keep in mind that with Wicket you are on the server side and on this
side the file you are uploading simply doesn't exist on file system (so
ther's no absolute path).
With class FileUpload you can copy this file on your server (with method
writeTo(java.io.File file) ) OR you can simply read
Keep in mind that with Wicket you are on the server side and on this
side the file you are uploading simply doesn't exist on file system (so
there's no absolute path).
With class FileUpload you can copy this file on your server (with method
writeTo(java.io.File file) ) OR you can simply read
Hi,
iterator() method returns an iterator that iterates through children.
Maybe is what you need.
Wicketers,
How can I get a list of children components, for example, I need modify
some things
on the children components of a Form.
Debuging I saw an attribute children but I've not
Hi Adam,
try calling setOutputMarkupPlaceholderTag(true) instead of
setOutputMarkupId on your barcodeFeedback.
I have a component hierarchy that looks (grossly oversimplified) like:
page
--form
components
--form
barcodeTextField
barcodeFeedbackPanel
TextFieldString
601 - 700 of 774 matches
Mail list logo