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] wrote: > "this still doesn't exp

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
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] wrote: > 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,

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
Some Other Panel : addAjaxLink() { onClick() { setDefaultModel(new Model("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:

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 component

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: http://apache-wicket.1842946.n4.nabble.com/wicketstuff-dojo-tp

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] 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() { >   ... >   this.setDefaultModel(new ReadonlyS

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
whats the usecase? -igor On Tue, Jan 25, 2011 at 9:37 AM, Brown, Berlin [GCG-PFS] 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 version cant change th

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? Componen

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 wrote: > 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 r

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 Session

Re: Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread Jeremy Thomerson
On Tue, Jan 25, 2011 at 7:18 AM, MattyDE 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 http://wickettraining.com *Need a CM

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: 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 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 > wrote: > >> Hi, >> >> I could create a page which is rendered wit

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 wrote: > 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 com

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:                    Page1          Page2          Page3                                       Navigation Link

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 wrote: > >> >> Everyone know what i want Byte 0 = False Byte 1 = True. >> >> But unfornately "getConverter" is final in Check

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 IModel { private static final long serialVersionUID = 1L; private IModel model; public ByteBooleanModel(IModel model) { this.model = model; } /* (non-Javadoc)

Re: Use Byte vor CheckBox instead of Boolean

2011-01-25 Thread Martin Grigorov
On Tue, Jan 25, 2011 at 2:02 PM, MattyDE 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. > > Thanks

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: http://apache-wicket.1842946.n4.nabble.com/Use-Byte-vor-CheckBox-instead-of-Boolean-tp

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 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 > > -

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 command

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 wrote

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 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 wrote: > Hi all, > > i try to load a variant of my main css file (wicket 1.4.15). > > T

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: 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 */ >

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 : > Hi! > > We have a suspect for the cause of this bug. The Radio is using a > SH

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

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

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 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 > > add(CSSPac

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 add(CSSPackageResource.getHeaderContribution("/_css/main.css", "screen"));