Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
Hi all, i try to load a variant of my main css file (wicket 1.4.15). The file is located in a webapp-subfolder (src/main/webapp/_css). So i set the style of session to branda. In the page i load the css like this code add(CSSPackageResource.getHeaderContribution(/_css/main.css, screen));

Re: Why is my css variant not used in markup?

2011-01-25 Thread Jeremy Thomerson
On Tue, Jan 25, 2011 at 2:02 AM, Mike Mander wicket-m...@gmx.de wrote: Hi all, i try to load a variant of my main css file (wicket 1.4.15). The file is located in a webapp-subfolder (src/main/webapp/_css). So i set the style of session to branda. In the page i load the css like this code

Re: Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
With code add(CSSPackageResource.getHeaderContribution(new ResourceReference(_css/cust.css), screen)); /code i get code resources/org.apache.wicket.Application/_css/cust.css /code But this file is not existing and layout is demaged :-(. Thanks Mike

Re: RadioGroup bug?

2011-01-25 Thread Martin Makundi
Hi! I suspect also bug with Page class. Sometimes our page stalls when user stays long time on page. /** Used to create page-unique numbers */ private short autoIndex; ** Martin 2010/11/15 Martin Makundi martin.maku...@koodaripalvelut.com: Hi! We have a suspect for the cause of

Re: RadioGroup bug?

2011-01-25 Thread Martin Grigorov
This is fixed in later Wicket 1.4.x and 1.5.x On Tue, Jan 25, 2011 at 9:34 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! I suspect also bug with Page class. Sometimes our page stalls when user stays long time on page. /** Used to create page-unique numbers */

forms with Flair/shinyforms project?

2011-01-25 Thread nino martinez wael
Has no one made a wicketstuff of Alistars forms with flair project or something similar? -Nino

Re: Why is my css variant not used in markup?

2011-01-25 Thread Matthias Gasser
Hello, First you talk of branda, then brenda. Maybe a shot in the dark, but recheck your spelling and watch out for case sensitivity. Brgds, Matthias -- iPhone Mail On 25.01.2011, at 09:02, Mike Mander wicket-m...@gmx.de wrote: Hi all, i try to load a variant of my main css file (wicket

Re: Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
Hi Mathias, it would be great if it would be that easy. But it isn't. It was my fault. The spelling i've already checked (before complaining here :-) I really look for branda (Take brenda as alias :-). And it isn't working :-( Thanks anyway Mike

Re: Why is my css variant not used in markup?

2011-01-25 Thread Martin Grigorov
I am not sure this is supported. Only component resources are checked for locale/style/variation. See ContextImage, ContextPathGenerator and ContextRelativeResource classes and try to make it working but after brief look I think it wont work. On Tue, Jan 25, 2011 at 10:52 AM, Mike Mander

Re: Why is my css variant not used in markup?

2011-01-25 Thread Mike Mander
Thanks Martin. That would explain, why it's not working. So i will do it manually. What do you thing - is it making sense to open an RFE? Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Why is my css variant not used in markup?

2011-01-25 Thread Martin Grigorov
On Tue, Jan 25, 2011 at 11:18 AM, Mike Mander wicket-m...@gmx.de wrote: Thanks Martin. That would explain, why it's not working. So i will do it manually. What do you thing - is it making sense to open an RFE? Please do. With quickstart application. With patch is even better. Mike

Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread MattyDE
Everyone know what i want Byte 0 = False Byte 1 = True. But unfornately getConverter is final in CheckBox so i cant place my own converter there. Any ideas? Thanks :) -- View this message in context:

Re: Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread Martin Grigorov
On Tue, Jan 25, 2011 at 2:02 PM, MattyDE ufer.mar...@gmail.com wrote: Everyone know what i want Byte 0 = False Byte 1 = True. But unfornately getConverter is final in CheckBox so i cant place my own converter there. Any ideas? Copy CheckBox to MyCheckBox and hack it however you want.

Re: Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread Ernesto Reinaldo Barreiro
Can´t you just use a nested model like public class ByteBooleanModel implements IModelBoolean { private static final long serialVersionUID = 1L; private IModelByte model; public ByteBooleanModel(IModelByte model) { this.model = model; }

Re: Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread MattyDE
Thanks for the fast reply. I thought about this also, but ... its not the wicket-way right? Martin Grigorov-4 wrote: On Tue, Jan 25, 2011 at 2:02 PM, MattyDE ufer.mar...@gmail.com wrote: Everyone know what i want Byte 0 = False Byte 1 = True. But unfornately getConverter is final

cannot add component to Border

2011-01-25 Thread Christian Grobmeier
Hi, I could create a page which is rendered with in a border. But when I am following the Navomatic-example I failed when I added a component to the border itself. In my NavBorder.html:  wicket:border        wicket:link          a href=Page1.htmlPage1/abr/          a href=Page2.htmlPage2/abr/    

Re: cannot add component to Border

2011-01-25 Thread Martin Grigorov
I guess this is Wicket 1.5 Check the migration page. There is an entry for Border.addToBody() On Tue, Jan 25, 2011 at 2:39 PM, Christian Grobmeier grobme...@gmail.comwrote: Hi, I could create a page which is rendered with in a border. But when I am following the Navomatic-example I failed

Re: cannot add component to Border

2011-01-25 Thread Christian Grobmeier
thanks it worked! On Tue, Jan 25, 2011 at 2:46 PM, Martin Grigorov mgrigo...@apache.org wrote: I guess this is Wicket 1.5 Check the migration page. There is an entry for Border.addToBody() On Tue, Jan 25, 2011 at 2:39 PM, Christian Grobmeier grobme...@gmail.comwrote: Hi, I could create

Re: wicket examples very slow

2011-01-25 Thread kondwani
Any luck in resolving this problem? I'm unable to even look at the Source Code. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-examples-very-slow-tp3234627p3236027.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread Jeremy Thomerson
On Tue, Jan 25, 2011 at 7:18 AM, MattyDE ufer.mar...@gmail.com wrote: its not the wicket-way right? It's *a* wicket way. I'd say it's better than Martin's suggestion of copy-and-paste code. But, at the end of the day, it's up to your style preference. -- Jeremy Thomerson

How to remove all previous pages from pagemap

2011-01-25 Thread Matthias Keller
Hi List We've got the following scenario: After a user hopped through a wizard, he'll reach a confirmation page in our workflow. Now the session still needs to remain active but I want to prohibit going back into the wizard and resend it again. I experimented with Session.clear() and

Re: How to remove all previous pages from pagemap

2011-01-25 Thread Jeremy Thomerson
On Tue, Jan 25, 2011 at 11:14 AM, Matthias Keller matthias.kel...@ergon.chwrote: Hi List We've got the following scenario: After a user hopped through a wizard, he'll reach a confirmation page in our workflow. Now the session still needs to remain active but I want to prohibit going back

Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
I tried to do the following below but I got an error could not update component hierarchy. WicketMessage: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) Is there an event method (like onAfterRender) that I could use without error?

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
whats the usecase? -igor On Tue, Jan 25, 2011 at 9:37 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I tried to do the following below but I got an error could not update component hierarchy. WicketMessage: Cannot modify component hierarchy after render phase has started (page

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
If we can update the model object and changes its value without problem. Shouldn't we also be able to assign a new model? onBeforeRender() {  ...  this.setDefaultModel(new ReadonlyStaticModel(state1)); } onAfterRender() { this.setDefaultModel(new ReadonlyStaticModel(state2-reset));   }

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
you didnt answer my question -igor On Tue, Jan 25, 2011 at 9:58 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: If we can update the model object and changes its value without problem. Shouldn't we also be able to assign a new model?  onBeforeRender() {   ...   

wicketstuff-dojo

2011-01-25 Thread fachhoch
I am trying to use wicketstuyff.dojo , I saw the version available is 1.3 and it does not work with wicket 1.4.12 , please tell me if there is any wicketstuff-dojo compatible with wicket 1.4.12 ? -- View this message in context:

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
Here is a use-case for my request below: Let's say I am implementing a traffic stop light Wicket component. There are only two states, on and off. The default state is off but I can manually change the state to on. (E.g. some component like a link outside of the traffic light wicket

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
Some Other Panel : addAjaxLink() { onClick() { setDefaultModel(new ModelString(EnabledLight)); target.addComponent(trafficLight); } } -Original Message- From: Brown, Berlin [GCG-PFS] Sent: Tuesday, January 25, 2011 2:19 PM To: 'users@wicket.apache.org' Subject:

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
this still doesnt explain the need to switch it to disabled in onafterrender... -igor On Tue, Jan 25, 2011 at 11:19 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Here is a use-case for my request below: Let's say I am implementing a traffic stop light Wicket component.  There

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
this still doesn't explain the need to switch it to disabled in onafterrender... Because in my traffic light scenario, I want to return to the original state/value after the component has been rendered. If it were a traffic light, I guess once it turns red, it has to return to disabled. Is

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
not if your change of the flag results in change to the page version. try setversioned(false) on your component, if that doesnt help then store your state outside a model in a field or in metadata. -igor On Tue, Jan 25, 2011 at 11:41 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com