Re: change localized number format globally in application

2008-08-14 Thread Matthew Young
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

Re: Float Validation

2008-07-25 Thread Matthew Young
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,

Re: PageableListView and Detachable Models

2008-06-24 Thread Matthew Young
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

Re: Style implementation for Round Cornered Tabbed Panels

2008-06-24 Thread Matthew Young
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

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Matthew Young
[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

Re: Ajax postcall handler does not get called every time

2008-05-21 Thread Matthew Young
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

Re: Form models not populated when using FileUploadField and multipart/form-data .. ?

2008-05-19 Thread Matthew Young
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:

Re: Text handling in wicket

2008-05-18 Thread Matthew Young
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

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread Matthew Young
() 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

Re: Account Activation Email generation and response processing: any design example?

2008-05-16 Thread Matthew Young
, 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

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Matthew Young
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

Account Activation Email generation and response processing: any design example?

2008-05-15 Thread Matthew Young
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

Re: Is there a setGatherAbbreviatedBrowserInfo(true) as appose to setGatherExtendedBrowserInfo(true)?

2008-05-05 Thread Matthew Young
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

Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread Matthew Young
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.

Re: Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread Matthew Young
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

Re: Can the UploadProgressBar not submit if the file field is blank?

2008-05-02 Thread Matthew Young
I solve this problem by putting an 'onclick' handler on the Submit button to check for blank input.

Is there a setGatherAbbreviatedBrowserInfo(true) as appose to setGatherExtendedBrowserInfo(true)?

2008-05-02 Thread Matthew Young
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.

Re: RTFM messages

2008-05-01 Thread Matthew Young
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

Re: How to show a bottom-of-the-page feedback panel?

2008-05-01 Thread Matthew Young
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'); } } }

How to run some javascript some # of seconds after page is loaded

2008-04-30 Thread Matthew Young
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

Re: How to run some javascript some # of seconds after page is loaded

2008-04-30 Thread Matthew Young
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

Anyone seen this Firefox bug: tabs stop working after ajax update

2008-04-28 Thread Matthew Young
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:

Re: Anyone seen this Firefox bug: tabs stop working after ajax update

2008-04-28 Thread Matthew Young
, 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

Is it kosher to have wicket-event.js and wicket-ajax.js contributed on every ajax update?

2008-04-27 Thread Matthew Young
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?

Re: Is it kosher to have wicket-event.js and wicket-ajax.js contributed on every ajax update?

2008-04-27 Thread Matthew Young
: 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

Re: Is it kosher to have wicket-event.js and wicket-ajax.js contributed on every ajax update?

2008-04-27 Thread Matthew Young
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

Re: Is it kosher to have wicket-event.js and wicket-ajax.js contributed on every ajax update?

2008-04-27 Thread Matthew Young
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

A question for Igor

2008-04-24 Thread Matthew Young
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

Re: A question for Igor

2008-04-24 Thread Matthew Young
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

Re: Anyway to fix this generic warning?

2008-04-24 Thread Matthew Young
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,

Re: image resource

2008-04-24 Thread Matthew Young
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;);

Re: Anyway to fix this generic warning?

2008-04-23 Thread Matthew Young
: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

Anyway to fix this generic warning?

2008-04-22 Thread Matthew Young
(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

PageableListView need to be generified?

2008-04-22 Thread Matthew Young
I'm getting warning on: new PageableListView() { @Override protected void populateItem(ListItem item) { ListItem is generic. References to generic type ListItemT should be parameterized.

Re: Why is LoadDetachableModel called twice?

2008-04-18 Thread Matthew Young
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

Re: possible html parsing bug?

2008-04-16 Thread Matthew Young
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

Re: Ajax postcall handler does not get called every time

2008-04-13 Thread Matthew Young
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

Re: Ajax postcall handler does not get called every time

2008-04-12 Thread Matthew Young
Where is the attachment?

How to get wicket-SNAPSHOT?

2008-04-10 Thread Matthew Young
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:

Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Matthew Young
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

Re: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-10 Thread Matthew Young
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

Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-04-08 Thread Matthew Young
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)

Re: Page loads too slow

2008-04-08 Thread Matthew Young
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

Problem: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-07 Thread Matthew Young
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 =

Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-07 Thread Matthew Young
Any reply?

Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-07 Thread Matthew Young
getNumberFormat(Locale)? Pretty easy. On Mon, Apr 7, 2008 at 7:02 PM, Matthew Young [EMAIL PROTECTED] wrote: Any reply? -- Nick Heudecker

Re: DoubleConverter broken for locale vi (vietnamese)

2008-04-05 Thread Matthew Young
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 +

Re: FeedbackPanel ul has no class

2008-04-05 Thread Matthew Young
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

Re: FeedbackPanel ul has no class

2008-04-05 Thread Matthew Young
, 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

Re: DataPicker problem

2008-04-04 Thread Matthew Young
If you use Maven, just add the dependency: dependency groupIdorg.apache.wicket/groupId artifactIdwicket-extensions/artifactId version${wicket.version}/version /dependency dependency

Re: Changing Wickets default styles

2008-04-01 Thread Matthew Young
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

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-31 Thread Matthew Young
, 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

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-31 Thread Matthew Young
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

Possible to modify a decedent html tag attr of a component without the tag being a child component?

2008-03-30 Thread Matthew Young
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?

Re: Possible to modify a decedent html tag attr of a component without the tag being a child component?

2008-03-30 Thread Matthew Young
(...) { 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

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-30 Thread Matthew Young
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

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-30 Thread Matthew Young
: 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

Re: Fileupload?

2008-03-29 Thread Matthew Young
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.

Re: Page-dependent timeout values for session

2008-03-29 Thread Matthew Young
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

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Matthew Young
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

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Matthew Young
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

Any example of how to use PageableListView and PagingNavigation, PagingNavigator?

2008-03-27 Thread Matthew Young
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.

How to make form/link response jump to an anchor in the page, not the top of page?

2008-03-26 Thread Matthew Young
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?

Re: How to make form/link response jump to an anchor in the page, not the top of page?

2008-03-26 Thread Matthew Young
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

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-25 Thread Matthew Young
Done: https://issues.apache.org/jira/browse/WICKET-1450

How to Ajax refresh captcha image (a image backed by DynamicImageResource)?

2008-03-25 Thread Matthew Young
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

Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Matthew Young
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 =

Re: Funky issue with double quotes (when copied from WIA ebook)

2008-03-24 Thread Matthew Young
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

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Matthew Young
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

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Matthew Young
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

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-21 Thread Matthew Young
; } } 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

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-20 Thread Matthew Young
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

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
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.

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
? 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

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
, 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

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-20 Thread Matthew Young
, 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

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread Matthew Young
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 {

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-19 Thread Matthew Young
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

wicket:component does not work with HeaderContributor.forCss()?

2008-03-19 Thread Matthew Young
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

How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-19 Thread Matthew Young
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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-19 Thread Matthew Young
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,

Re: How to get error message register in IModel.getObject() to show up in FeedbackPanel?

2008-03-19 Thread Matthew Young
; 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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-19 Thread Matthew Young
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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
} }; 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

Re: My Wicket Flickr Demo a la Ruby On Rails

2008-03-18 Thread Matthew Young
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

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Matthew Young
+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

My Wicket Flickr Demo a la Ruby On Rails

2008-03-17 Thread Matthew Young
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

Re: Double submit problem

2008-03-17 Thread Matthew Young
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