Re: Question on component hierarchy

2008-04-09 Thread Eric Rotick
:57 AM, John Patterson [EMAIL PROTECTED] wrote: You would also need to setVisible(false) on the WMC or wicket would throw an exception at the missing child components. I use a simple class InvisibleComponent for this. Eric Rotick wrote: One more thing that was suggested in class

Question on component hierarchy

2008-04-08 Thread Eric Rotick
I thought I understood the component hierarchy but then I started to tell the guys about it and now I'm not so sure. If the markup defines a hierarchy as A contains B contains C, in effect, this means that C is added to B which is added to A. If we expand B to be more complex we can use maybe a

Re: Question on component hierarchy

2008-04-08 Thread Eric Rotick
. as for variable component hierarchy inside the repeater itself, you are correct: you have to either use a panel or a fragment. -igor On Tue, Apr 8, 2008 at 9:37 AM, Eric Rotick [EMAIL PROTECTED] wrote: I thought I understood the component hierarchy but then I started to tell the guys about

Re: Question on component hierarchy

2008-04-08 Thread Eric Rotick
wicket:id=image/ /span /wicket:panel and if the image was not needed it could be no-op'ed out by defining a WebMarkupContainer but with no children. On Tue, Apr 8, 2008 at 6:53 PM, Eric Rotick [EMAIL PROTECTED] wrote: Many thanks for the clarification. As I am about to start teaching the rudiments

Re: DateTextField and DatePicker are not using the same date pattern

2008-04-02 Thread Eric Rotick
Javascript event handler. I've not yet figured out how this works yet. Has anyone used the DatePicker in this way to confirm that it does or does not work as expected? On Fri, Mar 28, 2008 at 1:18 PM, Eric Rotick [EMAIL PROTECTED] wrote: I have a situation where the DateTextField and DatePicker

Re: TextField returning a null

2008-03-31 Thread Eric Rotick
am still not really happy with this but for 1.3/1.4 this is the way it works And i guess the String converter that does String to String doesnt óok at that convert empty input to null value at all Do you have your own? johan On Mon, Mar 31, 2008 at 1:38 PM, Eric Rotick

Dynamic creation of CSS

2008-03-29 Thread Eric Rotick
I have a requirement to allow users to change such things as colour, font etc. for certain markup. Currently this is all 'wrapped' by CSS ids/classes but the use of varying ids/classes seems wrong. The use case if for engineers viewing data from sensors. Some engineers require values below a

Re: Dynamic creation of CSS

2008-03-29 Thread Eric Rotick
events (I stole the idea from the datepicker).. regards Nino Eric Rotick wrote: I have a requirement to allow users to change such things as colour, font etc. for certain markup. Currently this is all 'wrapped' by CSS ids/classes but the use of varying ids/classes seems wrong. The use

Re: Dynamic creation of CSS

2008-03-29 Thread Eric Rotick
are inside your map... Ask if you have questions..:) regards Nino Eric Rotick wrote: Where can I find out more about this approach? On Sat, Mar 29, 2008 at 2:07 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: if you need to do it dynamicly, you could just use

Re: Dynamic creation of CSS

2008-03-29 Thread Eric Rotick
. However you could cache this, it totally up to you.. regards Nin Eric Rotick wrote: Now I see. I had not discovered these classes! I was hoping to avoid embedding the CSS within the HTML as this does not benefit from the size reduction that CSS separation gives. However, you've

TextField returning a null

2008-03-27 Thread Eric Rotick
I've just realised that the database is getting filled with columns of empty strings which then don't cause the 'not null' test to trip. The culprit is the TextField returning an empty string rather than a null. I can see there are some special considerations for returning a null and I want to

Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
I have a page with many buttons to do different things. I decided the best strategy was to setup the default page via a call to setReponsePage at the start of the page and then overrride this in the onSubmit method for each button. This appears not to work. However, if I set a value of the

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
); } } } ); add( form ); } } On Tue, Mar 25, 2008 at 11:32 AM, Johan Compagner [EMAIL PROTECTED] wrote: do you have some sample code?? what do you mean with setResponsePage outside of an onSubmit or click? outside of what? when is it called? On Tue, Mar 25, 2008 at 12:22 PM, Eric

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
, 2008 at 1:08 PM, Eric Rotick [EMAIL PROTECTED] wrote: I have simplified the class and it behaves the same. public class SingleItemForm extends Panel { public SingleItemForm( String id, final boolean readonly, final ISingleDisplay display, final

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
, 2008 at 1:42 PM, Eric Rotick [EMAIL PROTECTED] wrote: Thanks for the help, I'm getting there...slowly! Does this mean that I can't do something like new MyPage1( ).setResponsePage( new MyPage2( ) ); and then somewhere else new MyPage1( ).setResponsePage( new MyPage3

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
Good point. On Tue, Mar 25, 2008 at 2:01 PM, Maurice Marrink [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 1:42 PM, Eric Rotick [EMAIL PROTECTED] wrote: Thanks for the help, I'm getting there...slowly! Does this mean that I can't do something like new MyPage1( ).setResponsePage

Adding dynamic form components to forms

2008-03-19 Thread Eric Rotick
I would like to be able to create a form where the number and type of form component is decided at run time. I've done the research and found various guides, e.g http://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html but I've not managed to crack it yet. I've created some panels for the