You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Cassio <zi...@gmail.com> on 2009/07/24 14:53:01 UTC

Disabled Auto link bookmarkable page

Hello everybody!

Does anyone know for what reason an disabled auto link gets nested inside a
span tag?
It's messing the page layout...

Thanks...

Cássio Landim Ribeiro

Re: Disabled Auto link bookmarkable page

Posted by Pres <st...@laposte.net>.
Hum sorry the  tag.setName("span") allow to add class=\"...\".

But it has to be done for each link in code.
It will be bettet to have a global solution that is more "css standard"
(experienced by lot of web developement in many language and platform).

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabled-Auto-link-bookmarkable-page-tp1888129p4649503.html
Sent from the Users forum 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: Disabled Auto link bookmarkable page

Posted by Pres <st...@laposte.net>.
Hi all.

I think there is a conceptual problem with setDefaultBeforeDisabledLink, and
setDefaultAfterDisabledLink.

For a pretty css button for example, an enabled link looks like this :
Validate 

And a disabled link looks like this :
Validate 

With setDefaultBeforeDisabledLink and setDefaultAfterDisabledLink, link
looks like this :
setDefaultBeforeDisabledLink("");
setDefaultAfterDisabledLink("");

Validate

Right. Two problems I see :
- the tag are added INTO the replacement tag. It's not before and after.
- it's not easy to theme with css.

With css we can do :
.lk {background:url('image-of-left') top left}
.lk span {background:url('image-of-right') top right}

But we can't change the left part of the button when inactive (with browser
that doesn't support css >1).
.lk {background:url('image-of-left') top left} // here is the problem, how
to remove background image ?
.lk  span.inactive {background:url('image-of-left') top right}
.lk span.inactive span {background:url('image-of-right-inactive') top right}

I think it has been better to put the before and after tag REALLY before and
after the inactive link tag.

And then a better solution will consist of a set of function
setDefaultClassEnabledLink and setDefaultClassDisabledLink.
I have try to make my own component. But it's not easy because lots of
things refer to Links of wicket, and i can't remake all the framework.

The tag.setName("span") solution doesn't offer class modification...





--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabled-Auto-link-bookmarkable-page-tp1888129p4649502.html
Sent from the Users forum 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: Disabled Auto link bookmarkable page

Posted by Cassio <zi...@gmail.com>.
Ok, Thanks!

2009/7/27 Iain Reddick <ia...@beatsystems.com>

> I guess the view is that using a span gives "safe" markup in any situation.
>
> The disableLink() method can be overriden it if you need cleaner markup in
> a particular situation.
>
>
> Cassio wrote:
>
>> But it would change only the "<em>" and "</em>" default markups and not
>> the
>> <span> that replace the <a> tag at
>> org.apache.wicket.markup.html.link.AbstractLink.disableLink(final
>> ComponentTag tag) method.
>>
>> code:
>>
>>            // Change anchor link to span tag
>>            tag.setName("span");
>>
>>
>>
>> 2009/7/24 Iain Reddick <ia...@beatsystems.com>
>>
>>
>>
>>> The wrapping markup used can be set via methods in AbstractLink:
>>>
>>> setAfterDisabledLink()
>>> setBeforeDisabledLink()
>>>
>>> or, you can set a default at application level:
>>>
>>> setDefaultAfterDisabledLink()
>>> setDefaultBeforeDisabledLink()
>>>
>>>
>>>
>>> Cassio wrote:
>>>
>>>
>>>
>>>> Hello everybody!
>>>>
>>>> Does anyone know for what reason an disabled auto link gets nested
>>>> inside
>>>> a
>>>> span tag?
>>>> It's messing the page layout...
>>>>
>>>> Thanks...
>>>>
>>>> Cássio Landim Ribeiro
>>>>
>>>>
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> 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: Disabled Auto link bookmarkable page

Posted by Iain Reddick <ia...@beatsystems.com>.
I guess the view is that using a span gives "safe" markup in any situation.

The disableLink() method can be overriden it if you need cleaner markup 
in a particular situation.

Cassio wrote:
> But it would change only the "<em>" and "</em>" default markups and not the
> <span> that replace the <a> tag at
> org.apache.wicket.markup.html.link.AbstractLink.disableLink(final
> ComponentTag tag) method.
>
> code:
>
>             // Change anchor link to span tag
>             tag.setName("span");
>
>
>
> 2009/7/24 Iain Reddick <ia...@beatsystems.com>
>
>   
>> The wrapping markup used can be set via methods in AbstractLink:
>>
>> setAfterDisabledLink()
>> setBeforeDisabledLink()
>>
>> or, you can set a default at application level:
>>
>> setDefaultAfterDisabledLink()
>> setDefaultBeforeDisabledLink()
>>
>>
>>
>> Cassio wrote:
>>
>>     
>>> Hello everybody!
>>>
>>> Does anyone know for what reason an disabled auto link gets nested inside
>>> a
>>> span tag?
>>> It's messing the page layout...
>>>
>>> Thanks...
>>>
>>> Cássio Landim Ribeiro
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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: Disabled Auto link bookmarkable page

Posted by Cassio <zi...@gmail.com>.
But it would change only the "<em>" and "</em>" default markups and not the
<span> that replace the <a> tag at
org.apache.wicket.markup.html.link.AbstractLink.disableLink(final
ComponentTag tag) method.

code:

            // Change anchor link to span tag
            tag.setName("span");



2009/7/24 Iain Reddick <ia...@beatsystems.com>

> The wrapping markup used can be set via methods in AbstractLink:
>
> setAfterDisabledLink()
> setBeforeDisabledLink()
>
> or, you can set a default at application level:
>
> setDefaultAfterDisabledLink()
> setDefaultBeforeDisabledLink()
>
>
>
> Cassio wrote:
>
>> Hello everybody!
>>
>> Does anyone know for what reason an disabled auto link gets nested inside
>> a
>> span tag?
>> It's messing the page layout...
>>
>> Thanks...
>>
>> Cássio Landim Ribeiro
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Disabled Auto link bookmarkable page

Posted by Iain Reddick <ia...@beatsystems.com>.
The wrapping markup used can be set via methods in AbstractLink:

setAfterDisabledLink()
setBeforeDisabledLink()

or, you can set a default at application level:

setDefaultAfterDisabledLink()
setDefaultBeforeDisabledLink()


Cassio wrote:
> Hello everybody!
>
> Does anyone know for what reason an disabled auto link gets nested inside a
> span tag?
> It's messing the page layout...
>
> Thanks...
>
> Cássio Landim Ribeiro
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Wicket Bench website has been down for a few days

Posted by David Chang <da...@yahoo.com>.
http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench

Does anybody know why? I hope to use this Eclipse plugin.

Thanks.


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org