Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Tauren Mills
Just wanted to announce that I've created a new wicket-shiro example
application showing it working with Spring and Hibernate. I've done a little
work to clean up the other example apps as well.  There are now three
examples:

wicket-shiro-example-realm
wicket-shiro-example-spring-jdbc
wicket-shiro-example-spring-hibernate

I've updated the wiki to reflect this:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro

Also, at the request of Les (from the Shiro project), I've renamed the
project to wicket-shiro instead of wicket-shiro-security.

Once Shiro is available in maven, I'll add it to the wicketstuff-core POM.

Tauren



On Fri, Jun 26, 2009 at 3:10 PM, Tauren Mills  wrote:

> This makes total sense to me.  Now I know, sorry for any confusion this may
> have caused.
>
> I've commented out shiro-security and will uncomment it when it's
> dependencies become available via maven.
>
> Tauren
>
>
>
>
>
> On Fri, Jun 26, 2009 at 2:52 PM, Jeremy Thomerson <
> jer...@wickettraining.com> wrote:
>
>> Yes - wicket-core should always be trunk-buildable.  IMHO anyway.
>>
>> Jeremy Thomerson
>> http://www.wickettraining.com
>> -- sent from a wireless device
>>
>>
>> -Original Message-
>> From: Martin Funk 
>> Sent: Friday, June 26, 2009 3:10 PM
>> To: users@wicket.apache.org
>> Subject: Re: Migration of wicket-ki-security to wicket-shiro-security
>>
>> the state it is currently in it affects 20 other projects.
>> The initial idea for the core projects was to get all the projects
>> that are alive together.
>> In that sense I think the core projects should be in a state were one
>> can build em with the
>> following steps:
>>
>> svn checkout
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
>> cd wicketstuff-core
>> mvn install
>>
>> mf
>>
>> Am 26.06.2009 um 22:02 schrieb Tauren Mills:
>>
>> > I was just chatting with Les (from the Shiro project), and it sounds
>> > like
>> > Shiro will have maven snapshots available on the Apache Hudson
>> > server very
>> > soon now.  I think he's just waiting on Apache to set something up.
>> >
>> > Martin -- I didn't realize I shouldn't have added the project to
>> > wicketstuff-core/pom.xml.  Is that because the project depends on
>> > something
>> > that isn't available in maven? I just want to make sure I understand
>> > the
>> > reasoning.  Once shiro is in maven, it would be fine to have the
>> > submodule
>> > included, right?
>> >
>> > Thanks,
>> > Tauren
>> >
>> >
>> >
>> >
>> > On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk <
>> mafulaf...@googlemail.com
>> > >wrote:
>> >
>> >> not that bad of a plan,
>> >>
>> >> I'd suggest a little change.
>> >>
>> >> Besides the things you have already done please uncomment the
>> >> shiro-security module out of the wicketstuff-core pom.xml
>> >>
>> >> You can comment on that in the pom.xml itself and on the the wiki
>> >> page you
>> >> already created.
>> >>
>> >> mf
>> >>
>> >>
>> >> Am 26.06.2009 um 10:23 schrieb Tauren Mills:
>> >>
>> >>
>> >> I've created a new project in WicketStuff for wicket-shiro-security:
>> >>>
>> >>>
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
>> >>>
>> >>> This project is basically the same as wicket-ki-security, but I've
>> >>> changed
>> >>> all references of apache ki/jsecurity to shiro. In addition,
>> >>> instead of
>> >>> being dependent on jsecurity-0.9.0.jar, this project relies on the
>> >>> following
>> >>> jars:
>> >>>
>> >>> shiro-core-1.0-incubating-SNAPSHOT.jar
>> >>> shiro-web-1.0-incubating-SNAPSHOT.jar
>> >>> shiro-spring-1.0-incubating-SNAPSHOT.jar
>> >>>
>> >>> Unfortunately, I don't think these jars are availabe in a maven
>> >>> repo yet.
>> >>> So to build you'll need to:
>> >>>
>> >>> mkdir shiro
>> >>> cd shiro
>> >>> svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
>> >>> mvn install
>> >>>
>> >>> I've ran the two sample apps (realm and spring-jdbc) and they both
>> >>> appear
>> >>> to
>> >>> be working correctly.
>> >>>
>> >>> I didn't want to remove the wicket-ki-security project, as others
>> >>> might be
>> >>> using it.  But now that apache ki has changed its name to apache
>> >>> shiro,
>> >>> perhaps that project should be moved out of wicketstuff-core?
>> >>>
>> >>> Please let me know if anyone finds any issues with this release.
>> >>> Thanks!
>> >>>
>> >>> Tauren
>> >>>
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apac

Component.getPage() always returns null

2009-06-26 Thread Azzeddine Daddah
Hi everybody,

I want to create a text blur effect behavior so that when the text
field gets focussed, the value will be empty and when blurred the
value will be set to the default value.
I use the Wickext library which integrates jQuery in Wicket. The
problem is that the component's page in the bind() method always
returns null and I get this exception message:
java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = test]].
Below my code:

BlurFieldBehavior.java

public class BlurFieldBehavior extends AbstractBehavior {
private static final String BLUR_FIELD_SCRIPT = "res/blurField.js";

private static final ResourceReference PLUGINS_RESOURCE = new
JavascriptResourceReference(BlurFieldBehavior.class,
BLUR_FIELD_SCRIPT);

/**
 * The behavior is attached to this component.
 */
private Component component;

public BlurFieldBehavior() {
}

@Override
public void bind(final Component component) {
super.bind(component);
this.component = component;
Page componentPage = component.getPage();
componentPage.add(new HeaderContributor(new
CoreJavaScriptHeaderContributor()));
componentPage.add(new HeaderContributor(new 
IHeaderContributor() {
public void renderHead(IHeaderResponse response) {

response.renderJavascriptReference(PLUGINS_RESOURCE);
}
}));
}

@Override
public void renderHead(IHeaderResponse response) {
JsQuery query = new JsQuery(component);
query.$().chain("blurInput");
query.renderHead(response);
}
}

TestPage.java

