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
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
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
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
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
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:
>
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
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
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:
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
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
11 matches
Mail list logo