Hold a reference to a Spring bean in Wicket components

2009-02-24 Thread Valentine2008
I am confused on this topic. 1. In Wicket In Action, this is a statement in 13.2.3 Using proxies instead of direct references: Be careful never to hold a reference to a Spring bean in your components. 2. However, in 13.2.5 Wicket's Spring bean annotations, a reference to a Spring bean in a

Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Valentine2008
I use a ModalWindow with Panel content as a pop-up input form with feedback panel. When an invalid input was given, the feedback panel will show the error message. However, at this time, the ModalWindow will show one vertical scrollbar and one horizonal scrollbar. And the content panel will show

Re: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Valentine2008
I tried different values for overflow in the page window, the modal window's appearance is the same. (for example, when I change the page window HTML to contain div wicket:id=updateModalWindow style=overflow: hidden;/div from div wicket:id=updateModalWindow/div) Seems ModalWindow overwrites the

Re: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-23 Thread Valentine2008
I added the screenshots as PNG files. What I have in modal window: just plain HTML text; Whether you have another page in modal window (iframe) or a panel: just one panel. See the source code: -Page window which contains the modal window--- div

Re: generalized way to ignore mouse input during screen refresh?

2009-01-10 Thread Valentine2008
Yes. It is similar. But I didn't look at the source code of the ModalWindow. The idea I have put in https://issues.apache.org/jira/browse/WICKET-2017. - Valentine Daniele Dellafiore wrote: It seems like the mechanism of blur that happens to background openign the modal window. Anyway,

Re: How / where can I contribute my source code to the wicket?

2009-01-10 Thread Valentine2008
I created https://issues.apache.org/jira/browse/WICKET-2017 For this proposed new feature, I think wicket-extensions would be a best place. - Valentine Wu Jeremy Thomerson-5 wrote: Oh, and if you want to add it to wicket stuff, just ask here for commit rights by supplying your SF ID.

Re: generalized way to ignore mouse input during screen refresh?

2009-01-09 Thread Valentine2008
I created a reusable component, PanelWithAjaxBusyIndicatingMask, which extends Panel. The functions it has: It will add a transparent mask layer to the current page to prevent further UI interactivity when there are any busy Ajax activities. The mask layer will have an animation gif and a

How / where can I contribute my source code to the wicket?

2009-01-09 Thread Valentine2008
Hi, I have several reusable components that I want to contribute to the Wicket. Do you know where/how I can contribute? Thanks, Valentine -- View this message in context: http://www.nabble.com/How---where-can-I-contribute-my-source-code-to-the-wicket--tp21381608p21381608.html Sent from the

Re: Bug of Wicket when iterate the form using iterator()?

2008-11-28 Thread Valentine2008
It will bring the compilation error when trying to cast arrays in Java. So you mean it is a bug in Wicket? Timo Rantalaiho wrote: On Thu, 27 Nov 2008, Valentine2008 wrote: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.apache .wicket.Component

Re: How to get all the children of a MarkupContainer?

2008-11-28 Thread Valentine2008
:01 PM, Valentine2008 [EMAIL PROTECTED] wrote: But Component.get(pathString) will check the visibility and will return null if the child is invisible. Right? Thanks, Valentine igor.vaynberg wrote: iterator() does not check visibility. -igor On Thu, Nov 27, 2008 at 11:24 AM

Re: Bug of Wicket when iterate the form using iterator()?

2008-11-28 Thread Valentine2008
Sorry, not the compilation error but the run-time exception. Thanks, Valentine jWeekend wrote: Not quite. String[] bO = (String[])(new Object[]{yes,we,can}); compiles but fails at run time. Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Valentine2008 wrote

Re: How to get all the children of a MarkupContainer?

2008-11-28 Thread Valentine2008
Where to open a jira issue? igor.vaynberg wrote: open a jira issue and that way we can confirm. -igor On Fri, Nov 28, 2008 at 10:32 AM, Valentine2008 [EMAIL PROTECTED] wrote: Hi Igor, I find it out! The reason I couldn't get a child using a string component path is because

Re: How to get all the children of a MarkupContainer?

2008-11-28 Thread Valentine2008
Created as WICKET-1963. - Valentine Bruno Cesar Borges wrote: https://issues.apache.org/jira/browse/WICKET -Mensagem original- De: Valentine2008 [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 28 de novembro de 2008 18:12 Para: users@wicket.apache.org Assunto: Re: How

Bug of Wicket when iterate the form using iterator()?

2008-11-27 Thread Valentine2008
Hi, I wrote the following code to print out all the children of the an input form. --- Iterator iterator = getInputForm().iterator(new Comparator() { public int compare(Object o1, Object o2) {

How to get all the children of a MarkupContainer?

2008-11-27 Thread Valentine2008
Use iterator(Comparator)? Or other ways? Thanks, Valentine -- View this message in context: http://www.nabble.com/How-to-get-all-the-children-of-a-MarkupContainer--tp20723938p20723938.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: How to get all the children of a MarkupContainer?

2008-11-27 Thread Valentine2008
Can we get even the invisible children? Seems we cannot:-( igor.vaynberg wrote: iterator() -igor On Thu, Nov 27, 2008 at 10:42 AM, Valentine2008 [EMAIL PROTECTED] wrote: Use iterator(Comparator)? Or other ways? Thanks, Valentine -- View this message in context: http

Re: Bug of Wicket when iterate the form using iterator()?

2008-11-27 Thread Valentine2008
. Several DropDownList components, some are invisible (Which are in a WebMarkupContainer to control its visibility); 8. Several ListMultipleChoice components, some are invisible (Which are in a WebMarkupContainer to control its visibility). Thanks. Valentine2008 wrote: Hi, I wrote

Re: How to get all the children of a MarkupContainer?

2008-11-27 Thread Valentine2008
But Component.get(pathString) will check the visibility and will return null if the child is invisible. Right? Thanks, Valentine igor.vaynberg wrote: iterator() does not check visibility. -igor On Thu, Nov 27, 2008 at 11:24 AM, Valentine2008 [EMAIL PROTECTED] wrote: Can we get

Re: Bug of Wicket when iterate the form using iterator()?

2008-11-27 Thread Valentine2008
the error you are getting. -igor On Thu, Nov 27, 2008 at 11:22 AM, Valentine2008 [EMAIL PROTECTED] wrote: The getInputForm() will return an instance of Form class in Wicket. After creating the form, --- // 3. create, setup, and add the input form inputForm = new