public class TestPage extends WebPage {
public TestPage() {
add(new TextField("test", new Model("This is a
test!!!")).add(new BlurFieldBehavior()));
}
}

Does someone see what's going wrong with this code?

Kind Regards,
Hbiloo

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



Re: URL Resolution Magic for Applets as for Images?

2009-06-26 Thread Bernard
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,  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  (note the "../").
>>
>> This works fine.
>>
>> However, translation does not work for applets. In my case, with
>>
>> >    archive="jars/MyJar.jar"
>>    width="100"
>>    height="100">
>> 
>>
>> , 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-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org


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



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Tauren Mills
This makes total sense to me.  Now I know, sorry for any confusion this may
have caused.

I've commented out shiro-security and will uncomment it when it's
dependencies become available via maven.

Tauren




On Fri, Jun 26, 2009 at 2:52 PM, Jeremy Thomerson  wrote:

> Yes - wicket-core should always be trunk-buildable.  IMHO anyway.
>
> Jeremy Thomerson
> http://www.wickettraining.com
> -- sent from a wireless device
>
>
> -Original Message-
> From: Martin Funk 
> Sent: Friday, June 26, 2009 3:10 PM
> To: users@wicket.apache.org
> Subject: Re: Migration of wicket-ki-security to wicket-shiro-security
>
> the state it is currently in it affects 20 other projects.
> The initial idea for the core projects was to get all the projects
> that are alive together.
> In that sense I think the core projects should be in a state were one
> can build em with the
> following steps:
>
> svn checkout
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
> cd wicketstuff-core
> mvn install
>
> mf
>
> Am 26.06.2009 um 22:02 schrieb Tauren Mills:
>
> > I was just chatting with Les (from the Shiro project), and it sounds
> > like
> > Shiro will have maven snapshots available on the Apache Hudson
> > server very
> > soon now.  I think he's just waiting on Apache to set something up.
> >
> > Martin -- I didn't realize I shouldn't have added the project to
> > wicketstuff-core/pom.xml.  Is that because the project depends on
> > something
> > that isn't available in maven? I just want to make sure I understand
> > the
> > reasoning.  Once shiro is in maven, it would be fine to have the
> > submodule
> > included, right?
> >
> > Thanks,
> > Tauren
> >
> >
> >
> >
> > On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk  > >wrote:
> >
> >> not that bad of a plan,
> >>
> >> I'd suggest a little change.
> >>
> >> Besides the things you have already done please uncomment the
> >> shiro-security module out of the wicketstuff-core pom.xml
> >>
> >> You can comment on that in the pom.xml itself and on the the wiki
> >> page you
> >> already created.
> >>
> >> mf
> >>
> >>
> >> Am 26.06.2009 um 10:23 schrieb Tauren Mills:
> >>
> >>
> >> I've created a new project in WicketStuff for wicket-shiro-security:
> >>>
> >>>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
> >>>
> >>> This project is basically the same as wicket-ki-security, but I've
> >>> changed
> >>> all references of apache ki/jsecurity to shiro. In addition,
> >>> instead of
> >>> being dependent on jsecurity-0.9.0.jar, this project relies on the
> >>> following
> >>> jars:
> >>>
> >>> shiro-core-1.0-incubating-SNAPSHOT.jar
> >>> shiro-web-1.0-incubating-SNAPSHOT.jar
> >>> shiro-spring-1.0-incubating-SNAPSHOT.jar
> >>>
> >>> Unfortunately, I don't think these jars are availabe in a maven
> >>> repo yet.
> >>> So to build you'll need to:
> >>>
> >>> mkdir shiro
> >>> cd shiro
> >>> svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
> >>> mvn install
> >>>
> >>> I've ran the two sample apps (realm and spring-jdbc) and they both
> >>> appear
> >>> to
> >>> be working correctly.
> >>>
> >>> I didn't want to remove the wicket-ki-security project, as others
> >>> might be
> >>> using it.  But now that apache ki has changed its name to apache
> >>> shiro,
> >>> perhaps that project should be moved out of wicketstuff-core?
> >>>
> >>> Please let me know if anyone finds any issues with this release.
> >>> Thanks!
> >>>
> >>> Tauren
> >>>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: localizer and variables

2009-06-26 Thread OjO

Do you mean override the onbeforerender method of the current class or inside
the class of myCom object? Could you give an example?

> myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new
> Model (handleId)));


igor.vaynberg wrote:
> 
> set it in onbeforerender
> 
> -igor
> 
> On Fri, Jun 26, 2009 at 2:03 PM, OjO wrote:
>>
>> I am using the following:
>> myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new
>> Model (handleId)));
>>
>> but still getting WARNing:
>>
>> Tried to retrieve a localized string for a component that has not yet
>> been
>> added to the page. This can sometimes lead to an invalid or no localized
>> resource returned. Make sure you are not calling Component#getString()
>> inside your Component's constructor.
>>
>> What would be the correct way to get a property resource when a String
>> value
>> is needed?
>> --
>> View this message in context:
>> http://www.nabble.com/localizer-and-variables-tp16548684p24227247.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/localizer-and-variables-tp16548684p24227830.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Jeremy Thomerson
Yes - wicket-core should always be trunk-buildable.  IMHO anyway.

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Martin Funk 
Sent: Friday, June 26, 2009 3:10 PM
To: users@wicket.apache.org
Subject: Re: Migration of wicket-ki-security to wicket-shiro-security

the state it is currently in it affects 20 other projects.
The initial idea for the core projects was to get all the projects  
that are alive together.
In that sense I think the core projects should be in a state were one  
can build em with the
following steps:

svn checkout 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
cd wicketstuff-core
mvn install

mf

Am 26.06.2009 um 22:02 schrieb Tauren Mills:

> I was just chatting with Les (from the Shiro project), and it sounds  
> like
> Shiro will have maven snapshots available on the Apache Hudson  
> server very
> soon now.  I think he's just waiting on Apache to set something up.
>
> Martin -- I didn't realize I shouldn't have added the project to
> wicketstuff-core/pom.xml.  Is that because the project depends on  
> something
> that isn't available in maven? I just want to make sure I understand  
> the
> reasoning.  Once shiro is in maven, it would be fine to have the  
> submodule
> included, right?
>
> Thanks,
> Tauren
>
>
>
>
> On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk  >wrote:
>
>> not that bad of a plan,
>>
>> I'd suggest a little change.
>>
>> Besides the things you have already done please uncomment the
>> shiro-security module out of the wicketstuff-core pom.xml
>>
>> You can comment on that in the pom.xml itself and on the the wiki  
>> page you
>> already created.
>>
>> mf
>>
>>
>> Am 26.06.2009 um 10:23 schrieb Tauren Mills:
>>
>>
>> I've created a new project in WicketStuff for wicket-shiro-security:
>>>
>>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
>>>
>>> This project is basically the same as wicket-ki-security, but I've  
>>> changed
>>> all references of apache ki/jsecurity to shiro. In addition,  
>>> instead of
>>> being dependent on jsecurity-0.9.0.jar, this project relies on the
>>> following
>>> jars:
>>>
>>> shiro-core-1.0-incubating-SNAPSHOT.jar
>>> shiro-web-1.0-incubating-SNAPSHOT.jar
>>> shiro-spring-1.0-incubating-SNAPSHOT.jar
>>>
>>> Unfortunately, I don't think these jars are availabe in a maven  
>>> repo yet.
>>> So to build you'll need to:
>>>
>>> mkdir shiro
>>> cd shiro
>>> svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
>>> mvn install
>>>
>>> I've ran the two sample apps (realm and spring-jdbc) and they both  
>>> appear
>>> to
>>> be working correctly.
>>>
>>> I didn't want to remove the wicket-ki-security project, as others  
>>> might be
>>> using it.  But now that apache ki has changed its name to apache  
>>> shiro,
>>> perhaps that project should be moved out of wicketstuff-core?
>>>
>>> Please let me know if anyone finds any issues with this release.  
>>> Thanks!
>>>
>>> Tauren
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>


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



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



Re: ExternalLink via AjaxLink

2009-06-26 Thread James Carman
If you're trying to do a client-side image map, you might try my
ClientSideImageMap class available as an attachment in JIRA:

https://issues.apache.org/jira/browse/WICKET-1936

With it, you can "attach" an ExternalLink to an area within the image.

