You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dukehoops <ni...@doppelganger.com> on 2008/08/06 00:20:28 UTC
why does ExternalLink generate instead of a simple
This code:
ExternalLink profileLink = new ExternalLink(componentId,
profileURL, dto.getUserName());
profileLink.setPopupSettings(new PopupSettings());
Produces this markup:
NOTE: '<,>' replaced with '[,]'
[span onclick="var w =
window.open('http://localhost:8080/app/profile/user/TESTHETJNFCB/', '',
'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no');
if(w.blur) w.focus(); return false;">TESTHETJNFCB</span]
Javadocs for 1.3.4. say ExternalLink produces a regular [a href=...] That is
what I want. What should I change in my code to get an ?
thanks
-nikita
-----
----------------
Nikita Tovstoles
vside.com
----------------
--
View this message in context: http://www.nabble.com/why-does-ExternalLink-generate-%3Cspan%3E-instead-of-a-simple-%3Ca%3E-tp18841070p18841070.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: why does ExternalLink generate instead of a simple
Posted by Ladislav Thon <la...@gmail.com>.
> I see, but in this case I didn't provide any markup. ExternalLink is being
> added in a PropertyColumn.populateItem method to a (cell) Item of
> PropertyColumn of a DataTable.
So see the markup of DataTable -- you are gonna see those spans there :-) As
Igor said, the easiest way is to use a Fragment (or Panel, as you wish).
LT
Re: why does ExternalLink generate instead of a simple
Posted by dukehoops <ni...@doppelganger.com>.
igor.vaynberg wrote:
>
> you can add the link to a fragment, and then add the fragment to the
> column.
>
I did the above and it worked like a charm. Thanks and -again - nice job on
the framework!
-----
----------------
Nikita Tovstoles
vside.com
----------------
--
View this message in context: http://www.nabble.com/why-does-ExternalLink-generate-%3Cspan%3E-instead-of-a-simple-%3Ca%3E-tp18841070p18865401.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: why does ExternalLink generate instead of a simple
Posted by Igor Vaynberg <ig...@gmail.com>.
you can add the link to a fragment, and then add the fragment to the column.
eg
[wicket:fragment wicket:id="frag"][a wicket:id="link"]link[/a][/wicket:fragment]
there is an example of this in wicket-phonebook example in wicket-stuff
-igor
On Tue, Aug 5, 2008 at 3:31 PM, dukehoops <ni...@doppelganger.com> wrote:
>
> I see, but in this case I didn't provide any markup. ExternalLink is being
> added in a PropertyColumn.populateItem method to a (cell) Item of
> PropertyColumn of a DataTable. The markup is solely this:
>
> [table wicket:id="filter-data" cellspacing="0"
> cellpadding="2" class="grid">
> </table]
>
> Where would this markup go? Do I then also need to add [td] elements (for
> PropertyColumns) and then place the [a] tag in question inside a particular
> [td]?
>
> thanks
> -nikita
>
>
>
>
> igor.vaynberg wrote:
>>
>> you need to do [a wicket:id="link"] rather then [span wicket:id="link"]
>>
>> wicket does not mutate your markup
>>
>>
>
>
> -----
> ----------------
> Nikita Tovstoles
> vside.com
> ----------------
>
> --
> View this message in context: http://www.nabble.com/why-does-ExternalLink-generate-%3Cspan%3E-instead-of-a-simple-%3Ca%3E-tp18841070p18841190.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: why does ExternalLink generate instead of a simple
Posted by dukehoops <ni...@doppelganger.com>.
I see, but in this case I didn't provide any markup. ExternalLink is being
added in a PropertyColumn.populateItem method to a (cell) Item of
PropertyColumn of a DataTable. The markup is solely this:
[table wicket:id="filter-data" cellspacing="0"
cellpadding="2" class="grid">
</table]
Where would this markup go? Do I then also need to add [td] elements (for
PropertyColumns) and then place the [a] tag in question inside a particular
[td]?
thanks
-nikita
igor.vaynberg wrote:
>
> you need to do [a wicket:id="link"] rather then [span wicket:id="link"]
>
> wicket does not mutate your markup
>
>
-----
----------------
Nikita Tovstoles
vside.com
----------------
--
View this message in context: http://www.nabble.com/why-does-ExternalLink-generate-%3Cspan%3E-instead-of-a-simple-%3Ca%3E-tp18841070p18841190.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: why does ExternalLink generate instead of a simple
Posted by Igor Vaynberg <ig...@gmail.com>.
you need to do [a wicket:id="link"] rather then [span wicket:id="link"]
wicket does not mutate your markup
-igor
On Tue, Aug 5, 2008 at 3:20 PM, dukehoops <ni...@doppelganger.com> wrote:
>
> This code:
> ExternalLink profileLink = new ExternalLink(componentId,
> profileURL, dto.getUserName());
> profileLink.setPopupSettings(new PopupSettings());
>
> Produces this markup:
> NOTE: '<,>' replaced with '[,]'
>
> [span onclick="var w =
> window.open('http://localhost:8080/app/profile/user/TESTHETJNFCB/', '',
> 'scrollbars=no,location=no,menuBar=no,resizable=no,status=no,toolbar=no');
> if(w.blur) w.focus(); return false;">TESTHETJNFCB</span]
>
> Javadocs for 1.3.4. say ExternalLink produces a regular [a href=...] That is
> what I want. What should I change in my code to get an ?
>
> thanks
> -nikita
>
> -----
> ----------------
> Nikita Tovstoles
> vside.com
> ----------------
>
> --
> View this message in context: http://www.nabble.com/why-does-ExternalLink-generate-%3Cspan%3E-instead-of-a-simple-%3Ca%3E-tp18841070p18841070.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