Piece o' cake:

<pre>

.linkButton {
   border: none;
}

</pre>

Something really slick would be a button whose text label I could define within my HTML. No time for that right this minute...perhaps later.


kurt heston wrote:
Ok, I've got something that works:

<pre>

<a href="#" wicket:id="printLink">
<img class="linkButton" wicket:id="print"/>
</a>

</pre>

<pre>

 protected static Resource getButton(String label) {
   DefaultButtonImageResource r = new DefaultButtonImageResource(label);
   Color c = new Color(60, 179, 113);
   r.setColor(c);
   return r;
 }

</pre>

<pre>

   Link printLink = new PageLink("printLink", new PrintPage());
   printLink.add(new Image("print", getButton("Print")));
   printLink.setPopupSettings(popupSettings);
   add(printLink);

</pre>

I think I can get rid of the blue box that shows up around my button with CSS, too. Working on that...


kurt heston wrote:
When I click on the images I'm producing with ImageButton, nothing happens in Internet Explorer. It works fine in FireFox.

This produces my button image (I wanted a color other than Orange):

<pre>
protected static ImageButton getButton(String buttonName, String label) {
   DefaultButtonImageResource r = new DefaultButtonImageResource(label);
   Color c = new Color(60, 179, 113);
   r.setColor(c);
   return new ImageButton(buttonName, r);
 }
</pre>

Here's where I add it to my page:

<pre>
   Link printLink = new PageLink("printLink", new PrintPage());
   printLink.add(getButton("print", "Print"));
   add(printLink);
</pre>

This is the html:

<pre>
<a href="#" wicket:id="printLink"><input wicket:id="print"
   type="image" value="buttonFactory:print:Print" /></a>
</pre>

It is not contained within a form, this is probably what's confusing IE. How do I create an identical button that doesn't require me to use an input tag?


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to