On Fri, Jun 26, 2009 at 5:49 PM, Shun Jie Lau wrote:
>
> Hi, I am a new user to Wicket.
> In the code written, I have the following
>
> 
> ImageMapArea area = (ImageMapArea) item.getModelObject();
> AjaxLink link = new AjaxLink("area"){
>  public void onClick(final AjaxRequestTarget target){
>    //go to external url in current browser
>  }
> }
> 
>
> I trying to find a method to navigate to an external URL for example 
> "http://en.wikipedia.org/wiki/wicket";
> I have been looking at EternalLink and RedirectPage but I cannot get what I 
> wished for.
>
> So what would be the easiest to accomplish the above which is to navigate to 
> a new URL in a tab or new window when the user clock on the imagemap.
>
> Thank you !
>
>
> _
> Create a cool, new character for your Windows Live™ Messenger.
> http://go.microsoft.com/?linkid=9656621

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



ExternalLink via AjaxLink

2009-06-26 Thread Shun Jie Lau

Hi, I am a new user to Wicket.
In the code written, I have the following


ImageMapArea area = (ImageMapArea) item.getModelObject();
AjaxLink link = new AjaxLink("area"){
  public void onClick(final AjaxRequestTarget target){
//go to external url in current browser
  }
}


I trying to find a method to navigate to an external URL for example 
"http://en.wikipedia.org/wiki/wicket";
I have been looking at EternalLink and RedirectPage but I cannot get what I 
wished for.

So what would be the easiest to accomplish the above which is to navigate to a 
new URL in a tab or new window when the user clock on the imagemap.

Thank you !


_
Create a cool, new character for your Windows Live™ Messenger. 
http://go.microsoft.com/?linkid=9656621

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread rrmlwt

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:
 

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: localizer and variables

2009-06-26 Thread Igor Vaynberg
set it in onbeforerender

-igor

On Fri, Jun 26, 2009 at 2:03 PM, OjO wrote:
>
> I am using the following:
> myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new
> Model (handleId)));
>
> but still getting WARNing:
>
> Tried to retrieve a localized string for a component that has not yet been
> added to the page. This can sometimes lead to an invalid or no localized
> resource returned. Make sure you are not calling Component#getString()
> inside your Component's constructor.
>
> What would be the correct way to get a property resource when a String value
> is needed?
> --
> View this message in context: 
> http://www.nabble.com/localizer-and-variables-tp16548684p24227247.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: localizer and variables

2009-06-26 Thread OjO

I am using the following:
myCom.setMarkupId (getLocalizer().getString ("handle", MyPanel.this, new
Model (handleId)));

but still getting WARNing:

Tried to retrieve a localized string for a component that has not yet been
added to the page. This can sometimes lead to an invalid or no localized
resource returned. Make sure you are not calling Component#getString()
inside your Component's constructor.

What would be the correct way to get a property resource when a String value
is needed?
-- 
View this message in context: 
http://www.nabble.com/localizer-and-variables-tp16548684p24227247.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread rmattler

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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Martin Funk

the state it is currently in it affects 20 other projects.
The initial idea for the core projects was to get all the projects  
that are alive together.
In that sense I think the core projects should be in a state were one  
can build em with the

following steps:

svn checkout 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core
cd wicketstuff-core
mvn install

mf

Am 26.06.2009 um 22:02 schrieb Tauren Mills:

I was just chatting with Les (from the Shiro project), and it sounds  
like
Shiro will have maven snapshots available on the Apache Hudson  
server very

soon now.  I think he's just waiting on Apache to set something up.

Martin -- I didn't realize I shouldn't have added the project to
wicketstuff-core/pom.xml.  Is that because the project depends on  
something
that isn't available in maven? I just want to make sure I understand  
the
reasoning.  Once shiro is in maven, it would be fine to have the  
submodule

included, right?

Thanks,
Tauren




On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk >wrote:



not that bad of a plan,

I'd suggest a little change.

Besides the things you have already done please uncomment the
shiro-security module out of the wicketstuff-core pom.xml

You can comment on that in the pom.xml itself and on the the wiki  
page you

already created.

mf


Am 26.06.2009 um 10:23 schrieb Tauren Mills:


I've created a new project in WicketStuff for wicket-shiro-security:


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

This project is basically the same as wicket-ki-security, but I've  
changed
all references of apache ki/jsecurity to shiro. In addition,  
instead of

being dependent on jsecurity-0.9.0.jar, this project relies on the
following
jars:

shiro-core-1.0-incubating-SNAPSHOT.jar
shiro-web-1.0-incubating-SNAPSHOT.jar
shiro-spring-1.0-incubating-SNAPSHOT.jar

Unfortunately, I don't think these jars are availabe in a maven  
repo yet.

So to build you'll need to:

mkdir shiro
cd shiro
svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
mvn install

I've ran the two sample apps (realm and spring-jdbc) and they both  
appear

to
be working correctly.

I didn't want to remove the wicket-ki-security project, as others  
might be
using it.  But now that apache ki has changed its name to apache  
shiro,

perhaps that project should be moved out of wicketstuff-core?

Please let me know if anyone finds any issues with this release.  
Thanks!


Tauren




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





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



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Tauren Mills
I was just chatting with Les (from the Shiro project), and it sounds like
Shiro will have maven snapshots available on the Apache Hudson server very
soon now.  I think he's just waiting on Apache to set something up.

Martin -- I didn't realize I shouldn't have added the project to
wicketstuff-core/pom.xml.  Is that because the project depends on something
that isn't available in maven? I just want to make sure I understand the
reasoning.  Once shiro is in maven, it would be fine to have the submodule
included, right?

Thanks,
Tauren




On Fri, Jun 26, 2009 at 12:32 PM, Martin Funk wrote:

> not that bad of a plan,
>
> I'd suggest a little change.
>
> Besides the things you have already done please uncomment the
> shiro-security module out of the wicketstuff-core pom.xml
>
> You can comment on that in the pom.xml itself and on the the wiki page you
> already created.
>
> mf
>
>
> Am 26.06.2009 um 10:23 schrieb Tauren Mills:
>
>
>  I've created a new project in WicketStuff for wicket-shiro-security:
>>
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
>>
>> This project is basically the same as wicket-ki-security, but I've changed
>> all references of apache ki/jsecurity to shiro. In addition, instead of
>> being dependent on jsecurity-0.9.0.jar, this project relies on the
>> following
>> jars:
>>
>> shiro-core-1.0-incubating-SNAPSHOT.jar
>> shiro-web-1.0-incubating-SNAPSHOT.jar
>> shiro-spring-1.0-incubating-SNAPSHOT.jar
>>
>> Unfortunately, I don't think these jars are availabe in a maven repo yet.
>> So to build you'll need to:
>>
>> mkdir shiro
>> cd shiro
>> svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
>> mvn install
>>
>> I've ran the two sample apps (realm and spring-jdbc) and they both appear
>> to
>> be working correctly.
>>
>> I didn't want to remove the wicket-ki-security project, as others might be
>> using it.  But now that apache ki has changed its name to apache shiro,
>> perhaps that project should be moved out of wicketstuff-core?
>>
>> Please let me know if anyone finds any issues with this release. Thanks!
>>
>> Tauren
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Martin Funk

not that bad of a plan,

I'd suggest a little change.

