Actually it works without a null in your choices.
Sven
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Add-Any-option-to-DropDownChoice-tp2281498p2281887.html
Sent from the Wicket - User mailing list archive at Nabble.com.
By default option values are indexed based and not part of
internationalization. Use IChoiceRenderer#getIdValue().
Sven
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/localize-options-DropDownChoice-tp2281778p2281892.html
Sent from the Wicket - User mailing list
option value=0Day/option
option value=1Week /option
option value=2Fortnight/option
option value=3Month/option
option value=4Year/option
If you really want to hardcode the options in the HTML like that, remember not
to use DropDownChoice which will replace the markup, but make your own
Something like run org.mypackage.Start ?
http://mojo.codehaus.org/exec-maven-plugin/
mvn -Pwhatever -DmainClass=org.mypackage.Start exec:java
- Tor Iver
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For
Yes, @EJB is still available, and it is still required in some cases. But the
general approach to injection has changed with CDI. See
http://seamframework.org/Community/InjectingWithEJBOrInject for a discussion.
My original question is about how to use Wicket with CDI (injecting EJBs and
other
hi, just add the form wicket id in property file.
e.g.
wicket:id=xxxForm
-wicket:id=valueListView
-wicket:id=value
xxxForm.valueListView.value.Required=please enter the value
Trevor Baker-2 wrote:
Hi,
I have a form that has an ListView (wicket:id=”valueListView”) of a bunch
of
This issue has come up many, many times before:
http://www.mail-archive.com/users@wicket.apache.org/msg06381.html
http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg26247.h
tml
Unfortunately some people try to convince the group that proposals like
the one you have presented here
Search the list for this and you'll find some quite long discussions.
Basically, it's not going to happen. This would be multiple
inheritance,
not single.
Hi Jeremy, I hope I don't sound confrontationalist when I say this but
this is clearly not a case of multiple inheritance.
For this request
Hi,
suppose there is a TextField with an AutoCompleteBehavior in a Form.
Pressing a key will create an Ajax RequestCycle to process the key, and
will finally invoke RequestCycle.detach(), which will invoke
WebSession.cleanupFeedbackMessages().
Pressing enter will create a normal
Hi,
The following seems to be a bug with JRockit or Weblogic, but maybe
someone on this list has seen it before and has a better
workaround/solution.
We have been developing a Wicket application for a government agency
that is going to be used by 15k users. The application will be
deployed on a
I have an AjaxButton with
@Override
public boolean isVisible() {
return someFlag;
}
In a race condition, if user B sets someFlag to false, and then user A
clicks the button A gets the following exception
org.apache.wicket.WicketRuntimeException: Submit Button buttonName ... is
not visible
Hello all,
I'm trying to kind of embed a wicket app into another web page, meaning
that the wicket pages are included as part of the other web page. All
submits, links, buttons in the wicket pages are realised using wicket's
ajax features.
Unfortunately, the wicketSubmitFormById call in an Ajax
Can somebody please help me populate drop down menu for Styles?
Customer decided to use this option and I have difficulties to figure out how
to do it.
Even in the wicket-contrib-tinymce examples this is not active.
Peter
Hi!
It is not a best solutions but you can try it
ajaxButton.add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1)));
--
View this message in context:
someFlag is an static variable?
2010/7/8 Conny Kühne conny.kue...@gmail.com
I have an AjaxButton with
@Override
public boolean isVisible() {
return someFlag;
}
In a race condition, if user B sets someFlag to false, and then user A
clicks the button A gets the following exception
new AjaxButton() {
private boolean available;
onBeforeRender() {
available = someFlag();
}
isVisible() {
return available;
}
onSubmit() {
if (!available) {
error(no longer available);
}
}
}
Sven
On 07/08/2010 04:48 PM, Conny Kühne wrote:
I have an
Thanks. That would have solved it. I am using setVisible(someFlag) now. Doh!
;)
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-WicketRuntimeException-Submit-Button-is-not-visible-tp2282413p2282534.html
Sent from the Wicket - User mailing list
But question is still open:)
Look to example
public static boolean visibleFlag = true;
public VisibilityButtonTest()
{
FormVoid form = new FormVoid(form);
add(form);
AjaxButton ajaxButton = new AjaxButton(button1)
{
@Override
public boolean isVisible()
{
class Page extends Page {
abstract Component getPart1();
abstract Component getPart2();
}
html
div wicket:id=id4part1 /
wicket:child /
div wicket:id=id4part2 /
On Thu, Jul 8, 2010 at 5:49 AM, Chris Colman
chr...@stepaheadsoftware.comwrote:
Search the list for this and you'll find
In theory, yes...
The proxies returned by Weld 1.0.1.SP3 (the version used in Glassfish 3.0.1)
are serializable, but after serializing and deserializing the proxy, the method
handler is broken and you get a null pointer exception when invoking any method
of the proxy. i verified this in a
class Page extends Page {
abstract Component getPart1();
abstract Component getPart2();
}
html
div wicket:id=id4part1 /
wicket:child /
div wicket:id=id4part2 /
That's the component based workaround that I mentioned which IMHO isn't
really the pure markup OO solution we're proposing.
hrm, if thats the case you can always use wicket-ioc module to build
the proxy yourself just like we do for spring and guice, it should
only be a couple of hours effort.
-igor
On Thu, Jul 8, 2010 at 10:34 AM, Harald Wellmann
harald.wellm...@multi-m.de wrote:
In theory, yes...
The proxies
And, this method doesn't really work very well either. You can't
reliably call those abstract methods from the superclass' constructor.
On Thu, Jul 8, 2010 at 2:47 PM, Chris Colman
chr...@stepaheadsoftware.com wrote:
class Page extends Page {
abstract Component getPart1();
abstract
class Page extends Page {
abstract Component getPart1(String id);
abstract Component getPart2(String id);
onBeforeRender() {
if (get(part1)==null) { add(getPart1(part1)); }
if (get(part2)==null) { add(getPart2(part1)); }
}}
in 1.5 it would be done like this
class Page extends
Use a pre render listener to call your render method. The constructor
stuff is pretty bad though. If you have the listener look for the
@PostConstruct annotation it even looks like its supposed to work that way.
imo if multiple markup section inheritance were implemented you would really
limit how
Right, it's doable, but there's a bit of homework you have to do to
make sure it all works correctly. You have to solve the whole
onFirstRender problem in a reliable way. Our base page has an
overridable onFirstRender() method that subclasses can override if
they wish to do this sort of
Right, well put then. :)
On Thu, Jul 8, 2010 at 5:41 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
my point was simply that it is trivial to solve, it has a well known
solution, and this is not the only usecase where it applies. you will
need to do your homework no matter which way you go.
Hi folks,
I'm trying to write a page that displays search results. The page contains a
form allowing the user to input search criteria. It also displays the list
of results with links for paging back and forth through the result set.
I'm having a bit of trouble because the pageParameters coming
Hi!
Few points to consider:
1. I hope you do not parse pageParameters manually, let wicket handle
that for simple cases.
2. Don't allow your paging buttons to submit data, set
button.setDefaultFormProcessing(false);
3. Separate your search form and other forms from each other:
form search
The JavaDoc for AjaxButton (and AjaxSubmitButton) says:
A button that submits the form via ajax. Since this button takes the
form as a constructor argument it does not need to be added to it unlike
the Button component.
Well I've just spent a good amount of time putting that theory to the
test.
is there any complete sample or demo of the treeLink
thank you.
-
http://www.wicket-library.com/wicket-examples/nested/
On Thu, Jul 8, 2010 at 9:09 PM, 蔡茂昌 caimaochang.c...@gmail.com wrote:
is there any complete sample or demo of the treeLink
thank you.
-
--
Jeremy Thomerson
http://www.wickettraining.com
Can the wicket trees support context menus? (eg., right click on a node and a
pop up menu appears near where the mouse went down)
-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Sent: Friday, 9 July 2010 2:14 PM
To: users@wicket.apache.org
Subject: Re: about
33 matches
Mail list logo