This code is from the wicket examples:
I'm having a lot of trouble understanding it. How is the current selection
recognized? Why does the compound property model (the Input object) not have
any getters/setters?
package org.apache.wicket.examples.compref;
import java.util.Arrays;
import
From the wicket java docs for property model, it says:
...we can create form components that work dynamically on the given model
object. For instance, we could create a text field that updates the name
property of a person like this:
add(new TextField(myTextField, new PropertyModel(person,
Thanks Igor,
I've been trying to update the TextField's model myself through an added
AjaxEventBehavior(onchange) event. But I can't seem to access the text
that the user inputs in the TextField. I have:
textField.add(new AjaxEventBehavior(onchange)
{
@Override
In the wicket example of Form Input (
http://wicketstuff.org/wicket14/forminput/
http://wicketstuff.org/wicket14/forminput/ ), I'm looking at the source and
can't make out what's happening with this line:
// display the multiply result
Label multiplyLabel = new
I'm missing some fundamental concept here I think.
I've got an AutoCompleteTextField whose model I put as the same kind as in
the example found here:
Thanks,
Is it bad practice to manually call the model's setObject method if I want
to change it on a non-form-submit action? Bottom line is I don't need this
autoCompleteTextField to be in a form.
--
View this message in context:
Is there any way to combine the function of the auto complete text field and
the function of the ajaxEditableLabel?
I'd like to click some text, have an editable text box appear, and have it
autocomplete for me.
--
View this message in context:
Hi,
I'm confused on the concept of redrawing a repeater. Ideally when I add an
element to something such as a ListView I'd like to just draw that new
element. The only way I've found of drawing it is to do target.add(repeater)
inside of an ajax function. This seems to me like it's redrawing the
The only example the wicket docs give of a repeatingView is one with 1 html
element in the repeater's markup:
ulli wicket:id=repeater/li/ul
If I wanted something like:
div wicket:id=repeater
div wicket:id=label1/div
div wicket:id=label2/div
/div
Is this even possible with a
Just resolved the issue. The problem was that I wasnt setting
container.setOutputMarkupId(true); before I initially added the container
to the page. I was setting it when the user clicked a button, which always
occurred after the container was initially added.
My original flow was something like
I'm trying to add items to a listView when a user clicks a button. I have a
propertyModel backing my ListView. In the onClick(), I do:
AjaxLink newIncButton = new AjaxLink(newIncButton){
@Override
public void onClick(AjaxRequestTarget target) {
List list = new
sorry, trying to format that
AjaxLink newIncButton = new AjaxLink(newIncButton){
@Override
public void onClick(AjaxRequestTarget target) {
List list = new ArrayList(bean.getIncList());
Incident inc = new Incident();
inc.setAction(action);
Wicket doesn't allow me to update a ListView object directly through ajax, it
suggests putting it in in a container. So I made a WebMarkupContainer to
wrap the ListView. I have now:
public void onClick(AjaxRequestTarget target)
{
List list = new
Hi,
I've got a AjaxEditableMultiLineLabel. This component generates a span tag
which wraps a p which contains the text for the text box. I want to add
display: inline to this p tag. I'm aware of AttributeModifier,
SimpleAttributeModifier, etc, but I don't understand how to reach the p
tag in
perfect, thank you
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AjaxEditableMultiLineLabel-adding-attributes-to-its-generated-markup-tp3577215p3577235.html
Sent from the Users forum mailing list archive at Nabble.com.
I had a regular label which would correctly not escape characters after I set
setEscapeModelStrings(false). I changed this Label to an
AjaxEditableMultiLineLabel and even though I'm still doing
setEscapeModelStrings(false), the characters are escaped.
I found one post on this forum about this
Can you elaborate? What do you mean I need to set on these? I can't access
those methods as they are protected.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/AjaxEditableMultiLineLabel-setEscapeModelStrings-tp3565832p3566112.html
Sent from the Users forum mailing
I'm just calling a webservice, getting some data that I want to populate some
fields on the page. The soap call as of now is on the server-side, inside an
ajaxLink's onClick() method. Seems to be working fine.
Why would building the request on the cilent be expensive? Expensive in
terms of what?
public class IncidentReportPanel extends Panel
{
public IncidentReportPanel(String id) {
super(id);
final Model model = new Model(first model);
final Label label = new Label(wicketTag, model);
Problem was resolved. I had some malformed html throwing things off. Thanks
for all the replies.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/updating-a-label-s-model-with-ajax-tp3525221p3526444.html
Sent from the Users forum mailing list archive at Nabble.com.
Hi all,
I'm looking to change the model of a label when a button is clicked. As of
now, I'm using an ajax button and doing target.addComponent(myLabel) inside
that button's onclick method. However, the text on the page doesn't change
when the button is clicked. This label happens to be hidable,
I need to make a POST request when i click a button. I'm finding very sparce
documentation about how this side of wicket works. Any ideas?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520861.html
Sent from the Users forum mailing
It's not with a form, it's for a soap request.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520891.html
Sent from the Users forum mailing list archive at Nabble.com.
Thanks Igor. Just so I have this clear:
There's no way to make the POST request straight from the client's browser?
I need to have the client browser hit the wicket server which will then use
straight java to create the POST request. Is this what you're thinking Igor?
-mike
--
View this
just add something like this into my markup file?
# Send
is this in keeping with wicket? I'm confused about this.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/post-request-with-wicket-tp3520861p3520964.html
Sent from the Users forum mailing list archive at
Hi,
I'm gathering information from a database that I want to display on my page.
My query to this DB could result any number of rows. I'd like to build a
panel to represent the information from a row and then just add a bunch of
panels to my page. To add a panel or component though, I need an
thank you very much
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497312.html
Sent from the Users forum mailing list archive at Nabble.com.
27 matches
Mail list logo