Besides the things you have already done please uncomment the shiro- 
security module out of the wicketstuff-core pom.xml


You can comment on that in the pom.xml itself and on the the wiki page  
you already created.


mf


Am 26.06.2009 um 10:23 schrieb Tauren Mills:


I've created a new project in WicketStuff for wicket-shiro-security:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

This project is basically the same as wicket-ki-security, but I've  
changed
all references of apache ki/jsecurity to shiro. In addition, instead  
of
being dependent on jsecurity-0.9.0.jar, this project relies on the  
following

jars:

shiro-core-1.0-incubating-SNAPSHOT.jar
shiro-web-1.0-incubating-SNAPSHOT.jar
shiro-spring-1.0-incubating-SNAPSHOT.jar

Unfortunately, I don't think these jars are availabe in a maven repo  
yet.

So to build you'll need to:

mkdir shiro
cd shiro
svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
mvn install

I've ran the two sample apps (realm and spring-jdbc) and they both  
appear to

be working correctly.

I didn't want to remove the wicket-ki-security project, as others  
might be
using it.  But now that apache ki has changed its name to apache  
shiro,

perhaps that project should be moved out of wicketstuff-core?

Please let me know if anyone finds any issues with this release.  
Thanks!


Tauren



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



How to get callback from progressbar.js

2009-06-26 Thread Mathias Nilsson
Hi,

I'm looking at the sourcecode of UploadProgressBar and the progressbar.js.

Can anyone give me som hint on how to make a callback to wicket?


Re: Hiding Components based on style

2009-06-26 Thread Igor Vaynberg
so you want to include all possible components in the class, but
exclude some in the markup and not have an error? fine, just turn off
componentusecheck in debug settings.

-igor

On Fri, Jun 26, 2009 at 11:13 AM, Andrew Berman wrote:
> Right, I know that way, but I don't want to I don't want to do that though
> Igor.  That seems like really bad practice as I add styles constantly and I
> don't want to have to make a code change every time I add a style.  It's
> much better for me to just modify the HTML and be done with it without
> having to make code changes.  I really think there should be a way to do
> this with some sort of comment tag or something.  Maybe there needs to be a
>  tag where the code inside is evaluated so there are no
> errors but that the component is hidden.
>
> Thanks for your help,
>
> Andrew
>
> On Thu, Jun 25, 2009 at 8:47 PM, Igor Vaynberg wrote:
>
>> add(new textfield(..) { isvisible() { return
>> getsession.getstyle().equals("foo"); }});
>>
>> -igor
>>
>> On Thu, Jun 25, 2009 at 8:41 PM, Andrew Berman wrote:
>> > I am using Wicket 1.3 and was wondering if there is a way to hide
>> components
>> > in the HTML itself.  Here's the issue, say I have two forms and two
>> > different styles.  In one style I want to display all the form fields,
>> > however in the other one I want to display only a couple of them.  I
>> > currently have two HTML files, one for each style, but I can't seem to
>> find
>> > a way to hide the form fields aside from using CSS and adding
>> display:none.
>> > Is that the only way to do it?
>> >
>> > Thanks!
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



RE: Hiding Components based on style

2009-06-26 Thread Rowe, Richard A.
Andrew-

One more thing. I have already added my style sheet to the page like
this:

add(HeaderContributor.forCss("pathto/styles.css"));

Richard


-Original Message-
From: users-return-39080-richard.a.rowe=saic@wicket.apache.org
[mailto:users-return-39080-richard.a.rowe=saic@wicket.apache.org] On
Behalf Of Andrew Berman
Sent: Friday, June 26, 2009 2:13 PM
To: users@wicket.apache.org
Subject: Re: Hiding Components based on style

Right, I know that way, but I don't want to I don't want to do that
though
Igor.  That seems like really bad practice as I add styles constantly
and I
don't want to have to make a code change every time I add a style.  It's
much better for me to just modify the HTML and be done with it without
having to make code changes.  I really think there should be a way to do
this with some sort of comment tag or something.  Maybe there needs to
be a
 tag where the code inside is evaluated so there are no
errors but that the component is hidden.

Thanks for your help,

Andrew

On Thu, Jun 25, 2009 at 8:47 PM, Igor Vaynberg
wrote:

> add(new textfield(..) { isvisible() { return
> getsession.getstyle().equals("foo"); }});
>
> -igor
>
> On Thu, Jun 25, 2009 at 8:41 PM, Andrew Berman
wrote:
> > I am using Wicket 1.3 and was wondering if there is a way to hide
> components
> > in the HTML itself.  Here's the issue, say I have two forms and two
> > different styles.  In one style I want to display all the form
fields,
> > however in the other one I want to display only a couple of them.  I
> > currently have two HTML files, one for each style, but I can't seem
to
> find
> > a way to hide the form fields aside from using CSS and adding
> display:none.
> > Is that the only way to do it?
> >
> > Thanks!
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



RE: Hiding Components based on style

2009-06-26 Thread Rowe, Richard A.
Andrew-

I use an attribute modifier to change styles on the fly. I create a css
with all my styles as "classes". Then I use the AttributeModifier class
to change the class attribute to be the style I want. Hope this helps.

Richard Rowe


-Original Message-
From: users-return-39080-richard.a.rowe=saic@wicket.apache.org
[mailto:users-return-39080-richard.a.rowe=saic@wicket.apache.org] On
Behalf Of Andrew Berman
Sent: Friday, June 26, 2009 2:13 PM
To: users@wicket.apache.org
Subject: Re: Hiding Components based on style

Right, I know that way, but I don't want to I don't want to do that
though
Igor.  That seems like really bad practice as I add styles constantly
and I
don't want to have to make a code change every time I add a style.  It's
much better for me to just modify the HTML and be done with it without
having to make code changes.  I really think there should be a way to do
this with some sort of comment tag or something.  Maybe there needs to
be a
 tag where the code inside is evaluated so there are no
errors but that the component is hidden.

Thanks for your help,

Andrew

On Thu, Jun 25, 2009 at 8:47 PM, Igor Vaynberg
wrote:

> add(new textfield(..) { isvisible() { return
> getsession.getstyle().equals("foo"); }});
>
> -igor
>
> On Thu, Jun 25, 2009 at 8:41 PM, Andrew Berman
wrote:
> > I am using Wicket 1.3 and was wondering if there is a way to hide
> components
> > in the HTML itself.  Here's the issue, say I have two forms and two
> > different styles.  In one style I want to display all the form
fields,
> > however in the other one I want to display only a couple of them.  I
> > currently have two HTML files, one for each style, but I can't seem
to
> find
> > a way to hide the form fields aside from using CSS and adding
> display:none.
> > Is that the only way to do it?
> >
> > Thanks!
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Hiding Components based on style

2009-06-26 Thread Andrew Berman
Right, I know that way, but I don't want to I don't want to do that though
Igor.  That seems like really bad practice as I add styles constantly and I
don't want to have to make a code change every time I add a style.  It's
much better for me to just modify the HTML and be done with it without
having to make code changes.  I really think there should be a way to do
this with some sort of comment tag or something.  Maybe there needs to be a
 tag where the code inside is evaluated so there are no
errors but that the component is hidden.

Thanks for your help,

Andrew

