I am not quite sure why Double and Integer are handled differently when it
comes to grouping
in AbstractIntegerConverter, NumberFormat is initialized with this:
numberFormat.setGroupingUsed(false);
I asked long time ago while different policy for integer and float and the
answer was for
Provide your own IConverter from the TextField to not format number with
radix sign:
add(new TextField(id) {
@Override public final IConverter getConverter(Class type) {
return new IntegerConverter();
}
});
On Fri, Jul 25, 2008 at 2:55 AM, mabel25 [EMAIL PROTECTED] wrote:
Hi,
implement your own List interface
Just in case if anyone not aware of, you only need to implement the size()
and get(int index) methods of the List interface, everything else can just
be unsupported.
On Mon, Jun 23, 2008 at 2:21 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
well, thats part of
The wicket tab panel example does exactly this
http://www.wicket-library.com/wicket-examples/ajax/tabbed-panel.1
It uses the sliding door technique describe here:
http://www.alistapart.com/articles/slidingdoors/
On Tue, Jun 24, 2008 at 5:02 PM, Brill Pappin [EMAIL PROTECTED] wrote:
I've seen
[X] Can best be done in a limited fashion, where we only generify
IModel but not components. I care more about what generifying can do
for API clarity (declaring a component to only accept certain models
for instance) than static type checking.
[X] I might rethink upgrading if my choice doesn't
target for simplicity reason.
From your words, it seems that it is not safe to use Wicket Ajax this
way.
However, my application uses this pattern extensively. Are there any
other approaches for my scenario?
Regards.
Robin
Matthew Young [EMAIL PROTECTED] wrote: The problem is you
I'd forgotten that this was required on multipart forms:
f.setMultiPart(true);
Odd, I didn't call .setMultiPart(true); and I have no problem at all.
On Mon, May 19, 2008 at 6:24 AM, Joel Halbert [EMAIL PROTECTED]
wrote:
I am an idiot.
I'd forgotten that this was required on multipart forms:
He is probably talking about if resource string is html code, then there can
be css class string in there like this:
resource-string-x=This is span class=stand-outsomething something/span
and span class=another-classsomething something/span.
He is worry that if the designer change the class name
()
On Thu, May 15, 2008 at 6:57 PM, Matthew Young [EMAIL PROTECTED]
wrote:
I need to implement the usual account activation via email function.
Can
anyone point me to some example of how this is implemented? If in
Wicket
even better but anything would help me a lot.
One question I
, new email, forgot password, etc..
On Thu, May 15, 2008 at 7:01 PM, James Carman
[EMAIL PROTECTED]
wrote:
java.util.UUID.randomUUID().toString()
On Thu, May 15, 2008 at 6:57 PM, Matthew Young [EMAIL PROTECTED]
wrote:
I need to implement the usual account activation via email
Sorry I can't help you with your question. But may I ask where you get the
PhoneFormatter?
On Wed, May 14, 2008 at 5:58 PM, Sam Barnum [EMAIL PROTECTED] wrote:
Using the tips in this PDF
http://londonwicket.org/content/LondonWicket-FormsWithFlair.pdf
I created the simple RequiredBorder
I need to implement the usual account activation via email function. Can
anyone point me to some example of how this is implemented? If in Wicket
even better but anything would help me a lot.
One question I have is how to generate hard to guess unique keys in the
email link? I use Hibernate
Thank you! I see how this work now.
On Sun, May 4, 2008 at 10:17 PM, Eelco Hillenius [EMAIL PROTECTED]
wrote:
On Fri, May 2, 2008 at 4:59 PM, Matthew Young [EMAIL PROTECTED] wrote:
I only want to find out the user's timezone.
setGatherExtendedBrowserInfo(true) redirect page take too long
Instead of submit, pop up a dialog telling the user to choose a file to
upload? As is now, the UploadProgressBar show up, form submit ,
getFileUpload returns null and error handling happens on the server.
of UploadProgressBar stuff]
On Fri, May 2, 2008 at 3:19 AM, James Carman [EMAIL PROTECTED]
wrote:
Can you just mark it as required?
On Fri, May 2, 2008 at 2:15 AM, Matthew Young [EMAIL PROTECTED] wrote:
Instead of submit, pop up a dialog telling the user to choose a file to
upload? As is now
I solve this problem by putting an 'onclick' handler on the Submit button to
check for blank input.
I only want to find out the user's timezone.
setGatherExtendedBrowserInfo(true) redirect page take too long, sometimes it
stays on the screen many seconds.
Just want to add my appreciation to all the help I got here, especially from
Igor. Sometime I receive the answer instantly, even on weekend! One thing
I learn to do is not only read the javadoc but read the code. A lot of the
component stuffs are pretty easy to follow, especially if you use
public class YourPage extends WebPage implement IHeadContributor {
// in case form has error, scroll down
@Override public void renderHead(IHeaderResponse r) {
if (form.hasError()) {
r.renderOnLoadJavascript(location.hash='YOUR-ANCHOR');
}
}
}
I have a feedback panel on the page I want to fade way after 7 seconds. I
tried adding this to the page:
private static AbstractBehavior feedbackSelfDisappear = new
AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override public void
Alright, that worked. Thanks!
On Wed, Apr 30, 2008 at 6:13 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
window.setTimeout(function() {Effect.Fade('feedback-id');}, 7000)
-igor
On Wed, Apr 30, 2008 at 6:08 PM, Matthew Young [EMAIL PROTECTED] wrote:
I have a feedback panel on the page I
I have a tabpanel. After ajax update to a div inside the tab-panel, the tab
stop working: rollover hover doesn't work, no reaction to click. This only
happen to Firefox both Windows and Linux. No problem with IE7, Opera or
Safari. You can see this in action here:
,
Cristi Manole
On Mon, Apr 28, 2008 at 9:18 AM, Matthew Young [EMAIL PROTECTED] wrote:
I have a tabpanel. After ajax update to a div inside the tab-panel, the
tab
stop working: rollover hover doesn't work, no reaction to click. This
only
happen to Firefox both Windows and Linux
The AjaxPagingNavigator is header-contributing wicket-event.js and
wicket-ajax.js everytime a link is clicked. There must be something in
these js to make this ok?
:
wicket will filter out the duplicates on the client side
-igor
On Sat, Apr 26, 2008 at 11:20 PM, Matthew Young [EMAIL PROTECTED] wrote:
The AjaxPagingNavigator is header-contributing wicket-event.js and
wicket-ajax.js everytime a link is clicked. There must be something
in
these js
elaborate on scriptaculous not working?
-Matej
On Sun, Apr 27, 2008 at 9:43 AM, Matthew Young [EMAIL PROTECTED] wrote:
filter out the duplicates on the client side
How do you do that? Would it be possible to make stuff like
scriptaculous
effects to work like that? Scriptaculous
That would be a wicket bug, is there a jira entry for it?
Just created one:
https://issues.apache.org/jira/browse/WICKET-1572
This one should not be called a bug. Open browser first, then start wicket
app, it's fine. But start wicket app first, then open browser, it's not.
What difference do it
I am looking at the wicket.markup.html.tabs.TabbedPanel
(wicket-extensions)http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TabbedPanelPageexample
on
http://wicketstuff.org/wicket13/compref/, I couldn't figure out how you
switch the css. Is
at 11:12 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
the code is on TabbedPanelPage, the links simply switch the css class
that is on the div tag used to attach to tabbed panel.
-igor
On Wed, Apr 23, 2008 at 11:08 PM, Matthew Young [EMAIL PROTECTED] wrote:
I am looking
ArthIT: How to suppress the warning is not why I asked the question. I want
to be sure generify Wicket is correct so user code can be clean and warning
free.
in Eclipse go to Window - Preferences
Type Generic in the search box. Now you should see the
Java-compiler-Errors/Warnings Node.
Open it,
new WebMarkupContainer(wicketId) {
private static final long serialVersionUID = 1L;
@Override protected void onComponentTag(final ComponentTag tag){
super.onComponentTag(tag);
tag.put(src, http://www.someothersite.com/image.gif;);
:54 AM, Johan Compagner [EMAIL PROTECTED]
wrote:
Form?
On Wed, Apr 23, 2008 at 6:52 AM, Matthew Young [EMAIL PROTECTED] wrote:
(Other than using @SupressWarnings)
AjaxFallbackButtonPage1 submitButton = new
AjaxFallbackButtonPage1(submitButton, form) {
@Override
(Other than using @SupressWarnings)
AjaxFallbackButtonPage1 submitButton = new
AjaxFallbackButtonPage1(submitButton, form) {
@Override protected void onSubmit(AjaxRequestTarget target, Form
f) { Warning here
.
Form is a raw type. References to generic type FormT
I'm getting warning on:
new PageableListView() {
@Override protected void populateItem(ListItem item) {
ListItem is generic. References to generic type ListItemT should be
parameterized.
dump the stack trace and see?
new Exception().printStackTrace();
On Fri, Apr 18, 2008 at 8:45 PM, Fernando Wermus [EMAIL PROTECTED]
wrote:
Warren,
I am new using LoadableDetacheModel. I would like to know why is
called twice in your example.
Thanks.
--
Fernando
public class WicketApplication extends WebApplication
{
@Override public void init() {
this.getMarkupSettings().setStripXmlDeclarationFromOutput(true);
}
}
On Wed, Apr 16, 2008 at 3:06 AM, [EMAIL PROTECTED] wrote:
Hi:
It took me a while to find out why my iframe was not
The problem is you are ajax updating this whole thing including the nested
ajaxlink:
div wicket:id=container
div wicket:id=count/div
a wicket:id=linklink/a
/div
it causes the wicket-ajax js stuff header contributed everytime the link is
clicked. Open the
Where is the attachment?
I want to use wicket-SNAPSHOT to give 1.4 a try. But I get mvn error:
[INFO] snapshot org.apache.wicket:wicket:SNAPSHOT: checking for updates from
wicket-snapshots
Downloading:
http://wicketstuff.org/maven/repository//org/apache/wicket/wicket/SNAPSHOT/wicket-SNAPSHOT.pom
Downloading:
Oh mine, some many generic warnings after moving to 1.4. I got rid of them
by putting in type parameters but I'm not sure if I'm doing the right thing.
There is one warning I don't know how to fix:
WARNING: Type safety: the method add(Component) belongs to the raw type
MarkupContainer. Reference
WebPageObject {
This should get rid of the wanings when adding components.
-Matej
On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED] wrote:
Oh mine, some many generic warnings after moving to 1.4. I got rid of
them
by putting in type parameters but I'm not sure if I'm doing
log.error(Session.get().getId() + + Session.get().hashCode() + +
currentIp + C: + currentCustomer != null ? currentCustomer.getFullName()
: nocustomer);
You should put parent around ?:. The '+' op is evaluated before !=. Your
statement is effectively this:
(C: + currentCustomer)
this page takes about 2-5 seconds to load, but this
only happens when it's loaded for the first time
I observe the same thing and this has to do with Captcha. I think it's
because it uses Java graphic stuff and it take time to load and initialize.
On Tue, Apr 8, 2008 at 7:48 AM, Sergey
I want a Label to display Integer as 999,999,999 but it's not happening.
Basic problem is inside IntegerConverter, NumberFormat is created in
abstractIntegerConverter like this:
public NumberFormat getNumberFormat(Locale locale)
{
NumberFormat numberFormat =
Any reply?
getNumberFormat(Locale)? Pretty easy.
On Mon, Apr 7, 2008 at 7:02 PM, Matthew Young [EMAIL PROTECTED] wrote:
Any reply?
--
Nick Heudecker
For the vi locale, . is the radix mark and , is the decimal mark. So
99,0 is 990. See this:
Double doubleValue = new Double(999.999);
String convertString = iConverter.convertToString(doubleValue,
newLocale(vi));
System.out.println(Double value: + doubleValue +
The book is incorrect. There is no class attribute in the ul tag and
there is no way to add one through FeedbackPanel class. But you can do
this:
div class=feedbackPanel wicket:id=feedbackF/div
and style the feedback ul:
.feedbackPanel ul {
etc etc
}
On Sat, Apr 5, 2008 at 12:57 PM, Zach
, Apr 5, 2008 at 2:08 PM, Matthew Young [EMAIL PROTECTED] wrote:
The book is incorrect. There is no class attribute in the ul tag and
there is no way to add one through FeedbackPanel class. But you can do
this:
div class=feedbackPanel wicket:id=feedbackF/div
and style
If you use Maven, just add the dependency:
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-extensions/artifactId
version${wicket.version}/version
/dependency
dependency
and is indented as in the original
I think some browser use padding, others use margin to shift li. You need
to set both padding-left and margin-left to have them look the same on all
browsers.
On Tue, Apr 1, 2008 at 6:33 AM, Steen Larsen [EMAIL PROTECTED] wrote:
Hi,
I have made a
, Matthew Young [EMAIL PROTECTED] wrote:
wicket:link doesnt touch components afaik
:( I need it to be a component. My code is basically this:
add(new WebMarkupContainer(img));
Can I do something like this:
add(new WebMarkupContainer(img) {
@Override
look and only
fallback to the built-in images, just like localization. How can this be
done?
On Mon, Mar 31, 2008 at 4:35 AM, James Carman [EMAIL PROTECTED]
wrote:
On Mon, Mar 31, 2008 at 12:28 AM, Matthew Young [EMAIL PROTECTED] wrote:
wicket:link doesnt touch components afaik
:( I
I have a link like this:
a wicket:id=linkimg src=face.png//a
When link.isEnable() == false, I need to add style attribute to the img
tag. Is it possible to do this without turning the img into a child
component of the link?
(...) {
oncomponenttag(tag) {
if (link.isenabled()==false) { tag.put(class,foo); }
}
}
-igor
On Sun, Mar 30, 2008 at 11:27 AM, Matthew Young [EMAIL PROTECTED] wrote:
I have a link like this:
a wicket:id=linkimg src=face.png//a
When link.isEnable() == false, I need to add style
PM, [EMAIL PROTECTED] wrote:
Use wicket:link tags around the image
-igor
On 3/30/08, Enrique Rodriguez [EMAIL PROTECTED] wrote:
On Sun, Mar 30, 2008 at 7:45 PM, Matthew Young [EMAIL PROTECTED]
wrote:
...
I don't want to hard code
/resources/com.mycompany.component.MyComponent
:
thats because you have a wicket:id there. wicket:link doesnt touch
components afaik
-igor
On Sun, Mar 30, 2008 at 8:57 PM, Matthew Young [EMAIL PROTECTED] wrote:
So I did this:
html xmlns:wicket
body
wicket:panel
wicket:linkimg wicket:id=open src=open.png//wicket:link
I suddenly are a bit stomped why you have todo so much when it comes to
uploading files (and yes I am aware that it is only a few more lines of
code)..
What is todo so much? You need to tell people what it is exactly, like put
up some code? Otherwise no one can tell exactly what you are doing.
Can you put a ajaxtimerbehavior in the iframe to call the server to keep the
session alive?
On Sat, Mar 29, 2008 at 2:32 AM, Per Newgro [EMAIL PROTECTED] wrote:
Hi *,
we added an IFRAME to out homepage. This gets an url to he
wicket-application
by assignment to src attribute. If the user
The current page is like this:
span id=pageLink21 wicket:id=pageLinkemspan
wicket:id=pageNumber7/span/em/span
So you can just style the em tag to whichever way you like.
On Sat, Mar 29, 2008 at 4:46 PM, Vitaly Tsaplin [EMAIL PROTECTED]
wrote:
Hi,
How do I change an appearance of a link
and a for active ones. I
do
not see any way how to distinguish the current page...
On Sun, Mar 30, 2008 at 12:59 AM, Matthew Young [EMAIL PROTECTED]
wrote:
The current page is like this:
span id=pageLink21 wicket:id=pageLinkemspan
wicket:id=pageNumber7/span/em/span
I need to display a list of numbers of 1,2,3,4 ... to n, 'n' being some big
number. I want to display the number 20 number per page and have some
navigation bar to page through the numbers.
My form is at the bottom of a long page. I have a name=myform/ before
the form. Is there a way to:
1) on fail form validation, response jump to the form?
2) Same for [EMAIL PROTECTED](): response jump to the form?
at 11:26 AM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
On Wed, Mar 26, 2008 at 11:13 AM, Matthew Young [EMAIL PROTECTED] wrote:
My form is at the bottom of a long page. I have a name=myform/
before
the form. Is there a way to:
1) on fail form validation, response jump to the form
Done: https://issues.apache.org/jira/browse/WICKET-1450
I want to be able to show a new captcha image via an AjaxFallbackLink. But
I don't know what to do in onClick to make the captcha img tag reload.
public MyPage extends WebPage {
private CaptchaImageResouce captchaImageResource;
public MyPage() {
add(new Image(captchaImg, new
Here is my test code:
public class HomePage extends WebPage {
private static final long serialVersionUID = 1L;
private String word;
public HomePage(final PageParameters parameters) {
add(new FeedbackPanel(feedback) {
private static final long serialVersionUID =
The quote marks in the PDF must be the typographer's quote: like this pair
and not the straight quote like this pair. The straight quote marks
probably got converted when the code is pasted into the page layout
program. The author should probably turn of auto quote mark convertion off
in the
called in the renderphase in an ajax
request you throw an restart exception? We dont really support that
and i believe that igor had the same kind of thread a few days back.
Make a issue for this if you want.
On 3/24/08, Matthew Young [EMAIL PROTECTED] wrote:
Here is my test code
I forgot to include the HomePage.html. Here is all the files of my small
test. Please check it out if possible. If you run it with JS off, all is
fine. With JS on, Ajax response is wrong.
HomePage.html:
html
head/head
span wicket:id=messagemessage will be here/span
form
;
}
}
On Thu, Mar 20, 2008 at 2:48 PM, Matthew Young [EMAIL PROTECTED] wrote:
Then what? In real app, the model is calling some flakey remote service
that
can fail. Is there no way to show error message on the same page?
That the
only thing is put up
feedbackpanel.detach() will help before you add it to the ajax request
target...
-igor
On Wed, Mar 19, 2008 at 7:06 PM, Matthew Young [EMAIL PROTECTED] wrote:
Overriding onBeforeRender() doesn't work on Ajax, it's not called :(
it is, but only on components that get updated via ajax...so you
to host it on wicket-stuff...
-igor
On Wed, Mar 19, 2008 at 7:00 PM, Matthew Young [EMAIL PROTECTED] wrote:
My original is big and hi res. But once I upload to any one of these
sites,
they all down res file to tiny size.
On Wed, Mar 19, 2008 at 6:24 PM, Igor Vaynberg [EMAIL PROTECTED
Don't know what happen to my last reply. Try again:
i wonder if calling
feedbackpanel.detach() will help before you add it to the ajax request
target...
No, this doesn't make the message show up either.
yes. there is a phase of processing that goes through and collects the
feedback messages.
? And that I should
use target.appendJavascript() for dynamic JS?
On Thu, Mar 20, 2008 at 1:21 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
On Thu, Mar 20, 2008 at 12:59 PM, Matthew Young [EMAIL PROTECTED] wrote:
Small wish: in GMail, when their Ajax submit fails (either user submit
or
auto
, Mar 19, 2008 at 10:04 PM, Matthew Young [EMAIL PROTECTED] wrote:
I register an error to the page in the model but the feedback message
doesn't show in FeedbackPanel. Only the error message register in
onSubmit() event handler shows. Please have a look. Thanks!
HomePage.html
, and no you
shouldnt touch ajaxreqesttarget from a call decorator, notice how it
is not passed in...
-igor
On Thu, Mar 20, 2008 at 2:38 PM, Matthew Young [EMAIL PROTECTED] wrote:
add an iajaxcalldecorator override failed script
Would that work if failure happen late in rendering? By that time
background : url(images/bgimage.jpg);
I think you need to put a / in front of images like:
background : url(/images/bgimage.jpg);
On Wed, Mar 19, 2008 at 8:54 AM, Martin Makundi
[EMAIL PROTECTED] wrote:
Well.. my specific experience is from having
html
head
script type=css..
.body {
Ok, it there: http://vimeo.com/802144
scroll down to the bottom to download the original.
On Wed, Mar 19, 2008 at 8:30 AM, Frank Bille [EMAIL PROTECTED] wrote:
I would suggest uploading it to vimeo.com. It supports HD videos as
well as support for downloading the original file.
Frank
On
Hi, I am finding that wicket:component doesn't add stylesheet link in
head from add(HeaderContributor). Is there any way to make it work?
I want to use wicket:component because can I add border around without
changing my component hierarchy. If I add my border component in .java, it
works as
I register an error to the page in the model but the feedback message
doesn't show in FeedbackPanel. Only the error message register in
onSubmit() event handler shows. Please have a look. Thanks!
HomePage.html:
html
head/head
span wicket:id=messagemessage will be here/span
form
is there supposed to be sound?
No, it's a silent film :).
On Wed, Mar 19, 2008 at 5:22 PM, Jonathan Locke [EMAIL PROTECTED]
wrote:
is there supposed to be sound?
MYoung wrote:
Ok, it there: http://vimeo.com/802144
scroll down to the bottom to download the original.
On Wed,
; super.ondetach(); }
.. add(new listview(foo, new propertymodel(this, result));
}
-igor
On Wed, Mar 19, 2008 at 2:04 PM, Matthew Young [EMAIL PROTECTED] wrote:
I register an error to the page in the model but the feedback message
doesn't show in FeedbackPanel. Only the error message
screencasts with those, or even higher..
-igor
On Wed, Mar 19, 2008 at 6:04 PM, Matthew Young [EMAIL PROTECTED] wrote:
I've not found any site that support high res video. Photobucket.com,
vimeo.com are just like Youtube: take high res file and down size to
tiny
flash file. If they can
and subclass
oncomponenttag() directly and save some space.
pretty sweet tutorial though, thanks
-igor
On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young [EMAIL PROTECTED] wrote:
Hi, I am new to Wicket and to help me learn, I created a Wicket version
of
the Flickr demo like the one on the Ruby
SimpleAttributeModifier(src, photo.getSmallSquareUrl
()));
you can just create an anon subclass of src wmc and subclass
oncomponenttag() directly and save some space.
pretty sweet tutorial though, thanks
-igor
On Mon, Mar 17, 2008 at 1:04 PM, Matthew Young [EMAIL PROTECTED]
wrote:
Hi, I am
}
};
form.add(submitButton);
}
}
Enter the word 'blowup' and the Model registers a error message to the page,
this message doesn't show.
On Tue, Mar 18, 2008 at 12:19 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
On Tue, Mar 18, 2008 at 11:48 AM, Matthew Young [EMAIL
redirect to URL that has page instance information in
it.
-Matej
On Tue, Mar 18, 2008 at 7:48 PM, Matthew Young [EMAIL PROTECTED] wrote:
Thank you Matej and Igor. I learned several new things.
IAjaxCallDecorator
is very cool and I did not realize wicket:link works on stylesheet
ref
+1
On Mon, Mar 17, 2008 at 1:13 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
This thread is for voting only. Use the [discuss] thread for voicing
your opinion or asking questions. This makes counting the votes much
easier.
The discussion on our development list makes it clear that a lot
Hi, I am new to Wicket and to help me learn, I created a Wicket version of
the Flickr demo like the one on the Ruby on Rails site seen here
http://www.rubyonrails.org/screencasts. I put my version in my blog here:
http://limboville.blogspot.com/2008_03_01_archive.html. Please take a look
and give
Does this stuff here prevent double submit?
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/settings/IRequestCycleSettings.html
...so that not only form submits are shielded from the double submit
problem...
On Mon, Mar 10, 2008 at 6:56 AM, Joel Hill [EMAIL
91 matches
Mail list logo