Thanks namesake :)
I just put the formPanel in a webmarkupcontainer and updated the container. And
it works fine. Setting the markup id didn't work for me due to unknown reasons.
Anyway, you helped a lot! Thanks! :)
Regards,
Martin
-Original Message-
From: Martin Makundi
Hello, everyone!
I have a form that has validation and so on, but the main difference to
ordinary forms is that my form does not contain it's submit button. It's
located in a parent, in my case a web page.
I'm wondering how can I force the form submitting from the page. The code is
Hi,
Try this:
AjaxFormSubmitBehavior behave = new AjaxFormSubmitBehavior(myForm,
onclick) {
protected void onSubmit(AjaxRequestTarget target) {
//do what you have to do
}
};
Button submitButton = new Button(submitButton);
VariableInterpolator.java says:
$ is the escape char. Thus $${text} can be used to escape it (ignore
interpretation).
On Mon, Jan 18, 2010 at 10:46 AM, Joseph Pachod j...@thomas-daily.de wrote:
Hi
I would like to add some text containing ${variable} in a XML properties
file, for an error
My Domain model has 'Family' which has many 'SubFamily' objects.
I managed to display the 'Family' information using a DataTable in
'FamilyPage'.
Now I want to do is,when user clicks on a 'Family Id' the
'SubFamilyPage' should open and display relavant subfamilies in a datatable.
I want to
I totally agree with Jeroen. The 3rd constructor is dangerous and should be
removed. The other two, however, are lazy and create the page in the onClick
(provided that the IPageLink interface is implemented correctly). Of course,
it is possible to copy PageLink and IPageLink to wicket-security,
Hi,
I'm trying to close a popup window after the user has submitted a message.
I'm using a javascript to close the window but without any luck.
Can anyone see what goes wrong?
This is the AjaxSubmitLink that should submit the message and close the
window:
AjaxSubmitLink submit = new
Hi, Alexandru, thanks for the quick reply.
I get
java.lang.IllegalStateException: form was not specified in the constructor and
cannot be found in the hierarchy of the component this behavior is attached to
the form is located in the same page and displayed, but it's actually placed
within a
kirillkh wrote:
VariableInterpolator.java says:
$ is the escape char. Thus $${text} can be used to escape it (ignore
interpretation).
Thanks a lot, it works fine.
--
Joseph Pachod
IT
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T + 49 761 3 85 59 310
F + 49 761 3 85 59 550
In the onClick() handler of your link, you can call setResponsePage()
with either the id in question, or pass in the full object:
add(new Link(showSubFamily){
private static final long serialVersionUID = 1L;
@Override
A somewhat similar question was asked just a couple of days ago [1] and,
probably, has been asked and answered many times before on this list.
Ernesto
References
[1]
http://old.nabble.com/How-to-get-a-cell-work-as-a-link-in-AjaxFallbackDefaultDataTable-td27161378.html
On Mon, Jan 18, 2010 at
Not sure here, but the AjaxSubmitLink has an constructor that lets you
pass in the form it should work on.
Bert
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
Hey it worked,i wanted checkbox in other column
Above apparoach works perfectly.
Thanks
prati wrote:
Hi Peter,
Many thanks for your reply.My problem is exactly same as second one
discussed in the post.
I need checkbox in other column .
Code is
TreeTable.html
/tr
trtd
See
ModalWindow.close(final AjaxRequestTarget target)
S
-Original Message-
From: Muro Copenhagen [mailto:copenha...@gmail.com]
Sent: Monday, January 18, 2010 11:12 AM
To: users@wicket.apache.org
Subject: Close window javascript
Hi,
I'm trying to close a popup window after the user has
Hi,
I started using Wicket rather recently. As part of our security
considerations, we do not want immediately expose the underlying
framework(s) we are using, so we went ahead with URL encryption. We used
standard approach as described in examples:
@Override
protected
Thanks Bert, but I use a button... I need to have the button in the page,
because it does the same for any form. I want to have code re-usage. But
however my abstract MyFormPanel does not have relevant markup, so I can't
include the buttons there, it would be nice, but I can not. I just want
I 'm not sure i completely understand your requirement, but the
AjaxButton too has a constructor
with a Form as parameter. Would it be possible to access the form when
creating the button?
Bert
On Mon, Jan 18, 2010 at 13:11, Martin Asenov mase...@velti.com wrote:
Thanks Bert, but I use a
Hi,
since I work with Ilya on this project, I'd like to continue this topic as
it is something I'm keenly interested in.
First of all, thanks for your reply, Pedro.
However I must admit I don't understand your suggestion about lenient form
components. How is that supposed to work? And at any
Hello,
I have a table that stores menutabs. In the list of tabs are main tabs
On the page there are main tabs and subtabs that would appear if the
tab that is click in the active one
for example home, applications,admin.
there could be subtabs under applications menu such as leave, loans etc.
Hi,
Thanks Sefan...that helped me on the way...
It's working now...
Best Regards
Muro
On Mon, Jan 18, 2010 at 1:03 PM, Stefan Droog sdr...@educator.eu wrote:
See
ModalWindow.close(final AjaxRequestTarget target)
S
-Original Message-
From: Muro Copenhagen
Yes, Bert, it's accessible. The way you proposed comes up with:
ERROR: Wicket.Ajax.Call.submitFormById: Trying to submit form with id 'form49a'
that is not in document.
in the ajax debug. But the form is in the document. Probably it has dynamic
markup id and I should try making it persistent.
About the lenient form component, I thought that you are having trouble
adding text fields to your form (for example), since they validate the
markup tag (nothing to do with add modifier). As you are adding this kind of
component dynamically, you can't write on development time on your markup,
the
About the ids with digits for repeater, override the onBeforeRender method
and remove that validation if you need/want.
Impossible. I just filed https://issues.apache.org/jira/browse/WICKET-2684
-
To unsubscribe, e-mail:
2010/1/14 Ilya German ilja.germ...@parex.lv:
Hello!
We're struggling with working around the final modifier for the
MarkupContainer#add(Component ...) method.
We have the following scenario:
1. We'd like to use a repeater to add some components to the form.
2. We'd like these components to
it's not working... The problem probably is that the form has it's own
generated markup id and the button looks for the form with markup id from the
one that comes in the AjaxButton's constructor as an argument. Because I have:
submitButton = new AjaxButton(submit_button, formPanel.getForm()) {
Thanks again for your reply.
On the one hand, I agree with you, adding custom 'addComponent' method does
make the mechanics of the code more clear.
On the other hand, in practice (we used such methods for a couple of weeks),
it results in the situations in application code where you sometimes
And if I may to try and adjust the course of this discussion a bit -- the
issue with repeaters is not the only argument against final add(..)
method.
As I mentioned in passing, there's also issue of Page inheritance where
subclasses with wicket:extend cannot use add(..) method if parent Page
I am monitoring a Wicket 1.4.5 application running on Tomcat 6.0 which
accesses a SQL Server 2000 database. Periodically the application
becomes unresponsive due to a lack of heap space, and I have to bounce
Tomcat. I'm trying to figure out what sort of errors could cause this
to happen.
Any
I think you have to pass the form to the behavior in some way or you can do
something like this..but it is ugly in some way :)
1. in the form panel
AjaxFormSubmitBehavior behave = new AjaxFormSubmitBehavior(form,
onchange) {
...
public void renderHead(IHeaderResponse
Use jmap -histo pid or a memory profiler (yourkit) or visualvm to
look at the heap. It also helps to use jstat -gc pid 1000 in cases
when you have low heap availability before killing your darlings. It
might not be a memory leak but possibly a connection pool running out
of connections.
Any
On Fri, Jan 15, 2010 at 5:24 AM, vineet semwal
vineetsemwal1...@gmail.comwrote:
Sorry ,a little late ..
push is a great project,thanks for your efforts.
i am a little confused,
1)does the time out only happens after a remove event is published or apart
from this, there is another
timeout
well, if the functionality can be accomplished using either
BookmarkablePageLink or Link, why do we need yet another way to do it?
-igor
On Sun, Jan 17, 2010 at 11:44 PM, Jeroen Steenbeeke
j.steenbeeke...@gmail.com wrote:
Guys, no need to keep explaining what's wrong with passing a Page in
the
the original design goal of the crypted strategy was to only encrypt
what the user sees in the url bar. since they never see resource urls
there was no reason to encrypt those.
re fqns, you can add class aliases into SharedResources to hide those.
-igor
2010/1/18 Sergejs Olefirs
Or wrap the outer page in a form so that any nested forms work with your
out-of-place submit button.
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Jan 18, 2010 at 9:43 AM, Alexandru Barbat alexandrubar...@gmail.com
wrote:
I think you have to pass the form to the behavior in some
Thank you both for the replies! After all I put the buttons in myFormPanel. But
this way I can't know when the submit and cancel buttons are pressed so that I
can render the feedback that is located in the parent page.
Should I think of some listener?
BR,
Martin
-Original Message-
Because neither has a getPageClass() method?
2010/1/18 Igor Vaynberg igor.vaynb...@gmail.com:
well, if the functionality can be accomplished using either
BookmarkablePageLink or Link, why do we need yet another way to do it?
-igor
On Sun, Jan 17, 2010 at 11:44 PM, Jeroen Steenbeeke
What do you mean - you can't tell which button was pressed?
Just add an onSubmit to the button and inside of it, add your feedback
message. or call getPage().info(...), etc. Then allow the onSubmit of
the form to do its thing.
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, Jan
Yeah, Jeremy, that's pretty clear. I was saying that I can't know in the parent
page when the submit button is pressed , so that I can say
target.addComponent(feed); when feed is in parent page...
BR,
Martin
-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Ah - I see. Yeah - you just have to roll your own option for this now. I'd
just recommend some sort of listener pattern - something like adding a void
formSubmitted(form, requesttarget) method on the page that child forms can
call. Then the pages can do whatever they need with it.
--
Jeremy
Yes, but in my case the panels don't even know about the parent - they don't
have a reference to it. I've got to think of some workaround on this one.
Thanks for your time,
Martin
-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Sent: Monday, January 18,
IFeedbackProvider {
FeedbackPanel getFeedbackPanel();
}
MyPage extends Webpage implements IFeedbackProvider {
public MyPage() {
add(new FeedbackPanel(feedback));
add(new MySubPanel(panel, this));
}
@Override
FeedbackPanel getFeedbackPanel() {
return
Hi,
You'll find everything you need in the phonebook application :
https://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook/
https://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook/
Regards,
Gabriel.
julien Graglia wrote:
I
Hi,
I am a Wicket fresher. I am still getting the hang of this.
I want to develop a web application where I would like to show the user a
message informing him that his session is about to expire in x minutes. If
he wants to save his session then can click on a button which appears along
with
I need to process my Form and then popup a report in a new browser
window with the result of the Form processing. I would like to do this
with one click from the user. Any ideas if this solution is already
built? I tried to use Link with PopupSettings, but the form submit does
not trigger
all,
my wicket 1.4.5 application is configured to run in root context. for some
reason, when it sets response page to the home page (which is not mounted), the
webserver produces error: The requested resource () is not available.
here's the code:
formFooter.add(new
rerender the menu javascripcode in ajaxevent.
alex
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Do you mean the issue is that the onchange behavior is not called without
taking the focus off of the textfield? If you want something that is going
to work without taking focus off the textfield, hook into the onkeyup (or
down) event instead.
--
Jeremy Thomerson
http://www.wickettraining.com
for my problem with dojo this works:
public void refreshMenu(AjaxRequestTarget pTarget) {
String js = dojo.addOnLoad(function(){\n + menu.generateJS()
+ \n}); ;
pTarget.appendJavascript(sss);
}
and i know the same stuff
Interesting... I'll give that a try.. Thanks...
On Mon, Jan 18, 2010 at 6:06 PM, Alexander Elsholz
alexander.elsh...@widas.de wrote:
for my problem with dojo this works:
public void refreshMenu(AjaxRequestTarget pTarget) {
String js = dojo.addOnLoad(function(){\n + menu.generateJS()
looks like BookmarkablePageRequestTarget.respond(RequestCycle requestCycle) has
code to strip ./ if url starts with it.
can it be changed to strip . as well? will it be the right fix?
From: vad...@hotmail.com
To: users@wicket.apache.org
Subject: root context, IE, home page is not found
@Pedro
Thanks for the response. Now I have two questions.
1. How do I get reference of HttpSession? In Wicket I seem to get
reference of WebSession.
2. How do I notify the servlet container (I guess Wicket is not in-charge
of maintaining the HttpSession), that the user is active? If
((WebRequest)getRequest()).getHttpServletRequest().getSession()
On Jan 18, 2010, at 10:12 PM, Apple Grew wrote:
@Pedro
Thanks for the response. Now I have two questions.
1. How do I get reference of HttpSession? In Wicket I seem to get
reference of WebSession.
2. How do I notify
thanks,
i will take a look at them.
On Mon, Jan 18, 2010 at 9:32 PM, Rodolfo Hansen kry...@gmail.com wrote:
On Fri, Jan 15, 2010 at 5:24 AM, vineet semwal
vineetsemwal1...@gmail.comwrote:
Sorry ,a little late ..
push is a great project,thanks for your efforts.
i am a little
Greetings all,
In my Datatable , I use PropertyColumn to create my columns.
I want to know whether using Wicket EL , I can do something like following:
Input object has 'name' field.
EL String : Your name is ${name}
Output String : Your name is Tom
Thanks in advance.
That's what I'm trying to say: it can't be accomplished by either
BookmarkablePageLink or Link. Link does not have a getPageIdentity method and
BookmarkablePageLink only works for bookmarkable links (duh). So Link is never
an option because of the missing getPageIdentity method and
Hi namesake! :-)
Unfortunately this is not what I need since as I said panels do not have
reference to their parent page. Anyway thanks for your time!
After all I put the feedbackpanel in every single subpanel (well , only in the
markup, because my abstract parent panel defines it in code).
56 matches
Mail list logo