On Thu, Jun 25, 2009 at 8:47 PM, Igor Vaynberg wrote:

> add(new textfield(..) { isvisible() { return
> getsession.getstyle().equals("foo"); }});
>
> -igor
>
> On Thu, Jun 25, 2009 at 8:41 PM, Andrew Berman wrote:
> > I am using Wicket 1.3 and was wondering if there is a way to hide
> components
> > in the HTML itself.  Here's the issue, say I have two forms and two
> > different styles.  In one style I want to display all the form fields,
> > however in the other one I want to display only a couple of them.  I
> > currently have two HTML files, one for each style, but I can't seem to
> find
> > a way to hide the form fields aside from using CSS and adding
> display:none.
> > Is that the only way to do it?
> >
> > Thanks!
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: guice-injection on page vs. components

2009-06-26 Thread Igor Vaynberg
it is wicket-guice module that wraps the service that is retrieved
from guice with a serializable proxy, not guice itself.

this module treats pages and components exactly the same way because
page IS A component. i am not sure why pages work differently for you
if you use the same @Inject annotation and letting the module do the
injection for you rather then guice itself.

if you take the service that is causing a problem on a page and inject
that into a component it works fine? can you verify that the thing
being injected into a page is the wicket serializable proxy rather
then the direct instance?

-igor

On Fri, Jun 26, 2009 at 10:20 AM, Aaron Dixon wrote:
> But the nice thing about Guice/Wicket is that you don't have to
> concern yourself with the serialization problem. And for my non-page
> components, injection works perfectly. (This is because Guice injects
> a *serializable* proxy not an actual instance of the service itself.
> On detach/serialization, the proxy is serialized and on
> deserializaiton/rehydration, Guice/Wicket will inject the
> proxy/service again.)
>
> So, to reiterate, my problem is that all of this works perfectly for
> me for any non-page components, but when I @Inject on a Page, the
> service that is injected is not a proxy and therefore not
> serializable... and therefore I get the serialization exceptions.
>
> Technically Guice IS injecting my service at the page level, it's just
> injecting the instance itself and not wrapping it a proxy, whereas it
> IS injecting serializable proxies for non-page components. Why?
>
>
> On Thu, Jun 25, 2009 at 2:04 PM, Mauro Ciancio wrote:
>> On Wed, Jun 24, 2009 at 1:38 PM, Aaron Dixon  wrote:
>>
>>>
>>> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
>>> Unable to serialize class:
>>> com.mycompany.dao.MyDao$$EnhancerByGuice$$3e6e9f94
>>> Field hierarchy is:
>>>  2 [class=com.mycompany.pages.MyPage, path=2]
>>>    private com.mycompany.dao.MyDao
>>>
>>> com.mycompany.pages.MyPage.myDao[class=com.mycompany.dao.MyDao$$EnhancerByGuice$$3e6e9f94]
>>> <- field that is not serializable
>>>    at
>>>
>>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342)
>>>    at
>>>
>>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>>> ...
>>> 
>>>
>>> Has anyone else noticed this?
>>>
>>
>>  Yes, it happens because the injected class isn't Serializable and when
>> your page
>> is serialized the exception is thrown.
>>  You could use for example a
>> LoadableDetachableModelto
>> detach your DAO when
>> your page is serialized.
>>  Guice also comes with an interface named Provider. This could helps
>> because it
>> dont hold a reference to your un-serializable object.
>>
>> Example:
>>
>> class MyPage extends Page {
>>  LoadableDetachableModel daoModel = new loadable() {
>>    object get() {
>>          return new dao();
>>     }
>>  };
>>
>>  void something() {
>>     mydao = daoModel.getObject();
>>     //stuff
>>  }
>>
>>  void ondetach() {
>>    super.ondetach()
>>     daomodel.detach();
>>   }
>>  }
>>
>> HTH
>> Cheers!
>> --
>> Mauro Ciancio
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: guice-injection on page vs. components

2009-06-26 Thread Aaron Dixon
But the nice thing about Guice/Wicket is that you don't have to
concern yourself with the serialization problem. And for my non-page
components, injection works perfectly. (This is because Guice injects
a *serializable* proxy not an actual instance of the service itself.
On detach/serialization, the proxy is serialized and on
deserializaiton/rehydration, Guice/Wicket will inject the
proxy/service again.)

So, to reiterate, my problem is that all of this works perfectly for
me for any non-page components, but when I @Inject on a Page, the
service that is injected is not a proxy and therefore not
serializable... and therefore I get the serialization exceptions.

Technically Guice IS injecting my service at the page level, it's just
injecting the instance itself and not wrapping it a proxy, whereas it
IS injecting serializable proxies for non-page components. Why?


On Thu, Jun 25, 2009 at 2:04 PM, Mauro Ciancio wrote:
> On Wed, Jun 24, 2009 at 1:38 PM, Aaron Dixon  wrote:
>
>>
>> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
>> Unable to serialize class:
>> com.mycompany.dao.MyDao$$EnhancerByGuice$$3e6e9f94
>> Field hierarchy is:
>>  2 [class=com.mycompany.pages.MyPage, path=2]
>>    private com.mycompany.dao.MyDao
>>
>> com.mycompany.pages.MyPage.myDao[class=com.mycompany.dao.MyDao$$EnhancerByGuice$$3e6e9f94]
>> <- field that is not serializable
>>    at
>>
>> org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342)
>>    at
>>
>> org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610)
>> ...
>> 
>>
>> Has anyone else noticed this?
>>
>
>  Yes, it happens because the injected class isn't Serializable and when
> your page
> is serialized the exception is thrown.
>  You could use for example a
> LoadableDetachableModelto
> detach your DAO when
> your page is serialized.
>  Guice also comes with an interface named Provider. This could helps
> because it
> dont hold a reference to your un-serializable object.
>
> Example:
>
> class MyPage extends Page {
>  LoadableDetachableModel daoModel = new loadable() {
>    object get() {
>          return new dao();
>     }
>  };
>
>  void something() {
>     mydao = daoModel.getObject();
>     //stuff
>  }
>
>  void ondetach() {
>    super.ondetach()
>     daomodel.detach();
>   }
>  }
>
> HTH
> Cheers!
> --
> Mauro Ciancio
>

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



Set focus on a form field within a ModalWindow

2009-06-26 Thread T Ames
When doing this in regular html pages, I take the easy way and just use this
below the form within the html

...
 


document.forms["noteForm"].noteField.focus();


Works fine with typical wicket WebPage and Panel.

This easy way does not appear to work within a ModalWindow html panel
markup.



   



Note:




Select one of the
following:


site 1
site 2






document.forms["noteForm"].noteField.focus();





 

I am not very javascript literate, Is there a way to do this?

Thanks


Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Tauren Mills
Sounds like a good plan to me.

Tauren


On Fri, Jun 26, 2009 at 2:59 AM, Maarten Bosteels
wrote:

