You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vitaly Tsaplin <vi...@gmail.com> on 2008/03/14 15:10:59 UTC
A link-o-label needed
Hi experts,
Does anyone know how to create a label link in wicket? In other
words I need a clickable label or a link which acts as a label taking
its text from a model exactly like a wicket's label.
Vitaly
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by Igor Vaynberg <ig...@gmail.com>.
class textlink extends link {
//constructor from link that takes a model
protected void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag)
{
replaceComponentTagBody(markupStream, openTag, getModelObjectAsString());
}
}
obviously if you do this you can no longer have components inside that
link and any markup that is link's body will be replaced.
-igor
On Fri, Mar 14, 2008 at 7:10 AM, Vitaly Tsaplin
<vi...@gmail.com> wrote:
> Hi experts,
>
> Does anyone know how to create a label link in wicket? In other
> words I need a clickable label or a link which acts as a label taking
> its text from a model exactly like a wicket's label.
>
> Vitaly
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: A link-o-label needed
Posted by Dan Kaplan <dk...@citizenhawk.com>.
Couldn't you just do this as a panel:
<wicket:panel>
<a wicket:id="link"><span wicket:id="label">label</span></a>
</wicket:panel>
And it has this constructor: public LabelLink(String id, IModel urlModel,
IModel labelModel);
I'd certainly vote for that to be added to the repo
-----Original Message-----
From: Jonathan Locke [mailto:jonathan.locke@gmail.com]
Sent: Friday, March 14, 2008 5:26 PM
To: users@wicket.apache.org
Subject: Re: A link-o-label needed
you could do it that way. another way to do it would be to create a link
panel. you could then subclass and decorate the panel in various ways.
i do it this way so i can leverage my application with panel factories.
this can be quite powerful: i simply override a factory method or install a
new factory and all of a sudden every link on the site can have a new look
or even new behavior.
Vitaly Tsaplin wrote:
>
> Thanks James,
>
> I wrote a subclass of a wicket link to archive this, but simple
> adding a label as a child to a link seams to be a really good idea :)
>
> Vitaly
>
> On Fri, Mar 14, 2008 at 3:17 PM, James Carman
> <ja...@carmanconsulting.com> wrote:
>> Have you tried adding a label to your link? I do this with images. I
>> don't see why you wouldn't be able to do it with labels.
>>
>>
>>
>> On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
>> > Hi experts,
>> >
>> > Does anyone know how to create a label link in wicket? In other
>> > words I need a clickable label or a link which acts as a label taking
>> > its text from a model exactly like a wicket's label.
>> >
>> > Vitaly
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/A-link-o-label-needed-tp16052333p16062870.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by Jonathan Locke <jo...@gmail.com>.
unfortunately, that's not open source.
in general, the structure of your panel factory(ies) probably depends on
your application. one simple possibility is to make a factory that
associates a panel class for a given model type. then just newPanel(id,
model). so this simple case works only for POJO model panels. if you are
trying to create links from some kind of LinkModel of your own devising,
this might work. i'm sure it's possible to create something more general,
of course.
jwcarman wrote:
>
> On 3/14/08, Jonathan Locke <jo...@gmail.com> wrote:
>>
>>
>> you could do it that way. another way to do it would be to create a
>> link
>> panel. you could then subclass and decorate the panel in various ways.
>>
>> i do it this way so i can leverage my application with panel factories.
>> this can be quite powerful: i simply override a factory method or
>> install a
>> new factory and all of a sudden every link on the site can have a new
>> look
>> or even new behavior.
>>
>
> Mr. Locke,
>
> Would you mind sharing a snippet of code that would give us an (or at
> least me :) idea of what you mean?
>
> James
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/A-link-o-label-needed-tp16052333p16063017.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by James Carman <ja...@carmanconsulting.com>.
On 3/14/08, Jonathan Locke <jo...@gmail.com> wrote:
>
>
> you could do it that way. another way to do it would be to create a link
> panel. you could then subclass and decorate the panel in various ways.
>
> i do it this way so i can leverage my application with panel factories.
> this can be quite powerful: i simply override a factory method or install a
> new factory and all of a sudden every link on the site can have a new look
> or even new behavior.
>
Mr. Locke,
Would you mind sharing a snippet of code that would give us an (or at
least me :) idea of what you mean?
James
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by Jonathan Locke <jo...@gmail.com>.
you could do it that way. another way to do it would be to create a link
panel. you could then subclass and decorate the panel in various ways.
i do it this way so i can leverage my application with panel factories.
this can be quite powerful: i simply override a factory method or install a
new factory and all of a sudden every link on the site can have a new look
or even new behavior.
Vitaly Tsaplin wrote:
>
> Thanks James,
>
> I wrote a subclass of a wicket link to archive this, but simple
> adding a label as a child to a link seams to be a really good idea :)
>
> Vitaly
>
> On Fri, Mar 14, 2008 at 3:17 PM, James Carman
> <ja...@carmanconsulting.com> wrote:
>> Have you tried adding a label to your link? I do this with images. I
>> don't see why you wouldn't be able to do it with labels.
>>
>>
>>
>> On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
>> > Hi experts,
>> >
>> > Does anyone know how to create a label link in wicket? In other
>> > words I need a clickable label or a link which acts as a label taking
>> > its text from a model exactly like a wicket's label.
>> >
>> > Vitaly
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/A-link-o-label-needed-tp16052333p16062870.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: CheckGroup, CheckBox and Check
Posted by Igor Vaynberg <ig...@gmail.com>.
CheckGroup and Check work like this:
CheckGroup<T>(String id, IModel<Collection<T>> selected);
Check<T>(String id, IModel<T>)
so checkgroup has the model that holds your selection of objects of
type T, while each Check component's model contains an item of type T.
when you submit the form checkgroup's selection is cleared and
populated with instances of T from all selected Check components.
CheckBox is different. CheckBox has a model of type Boolean. if
model.getobject() returns true checkbox renders checked, if false
checkbox renders unchecked. Same for when the form is submitted: if
checked checkbox calls model.setobject(true), if not
model.setobject(false)
all of this should be explained in the javadoc...
so assuming you have
class Role{}
class User { Set<Role> getRoles(); } and you want to use CheckBox, its
model would look like this
class checkboxmodel implements imodel {
private final IModel<Role> role;
private final IModel<Collection<Role>> selection;
// constructor that takes role and selection
object getObject() {
return ((Collection<Role>)selection.getObject()).contains(role.getObject());
}
void setObject(Object object) {
boolean selected=(Boolean)object;
if (selected) {
((Collection<Role>)selection.getObject()).add(role.getObject()); }
else { ((Collection<Role>)selection.getObject()).remove(role.getObject());
}
}
void detach() {
selection.detach();
role.detach();
}
}
and used like this - assuming listview iterates over all possible roles
final IModel user=...
listview.populateItem(Item item) {
IModel role=item.getModel();
item.add(new CheckBox("role", new CheckBoxModel(user, role));
}
hope this helps get you started
-igor
On Fri, Mar 14, 2008 at 1:27 PM, Greg Dunn <Gr...@nisc.coop> wrote:
> Sorry if I'm being dense. I'm coming to Wicket from the Struts world.
> ;)
>
> The roles beans in the collection have a Boolean property 'hasRole'
> which I use to set the checkbox state. It has other properties I use to
> display the descriptions.
>
> Maybe it will be helpful for me to explain why the rolesGroup object
> gets passed on when I use Check but not when I use CheckBox.
>
> That said, I don't really need to use a CheckGroup, I did that because
> the list of roles isn't fixed, I need to get the latest set from the
> database. Would it be easier to just use a series of checkboxes and (if
> it's not too much trouble) how could I go about that?
>
> Thanks
>
> Greg
>
>
>
>
> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Sent: Friday, March 14, 2008 10:59 AM
> To: users@wicket.apache.org
> Subject: Re: CheckGroup, CheckBox and Check
>
> checkgroup's model is the selection mode, so it should be bound to
> user's assigned roles list, not the list of all available roles.
>
> -igor
>
> On Fri, Mar 14, 2008 at 7:45 AM, Greg Dunn <Gr...@nisc.coop> wrote:
> >
> > I've got a collection of beans ("roles") containing user
> authorization
> > roles that I'm using as the Model for a ListView. I'm confused by
> the
> > interaction between CheckGroups, Check's and CheckBox's. If I use
> > CheckBox my roles show up selected if the user has the role, but I
> can't
> > get the Model Object when I submit. If I use Check the roles the
> user
> > has do not show up selected, but I get the Model Object after I
> submit.
> >
> > My code for creating the CheckGroup ListView:
> >
> > rolesGroup = new CheckGroup("rolesGroup", roles);
> > add(rolesGroup);
> > ListView rolesList = new ListView("roleList", roles) {
> > protected void populateItem(ListItem item) {
> > item.add(new CheckBox("roleCheck", new
> > PropertyModel(item.getModel(), "hasRole")));
> > item.add(new Label("description", new
> > PropertyModel(item.getModel(), "description")));
> > item.add(new Label("groupId", new
>
>
> > PropertyModel(item.getModel(), "groupId")));
> > }}.setReuseItems(true);
> > rolesGroup.add(rolesList);
> > rolesGroup.add(new
> > CheckGroupSelector("rolesGroupSelector"));
> >
> >
> > And getting the model object in onSubmit():
> >
> > List userRoles = (List) rolesGroup.getModelObject();
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: CheckGroup, CheckBox and Check
Posted by Greg Dunn <Gr...@nisc.coop>.
Sorry if I'm being dense. I'm coming to Wicket from the Struts world.
;)
The roles beans in the collection have a Boolean property 'hasRole'
which I use to set the checkbox state. It has other properties I use to
display the descriptions.
Maybe it will be helpful for me to explain why the rolesGroup object
gets passed on when I use Check but not when I use CheckBox.
That said, I don't really need to use a CheckGroup, I did that because
the list of roles isn't fixed, I need to get the latest set from the
database. Would it be easier to just use a series of checkboxes and (if
it's not too much trouble) how could I go about that?
Thanks
Greg
-----Original Message-----
From: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
Sent: Friday, March 14, 2008 10:59 AM
To: users@wicket.apache.org
Subject: Re: CheckGroup, CheckBox and Check
checkgroup's model is the selection mode, so it should be bound to
user's assigned roles list, not the list of all available roles.
-igor
On Fri, Mar 14, 2008 at 7:45 AM, Greg Dunn <Gr...@nisc.coop> wrote:
>
> I've got a collection of beans ("roles") containing user
authorization
> roles that I'm using as the Model for a ListView. I'm confused by
the
> interaction between CheckGroups, Check's and CheckBox's. If I use
> CheckBox my roles show up selected if the user has the role, but I
can't
> get the Model Object when I submit. If I use Check the roles the
user
> has do not show up selected, but I get the Model Object after I
submit.
>
> My code for creating the CheckGroup ListView:
>
> rolesGroup = new CheckGroup("rolesGroup", roles);
> add(rolesGroup);
> ListView rolesList = new ListView("roleList", roles) {
> protected void populateItem(ListItem item) {
> item.add(new CheckBox("roleCheck", new
> PropertyModel(item.getModel(), "hasRole")));
> item.add(new Label("description", new
> PropertyModel(item.getModel(), "description")));
> item.add(new Label("groupId", new
> PropertyModel(item.getModel(), "groupId")));
> }}.setReuseItems(true);
> rolesGroup.add(rolesList);
> rolesGroup.add(new
> CheckGroupSelector("rolesGroupSelector"));
>
>
> And getting the model object in onSubmit():
>
> List userRoles = (List) rolesGroup.getModelObject();
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: CheckGroup, CheckBox and Check
Posted by Igor Vaynberg <ig...@gmail.com>.
checkgroup's model is the selection mode, so it should be bound to
user's assigned roles list, not the list of all available roles.
-igor
On Fri, Mar 14, 2008 at 7:45 AM, Greg Dunn <Gr...@nisc.coop> wrote:
>
> I've got a collection of beans ("roles") containing user authorization
> roles that I'm using as the Model for a ListView. I'm confused by the
> interaction between CheckGroups, Check's and CheckBox's. If I use
> CheckBox my roles show up selected if the user has the role, but I can't
> get the Model Object when I submit. If I use Check the roles the user
> has do not show up selected, but I get the Model Object after I submit.
>
> My code for creating the CheckGroup ListView:
>
> rolesGroup = new CheckGroup("rolesGroup", roles);
> add(rolesGroup);
> ListView rolesList = new ListView("roleList", roles) {
> protected void populateItem(ListItem item) {
> item.add(new CheckBox("roleCheck", new
> PropertyModel(item.getModel(), "hasRole")));
> item.add(new Label("gwGrpDesc", new
> PropertyModel(item.getModel(), "Description")));
> item.add(new Label("gwGrpId", new
> PropertyModel(item.getModel(), "GroupId")));
> }}.setReuseItems(true);
> rolesGroup.add(rolesList);
> rolesGroup.add(new
> CheckGroupSelector("rolesGroupSelector"));
>
>
> And getting the model object in onSubmit():
>
> List userRoles = (List) rolesGroup.getModelObject();
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
CheckGroup, CheckBox and Check
Posted by Greg Dunn <Gr...@nisc.coop>.
I've got a collection of beans ("roles") containing user authorization
roles that I'm using as the Model for a ListView. I'm confused by the
interaction between CheckGroups, Check's and CheckBox's. If I use
CheckBox my roles show up selected if the user has the role, but I can't
get the Model Object when I submit. If I use Check the roles the user
has do not show up selected, but I get the Model Object after I submit.
My code for creating the CheckGroup ListView:
rolesGroup = new CheckGroup("rolesGroup", roles);
add(rolesGroup);
ListView rolesList = new ListView("roleList", roles) {
protected void populateItem(ListItem item) {
item.add(new CheckBox("roleCheck", new
PropertyModel(item.getModel(), "hasRole")));
item.add(new Label("gwGrpDesc", new
PropertyModel(item.getModel(), "Description")));
item.add(new Label("gwGrpId", new
PropertyModel(item.getModel(), "GroupId")));
}}.setReuseItems(true);
rolesGroup.add(rolesList);
rolesGroup.add(new
CheckGroupSelector("rolesGroupSelector"));
And getting the model object in onSubmit():
List userRoles = (List) rolesGroup.getModelObject();
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by James Carman <ja...@carmanconsulting.com>.
On 3/14/08, Thomas Kappler <tk...@googlemail.com> wrote:
> On Fri, Mar 14, 2008 at 3:26 PM, James Carman
> <ja...@carmanconsulting.com> wrote:
> > Yeah, the output would be something like:
> >
> > <a href="..." wicket:id="myLink"><span wicket:id="myLinkLabel" /></a>
> >
> > off the top of my head. You might want to tell the "label" to just
> > render its body, also.
>
>
> What do you mean with the last sentence? I add labels to links all
> the time and it works fine.
I didn't say you have to do it that way, I said they might want to.
Alternatively, you could use:
<a href="..." wicket:id="myLink"><wicket:message
key="myLinklabel">Default label</wicket:message></a>
if you're just spitting out a message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by Thomas Kappler <tk...@googlemail.com>.
On Fri, Mar 14, 2008 at 3:26 PM, James Carman
<ja...@carmanconsulting.com> wrote:
> Yeah, the output would be something like:
>
> <a href="..." wicket:id="myLink"><span wicket:id="myLinkLabel" /></a>
>
> off the top of my head. You might want to tell the "label" to just
> render its body, also.
What do you mean with the last sentence? I add labels to links all
the time and it works fine.
Best,
Thomas
> On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
> > Thanks James,
> >
> > I wrote a subclass of a wicket link to archive this, but simple
> > adding a label as a child to a link seams to be a really good idea :)
> >
> >
> > Vitaly
> >
> >
> > On Fri, Mar 14, 2008 at 3:17 PM, James Carman
> > <ja...@carmanconsulting.com> wrote:
> > > Have you tried adding a label to your link? I do this with images. I
> > > don't see why you wouldn't be able to do it with labels.
> > >
> > >
> > >
> > > On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
> > > > Hi experts,
> > > >
> > > > Does anyone know how to create a label link in wicket? In other
> > > > words I need a clickable label or a link which acts as a label taking
> > > > its text from a model exactly like a wicket's label.
> > > >
> > > > Vitaly
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by James Carman <ja...@carmanconsulting.com>.
Yeah, the output would be something like:
<a href="..." wicket:id="myLink"><span wicket:id="myLinkLabel" /></a>
off the top of my head. You might want to tell the "label" to just
render its body, also.
On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
> Thanks James,
>
> I wrote a subclass of a wicket link to archive this, but simple
> adding a label as a child to a link seams to be a really good idea :)
>
>
> Vitaly
>
>
> On Fri, Mar 14, 2008 at 3:17 PM, James Carman
> <ja...@carmanconsulting.com> wrote:
> > Have you tried adding a label to your link? I do this with images. I
> > don't see why you wouldn't be able to do it with labels.
> >
> >
> >
> > On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
> > > Hi experts,
> > >
> > > Does anyone know how to create a label link in wicket? In other
> > > words I need a clickable label or a link which acts as a label taking
> > > its text from a model exactly like a wicket's label.
> > >
> > > Vitaly
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by Vitaly Tsaplin <vi...@gmail.com>.
Thanks James,
I wrote a subclass of a wicket link to archive this, but simple
adding a label as a child to a link seams to be a really good idea :)
Vitaly
On Fri, Mar 14, 2008 at 3:17 PM, James Carman
<ja...@carmanconsulting.com> wrote:
> Have you tried adding a label to your link? I do this with images. I
> don't see why you wouldn't be able to do it with labels.
>
>
>
> On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
> > Hi experts,
> >
> > Does anyone know how to create a label link in wicket? In other
> > words I need a clickable label or a link which acts as a label taking
> > its text from a model exactly like a wicket's label.
> >
> > Vitaly
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: A link-o-label needed
Posted by James Carman <ja...@carmanconsulting.com>.
Have you tried adding a label to your link? I do this with images. I
don't see why you wouldn't be able to do it with labels.
On 3/14/08, Vitaly Tsaplin <vi...@gmail.com> wrote:
> Hi experts,
>
> Does anyone know how to create a label link in wicket? In other
> words I need a clickable label or a link which acts as a label taking
> its text from a model exactly like a wicket's label.
>
> Vitaly
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org