Hi,
can you attach the code you use to initialize ListView?
Hi,
Upgrading to wicket 1.5.1 from 1.4.18 my ajax updates stopped working.
I have a page with a form. Inside the form there is a repetition (ListView)
that among other things creates a text field for each item (ListItem). Each of
I've tried to reproduce your condition in a quickstart. The Java code is
the following:
ListString itemList = Arrays.asList(new String[]{red, blue,
green, yellow});
final Label label;
add(label = new Label(label, ));
label.setOutputMarkupId(true);
Hi,
take a look at method AbstractChoice.appendOptionHtml. You can override
it and manipulate the HTML as you desire.
Hi All,
I want to extend a simple listchoice component to also include a title
attribute in the generated html code. So basically I want theoption tag
to be generated like
Hi,
are you sure that code
'getClass().getSimpleName() + . + errorKey'
generates a valid key bundle?
Hi;
I am using a really simple property file, to display some validation errors,
it used to work fine, but it stopped working, now I can't even get the
simplest example to work. and I am
Hi,
when onInitialize is called, component has already been inserted into
its hierarchy so you can call getParent() or getPage() safely.
Hi wicketeers ;
Which is the recommended way of initializing page components: onInitialize()
or Constructor ?
regards.
Josh.
Looks good for me also. Tested under IE 8, Windows XP.
Works OK for me.
No JS errors. Tested with IE9 in different browser modes and document
modes. Including Quirks.
Is it possible that it is some IE setting ?
On Thu, Oct 20, 2011 at 2:49 PM, Ann Baertann.ba...@tvh.be wrote:
A wicket
ooops, I was wrong. I got the same problem.
I also see this error on the specified page with Internet Explorer 8
(WinXP SP3)
It does not matter if I enable or disable the compatibility feature.
Matt
On 2011-10-20 13:54, Martin Grigorov wrote:
Works OK for me.
No JS errors. Tested with IE9 in
Check WebApplication also for method getHomePage() or getSignInPageClass
() to identify home and signin pages.
Check the webApplication file you should be able to find the mounted pages there
--Original Message--
From: roncking
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Hi,
does your page override onBeforeRender method? Can you show the code?
Thank you. Upgrade to 1.5.2 did seem to resolve the issue with the last ajax
request parameters being pushed onto the base url. However, testing that
resolution exposed a further problem. I'm using a
How do you close modal windows? Can you copy the code?
mbinations and if combination is still available reservation process
continue if not combination is removed from listview and user can
choose another. If all combinations are not available than modal
window is closed. This use case works
You missed the funniest row: UI programming on client-side. What does
it mean Java, Javascript for GWT and Vaadin and just Javascript for
Wicket? Does it mean that GWT and Vaadin run bytecode inside browser?
Did they (re)invented applets :)?
missing a green dot in Framework extensions are done
That's right but why they didn't include Java among languages you can
use to program on client side with Wicket. It's a mystery!
On Wed, Oct 26, 2011 at 10:02 PM, Andrea Del Benean.delb...@gmail.com wrote:
You missed the funniest row: UI programming on client-side. What does it
mean Java,
Hi,
I've tried to reproduce your issue but without success. The modal window
closes correctly. I've used the last version of Firefox, the 7. Java
code for my test page is the following:
public class HomePage extends BasePage
{
private static final long serialVersionUID = 1L;
That's why I don't like a statement like UI programming on client-side
with Java. You are just giving the impression of programming your GUI
in Java, but in the end is a lot of JavaScript, and this doesn't help
code maintenance as pointed out by Eelco .
I know that GWT is good at mimicking
Hi,
if your form has just one submitting button, pressing enter key on a
field should submit it by default. Anyway, I would solve this problem
using a JavaScript library like JQuery rather then using a Wicket Ajax
behavior. Can you give us more details about your
AjaxFormSubmitBehavior? Are
Have you tried session.invalidate()? If you have an
AuthenticatedWebSession you can also use signOut()
Hi
Upon logging out we need to keep the current user's session to still
display some information but we want to remove all previous pages from
the PageMap (or however that is solved in
window and it seems
that javascript opens first window instead of new one.
On 10/27/2011 12:36 AM, Andrea Del Bene wrote:
Hi,
I've tried to reproduce your issue but without success. The modal
window closes correctly. I've used the last version of Firefox, the
7. Java code for my test page
I don't think there something ready-to-use to do this. You can try
implementing this with JavaScript, intercepting the right keyPress event
and closing the modal window. This last code can be obtained from method
ModalWindow.getCloseJavacriptInternal
Hi,
Is there a way to close modal window
Hi,
I think the best solution would be replace modal window's content
instead of closing it and opening a new one. Considering your example
you should completely remove notifierWindow. The new code for HomePage
would be like this:
public HomePage(final PageParameters parameters) {
Hi,
can you elaborate a little bit more what behavior you want to achieve? I
mean, C becomes empty because A#onSelectionChanged sets its model to
null. This should not be strange.
I have a form with with 3 choice components:
A) DropDownChoice
B) DropDownChoice
C) ListMultipleChoice
The
:
On 11/16/2011 06:06 PM, Andrea Del Bene wrote:
Hi,
can you elaborate a little bit more what behavior you want to achieve?
I mean, C becomes empty because A#onSelectionChanged sets its model
to null. This should not be strange.
Yes, sounds obvious to me too. But I found an examples with 2
Profile the stalled server with Visual VM? It should detect existing
deadlocks...
Hi
I have a very strange problem. At a customers site we have 2 servers with 1
Tomcat 7 installed each. One day on one of the servers our application just
stalled after loading the sign in page, when you click the
On 17/11/11 16:44, Eric Kizaki wrote:
Violates MVC: It smashes view and controller code into the same Java file.
You have code that regulates page flow and code that changes css attributes
in the same file. Even Spring MVC had better separation of concerns.
JSP/Servlets with Spring MVC is
Hi Em,
Hi Josh,
thanks for your feedback!
I already saw this Wiki-page yesterday.
Well, the point is, that I want to include the markup *in* the markup
(i.e. output it in some panel inside of a script-tag so that JavaScript
is able to get the markup).
So *while* you are rendering, you want
On 11/27/2011 03:40 PM, Em wrote:
Hi Andrea,
thanks for sharing your information!
My answers are in the content.
Am 27.11.2011 14:52, schrieb Andrea Del Bene:
I already saw this Wiki-page yesterday.
Well, the point is, that I want to include the markup *in* the markup
(i.e. output it in some
Probably this is due to Wicket links which contain informations on page
version (it should be an incremental id). So each time you return to the
same page Wicket generate different values for href attribute because
version id has been incremented. That's way they seem not visited.
When you
That's strange. BookmarkablePageLinks should generate a constant URL. Do
you pass them any PageParameters in the constructor? Have you checked if
links URL remains the same from a visit to your page to another?
They are already BookmarkablePageLinks.
--
View this message in context:
Hi,
have you tried overriding onModelChanged()? You can fire event in this
method.
Hello,
I have a Wicket ListView, who's Model is based on a select on a
process-database. Users can initiate a (deploy-)process, and when the
process is finished, a row is added in the database, and so also in
If you override listview's onBeforeRender you could check if finished
processes' list contains version displayed by label and if so, you could
update it.
I'm sorry if my writing is confusing. But there isn't a label that outputs
the state, because the list shows /only/ finished processes.
Maybe
See component CheckboxMultipleChoiceSelector
Hi..
I have included a check box panel as a column in datatable.Now i want a
checkAll/uncheckAll checkbox which will check/uncheck the checkbox
column.Please provide me with some idea .
--
View this message in context:
Hi,
excuse me but what do you mean with cursor and class Second?
but the cursor is not coming to the class Second time after 1 min..
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands,
You don't see anything appening inside Wicket Ajax Debug window? No
request is performed after one minute?
I mean while debugging I'm not at all getting the request to the class again
--
View this message in context:
Hi,
nested form should work fine. I mean something like this:
_
| main form
| Name:..
| Lastname:...
|
|
| | item (inner) form
| | item number:...
| | item number:...
| | Add item button
| |__
|
| save button
This is strange end should not happened:
https://cwiki.apache.org/WICKET/nested-forms.html. Maybe the problem is
on code side. Can you show the initialization code for the two forms?
Yes, I have this layout. Is the first I tested.
The problem with this is that when I click Add Item buttom
I think this happens because you submit your forms with a simple HTML
submit button, not mapped to a Wicket component. Try to explicitly
add a submit component to the forms. I've added SubmitLink to both forms
and forms are submitted as expected.
HTML code:
form wicket:id=form1
form
This should not be a big deal. Wicket lets you put form submitting
button outside form itself. All you have to do to make it work is to
pass the form to component's constructor.
HTML code:
form wicket:id=form1
/form
form wicket:id=form2
input type=submit value=form2 wicket:id=submit2/
On 20/12/11 09:38, cosmindumy wrote:
Hi,
I've got an error on production server and I cannot reproduce on my
development machine. The error says :
woUploadFilesContainer:calculateButton
(path=inputForm:stepTwoUploadFilesContainer:calculateButton) is not visible
On 01/03/2012 12:30 AM, Nelson Segura wrote:
The shown flag is set up to false by window.close(), but it stays as true
in the
context of the parent page. This prevents the page from being opened a
second time. Maybe something similar to how you cannot pass pages
directly to a modal, but
Hi,
have a look at function Wicket.Form.doSerialize inside wicket-ajax.js.
Try to debug it with your browser.
I was trying to understand the wicket serialize method call.
Does it serialize the entire form? Does it serialize fields that are
NOT blank?
I noticed that sometimes post body
Hi,
I think you need to build a CompoundPropertyModel inside the component
itself. Override onInitialize method of AddressPanel and try with
something like this:
@Override
protected void onInitialize() {
super.onInitialize();
setDefaultModel(new
Yes, I think you are doing it the Wicket way, but your snippet and
mine should work. Do you modify components' model somewhere else? Which
model do you get if you call getDefaultModel() inside oninitialize?
Thanks for your reply. I've tried it but it still gave the same error.
However I also
At this point I would override/debug method updateModel() inside
AddressPanel to see if model's object is modified by this method .
Just my 2 cents...
Yes, I think you are doing it the Wicket way, but your snippet and
mine should work. Do you modify components' model somewhere else?
No, I
Don't forget to look at this:
/http://netbeans.org/kb/68/web/quickstart-webapps-wicket.html./
If i were you i would learn how to create a project with maven first.
Josh
On Thu, Jan 19, 2012 at 12:53 PM, Ian Marshallianmarshall...@gmail.comwrote:
The answer might depend in part upon which
What do you mean exactly with dirty form?
I have multiple forms on a panel and checks for dirty are on form level. When
I submit a form while others are still dirty, the panel is not treated as
dirty. How to deal with that?
--
View this message in context:
Why not make an abstract MyPanel and provide an implementation of
renderHead method (from IHeaderContributor)?
I mean something like:
public abstract class MyPanel extends Panel{
public void renderHead(Component component, IHeaderResponse response)
{
Your idea of using PostComponentOnBeforeRenderListener sounds good to
me, but I didn't understand exactly what you do with this kind of listener.
Once you have checked if component implements IMyPanel, I would call
Application.getHeaderContributorListenerCollection() and I would add a
header
Hi Jered,
this is a known issue, you can find more informations here:
https://issues.apache.org/jira/browse/WICKET-3809
I have a ModalWindow where I need to know if the user saved in the
WindowClosedCallback or if they chose to click the X to close the
window. To do this in Wicket 1.4, I
Hi,
what is the best way to clean all sessions at once? I want to get rid of
all sessions' data when I terminate Wicket application.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands,
if I turn off Tomcat and turn it on later, pressing F5 I see the page I
was on when I stopped Tomcat. I think is due to DiskDataStore which
saves page versions into file.
How can I clean Data Store files when Wicket Application is terminated?
Hi,
What exactly is not cleared ?
See
It is exactly what I needed! Thank you!
http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Persistence_Across_Restarts
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
How are you attempting to clean textbox? For example you could clear
textbox setting model object to empty string and adding textbox to
AjaxRequestTarget.
Hi, i have one textbox. we send the value of text box to listchoice. On add
button , we used ajax. But i am unable to clear the textbox
Hi,
Wicket uses an implementation of org.apache.wicket.serialize.ISerializer
to serialize all objects (pages, models, ecc...)
The default serializer is based on standard classes ObjectOutputStream
and ObjectInputStream.
IModel implementations have nothing to do with the concrete ISerializer
Yes, provided that the object returned by model implements
java.io.Serializable. When you serialize an object (no matter if it is a
Wicket page or a model or whatever else), you serialize also all its
references. So when Wicket serializes a page or a component also its
model and the object
Hi,
I don't know if you might find this helpful, but if your component must
generate a different markup from request to request, you should
implements interface IMarkupCacheKeyProvider to avoid markup caching:
/**
* Must return null to avoid markup caching
*/
@Override
Hi,
you can consider to use Style element used by Wicket for skinning
application. For more information read this
https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html
What I am trying to do is tailor the validator messages based on the
variation.
My scenario:
Some
Hi,
at first glance I can't say what's wrong with your code, but you
should try debugging wicketAjaxGet function with FireBug or some other
dev tool. In this way you should find why there's no AJAX call.
I have an Ajax link in a drop down menu, created like this:
final
Hi,
I've found a problem with the latest Wicket version (1.5.4) and
stateless forms. Now the values of input fields are passed via GET
parameters and are always appended to form's action attribute and it's
not possible to change field's value after the first submit.
You can reproduce the
Hi,
what kind of exception do you get the second time?
Hi to everyone,
i have added some jquery validation code to my page and add
AjaxFormValidatingBehavior to my submit button.When i do not fill fields and
click on submit button, it gives error next to each field and does not
submit
Hi,
you can clean up your page using a CompundPropertyModel for your form
and a Model for dropDownChoice. I would make a chain of models passing
Model to CompoundPropertyModel:
model = new Model(configType);//for dropDownChoice
CompoundPropertyModel cpm = new CompoundPropertyModel(model)
Maybe the problem is with resetButton. The code inside onSubmit breaks
the model chain. If you want to reset form's field try just with
form.setModelObject(new ConfigTypeDTO());
I jumped the gun on that one. It didn't work.
I was still calling the old page from my menu. Once I fixed that and
This is strange. Can you post the code of the full page?
Once again, you make it simpler than I thought it would be. Thanks again.
Finally, how do I reset the form from the onSubmit button of the form? I
tried this:
But it doesn't work. The form never gets reset. I'm able to get the updated
Well, if it does its job I think it should be ok :)
I got it working, but I'm not sure if the way I did it is correct. Here's the
final code:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-selection-won-t-update-form-fields-tp4413980p4417640.html
Hi,
isn't AjaxFormComponentUpdatingBehavior more suited for your need?
Hi,
I''ve upgraded my wicket application from 1.4.6 to 1.4.19. I was using
AjaxFormSubmitBehaviour
mainly because I need to respond to a change in a radiobox. One main
difference was between the versions was the following:
yes, for radio choice you should use
AjaxFormChoiceComponentUpdatingBehavior. Anyway, have you tried setting
default form processing to false on AjaxFormSubmitBehavior
(setDefaultProcessing(false))? In this way you could save fields' value
inside onSubmit() calling updateFormComponentModels()
Hi,
which line of your code throws NullPointerException? can you elaborate
a little more on the purpose of function getAgreementText() ?
hello, I have such a problem
I develop wizard in which user enters some values in first step fields, then
I need to use those values in a second step in a
I think exception is thrown because you call your getTextFromDataBase
inside step's constructor, when 'user.name' and 'user.surname' are still
empty. You could try moving getAgreementText() from constructor to
another method like Component.onConfigure.
Andrea Del Bene-3 wrote
Hi,
which
Hi,
can you show the complete stacktrace of the exception?
I have an application structured such that I have 2 version for header
panels. One for anonymous(HeaderPanel) users and one for
authenticated(AuthenticatedHeaderPanel) users. Both of these are Panels
included in their respective pages.
Your code seems good, I can't find any reason why it should not work.
I've seen you have deployed your code on Google Appengine, maybe your
problem is related with this running environment. Can you run you
project locally and reproduce the problem?
Here it is:
Root cause:
Yes I did, it's a quite common solution with Wicket. I can show you my
code but it doesn't differ so much from your.
I've wrote a container panel with two sub panels: the upper one shows
some information about a generic iter of certification, the lower one is
the custom content of the page.
Hi,
you could use two nested ListView. You can write something like this in
your markup:
div class=group wicket:id=groupRepeater
div class=item wicket:id=itemRepeater/div
/div
then in your code you can use component RepeatingView and
WebMarkupContainer:
RepeatingView view = new
Hi,
if you are using a subclass of TextTemplate and its method
interpolate(...), you can build an implementation of Map interface which
searches for a given key among properties entries. For example you could
use internally an instance of ResourceModel
I'm creating a js template for each
Hi,
are you really sure you have to replicate field binding by hand? Have
you considered to nest your widget model inside form model? Can you give
further details about your problem?
(To clarify why I'm doing this, I have a custom widget which I'm doing
model-binding for.
I need to
I see. Unfortunately I've never worked with Adobe PDF-Form but I think
you need to build some kind of object or converter to bridge the gap
between FDF format and java world. Sorry, but I haven't any better idea :(
I have a custom HTML object which is an Adobe PDF-Form (FDF). This widget is
Hi,
maybe you are missing the code to update the table with the data which
should be the component with wicket:id=UpdateForm.
First, thank you very much for your help.
I do submit form with Ajax component.
My question is, edit.close(ajaxRequestTarget) in Panel.Java, right? What
about
Hi,
working with Palette component I've noticed that each options is
localized with the following instruction from AbstractOptions:
displayString = getLocalizer().getString(displayString, this,
displayString);
Is there any way to disable localization? I have a list of thousands of
Hi,
you should use getTabs passing the index of the desired tab.
in the debugger I see the tabs member of my AjaxTabbedPanel containing three
items.
but myTabPanel.get(2) returns null...
What is the correct way to get a ref to a tab inside a tabbed panel?
TIA
--
View this message in context:
Hi,
what exactly is your problem? What problems are you having so far?
I am new to wicket and also to webframeworks. i am creating an app, which has
a homepage and when a link is clicked, it should display a form which takes
two dates and a string as input and retrieves data from database.
Why not calling continueToOriginalDestination() after user has logged in?
Do you think this could work?
Hi,
Try debugging at
org.apache.wicket.RestartResponseAtInterceptPageException.InterceptData#set().
The post parameters should be preserved there and used later around
line 200
HI,
try giving a model to your RadioGroup:
final RadioGroupPresentation group = new
RadioGroupPresentation(presentationSingleSelectGroup, new
ModelPresentation());
Hi All,
My company has just started evaluating Wicket on an app that allows users to
select and merge multiple PowerPoint
Hi,
already tried form setDefaultButton method (see JavaDoc)?
I have a nested form that works as expected when it's submit button
(an IndicatingAjaxButton) is pressed but not when the user presses the
enter key when one of it's form fields is focused. Is it possible to
capture this enter key
Well, I couldn't say why it doesn't work. Can you post some code of your
nested forms?
Thanks, I just did and the flow is the one desired, but for some
reason the nested form field models are not updated with the field
inputs when the submit buttons onSubmit() is called. Is there
something
It's like if JavaScript can't tell apart a form from another. Can you
check the HTML generated for your page and see if forms have an unique id?
On 04/11/2012 05:39 PM, Andrea Del Bene wrote:
Well, I couldn't say why it doesn't work. Can you post some code of your
nested forms?
Sort of found
Hi,
can you be more specific? What kind of window are you trying to
minimize? A modal window?
PS: btw, the corporate site of tsmc is built with Wicket :)?
Dear All:
I want to add a JS code into the following method to minimize the
window, but it doesn't work..
Could anyone give me
|-
|Andrea Del Bene |
|adelb...@ciseonweb.it |
| |
| |
| |
|2012/04/17 下午 05:53
AFAIK multi tabs/windows support is enabled by default, you don't need
to do anything to enable it.
Hi,
I have a question about multi window (mutli tab) support in Wicket 1.5+.
Many things changed .. like concept of IDs and versions... these are now
only simple IDs, etc.
My quetion is how do I
At first sight I would say that your problem could be related to a
different Locale used during unit test. You should compare the output of
'myData.getAmount()' when is called during testing and when is called
running on Jetty server.
I have a integration test case:
FormTester
Hi,
what are you using to change form's values when user clicks on table (an
Ajax behavior ?) ?
Hi,
In my application, I'm developing a dynamic page with a table of currencies
per dates and on the side I have a form with a 'from' date and 'to' date.
Clicking on a cell of the table changes the
Hi,
don't know if you can do it, but I think you should first investigate
how to do this with JavaScript. This blog seems interesting:
http://yogendrakrsingh.blogspot.it/2010/03/javascript-trick-submitting-multiple.html
Sorry for this I know that this topic already been discused but I didn't
Try calling form.clearInput() after you have updated the value of the
models.
I am having a bit of trouble making a required form field update from an
ajax button.
The field is marked required and has an OnChangeAjaxBehavior.
The user deletes the contents of the field
Presses an AjaxButton
Hi,
the type of the model and of the renderer must be the same chosen for
the DropDownChoice (Vyrobok in your case). In the first version of your
code this was not true for your model because it pointed to a String
field (named kluc).
Your second version works fine because you don't provide
Hi,
fragment.setRenderBodyOnly(true)
I have following markup:
...
div wicket:id=page
h1.../h2
p.../p
div wicket:id=info
/div
h2Foo/h2
/div
div wicket:id=fragment-1
h2Bar/h2
ul.../ul
/div
...
When adding fragment-1 (instance of Fragment) to page, it renders
using Wicket 1.4.* as:
...
Hi,
it's absolutely ok to insert a feedback panel into its form.
Every example of feedback panel I have seen places the feedback panel
outside the form element.
I have some markup from a client that has some Javascript doing client
side validation with a styled feedback panel (a div)
Hi,
calling error() on your new panel should work. Obviously you must have a
FeedbackPanel somewhere on your page ;)
I have a Button, which replaces parent panel with a new panel. In the new
panel I want to display an error/warn/info, but I can't seem to figure out
how. I've tried with
Hi,
can you show the code you use to build radio buttons?
Hi,
I am new to Apache wicket. Can you please help me how to get the selected
radio choice option in wicket.I have to save the some recruitment form with
some fileds which we have to give dynamically .I have a static dropdown
with list
Property 'selected' is not setted according to the selected GENDER? Does
property 'selected' remains null when you press 'save' button ?
add( new RadioChoiceString(radioButton, new PropertyModelString(this,
selected ),GENDER ).setSuffix());
Here I taken Gender as a list of values dynamically .
Your solution should work the way it is. It's likely that you have a
problem with form's submission. Are you sure that when you press 'save'
button the form is submitted? And are you sure that radioButton has been
added to the form that should be submitted by 'save' button?
how can i set the
Hi,
there must be something wrong when you populate your class Acceptati
(which I guess it's a sublcass of ListView). Check how you generate the
id for children components of Acceptati.
Hello,
When I make a change to my database through my application and then I load a
different page to see
Hi,
you can consider to override form's process() method. Before calling the
super version you can check for the radio value and set the other fields
as required if the specific value was chosen.
Thanks for your reply,
Argh, confused setVisible() with setRequired, my bad ;-)
But
Hi,
where did you pu the logic to check if user has already signed in
(onInitialize, onBeforeRender, etc...)? Could you show your code?
Hi,
After I log in that application, I am not suppose to see login page of the
app when I press back button. Though I am not able to go to login url as I
am
Hi,
looking at your code I've noticed these two lines at the end of onSubmit
of AjaxButton:
setModel(new CompoundPropertyModel(e));
modelChanged();
here you are changing the button's model and not the one of the parent
form (the variable cmodeldefined above ), hence its components won't
201 - 300 of 769 matches
Mail list logo