> wicket-ki-security is not yet abandonded :-)
> I suggest we remove the project (or move it to the attic) as soon as Shiro
> has a non-snapshot release in maven.
>
> Maarten
>
> On Fri, Jun 26, 2009 at 11:06 AM, Tauren Mills  wrote:
>
> > BTW -- I added a page to the wiki as well:
> >
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro-security
> >
> > Thanks Martijn -- not sure if it should be moved yet, but that's good to
> > know.
> >
> > Tauren
> >
> >
> >
> > On Fri, Jun 26, 2009 at 1:35 AM, Martijn Dashorst <
> > martijn.dasho...@gmail.com> wrote:
> >
> > > I think we have an attic for abandoned projects.
> > >
> > > Martijn
> > >
> > > On Fri, Jun 26, 2009 at 10:23 AM, Tauren Mills
> > wrote:
> > > > I've created a new project in WicketStuff for wicket-shiro-security:
> > > >
> > >
> >
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
> > > >
> > > > This project is basically the same as wicket-ki-security, but I've
> > > changed
> > > > all references of apache ki/jsecurity to shiro. In addition, instead
> of
> > > > being dependent on jsecurity-0.9.0.jar, this project relies on the
> > > following
> > > > jars:
> > > >
> > > > shiro-core-1.0-incubating-SNAPSHOT.jar
> > > > shiro-web-1.0-incubating-SNAPSHOT.jar
> > > > shiro-spring-1.0-incubating-SNAPSHOT.jar
> > > >
> > > > Unfortunately, I don't think these jars are availabe in a maven repo
> > yet.
> > > > So to build you'll need to:
> > > >
> > > > mkdir shiro
> > > > cd shiro
> > > > svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
> > > > mvn install
> > > >
> > > > I've ran the two sample apps (realm and spring-jdbc) and they both
> > appear
> > > to
> > > > be working correctly.
> > > >
> > > > I didn't want to remove the wicket-ki-security project, as others
> might
> > > be
> > > > using it.  But now that apache ki has changed its name to apache
> shiro,
> > > > perhaps that project should be moved out of wicketstuff-core?
> > > >
> > > > Please let me know if anyone finds any issues with this release.
> > Thanks!
> > > >
> > > > Tauren
> > > >
> > >
> > >
> > >
> > > --
> > > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > > Apache Wicket 1.3.5 is released
> > > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
>


Re: How to turn ModalWindow form into multipart form?

2009-06-26 Thread Matej Knopp
If you use modal window with form you have to submit the form using
AjaxButton - which rules out multipart form. Also when you have form
in ModalWindow the window itself should be placed in Wicket Form.
(forms can be nested) - which is stated in javascript.

-Matej

