You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rrmlwt <rr...@gmail.com> on 2009/06/25 23:03:09 UTC
[kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Hi Folks,
I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind
of graphical resources that are boring to create, such as buttons,
borders, and layouts.
It's an early release in the sense that it does not contain everything
I'd like, but at least here it is.
Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it
runs on 1.3 (haven't tested).
The homepage: http://swit.kornr.net
The google code page: http://code.google.com/p/swit/
cheers,
Rodrigo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by rrmlwt <rr...@gmail.com>.
Marcin Palka wrote:
> BTW: Internet Exploder 7 messes the example layout a bit (moves the whole
> thing to the right).
Ouuch!! This one hurts badly. As it seems, the liquid layout manager
does not work well in IE7 when using fixed-size AND being contained in a
table. Which means it can't be embedded in the TableImageBorder that I
use on the site. I think I'll mention the constraint and use an iframe
to demonstrate the use of the layout manager, unless I find another css
technique that works well everywhere. Thanks for the feedback!
Rodrigo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics
stuff
Posted by Marcin Palka <ma...@gmail.com>.
Great lib, great work, thanks :-) I am a developer, not a webmaster. It may
make my work much easier.
BTW: Internet Exploder 7 messes the example layout a bit (moves the whole
thing to the right).
--
View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24211754.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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Marvan Spagnolo <ma...@gmail.com>.
SUPER COOL ! :)
One thing, can you adjust the vertical offset of the text inside the button
? I saw that in the button generator it is not possible.
Attach my congrats to the queue !
Marvan
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
NICE!
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Per Lundholm <pe...@gmail.com>.
What do you mean, "not using Maven"? How can you not use Maven?
:-)
Jokes, aside. If I knew how, I would put it in the central repo, but I
guess there are people on this list that are more prominent in that
matter.
/Per
On Fri, Jun 26, 2009 at 9:12 AM, rrmlwt<rr...@gmail.com> wrote:
> Per Lundholm wrote:
>>
>> Well done!
>>
>> +1 for Swit in maven repo.
>
> Ha, I'm not using maven, and I'm too busy right now to manage that. But
> maybe people can just add the lib in their local maven repo.
>
> Rodrigo
>
> ---------------------------------------------------------------------
> 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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by rrmlwt <rr...@gmail.com>.
Per Lundholm wrote:
> Well done!
>
> +1 for Swit in maven repo.
Ha, I'm not using maven, and I'm too busy right now to manage that. But
maybe people can just add the lib in their local maven repo.
Rodrigo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Per Lundholm <pe...@gmail.com>.
Well done!
+1 for Swit in maven repo.
/Per
On Fri, Jun 26, 2009 at 7:28 AM, rrmlwt<rr...@gmail.com> wrote:
> Jeremy Thomerson wrote:
>
>> Ahh... thanks - missed that!
>>>
>>> Must say a very nice, useful package. regarding creating buttons with
>>> images.
>>> yes, this is from the sourcecode of AmazonianButton
>
> Actually the amazonian button accepts a specific, round image that fits one
> of its border(because it's a feature of this kind of button). Adding an icon
> to arbitrary buttons is definitely in the "to do" list.
>
> Rodrigo
>
> ---------------------------------------------------------------------
> 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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by rrmlwt <rr...@gmail.com>.
Jeremy Thomerson wrote:
> Ahh... thanks - missed that!
>> Must say a very nice, useful package. regarding creating buttons with images.
>> yes, this is from the sourcecode of AmazonianButton
Actually the amazonian button accepts a specific, round image that fits
one of its border(because it's a feature of this kind of button). Adding
an icon to arbitrary buttons is definitely in the "to do" list.
Rodrigo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: URL Resolution Magic for Applets as for Images?
Posted by Be...@actrix.co.nz.
Igor, thanks very much for the hint. I could fix this as follows:
WebMarkupContainer appletContainer = new
WebMarkupContainer("myAppletWicketId");
appletContainer.add(new AbstractBehavior() {
private static final long serialVersionUID = 1L;
@Override
public void onComponentTag(Component component,
ComponentTag tag)
{
// Modify the relevant attribute
String attrName = "archive";
IValueMap valueMap = tag.getAttributes();
String attrValue = valueMap.getString(attrName);
if(attrValue != null){
IRequestCodingStrategy coder = RequestCycle.get()
.getProcessor()
.getRequestCodingStrategy();
valueMap.put(attrName,
coder.rewriteStaticRelativeUrl(attrValue));
}
}
});
add(appletContainer);
Bernard
On Fri, 26 Jun 2009 08:06:16 -0700, you wrote:
>see org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler
>
>-igor
>
>On Thu, Jun 25, 2009 at 9:28 PM, <Be...@actrix.co.nz> wrote:
>> Hi,
>>
>> I am pleased with the URL resolution in wicket pages. But it does not
>> work for me with applets.
>>
>> In my case, wicket translates <img src="images/image.gif> into <img
>> src="../images/image.gif> (note the "../").
>>
>> This works fine.
>>
>> However, translation does not work for applets. In my case, with
>>
>> <applet code="MyClass.class"
>> archive="jars/MyJar.jar"
>> width="100"
>> height="100">
>> </applet>
>>
>> , the attribute archive="jars/MyJar.jar" should have its value
>> translated, too. I guess Wicket does not look into applet tags.
>>
>> I would be quite happy to write code for each tag to tell Wicket to
>> translate the attribute and property that it does not cover
>> automatically. Is there a Wicket way to do this?
>>
>> Many thanks.
>>
>> Bernard
>>
>>
>> ---------------------------------------------------------------------
>> 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: URL Resolution Magic for Applets as for Images?
Posted by Igor Vaynberg <ig...@gmail.com>.
see org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler
-igor
On Thu, Jun 25, 2009 at 9:28 PM, <Be...@actrix.co.nz> wrote:
> Hi,
>
> I am pleased with the URL resolution in wicket pages. But it does not
> work for me with applets.
>
> In my case, wicket translates <img src="images/image.gif> into <img
> src="../images/image.gif> (note the "../").
>
> This works fine.
>
> However, translation does not work for applets. In my case, with
>
> <applet code="MyClass.class"
> archive="jars/MyJar.jar"
> width="100"
> height="100">
> </applet>
>
> , the attribute archive="jars/MyJar.jar" should have its value
> translated, too. I guess Wicket does not look into applet tags.
>
> I would be quite happy to write code for each tag to tell Wicket to
> translate the attribute and property that it does not cover
> automatically. Is there a Wicket way to do this?
>
> Many thanks.
>
> Bernard
>
>
> ---------------------------------------------------------------------
> 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
URL Resolution Magic for Applets as for Images?
Posted by Be...@actrix.co.nz.
Hi,
I am pleased with the URL resolution in wicket pages. But it does not
work for me with applets.
In my case, wicket translates <img src="images/image.gif> into <img
src="../images/image.gif> (note the "../").
This works fine.
However, translation does not work for applets. In my case, with
<applet code="MyClass.class"
archive="jars/MyJar.jar"
width="100"
height="100">
</applet>
, the attribute archive="jars/MyJar.jar" should have its value
translated, too. I guess Wicket does not look into applet tags.
I would be quite happy to write code for each tag to tell Wicket to
translate the attribute and property that it does not cover
automatically. Is there a Wicket way to do this?
Many thanks.
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Ahh... thanks - missed that!
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Jun 25, 2009 at 5:05 PM, Mathias
Nilsson<wi...@gmail.com> wrote:
>
> Must say a very nice, useful package. regarding creating buttons with images.
> yes, this is from the sourcecode of AmazonianButton
>
> InputStream iconstream =
> VistafarianButton.class.getClassLoader().getResourceAsStream("net/kornr/swit/button/right-arrow-symbol.png");
> BufferedImage icon = ImageIO.read(iconstream);
> AmazonianButton button = new AmazonianButton(); // new Color(0x6655AA));
> button.setRightHanded(true);
> button.setWidth(1);
> button.setIcon(icon);
> button.setTextAlign(ButtonTemplate.TEXT_ALIGN_LEFT);
> button.setFont(new Font("Verdana", Font.BOLD, 32));
> --
> View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24211813.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: [kind-of-announce] Swit 0.9.0, wicket library for graphics
stuff
Posted by Mathias Nilsson <wi...@gmail.com>.
Must say a very nice, useful package. regarding creating buttons with images.
yes, this is from the sourcecode of AmazonianButton
InputStream iconstream =
VistafarianButton.class.getClassLoader().getResourceAsStream("net/kornr/swit/button/right-arrow-symbol.png");
BufferedImage icon = ImageIO.read(iconstream);
AmazonianButton button = new AmazonianButton(); // new Color(0x6655AA));
button.setRightHanded(true);
button.setWidth(1);
button.setIcon(icon);
button.setTextAlign(ButtonTemplate.TEXT_ALIGN_LEFT);
button.setFont(new Font("Verdana", Font.BOLD, 32));
--
View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24211813.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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Actually - I just looked at it more, and it is VERY cool. Off topic,
but can you create buttons that have a small image or icon in them
instead of text?
I'll definitely be using this. Thanks!
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Jun 25, 2009 at 4:12 PM, Jeremy
Thomerson<je...@wickettraining.com> wrote:
> Hey - that looks cool. I would probably use it. Have you given any
> thought to getting it into a maven repo? I'm pretty sure we could
> even put it into the wicket stuff Maven repo. That would sure make it
> easier to use in most Wicket projects since we use Maven in most of
> them.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Thu, Jun 25, 2009 at 4:03 PM, rrmlwt<rr...@gmail.com> wrote:
>> Hi Folks,
>>
>> I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of
>> graphical resources that are boring to create, such as buttons, borders, and
>> layouts.
>> It's an early release in the sense that it does not contain everything I'd
>> like, but at least here it is.
>> Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it
>> runs on 1.3 (haven't tested).
>> The homepage: http://swit.kornr.net
>> The google code page: http://code.google.com/p/swit/
>>
>> cheers,
>> Rodrigo
>>
>>
>> ---------------------------------------------------------------------
>> 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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Hey - that looks cool. I would probably use it. Have you given any
thought to getting it into a maven repo? I'm pretty sure we could
even put it into the wicket stuff Maven repo. That would sure make it
easier to use in most Wicket projects since we use Maven in most of
them.
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Jun 25, 2009 at 4:03 PM, rrmlwt<rr...@gmail.com> wrote:
> Hi Folks,
>
> I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of
> graphical resources that are boring to create, such as buttons, borders, and
> layouts.
> It's an early release in the sense that it does not contain everything I'd
> like, but at least here it is.
> Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it
> runs on 1.3 (haven't tested).
> The homepage: http://swit.kornr.net
> The google code page: http://code.google.com/p/swit/
>
> cheers,
> Rodrigo
>
>
> ---------------------------------------------------------------------
> 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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by Cristi Manole <cr...@gmail.com>.
Very very cool. Congrats!
On Fri, Jun 26, 2009 at 12:03 AM, rrmlwt <rr...@gmail.com> wrote:
> Hi Folks,
>
> I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of
> graphical resources that are boring to create, such as buttons, borders, and
> layouts.
> It's an early release in the sense that it does not contain everything I'd
> like, but at least here it is.
> Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it
> runs on 1.3 (haven't tested).
> The homepage: http://swit.kornr.net
> The google code page: http://code.google.com/p/swit/
>
> cheers,
> Rodrigo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Cristi Manole
Nova Creator Software
www.novacreator.com
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics
stuff
Posted by rmattler <Ro...@gmail.com>.
Thanks for the reply. Here is my code if it can help anybody else.
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.sourceforge.net/">
<head>
<style>
a.switButton {
color: transparent;
}
</style>
</head>
<body>
<br>
#
<br>
</body>
</html>
public class Home extends WebPage {
static private ButtonTemplate s_buttonTemplate = new VistafarianButton();
public Home() {
Image myImage = ButtonResource.getImage("switButtonImage",
s_buttonTemplate, "Swit Button");
Link switTestButton = new Link("switTestButton") {
@Override
public void onClick() {
setResponsePage(new SwitTest(""));
}
};
switTestButton.add(myImage);
add(switTestButton);
}
}
rrmlwt wrote:
>
> rmattler wrote:
>
>> It is not clear to me how you add the onClick event to the button since
>> the
>> ButtonResource is an image. Anybody want to point that out to me.
>
> You have to use a standard html image or button, and associate it to the
> ResourceReference+ValueMap provided by the ButtonResource class.
>
> For instance, to create an ImageButton:
>
> Html:
> <input type="image" wicket:id="submit"/>
>
> Java:
>
> new ImageButton("submit",
> ButtonResource.getReference(),
> ButtonResource.getValueMap(buttonTemplate, "SOMETEXT"));
>
> For an image, it's exactly the same. Just put the image in a link tag
> and that's it.
>
> Rodrigo
>
> ---------------------------------------------------------------------
> 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/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24242471.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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Posted by rrmlwt <rr...@gmail.com>.
rmattler wrote:
> It is not clear to me how you add the onClick event to the button since the
> ButtonResource is an image. Anybody want to point that out to me.
You have to use a standard html image or button, and associate it to the
ResourceReference+ValueMap provided by the ButtonResource class.
For instance, to create an ImageButton:
Html:
<input type="image" wicket:id="submit"/>
Java:
new ImageButton("submit",
ButtonResource.getReference(),
ButtonResource.getValueMap(buttonTemplate, "SOMETEXT"));
For an image, it's exactly the same. Just put the image in a link tag
<a></a> and that's it.
Rodrigo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics
stuff
Posted by rmattler <Ro...@gmail.com>.
It does NOT work with 1.35. For anybody else who was wondering. I download
1.4 and it works fine.
It is not clear to me how you add the onClick event to the button since the
ButtonResource is an image. Anybody want to point that out to me.
thanks.
rrmlwt wrote:
>
> Hi Folks,
>
> I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind
> of graphical resources that are boring to create, such as buttons,
> borders, and layouts.
> It's an early release in the sense that it does not contain everything
> I'd like, but at least here it is.
> Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it
> runs on 1.3 (haven't tested).
> The homepage: http://swit.kornr.net
> The google code page: http://code.google.com/p/swit/
>
> cheers,
> Rodrigo
>
>
> ---------------------------------------------------------------------
> 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/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24227241.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