Re: localizer and variables

2009-06-30 Thread OjO
ile, using "new ResourceModel" for the Label works, is there a way to get the title String (to add with SimpleAttributeModifier) without generating the Component#getString() WARNing ? luther.baker wrote: > > OjO, > > Ideally, strings or text that users actually see and in

Re: localizer and variables

2009-06-29 Thread OjO
lly abusing them. if > you want these things externalized then load them from an external > resource yourself. > > -igor > > On Mon, Jun 29, 2009 at 12:14 PM, OjO wrote: >> >> Here is another more complex case: >> >> LinkSelection.properties: >> edit_l

Re: improved resource bundles in 1.4

2009-06-29 Thread OjO
I wonder if it is possible to simply make "getString" work for retrieving localized string in constructor in the next patch. The code would be much cleaner without the "new ResourceModel" or "getLocalizer().getString...". igor.vaynberg wrote: > > i just committed a patch for WICKET-1103 which g

Re: localizer and variables

2009-06-29 Thread OjO
pContainer.java:1717) at org.apache.wicket.Component.onBeforeRender(Component.java:3757) igor.vaynberg wrote: > > set it in onbeforerender > > -igor > > On Fri, Jun 26, 2009 at 2:03 PM, OjO wrote: >> >> I am using the following: >> myCom.setMarkupId

Re: localizer and variables

2009-06-29 Thread OjO
t; > -igor > > On Fri, Jun 26, 2009 at 2:03 PM, OjO wrote: >> >> I am using the following: >> myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new >> Model (handleId))); >> >> but still getting WARNing: >> >> Tri

Re: localizer and variables

2009-06-26 Thread OjO
eforerender > > -igor > > On Fri, Jun 26, 2009 at 2:03 PM, OjO wrote: >> >> I am using the following: >> myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new >> Model (handleId))); >> >> but still getting WARNing: >

Re: localizer and variables

2009-06-26 Thread OjO
I am using the following: myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new Model (handleId))); but still getting WARNing: Tried to retrieve a localized string for a component that has not yet been added to the page. This can sometimes lead to an invalid or no localized re

Re: Null model with CheckGroup

2009-05-01 Thread OjO
erg wrote: > > just like with any choice component in wicket, items are checked if > they are contained in the same collection model they would be put in > on submit, so in your case if the collection that is the model object > of the checkgroup contains the same value as the che

Re: Null model with CheckGroup

2009-04-29 Thread OjO
With CheckBox, I can pass in the Boolean value. But with Check, how do I let it know the item should be displayed as checked initially? OjO wrote: > > How does the Check object determine if the checkbox should be tagged as > checked? > > > > igor.vaynberg wrote:

Re: Null model with CheckGroup

2009-04-29 Thread OjO
How does the Check object determine if the checkbox should be tagged as checked? igor.vaynberg wrote: > > in the example checkgroup inherits a property of the > compoundpropertymodel as its model. i suggest you read the models wiki > page. > > -igor > > On Fri, May 23, 2008 at 8:36 AM, seanb

Re: Set the HTML id programmatically

2009-03-17 Thread OjO
I had run into the same situation even I setOutputMarkupId(true), the setMarkupId just wouldn't work for me. What worked for me is SimpleAttributeModifier. You may try: description.add ( new SimpleAttributeModifier ("id", "myDescription")); Martin Letendre wrote: > > I am usign this version