Hi Mansour
For reloading different pages I'm using BookmarkablePageLink
(non-ajax), that have the option for setAutoEnable(true)'.
When this option is set for each BookmarkablePageLink and one
BookmarkablePageLink is clicked on the website, the generated HTML for
that link is changed.
For
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
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
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
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.
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.
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
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
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
form
...
button wicket:id=myButton/button
/form
myForm.add(new Button(myButton){
@Override
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
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,
Hi adrien, yes, with a quickstart reproducing the error please.
On Sun, Mar 27, 2011 at 8:54 PM, adriclad adrien.che...@gmail.com wrote:
No answer...
May I write a Jira ticket for 1.5-RC3 to inform this bug ?
--
View this message in context:
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 adrien.che...@gmail.com wrote:
Anybody had the same problem ?
May I
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
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,
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 pedros...@gmail.com wrote:
Hi, just tested http://wicketstuff.org/wicket/authentication2 and the
example set the cookie in response
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
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
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
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 way
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
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
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
We do this in our application by doing:
add(new Label(debugInfo, new
DebugInfoModel()).setEscapeModelStrings(false).setRenderBodyOnly(true));
private static class DebugInfoModel extends LoadableDetachableModelString
{
@Override
protected String load()
{
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:
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
Hi!
I nominate Martin Grigorov for his continuous, dedicated work on wicket and
friendly help for users.
Attila
2011/3/28 nino martinez wael nino.martinez.w...@gmail.com
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
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 it's
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
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
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
Do you get the same error when mounting the page using a
QueryStringEncodingStrategy?
On Monday, March 28, 2011, lovewicket pey...@hotmail.com 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
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.
On Sun, Mar 27, 2011 at 11:43 PM, Bruno Borges bruno.bor...@gmail.comwrote:
For now, I simply did this:
object autoMarkupId extends IComponentInstantiationListener {
def onInstantiation(component: Component) {
if (component.isInstanceOf[FormComponent[_]]) {
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 pey...@hotmail.com wrote:
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:
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
37 matches
Mail list logo