On Fri, Jun 26, 2009 at 10:49 AM, Vladimir K wrote:
>
> yes it do has.
>
> near line 1095 of modal.js:
>
> Wicket.Window.getMarkup = function(idWindow, idClassElement, idCaption,
> idContent, idTop, idTopLeft, idTopRight, idLeft, idRight, idBottomLeft,
> idBottomRight, idBottom, idCaptionText, isFrame) {
>        var s =
>                        " style=\"top: 10px; left:
> 10px; width: 100px;\"> style='background-color:transparent;padding:0px;margin:0px;border-width:0px;position:static'>"+
>                        ""+
>
> And it seems hacky and buggy.
>
> In our case we would use regular submit for FileUploadField instead of ajax
> if it wasn't hardcoded. Now we need to hack ModalWindow some way. I don't
> like iframe approach 'cause it forces user to submit twice at the time when
> regular submit should have worked.
>
> If you don't know this very hardcoded form leads to problem reflecting
> request parameters to form components models because in java we have a stack
> of forms and submit request contains just data of this particular form. As
> the result form components of enclosing forms receive empty data and then
> ... at least unexpected validation problems.
> There has been a jira issue already that contains workaround description. I
> have to go right now. I'll find it later.
>
>
> igor.vaynberg wrote:
>>
>> modalwindow has a hardcoded form?
>>
>>
>> On Thu, Jun 25, 2009 at 8:00 AM, Vladimir Kovalyuk
>> wrote:
>>> How to turn ModalWindow form into multipart form?
>>> The problem is that the markup code for that particular form is
>>> hard-coded
>>> into modal.js script (surprise!, surprise!).
>>>
>>> ModalWindow form submission problems han't been fixed yet, I mean rc5
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-turn-ModalWindow-form-into-multipart-form--tp24204896p24216939.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Using validators to validate page parameters

2009-06-26 Thread Igor Vaynberg
Validatable v=new Validatable(value);
new FooValidator().validate(v);
boolean valid=v.isValid();

-igor

On Fri, Jun 26, 2009 at 12:56 AM, Fouche, Pierre wrote:
> Is there a way to use Wicket validators (implementations of IValidator) to 
> validate PageParameters? It seems to me that validators can only be added to 
> form components.
>
> Thanks,
> Pierre
>

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



Re: URL Resolution Magic for Applets as for Images?

2009-06-26 Thread Igor Vaynberg
see org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler

-igor

On Thu, Jun 25, 2009 at 9:28 PM,  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  (note the "../").
>
> This works fine.
>
> However, translation does not work for applets. In my case, with
>
>     archive="jars/MyJar.jar"
>    width="100"
>    height="100">
> 
>
> , 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



TextField and setConvertInputToNull

2009-06-26 Thread Andrea Aime

Hi,
I'm having troubles with null conversion in an application
where we have setup some custom converter locators.

If I understand it properly, a TextField setup like this:

TextField tf = new TextField("id", ...);
tf.setType(String.class);
tf.setConvertEmptyInputStringToNull(true);

that is, without setting an explicit converter, should always
turn the emtpy string to a null, right? Unfortunately it does
not if you have a custom converter locator that does not
let the default CharacterConverter have its way.
However more tests seem to suggest even when one does
not setup a custom converter locator, the default behavior
works by accident: even in the case you don't have a custom converter 
locator, the following, in which the conversion to null is disabled, 
should break:


TextField tf = new TextField("id", ...);
tf.setType(String.class);
tf.setConvertEmptyInputStringToNull(false);

because the default converter is used and that turns
an empty string into nulls even if the setup asks for the opposite
(see CharacterConverter).

Imho it would be better if AbstractTextComponent would override the 
convertInput method and honored the convertEmptyInputStringToNull 
property before trying to use converters. Am I missing something?


Also, the setConvertEmptyInputStringToNull does not mention the
interaction between that and the converters, so arguably there should
be none (or I'm just missing the documentation bits on this topic)

Cheers
Andrea

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



How to use a mounted shared resource as a link resource?

2009-06-26 Thread Robin Sander


Say, I have an image 'logo.png' in the same package as class  
'StaticScope' and I mount this image

as a shared resource at path 'static/images/logo.png'.
How should I access this resource in other components?

For example:

In MyApplication.init():
  ...
  ResourceReference ref = new ResourceReference(StaticScope.class,  
"logo.png");
  mountSharedResource("static/images/logo.png",  
ref.getSharedResourceKey());

  ...

Fine, now my image is accessible at the mounted path 'http:/// 
static/images/logo.png'.


But if I try to access this resource in Java using  
SharedResource.get(...), for example to use it in a Link,
I always end up with the wrong URL ( something like ?wicket:interface=: 
0:header:logolink:image::IResourceListener::)


Here's my code:

public class Header extends Panel {

  public Header(final String id) {
super(id);
add(new SimpleAttributeModifier("id", "header"));
		BookmarkablePageLink logoLink = new  
BookmarkablePageLink("logolink", HOMEPAGE_CLASS);

// XXX
		Resource resource =  
KuppelboxApplication 
.getInstance().getSharedResources().get(StaticScope.class, "logo.png",  
null, null, true);


logoLink.add(new Image("image", resource));
add(logoLink);
add(new UserPanel("user-panel", Index.class));
}
}

Or should I use "new Image("image", new  
ResourceReference(StaticScope.class, "logo.png"))?

(but then I wonder why SharedResources returns Resource only)
Or should I use wicket:link? Or static HTML code only?


Regards,

Robin.

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



SV: redirect to mailto

2009-06-26 Thread Wilhelmsen Tor Iver
> How do I redirect to a mailto: url? This doesn't seem to work:

Mailto is a browser-managed protocol that does not use http; and the
Ajax response does not go to the browser but is analyzed by the Ajax
implementation. 

Perhaps adding custom Javascript in the requestTarget to do a
window.open() on the URL will work, but that is as close as you get
unless you want to ditch the use of Ajax.

- Tor Iver

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



Re: How to turn ModalWindow form into multipart form?

2009-06-26 Thread Eyal Golan
we overridden modal.js and changed the appearance of the modal window

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Fri, Jun 26, 2009 at 11:49 AM, Vladimir K  wrote:

>
> yes it do has.
>
> near line 1095 of modal.js:
>
> Wicket.Window.getMarkup = function(idWindow, idClassElement, idCaption,
> idContent, idTop, idTopLeft, idTopRight, idLeft, idRight, idBottomLeft,
> idBottomRight, idBottom, idCaptionText, isFrame) {
>var s =
>" style=\"top: 10px; left:
> 10px; width: 100px;\">
> style='background-color:transparent;padding:0px;margin:0px;border-width:0px;position:static'>"+
>""+
>
> And it seems hacky and buggy.
>
> In our case we would use regular submit for FileUploadField instead of ajax
> if it wasn't hardcoded. Now we need to hack ModalWindow some way. I don't
> like iframe approach 'cause it forces user to submit twice at the time when
> regular submit should have worked.
>
> If you don't know this very hardcoded form leads to problem reflecting
> request parameters to form components models because in java we have a
> stack
> of forms and submit request contains just data of this particular form. As
> the result form components of enclosing forms receive empty data and then
> ... at least unexpected validation problems.
> There has been a jira issue already that contains workaround description. I
> have to go right now. I'll find it later.
>
>
> igor.vaynberg wrote:
> >
> > modalwindow has a hardcoded form?
> >
> >
> > On Thu, Jun 25, 2009 at 8:00 AM, Vladimir Kovalyuk
> > wrote:
> >> How to turn ModalWindow form into multipart form?
> >> The problem is that the markup code for that particular form is
> >> hard-coded
> >> into modal.js script (surprise!, surprise!).
> >>
> >> ModalWindow form submission problems han't been fixed yet, I mean rc5
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-turn-ModalWindow-form-into-multipart-form--tp24204896p24216939.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Maarten Bosteels
wicket-ki-security is not yet abandonded :-)
I suggest we remove the project (or move it to the attic) as soon as Shiro
has a non-snapshot release in maven.

Maarten

On Fri, Jun 26, 2009 at 11:06 AM, Tauren Mills  wrote:

> BTW -- I added a page to the wiki as well:
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro-security
>
> Thanks Martijn -- not sure if it should be moved yet, but that's good to
> know.
>
> Tauren
>
>
>
> On Fri, Jun 26, 2009 at 1:35 AM, Martijn Dashorst <
> martijn.dasho...@gmail.com> wrote:
>
> > I think we have an attic for abandoned projects.
> >
> > Martijn
> >
> > On Fri, Jun 26, 2009 at 10:23 AM, Tauren Mills
> wrote:
> > > I've created a new project in WicketStuff for wicket-shiro-security:
> > >
> >
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
> > >
> > > This project is basically the same as wicket-ki-security, but I've
> > changed
> > > all references of apache ki/jsecurity to shiro. In addition, instead of
> > > being dependent on jsecurity-0.9.0.jar, this project relies on the
> > following
> > > jars:
> > >
> > > shiro-core-1.0-incubating-SNAPSHOT.jar
> > > shiro-web-1.0-incubating-SNAPSHOT.jar
> > > shiro-spring-1.0-incubating-SNAPSHOT.jar
> > >
> > > Unfortunately, I don't think these jars are availabe in a maven repo
> yet.
> > > So to build you'll need to:
> > >
> > > mkdir shiro
> > > cd shiro
> > > svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
> > > mvn install
> > >
> > > I've ran the two sample apps (realm and spring-jdbc) and they both
> appear
> > to
> > > be working correctly.
> > >
> > > I didn't want to remove the wicket-ki-security project, as others might
> > be
> > > using it.  But now that apache ki has changed its name to apache shiro,
> > > perhaps that project should be moved out of wicketstuff-core?
> > >
> > > Please let me know if anyone finds any issues with this release.
> Thanks!
> > >
> > > Tauren
> > >
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > Apache Wicket 1.3.5 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: JPetStore or equivalent examples

2009-06-26 Thread Peter Thomas
On Fri, Jun 26, 2009 at 2:42 PM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> search the list for wicket-phonebook, look at the example code for
> wicket in action (http://wicketinaction.com), and/or jtrac.
>
> Martijn
>

You can also look at the Seam "hotel booking" example I tried porting to
Wicket here:

http://ptrthomas.wordpress.com/2009/01/14/seam-jsf-vs-wicket-performance-comparison/

SVN URL to maven project:

http://perfbench.googlecode.com/svn/trunk/perfbench/wicket-jpa/


>
> On Fri, Jun 26, 2009 at 10:47 AM, Rory Graves wrote:
> > Hi,
> > I'm new to wicket and was looking for some good example projects.  I
> found
> > the wicket-examples, but most of these appear to be fragments rather than
> > worked examples.  I was more after some worked examples, such as
> JPetStore
> > or equivalent.
> >
> > Any pointers would be greatly appreciated.
> >
> > Thanks
> >
> > Rory
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: JPetStore or equivalent examples

2009-06-26 Thread Martijn Dashorst
search the list for wicket-phonebook, look at the example code for
wicket in action (http://wicketinaction.com), and/or jtrac.

Martijn

On Fri, Jun 26, 2009 at 10:47 AM, Rory Graves wrote:
> Hi,
> I'm new to wicket and was looking for some good example projects.  I found
> the wicket-examples, but most of these appear to be fragments rather than
> worked examples.  I was more after some worked examples, such as JPetStore
> or equivalent.
>
> Any pointers would be greatly appreciated.
>
> Thanks
>
> Rory
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Tauren Mills
BTW -- I added a page to the wiki as well:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-shiro-security

Thanks Martijn -- not sure if it should be moved yet, but that's good to
know.

Tauren



On Fri, Jun 26, 2009 at 1:35 AM, Martijn Dashorst <
martijn.dasho...@gmail.com> wrote:

> I think we have an attic for abandoned projects.
>
> Martijn
>
> On Fri, Jun 26, 2009 at 10:23 AM, Tauren Mills wrote:
> > I've created a new project in WicketStuff for wicket-shiro-security:
> >
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
> >
> > This project is basically the same as wicket-ki-security, but I've
> changed
> > all references of apache ki/jsecurity to shiro. In addition, instead of
> > being dependent on jsecurity-0.9.0.jar, this project relies on the
> following
> > jars:
> >
> > shiro-core-1.0-incubating-SNAPSHOT.jar
> > shiro-web-1.0-incubating-SNAPSHOT.jar
> > shiro-spring-1.0-incubating-SNAPSHOT.jar
> >
> > Unfortunately, I don't think these jars are availabe in a maven repo yet.
> > So to build you'll need to:
> >
> > mkdir shiro
> > cd shiro
> > svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
> > mvn install
> >
> > I've ran the two sample apps (realm and spring-jdbc) and they both appear
> to
> > be working correctly.
> >
> > I didn't want to remove the wicket-ki-security project, as others might
> be
> > using it.  But now that apache ki has changed its name to apache shiro,
> > perhaps that project should be moved out of wicketstuff-core?
> >
> > Please let me know if anyone finds any issues with this release. Thanks!
> >
> > Tauren
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


JPetStore or equivalent examples

2009-06-26 Thread Rory Graves
Hi, 

I'm new to wicket and was looking for some good example projects.  I 
found the wicket-examples, but most of these appear to be fragments 
rather than
worked examples.  I was more after some worked examples, such as 
JPetStore or equivalent.


Any pointers would be greatly appreciated.

Thanks

Rory

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



Re: How to turn ModalWindow form into multipart form?

2009-06-26 Thread Vladimir K

yes it do has.

near line 1095 of modal.js:

Wicket.Window.getMarkup = function(idWindow, idClassElement, idCaption,
idContent, idTop, idTopLeft, idTopRight, idLeft, idRight, idBottomLeft,
idBottomRight, idBottom, idCaptionText, isFrame) {
var s =
""+
""+

And it seems hacky and buggy.

In our case we would use regular submit for FileUploadField instead of ajax
if it wasn't hardcoded. Now we need to hack ModalWindow some way. I don't
like iframe approach 'cause it forces user to submit twice and regular
submit should have worked.

If you don't know this very hardcoded form leads to problem reflecting
request parameters to form components models because in java we have a stack
of forms and submit request contains just data of this particular form. As
the result form components of enclosing forms receive empty data and then
... at least unexpected validation problems.
There has been a jira issue already that contains workaround description. I
have to go right now. I'll find it later.


igor.vaynberg wrote:
> 
> modalwindow has a hardcoded form?
> 
> 
> On Thu, Jun 25, 2009 at 8:00 AM, Vladimir Kovalyuk
> wrote:
>> How to turn ModalWindow form into multipart form?
>> The problem is that the markup code for that particular form is
>> hard-coded
>> into modal.js script (surprise!, surprise!).
>>
>> ModalWindow form submission problems han't been fixed yet, I mean rc5
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-turn-ModalWindow-form-into-multipart-form--tp24204896p24216939.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Martijn Dashorst
I think we have an attic for abandoned projects.

Martijn

On Fri, Jun 26, 2009 at 10:23 AM, Tauren Mills wrote:
> I've created a new project in WicketStuff for wicket-shiro-security:
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/
>
> This project is basically the same as wicket-ki-security, but I've changed
> all references of apache ki/jsecurity to shiro. In addition, instead of
> being dependent on jsecurity-0.9.0.jar, this project relies on the following
> jars:
>
> shiro-core-1.0-incubating-SNAPSHOT.jar
> shiro-web-1.0-incubating-SNAPSHOT.jar
> shiro-spring-1.0-incubating-SNAPSHOT.jar
>
> Unfortunately, I don't think these jars are availabe in a maven repo yet.
> So to build you'll need to:
>
> mkdir shiro
> cd shiro
> svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
> mvn install
>
> I've ran the two sample apps (realm and spring-jdbc) and they both appear to
> be working correctly.
>
> I didn't want to remove the wicket-ki-security project, as others might be
> using it.  But now that apache ki has changed its name to apache shiro,
> perhaps that project should be moved out of wicketstuff-core?
>
> Please let me know if anyone finds any issues with this release. Thanks!
>
> Tauren
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Migration of wicket-ki-security to wicket-shiro-security

2009-06-26 Thread Tauren Mills
I've created a new project in WicketStuff for wicket-shiro-security:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

This project is basically the same as wicket-ki-security, but I've changed
all references of apache ki/jsecurity to shiro. In addition, instead of
being dependent on jsecurity-0.9.0.jar, this project relies on the following
jars:

shiro-core-1.0-incubating-SNAPSHOT.jar
shiro-web-1.0-incubating-SNAPSHOT.jar
shiro-spring-1.0-incubating-SNAPSHOT.jar

Unfortunately, I don't think these jars are availabe in a maven repo yet.
So to build you'll need to:

mkdir shiro
cd shiro
svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
mvn install

I've ran the two sample apps (realm and spring-jdbc) and they both appear to
be working correctly.

I didn't want to remove the wicket-ki-security project, as others might be
using it.  But now that apache ki has changed its name to apache shiro,
perhaps that project should be moved out of wicketstuff-core?

Please let me know if anyone finds any issues with this release. Thanks!

Tauren


Using validators to validate page parameters

2009-06-26 Thread Fouche, Pierre
Is there a way to use Wicket validators (implementations of IValidator) to 
validate PageParameters? It seems to me that validators can only be added to 
form components.

Thanks,
Pierre


URL Resolution Magic for Applets as for Images?

2009-06-26 Thread Bernard
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  (note the "../").

This works fine.

However, translation does not work for applets. In my case, with




, 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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Submit form with ajax on enter

2009-06-26 Thread John Patterson

The first handler, which works for most cases, is missing the .click() method
-- 
View this message in context: 
http://www.nabble.com/Submit-form-with-ajax-on-enter-tp24196732p24216221.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Submit form with ajax on enter

2009-06-26 Thread John Patterson

Just to add some closure to this traumatic coding problem

I added a simple inline event handler like this


findTextField = new TextField("query")
{
@Override
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);

tag.put("onkeypress", "if (event.keyCode == 13) 
{
document.getElementById('" searchSubmitButton.getMarkupId() + "'); return
false;} 

// disable browser's autocomplete
tag.put("autocomplete", "off");
}
};

This worked a treat in my simplified test page but not in my actual
applications page.  After pulling my hair out for a good couple of hours I
isolated the problem to the fact that I had a Google Map (V3) on the page
which somehow interferes with event handling.  I assume its something to do
with their keyboard controls for moving the map.

After a bit more experimenting I found that I could not cancel the keypress
event as long as the Map was on the page so instead I diverted the form
submit event like this:


Form searchForm = new Form("search")
{
@Override
protected void onComponentTag(ComponentTag tag)
{
tag.put("onsubmit", "document.getElementById('" 
+
searchSubmitButton.getMarkupId() + "').click(); return false;");
super.onComponentTag(tag);
}
};

This works in IE6, Safari and Firefox with a map on the page.  
-- 
View this message in context: 
http://www.nabble.com/Submit-form-with-ajax-on-enter-tp24196732p24216201.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread Per Lundholm
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 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread rrmlwt

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread rrmlwt

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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org