Ah, the trouble is in your NPE:
java.lang.NullPointerException
at index.AbcPage.validateParams(
AbcPage.java:258)
As long as that exception remains unhandled, the pages won't hand off. The
Form has to resubmit back to the page the form lives on since that is where
the form listener is wait
I tried to put the following in my application class, but unfortunately got
the same results (application tries to load the current page and then
redirect the request):
getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER);
--
View this message in context:
http://ap
Wicket uses a 2 step render :
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/settings/IRequestCycleSettings.html
Have you tried using setRenderStrategy(ONE_PASS_RENDER ONE_PASS_RENDER) in
your application?
-Clint
On Mon, Mar 28, 2011 at 7:37 PM, lovewicket wrote:
> Yes. I have the fol
On Sun, Mar 27, 2011 at 11:43 PM, Bruno Borges wrote:
> For now, I simply did this:
>
> object autoMarkupId extends IComponentInstantiationListener {
> def onInstantiation(component: Component) {
>if (component.isInstanceOf[FormComponent[_]]) {
> component.se
Yes. I have the following in my application class:
mount(new QueryStringUrlCodingStrategy("/searchresults",
SearchResultsPage.class));
It didn't work. I am not sure why wicket doesn't directly go to the
specified page instead of loading the current page again and then going to
the specified page.
Do you get the same error when mounting the page using a
QueryStringEncodingStrategy?
On Monday, March 28, 2011, lovewicket wrote:
> It looks like onSubmit, request first comes to the current page and then it
> gets forwarded to the results page. I am not sure why this is the case. In
> stateless
Hehe :-)
Thanks Attila!
I'd like to nominate Igor for everything he did and still does for Wicket
and Open Source as whole!
I'm also one of the technical reviewers of his book and I can say there are
really useful recipes even for more experienced users like me!
Nominating second place is really
It looks like onSubmit, request first comes to the current page and then it
gets forwarded to the results page. I am not sure why this is the case. In
stateless application, loading the current page again fails the validation
because the parameters that are needed to build the current page are not
I nominate Michael for his great work at WicketStuff and Pedro who's
brazilian like me and representing Latin America (and will probably own me a
beer the next time he comes to Rio)... :-)
Bruno Borges
www.brunoborges.com.br
+55 21 76727099
"The glory of great men should always be
measured by th
I nominate Martin Grigorov a and Pedro Santos. Thanks to them, none of my
questions has gone un answered in this forum.
josh.
On Mon, Mar 28, 2011 at 8:45 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:
> Hi guys
>
> Been a while, but theres cash in the shop[1] again so that means
Hi!
I nominate Martin Grigorov for his continuous, dedicated work on wicket and
friendly help for users.
Attila
2011/3/28 nino martinez wael
> Hi guys
>
> Been a while, but theres cash in the shop[1] again so that means it's
> time to give out some merchandise :)
>
> So lets round up some nomi
Hi guys
Been a while, but theres cash in the shop[1] again so that means it's
time to give out some merchandise :)
So lets round up some nominees for the very prestigious Apache Wicket
Merchandise community AWARD program..
I nominate
Igor for doing his Wicket cookbook[2]
Michael O'Cleirigh for
Oops, I didn't see this, is this the same thing?
java.lang.Object
org.apache.wicket.protocol.http.documentvalidation.Comment
-Original Message-
From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On
Behalf Of James Carman
Sent: Monday, March 28, 2011 1:04 PM
To: u
We do this in our application by doing:
add(new Label("debugInfo", new
DebugInfoModel()).setEscapeModelStrings(false).setRenderBodyOnly(true));
private static class DebugInfoModel extends LoadableDetachableModel
{
@Override
protected String load()
{
return
They may contain information like a build number, version number of
application for debugging purposes that I can see on the rendered HTML
output.
I was thinking of sub-classing label because the output of a comment is
similar to that kind of markup.
-Original Message-
From: Pedro Santos
Set a null/empty value in their model plus notify the component about
changed models e.g. Component#modelChanged.
e.g.
form = new Form(new CompoundPropertyModel(new Bean())
form.add(new Field("someProperty");
(...)
form.add(new SubmitComponent("id"){
onSubmit(){
form.setDefaultModelObject(new
after clicking submit button the values are still there in field itself how
to clear the field values
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3412291.html
Sent from the Users forum mailing list archiv
An reusable behavior can be archived using the MarkupComponentBorder.
On a side note, why do you want to write commented model values in markup?
On Mon, Mar 28, 2011 at 11:02 AM, Brown, Berlin [GCG-PFS] <
berlin.br...@primerica.com> wrote:
> This is simple code and works, do you think this is a w
Josh, I tried to run the app, but I couldn't resolve an issue with
maven. May be you have seen something similar before. I had deleted the
corresponding wicket/1.4.12 direcotry
from maven repo to forse it to re download, but no luck. I am using maven 3. Do
I need to install all these required pr
Marco, thank you.
I have implemented already the pages as a panel to be replaced, and this
was a requirement to do it with ajax. So I can not follow this route at
this point. But what you have here is the exact functionality I am
after. It will be nice if I can disable the current link, but I need
This is simple code and works, do you think this is a way to add dynamic
HTML comments that use some Wicket model?
Or have you done something else?
I am not as familiar with onComponentTagBody.
public class HtmlComment extends Label {
/**
* @see
org.apache.wicket.Component#onComponen
Hi,
for me this part did work:
store:
new CookieUtils().save(ID, value);
load:
new CookieUtils().load(ID);
On Mon, Mar 28, 2011 at 4:11 PM, Pedro Santos wrote:
> Hi, just tested http://wicketstuff.org/wicket/authentication2 and the
> example set the cookie in response without problems.
> Ope
My first clue: Are you using wicket:container Tags in your markup? In
Deployment Mode this tags could not be rendered to the markup by Application
Settings.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Development-Deployment-mode-problem-tp3411737p3411751.html
Sent
Hi,
I have used a jquery control full calendar from
http://arshaw.com/fullcalendar/.
I have used that control in a wicket application, where in one page there
are two tabs, and in one tab there are some text-fields and in the other
this calendar control.
But now for my local server which is on d
Hi, just tested http://wicketstuff.org/wicket/authentication2 and the
example set the cookie in response without problems.
Open a ticket + quickstart reproducing the problem please.
On Sun, Mar 27, 2011 at 8:48 PM, adriclad wrote:
> Anybody had the same problem ?
>
> May I have to refer the bug
Hi adrien, yes, with a quickstart reproducing the error please.
On Sun, Mar 27, 2011 at 8:54 PM, adriclad wrote:
> No answer...
>
> May I write a Jira ticket for 1.5-RC3 to inform this bug ?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Error-during-headers-
thanks - that's it.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/issue-with-input-type-reset-tp3411379p3411433.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e
> And idea how to avoid that behaviour?
resetButton.setDefaultFormProcessing(false);
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hi
You can add a wicket button on your form and implement onClick/onSubmit on
the button.
There many buttons including ajax enabled ones. See javadocs for details.
Something like
...
myForm.add(new Button("myButton"){
@Override
public void onSubmit() {
Meanwhile I tried to add another submit button and just labeling that as a
reset button.
This is almost working but after calling the onSubmit method of my "reset
button" the onSubmit method of my form get's triggered as well?!
This is my button:
-
Button resetB
Hi all,
let's assume there is a form with an input field an two buttons: submit and
reset.
Within the java code I add a new form component (extends Form) with an input
field and implement the onSubmit() method.
But: Is there a chance to implement some onReset() method so I can do some
more stuff
Hi,
How about something like this.
private Boolean isLinkVisible = true ;
...
final Link link = new Link("test"){
@Override
public void onClick(){
isLinkVisible = false ;
}
@Override
public void isVisible(){
return isLinkVisible ;
}
}
Kind regards
this works like a charm - thanks.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/make-link-itself-invisible-via-onclick-tp3411327p3411347.html
Sent from the Users forum mailing list archive at Nabble.com.
--
> is there a possibility to make a link invisible itself via onClick?
> link.setVisible( false );
Sure: Just use "this" instead of "link", since "this" in the onClick() will be
the anonymous object based on Link.
- Tor Iver
-
Hi,
is there a possibility to make a link invisible itself via onClick?
At the moment I get an error "The local variable link may not have been
initialized".
code:
--
final Link link = new Link( "test" ) {
@Override
public void
I ended up doing it all server side - overriding onSelectionChanged* and
setting a selectedItem attribute. We then override isSelectedItem and
return true if the given item 'equals' selectedItem - must make sure
your IModel and domain classes all override equals and test for class
match and non nul
36 matches
Mail list logo