Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Eelco Hillenius
> now convert the datepicker from a panel to a behavior - pretty easy to do,
> in fact eelco will be doing that today?

Just checked that in (wicket-datetime, CalendarPopup component is now
replaced by behavior DatePicker). Imo, writing it like a behavior is
less elegant than a component, but it's way nicer to use for
end-users.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Otan

where is that method? I can't find setescapemessages() in Wicket 2.0

On 09/02/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


see feedbackmessage.setescapemessages()

not sure why that is different from setescapemodelstrings... any other
devs think it should be the same? probably more intuitive that way

-igor


On 2/8/07, Otan <[EMAIL PROTECTED]> wrote:

> I want to have an info message that contains html tags but
> FeedbackPanel escapes the message:
>  becomes 
>
> I don't know why
> feedbackPanel.setEscapeModelStrings(false)
> seems not to work.
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Eelco Hillenius
On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> see feedbackmessage.setescapemessages()
>
> not sure why that is different from setescapemodelstrings... any other devs
> think it should be the same? probably more intuitive that way

Yeah,

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Igor Vaynberg

all markup in wicket it is escaped by default for security. we are not going
to change that :)

-igor


On 2/8/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> see feedbackmessage.setescapemessages()
>
> not sure why that is different from setescapemodelstrings... any other
devs
> think it should be the same? probably more intuitive that way
>
I personally feel the intuitive way is not the escape by default.
However, whatever the default is true or false are ok

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Carfield Yim
On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> see feedbackmessage.setescapemessages()
>
> not sure why that is different from setescapemodelstrings... any other devs
> think it should be the same? probably more intuitive that way
>
I personally feel the intuitive way is not the escape by default.
However, whatever the default is true or false are ok

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Igor Vaynberg

ermfeedbackpanel.setescapemessages()

-igor


On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


see feedbackmessage.setescapemessages()

not sure why that is different from setescapemodelstrings... any other
devs think it should be the same? probably more intuitive that way

-igor


On 2/8/07, Otan <[EMAIL PROTECTED]> wrote:

> I want to have an info message that contains html tags but
> FeedbackPanel escapes the message:
>  becomes 
>
> I don't know why
> feedbackPanel.setEscapeModelStrings(false)
> seems not to work.
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Igor Vaynberg

see feedbackmessage.setescapemessages()

not sure why that is different from setescapemodelstrings... any other devs
think it should be the same? probably more intuitive that way

-igor


On 2/8/07, Otan <[EMAIL PROTECTED]> wrote:


I want to have an info message that contains html tags but
FeedbackPanel escapes the message:
 becomes 

I don't know why
feedbackPanel.setEscapeModelStrings(false)
seems not to work.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to unescape markup of the feedbackpanel's model

2007-02-08 Thread Otan

I want to have an info message that contains html tags but
FeedbackPanel escapes the message:
 becomes 

I don't know why
feedbackPanel.setEscapeModelStrings(false)
seems not to work.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] When will RequestCycle.detach() being called?

2007-02-08 Thread Carfield Yim
A very old question but only get time to fix now. And found that the
problem only occur at  startPage(final Page page) but not
startPage(final ITestPageSource source) , so I change all test to this
method. Most work ok, just have one get the other exception"

java.lang.IllegalArgumentException: Argument pageClass must be not null
at 
wicket.request.target.component.BookmarkablePageRequestTarget.(BookmarkablePageRequestTarget.java:101)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.(BookmarkablePageRequestTarget.java:69)
at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveHomePageTarget(DefaultRequestTargetResolverStrategy.java:374)
at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:173)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
at wicket.RequestCycle.step(RequestCycle.java:992)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at 
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:318)
at 
wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:307)
at wicket.util.tester.WicketTester.startPage(WicketTester.java:231)
at com.genuco.base.LogonTest.testMain(LogonTest.java:32)

Anyone have any idea?

On 1/5/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> this is currently the code:
>
> public final Page startPage(final Page page)
> {
> setHomePage(DummyHomePage.class);
> processRequestCycle(page);
>
> Page last = getLastRenderedPage();
>
> createRequestCycle();   this line should
> make sure that the touch works...
> getWicketSession().touch(page);
> if (page != last)
> {
> getWicketSession().touch(last);
> }
> return last;
> }
>
> but it can be that it is purely 1.3
>
> johan
>
>
>  On 1/5/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
> >
> > On 12/28/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> > > On 12/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > which version of wicket is that?
> > > > That should be fixed.
> > >
> > > Wicket 1.2.3, may be I should upgrade to 1.2.4
> > >
> > Just upgrade to 1.2.4 and this problem is still there. And I've double
> > verify that RequestCycle SHOULD be there as creating wickettester
> > should trigger that RequestCycle creation
> >
> > wicket.WicketRuntimeException: Can not set the attribute. No
> > RequestCycle available
> > at wicket.Session.setAttribute(Session.java:933)
> > at wicket.PageMap.put (PageMap.java:526)
> > at wicket.Session.touch(Session.java:744)
> > at
> wicket.util.tester.WicketTester.startPage(WicketTester.java:264)
> > at
> com.genuco.web.pages.account.MainTest.testMain(MainTest.java
> :29)
> > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
> > at
> org.junit.internal.runners.TestMethodRunner.runUnprotected
> (TestMethodRunner.java:81)
> > at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
> > at
> org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java
> :75)
> > at
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
> > at
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
> > at
> org.junit.internal.runners.TestClassMethodsRunner.run
> (TestClassMethodsRunner.java:35)
> > at
> org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
> > at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java
> :34)
> > at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> > at
> org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:29)
> > at
> org.junit.internal.runners.TestClassRunner$1.runUnprotected
> (TestClassRunner.java:42)
> > at
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
> > at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
> > at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
> > at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> > at
> or

Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Igor Vaynberg

woopsie

s/boolean user!=null&&user.isadmin();/return user!=null&&user.isadmin();/

-igor


On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


it is pretty trivial

lets say you have tag interface AdminComponent. all your admin components
implement this interface.

all you have to do is

class MyAuthStrat implements IAuthorizationStrategy {
  boolean isInstantioantionAuthorizer() { return true; }

  boolean isActionAuthorized(Component c, Action action) {
   if (c instanceof AdminComponent) {
  if (action.equals(Component.RENDER)||action.equals(
Component.ENABLE)) {
 User user= Session.get().getUser();
   boolean user!=null&&user.isadmin();
  }
   }
}

myapplication.init() { getsecuritysettings().setauthostrat(new
myauthstrat()); }

what these few lines of code do is give you an application wide security.
any component that implements AdminComponent interface will now only be
rendered and enabled for admin users.

wicket-auth-role is really an example  that demonstrates usecase where
security is defined by a set of preselected roles.

have fun

-igor



On 2/8/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:

> Jonathan,
>
> How can I implement this using a security strategy?   Do I need to
> implement my own strategy or does the wicket-auth-roles package take care of
> this automatically?
>
> Sean
>
> On 2/8/07, Jonathan Locke <[EMAIL PROTECTED] > wrote:
> >
> >
> >
> > if your home page is similar for different roles, you might even make
> > one home page and hide/show different panels/components depending
> > on who is signed in.  you can /even/ do that automatically using a
> > security
> > strategy because in wicket you can create panels that are only visible
> > to users having certain roles.  the advantage there is that you can
> > stick
> > such panels anywhere and not be concerned that the wrong class of use
> > might ever see them.
> >
> >
> >
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Jonathan Locke


yeah, that's it and it's impressively powerful for such a simple thing.  but
then that's java objects.  we should really get an example like this on the
wiki at some point...  it might even make a good demo/example in the more
introductory areas of the new site.  it certainly ought to open some eyes
concerning what you can do.


igor.vaynberg wrote:
> 
> it is pretty trivial
> 
> lets say you have tag interface AdminComponent. all your admin components
> implement this interface.
> 
> all you have to do is
> 
> class MyAuthStrat implements IAuthorizationStrategy {
>   boolean isInstantioantionAuthorizer() { return true; }
> 
>   boolean isActionAuthorized(Component c, Action action) {
>if (c instanceof AdminComponent) {
>   if (action.equals(Component.RENDER)||action.equals(
> Component.ENABLE)) {
>  User user=Session.get().getUser();
>boolean user!=null&&user.isadmin();
>   }
>}
> }
> 
> myapplication.init() { getsecuritysettings().setauthostrat(new
> myauthstrat()); }
> 
> what these few lines of code do is give you an application wide security.
> any component that implements AdminComponent interface will now only be
> rendered and enabled for admin users.
> 
> wicket-auth-role is really an example  that demonstrates usecase where
> security is defined by a set of preselected roles.
> 
> have fun
> 
> -igor
> 
> 
> 
> On 2/8/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:
>>
>> Jonathan,
>>
>> How can I implement this using a security strategy?   Do I need to
>> implement my own strategy or does the wicket-auth-roles package take care
>> of
>> this automatically?
>>
>> Sean
>>
>> On 2/8/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> >
>> > if your home page is similar for different roles, you might even make
>> > one home page and hide/show different panels/components depending
>> > on who is signed in.  you can /even/ do that automatically using a
>> > security
>> > strategy because in wicket you can create panels that are only visible
>> > to users having certain roles.  the advantage there is that you can
>> > stick
>> > such panels anywhere and not be concerned that the wrong class of use
>> > might ever see them.
>> >
>> >
>> >
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--How-can-I-have-difference-HomePage-for-difference-role--tf3191903.html#a8879317
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Igor Vaynberg

On 2/8/07, Scott Swank <[EMAIL PROTECTED]> wrote:

Now I'm really laughing at myself.  I was reasonably proud of extracting

this.



you will get used to it, it is not apparent right off the bat. you did the
hardest part which is write the code in the first place. what i did was just
reorganize it :)

Very helpful, thank you.  And yes, you'll get yourself a wiki article out of

the above once I clean it up.



youre welcome

-igor


Cheers,

Scott


On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> start with something simple like creating a reusable datetextfield
>
> private static class DateField extends DateTextField {
>public DateField(String id, IModel model) {
>  super(id, model, "MM/dd/");
>  setrequired(true);
>  setoutputmarkupid(true);
> }
> }
>
> this will change the code down to:
>
> private void addReservationDates()
> {
> // create the feedback panel
> FeedbackPanel feedback = new FeedbackPanel("feedback");
> feedback.setOutputMarkupId(true);
> add(feedback);
>
> // create the check-in field
> DateField checkIn = new DateField("checkIn");
> checkIn.add(DateValidator.minimum(getToday()));
> add(buildAjaxFeedbackBorder("checkInBorder", checkIn,
> feedback));
>
> >
> > // create a date picker for the check-in field
> > add(new CylleniusCalendar("checkInPicker", checkIn));
> >
> > // create the check-out field
> > DateField checkOut = new DateField("checkOut");
> > add(buildAjaxFeedbackBorder("checkOutBorder", checkOut,
> > feedback));
> >
> > // create a date picker for the check-out field
> > add(new CylleniusCalendar("checkOutPicker", checkOut));
> >
> > // require checkIn to be before checkOut
> > add(new DatesComparatorValidator(checkIn, checkOut));
> > }
> >
> > private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
> > borderId,
> > FormComponent component, final FeedbackPanel feedback)
> > {
> >...
> > }
> >
>
>
> then externalize the feedback border, and make it reusable for the
> entire project
>
> class myajaxerrorborder extends formcomponentfeedbackborder {
>   private boolean initialized=false;
>public myajaxerroborder(String id) {
> super(id);
> setoutputmarkupid(true);
> }
>
>protected void onattach() {
>super.onattach();
>if (!initialized) {
>   foreach child of type formcomponent in border's hierarchy //
> use a visitor {
>   child.add(new formcomponentupdatingbehavior() {
>onerror(target) {
> target.addcomponent(
> myajaxerrorborder.this);
> foreach feedbackpanel in getPage()'s
> hierarchy {
> target.add(feedbackpanel);
> }
> }
>}
>   }
>  initialized=true;
>  }
> }
>
> so the above border automatically initializes form component children
> you add to its hierarchy, it doesnt handle children added after the first
> request but it is simple to make it do that, i leave that as an exercise to
> you :)
>
> so now we are at:
>
>
> private void addReservationDates()
> {
> // create the feedback panel
> add(new FeedbackPanel("feedback").setOutputMarkupId(true));
>
> // create the check-in field
>
> DateField checkIn = new DateField("checkIn");
> checkIn.add(DateValidator.minimum(getToday()));
> add(new MyAjaxErrorBorder("checkInBorder").add(checkIn));
>
> >
> > // create a date picker for the check-in field
> > add(new CylleniusCalendar("checkInPicker", checkIn));
> >
> > // create the check-out field
> > DateField checkOut = new DateField("checkOut");
> > add(new MyAjaxErrorBorder("checkOutBorder").add(checkOut));
> >
> > // create a date picker for the check-out field
> > add(new CylleniusCalendar("checkOutPicker", checkOut));
> >
> > // require checkIn to be before checkOut
> > add(new DatesComparatorValidator(checkIn, checkOut));
> > }
> >
> >
> now convert the datepicker from a panel to a behavior - pretty easy to
> do, in fact eelco will be doing that today? to wicket-datetime datepicker
>
> so now you will have
>
> private static class DateField extends DateTextField {
>public DateField(String id, IModel model) {
>  super(id, model, "MM/dd/");
>  setrequired(true);
>  setoutputmarkupid(true);
> add(new CelleniusDatepicker());
> }
> }
>
> private void addReservationDates()
> {
> // create the feedback panel
> add(new FeedbackPanel("feedback").setOutputMarkupId(true));
>
> // create the check-in field
>
> DateField checkIn = new DateField("checkIn");
>   

Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Igor Vaynberg

it is pretty trivial

lets say you have tag interface AdminComponent. all your admin components
implement this interface.

all you have to do is

class MyAuthStrat implements IAuthorizationStrategy {
 boolean isInstantioantionAuthorizer() { return true; }

 boolean isActionAuthorized(Component c, Action action) {
  if (c instanceof AdminComponent) {
 if (action.equals(Component.RENDER)||action.equals(
Component.ENABLE)) {
User user=Session.get().getUser();
  boolean user!=null&&user.isadmin();
 }
  }
}

myapplication.init() { getsecuritysettings().setauthostrat(new
myauthstrat()); }

what these few lines of code do is give you an application wide security.
any component that implements AdminComponent interface will now only be
rendered and enabled for admin users.

wicket-auth-role is really an example  that demonstrates usecase where
security is defined by a set of preselected roles.

have fun

-igor



On 2/8/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:


Jonathan,

How can I implement this using a security strategy?   Do I need to
implement my own strategy or does the wicket-auth-roles package take care of
this automatically?

Sean

On 2/8/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
>
>
> if your home page is similar for different roles, you might even make
> one home page and hide/show different panels/components depending
> on who is signed in.  you can /even/ do that automatically using a
> security
> strategy because in wicket you can create panels that are only visible
> to users having certain roles.  the advantage there is that you can
> stick
> such panels anywhere and not be concerned that the wrong class of use
> might ever see them.
>
>
>
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Scott Swank

Now I'm really laughing at myself.  I was reasonably proud of extracting
this.

   private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
borderId,
   FormComponent component, final FeedbackPanel feedback)
   {
   final FormComponentFeedbackBorder border = new
FormComponentFeedbackBorder(borderId);
   border.add(component);
   border.setOutputMarkupId(true);

   component.add(new AjaxFormComponentUpdatingBehavior("onblur") {
   private static final long serialVersionUID =
-8868206053122717303L;

   protected void onUpdate(AjaxRequestTarget target)
   {
   target.addComponent(feedback);
   target.addComponent(border);
   }
   });

   return border;
   }

Very helpful, thank you.  And yes, you'll get yourself a wiki article out of
the above once I clean it up.

Cheers,
Scott


On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


start with something simple like creating a reusable datetextfield

private static class DateField extends DateTextField {
   public DateField(String id, IModel model) {
 super(id, model, "MM/dd/");
 setrequired(true);
 setoutputmarkupid(true);
}
}

this will change the code down to:

private void addReservationDates()
{
// create the feedback panel
FeedbackPanel feedback = new FeedbackPanel("feedback");
feedback.setOutputMarkupId(true);
add(feedback);

// create the check-in field
DateField checkIn = new DateField("checkIn");
checkIn.add(DateValidator.minimum(getToday()));
add(buildAjaxFeedbackBorder("checkInBorder", checkIn, feedback));

>
> // create a date picker for the check-in field
> add(new CylleniusCalendar("checkInPicker", checkIn));
>
> // create the check-out field
> DateField checkOut = new DateField("checkOut");
> add(buildAjaxFeedbackBorder("checkOutBorder", checkOut,
> feedback));
>
> // create a date picker for the check-out field
> add(new CylleniusCalendar("checkOutPicker", checkOut));
>
> // require checkIn to be before checkOut
> add(new DatesComparatorValidator(checkIn, checkOut));
> }
>
> private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
> borderId,
> FormComponent component, final FeedbackPanel feedback)
> {
>...
> }
>


then externalize the feedback border, and make it reusable for the entire
project

class myajaxerrorborder extends formcomponentfeedbackborder {
  private boolean initialized=false;
   public myajaxerroborder(String id) {
super(id);
setoutputmarkupid(true);
}

   protected void onattach() {
   super.onattach();
   if (!initialized) {
  foreach child of type formcomponent in border's hierarchy // use
a visitor {
  child.add(new formcomponentupdatingbehavior() {
   onerror(target) {
target.addcomponent(myajaxerrorborder.this
);
foreach feedbackpanel in getPage()'s
hierarchy {
target.add(feedbackpanel);
}
}
   }
  }
 initialized=true;
 }
}

so the above border automatically initializes form component children you
add to its hierarchy, it doesnt handle children added after the first
request but it is simple to make it do that, i leave that as an exercise to
you :)

so now we are at:


private void addReservationDates()
{
// create the feedback panel
add(new FeedbackPanel("feedback").setOutputMarkupId(true));

// create the check-in field

DateField checkIn = new DateField("checkIn");
checkIn.add(DateValidator.minimum(getToday()));
add(new MyAjaxErrorBorder("checkInBorder").add(checkIn));

>
> // create a date picker for the check-in field
> add(new CylleniusCalendar("checkInPicker", checkIn));
>
> // create the check-out field
> DateField checkOut = new DateField("checkOut");
> add(new MyAjaxErrorBorder("checkOutBorder").add(checkOut));
>
> // create a date picker for the check-out field
> add(new CylleniusCalendar("checkOutPicker", checkOut));
>
> // require checkIn to be before checkOut
> add(new DatesComparatorValidator(checkIn, checkOut));
> }
>
>
now convert the datepicker from a panel to a behavior - pretty easy to do,
in fact eelco will be doing that today? to wicket-datetime datepicker

so now you will have

private static class DateField extends DateTextField {
   public DateField(String id, IModel model) {
 super(id, model, "MM/dd/");
 setrequired(true);
 setoutputmarkupid(true);
add(new CelleniusDatepicker());
}
}

private void addReservationDates()
{
// create the fe

Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Sean Sullivan

Jonathan,

How can I implement this using a security strategy?   Do I need to implement
my own strategy or does the wicket-auth-roles package take care of this
automatically?

Sean

On 2/8/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:




if your home page is similar for different roles, you might even make
one home page and hide/show different panels/components depending
on who is signed in.  you can /even/ do that automatically using a
security
strategy because in wicket you can create panels that are only visible
to users having certain roles.  the advantage there is that you can stick
such panels anywhere and not be concerned that the wrong class of use
might ever see them.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Jonathan Locke


if your home page is similar for different roles, you might even make
one home page and hide/show different panels/components depending
on who is signed in.  you can /even/ do that automatically using a security
strategy because in wicket you can create panels that are only visible
to users having certain roles.  the advantage there is that you can stick
such panels anywhere and not be concerned that the wrong class of use
might ever see them.


igor.vaynberg wrote:
> 
> a couple of ways
> 
> like you said have a dummy homepage, but use restartresponse exception to
> redirect to another page
> 
> or override gethomepageclass in application and return a different one
> based
> on the loggedin user <-- not sure if that will work very well, but worth a
> try
> 
> -igor
> 
> 
> On 2/8/07, Carfield Yim <[EMAIL PROTECTED]> wrote:
>>
>> I would like to direct difference user to difference homepage, one way
>> I can think of is having a dummy homepage and use
>> redirectToInterceptPage(arg0) to suitable page in the constructor of
>> that dummy homepage.
>>
>> However wicket fail, can anyone recommend a better solution?
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--How-can-I-have-difference-HomePage-for-difference-role--tf3191903.html#a8878758
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Carfield Yim
On 2/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> a couple of ways
>
> like you said have a dummy homepage, but use restartresponse exception to
> redirect to another page
>
Haven't try this one, thanks.

> or override gethomepageclass in application and return a different one based
> on the loggedin user <-- not sure if that will work very well, but worth a
> try
>
Are you mean something like

public Class getHomePage() {
if(getRequestCycle().getSession().getUser().isAdmin())
return Admin.class;
else
return User.class;
}

If yes then I tried, but this is not work as expected, always just
return first class for first request

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Igor Vaynberg

start with something simple like creating a reusable datetextfield

private static class DateField extends DateTextField {
  public DateField(String id, IModel model) {
super(id, model, "MM/dd/");
setrequired(true);
setoutputmarkupid(true);
   }
}

this will change the code down to:

   private void addReservationDates()
   {
   // create the feedback panel
   FeedbackPanel feedback = new FeedbackPanel("feedback");
   feedback.setOutputMarkupId(true);
   add(feedback);

   // create the check-in field
   DateField checkIn = new DateField("checkIn");
   checkIn.add(DateValidator.minimum(getToday()));
   add(buildAjaxFeedbackBorder("checkInBorder", checkIn, feedback));



// create a date picker for the check-in field
add(new CylleniusCalendar("checkInPicker", checkIn));

// create the check-out field
DateField checkOut = new DateField("checkOut");
add(buildAjaxFeedbackBorder("checkOutBorder", checkOut,
feedback));

// create a date picker for the check-out field
add(new CylleniusCalendar("checkOutPicker", checkOut));

// require checkIn to be before checkOut
add(new DatesComparatorValidator(checkIn, checkOut));
}

private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
borderId,
FormComponent component, final FeedbackPanel feedback)
{
   ...
}




then externalize the feedback border, and make it reusable for the entire
project

class myajaxerrorborder extends formcomponentfeedbackborder {
 private boolean initialized=false;
  public myajaxerroborder(String id) {
   super(id);
   setoutputmarkupid(true);
   }

  protected void onattach() {
  super.onattach();
  if (!initialized) {
 foreach child of type formcomponent in border's hierarchy // use a
visitor {
 child.add(new formcomponentupdatingbehavior() {
  onerror(target) {
   target.addcomponent(myajaxerrorborder.this);
   foreach feedbackpanel in getPage()'s
hierarchy {
   target.add(feedbackpanel);
   }
   }
  }
 }
initialized=true;
}
}

so the above border automatically initializes form component children you
add to its hierarchy, it doesnt handle children added after the first
request but it is simple to make it do that, i leave that as an exercise to
you :)

so now we are at:


   private void addReservationDates()
   {
   // create the feedback panel
   add(new FeedbackPanel("feedback").setOutputMarkupId(true));

   // create the check-in field

   DateField checkIn = new DateField("checkIn");
   checkIn.add(DateValidator.minimum(getToday()));
   add(new MyAjaxErrorBorder("checkInBorder").add(checkIn));



// create a date picker for the check-in field
add(new CylleniusCalendar("checkInPicker", checkIn));

// create the check-out field
DateField checkOut = new DateField("checkOut");
add(new MyAjaxErrorBorder("checkOutBorder").add(checkOut));

// create a date picker for the check-out field
add(new CylleniusCalendar("checkOutPicker", checkOut));

// require checkIn to be before checkOut
add(new DatesComparatorValidator(checkIn, checkOut));
}



now convert the datepicker from a panel to a behavior - pretty easy to do,
in fact eelco will be doing that today? to wicket-datetime datepicker

so now you will have

private static class DateField extends DateTextField {
  public DateField(String id, IModel model) {
super(id, model, "MM/dd/");
setrequired(true);
setoutputmarkupid(true);
   add(new CelleniusDatepicker());
   }
}

private void addReservationDates()
   {
   // create the feedback panel
   add(new FeedbackPanel("feedback").setOutputMarkupId(true));

   // create the check-in field

   DateField checkIn = new DateField("checkIn");
   checkIn.add(DateValidator.minimum(getToday()));
   add(new MyAjaxErrorBorder("checkInBorder").add(checkIn));



// create the check-out field
DateField checkOut = new DateField("checkOut");
add(new MyAjaxErrorBorder("checkOutBorder").add(checkOut));

// require checkIn to be before checkOut
add(new DatesComparatorValidator(checkIn, checkOut));
}



finally extract a simple daterange panel like jon suggested

and you will be down to:

private void addReservationDates()
   {
   // create the feedback panel
   add(new FeedbackPanel("feedback").setOutputMarkupId(true));

   add(new DateRangeSelector("selector", new PropertyModel(this,
"checkIn"), new PropertyModel(this, "checkOut"), getToday(), null));
}

and what you end up with are new reusable

datefield
ajax error border
daterange selector

that you can u

Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Jonathan Locke


well, i find that people often forget how easy it is to subclass components
and create
new ones in wicket.  if your own way of doing date picking is something you
do more 
than twice on your site, a simple panel could collapse all the related
components and
initialization into one little class like DatePickerPanel so a usage of it
looks more like 
the code below and the details of how it works don't bleed out into your
usage code.  
it does take a little bit of fussing to do that, but the code is easier to
work with and 
much more encapsulated.

private void addReservationDates()
{
// create the feedback panel
FeedbackPanel feedback = new FeedbackPanel("feedback");
feedback.setOutputMarkupId(true);
add(feedback);

add(new DatePickerPanel("checkIn", new PropertyModel(roomRequest,
"checkIn")));
add(new DatePickerPanel("checkOut", new PropertyModel(roomRequest,
"checkOut")));

...
}



Scott Swank wrote:
> 
> Igor,
> 
> The most verbose code is the following.  It creates the FeedbackPanel and
> two fields: a check-in date and a check-out date.  The comments are a bit
> heavy because this is a proof-of-concept app.  At this point, and such
> "best
> practices" pointers are more than welcome.  Thank you.
> 
> ...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius)
> is
> simply a sub-class of DatePicker with a HeaderContributor.forCss() to
> increase its z-index a a value greater than that of the ModalWindow from
> which it is opened.
> 
> private void addReservationDates()
> {
> // create the feedback panel
> FeedbackPanel feedback = new FeedbackPanel("feedback");
> feedback.setOutputMarkupId(true);
> add(feedback);
> 
> // create the check-in field
> DateTextField checkIn = new DateTextField("checkIn", new
> PropertyModel(roomRequest, "checkIn"),
> "MM/dd/");
> checkIn.setOutputMarkupId(true);
> checkIn.setRequired(true);
> checkIn.add(DateValidator.minimum(getToday()));
> add(buildAjaxFeedbackBorder("checkInBorder", checkIn, feedback));
> 
> // create a date picker for the check-in field
> add(new CylleniusCalendar("checkInPicker", checkIn));
> 
> // create the check-out field
> DateTextField checkOut = new DateTextField("checkOut", new
> PropertyModel(roomRequest,
> "checkOut"), "MM/dd/");
> checkOut.setOutputMarkupId(true);
> checkOut.setRequired(true);
> add(buildAjaxFeedbackBorder("checkOutBorder", checkOut,
> feedback));
> 
> // create a date picker for the check-out field
> add(new CylleniusCalendar("checkOutPicker", checkOut));
> 
> // require checkIn to be before checkOut
> add(new DatesComparatorValidator(checkIn, checkOut));
> }
> 
> private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
> borderId,
> FormComponent component, final FeedbackPanel feedback)
> {
> final FormComponentFeedbackBorder border = new
> FormComponentFeedbackBorder(borderId);
> border.add(component);
> border.setOutputMarkupId(true);
> 
> component.add(new AjaxFormComponentUpdatingBehavior("onblur") {
> private static final long serialVersionUID =
> -8868206053122717303L;
> 
> protected void onUpdate(AjaxRequestTarget target)
> {
> target.addComponent(feedback);
> target.addComponent(border);
> }
> });
> 
> return border;
> }
> 
> On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>>
>> On 2/7/07, Scott Swank <[EMAIL PROTECTED]> wrote:
>> >
>> > 2. Overall there was a preference for Wicket's Java components over
>> > JSF's taglibs and backing bean code.  This was not a unanimous
>> preference,
>> > and taglibs are much more concise than Wicket code.  However, the
>> cleanness
>> > of the resulting HTML was a factor in Wicket's favor and the rapidity
>> of the
>> > development effort largely offset the comparative verbosity of the code
>> > base.  This verbosity was most evident in ajax form feedback: feedback
>> > panel, text field, ajax feedback border, ajax behavior, etc.
>>
>>
>> got any examples of this verbouse code? i am doing something similar in a
>> project i am building with 2.0 and i was able to factor out a lot of this
>> stuff so its not so bad. maybe we can help you do the same.
>>
>> -igor
>>
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-us

Re: [Wicket-user] delete row and update view?

2007-02-08 Thread Igor Vaynberg

actually you need to do nothing :)

after onclick for your delete link is done executing the page will refresh
and so will the dataview. when it refreshes it will call methods on the
dataprovider again and refresh accordingly

-igor


On 2/8/07, Francisco Treacy <[EMAIL PROTECTED]> wrote:


I have a DataView fed by a SortableDataProvider  to display a pageable and
sortable table. In each row, I have a link to delete the current item.

My problem is that I cannot find the way to remove from the view the item
I just deleted in the database by clicking on the link. I need to refresh
immediately the view in order to reflect the actual state... but don't know
how.
I tried with lots of possibilites like rendering the item, disabling it,
hiding it... but nothing...

Wicket Library example (
http://www.wicket-library.com/wicket-examples/library) does what I want,
but uses a PageableListView. And I think I need DataView because it has
better capabilities.

What should I do to be sure that each time I fire an action (add, delete,
edit), my view is going to reflect my actual model?

Thanks!
Francisco

--
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo! 
Questions/Réponses
.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] delete row and update view?

2007-02-08 Thread Francisco Treacy
I have a DataView fed by a SortableDataProvider  to display a pageable and 
sortable table. In each row, I have a link to delete the current item. 

My problem is that I cannot find the way to remove from the view the item I 
just deleted in the database by clicking on the link. I need to refresh 
immediately the view in order to reflect the actual state... but don't know how.
I tried with lots of possibilites like rendering the item, disabling it, hiding 
it... but nothing...

Wicket Library example (http://www.wicket-library.com/wicket-examples/library) 
does what I want, but uses a PageableListView. And I think I need DataView 
because it has better capabilities.

What should I do to be sure that each time I fire an action (add, delete, 
edit), my view is going to reflect my actual model?

Thanks!
Francisco


-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-tinymce textareas

2007-02-08 Thread Francisco Treacy
Iulian: great.
 Please let me know when this is commited (i just looked up in svn and there 
were no new commits to wicket 1.2 branch in contrib tinymce).

Igor: I saw the attachment, but when I clicked over the link, it took me to a 
sourceforge error page  I'll wait for Iulian's correction, thanks anyway.

Francisco

> hi francisco,

>
> sorry for this late response, the fix will be ready within few days.
> 
> /iulian



-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I add panel on submit?

2007-02-08 Thread Igor Vaynberg

that works, usually i like to separate button actions on my forms, so i
would have something like this


abstract class myform extends form {

  protected abstract void onsave();

  ...

  add(new button(...) { onsubmit() { onsave(); }});
}

and then in page it would be

final MyPanel panel=new MyPanel(..);
add(panel);
add(new myform(...) { onsave() { panel.setvisible(true); }}

i like this way of wiring things so the form can be a bit more opaque


-igor


On 2/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:


Hi,



I have seperated the myForm and myPage, because of that I can reach the
myPanel by setting it myPage's field.



((MyPage)getPage()).getMyPanel().setVisible(true);


 Is this the only way, can I directly reach to the component? :)



Thanks Igor for your helps.
 - Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Friday, February 9, 2007 12:24:20 AM
Subject: Re: [Wicket-user] How can I add panel on submit?

another way is to keep the panel as a field of the enclosing page/panel

-igor


On 2/8/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
>
> the easiest way is to do this
>
> final MyPanel mypanel =new MyPanel(..);
> ...
> onsubmit() { mypanel.setvisible(true); <== it is reachable because it
> was declared final
>
> -igor
>
>
> On 2/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
> >
> >   Hi,
> > I have added to my page a panel.
> >
> > CompoundPropertyModel compoundPropertyModel = new
> > CompoundPropertyModel(myModel);
> > add(new myPanel("",compoundPropertyModel).setVisible(false));
> > I am submitting my form and getting form value to the panel. But I
> > cant find how can I reach the component, in the form's onSubmit function.
> > protected void onSubmit(){
> > //How can I reach the panel component and set it to visible?
> > }
> >
> > Thanks for your helps.
> >
> > - Original Message 
> > From: Igor Vaynberg < [EMAIL PROTECTED]>
> > To: wicket-user@lists.sourceforge.net
> > Sent: Thursday, February 8, 2007 12:30:01 AM
> > Subject: Re: [Wicket-user] How can I add panel on submit?
> >
> > one way:
> > add the panel and set it to invisible, in your onsubmit set it back to
> > visible. see component.is/setvisible()
> >
> > another way:
> > add a placeholder component such as webmarkupcontainer and in onsubmit
> > replace it with your actual panel
> >
> > -igor
> >
> >
> > On 2/7/07, Ramazan Pekin <[EMAIL PROTECTED] > wrote:
> > >
> > >  Hi to everyone,
> > >
> > > I want to add a new component to my page on my form submit, can I do
> > > that?
> > >
> > > I want to show the form result on this component. For example I want
> > > to show the result of the form with the Panel.
> > >
> > > Can you help me with example code?
> > >
> > > Thank to everyone.
> > >
> > > --
> > > Sucker-punch spam with award-winning protection.
> > > Try the free Yahoo! Mail Beta.
> > >
> > >
> > > -
> > > Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > Get stuff done quickly with pre-integrated technology to make your
> > > job easier.
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> > --
> > Have a burning question? Go to Yahoo! 
Answersand
 get answers from real people who know.
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> >

Re: [Wicket-user] How can I add panel on submit?

2007-02-08 Thread Ramazan Pekin
Hi,

I have seperated the myForm and myPage, because of that I can reach the myPanel 
by setting it myPage's field.

((MyPage)getPage()).getMyPanel().setVisible(true);

 Is this the only way, can I directly reach to the component? :)

Thanks Igor for your helps.

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Friday, February 9, 2007 12:24:20 AM
Subject: Re: [Wicket-user] How can I add panel on submit?

another way is to keep the panel as a field of the enclosing page/panel

-igor



On 2/8/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
the easiest way is to do this

final MyPanel mypanel =new MyPanel(..); 
...
onsubmit() { mypanel.setvisible(true); <== it is reachable because it was 
declared final

-igor




On 2/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
Hi,
I have added to my page a panel.
 
CompoundPropertyModel compoundPropertyModel = new 
CompoundPropertyModel(myModel);
add(new myPanel("",compoundPropertyModel).setVisible(false));

I am submitting my form and getting form value to the panel. But I cant find 
how can I reach the component, in the form's onSubmit function. 

protected void onSubmit(){
//How can I reach the panel component and set it to visible?
}
 
Thanks for your helps.
 
- Original Message 
From: Igor Vaynberg < [EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Thursday, February 8, 2007 12:30:01 AM 
Subject: Re: [Wicket-user] How can I add panel on submit?

one way:
add the panel and set it to invisible, in your onsubmit set it back to visible. 
see component.is/setvisible()

another way:
add a placeholder component such as webmarkupcontainer and in onsubmit replace 
it with your actual panel 

-igor



On 2/7/07, Ramazan Pekin <[EMAIL PROTECTED] > wrote: 
Hi to everyone,
I want to add a new component to my page on my form submit, can I do that?
I want to show the form result on this component. For example I want to show 
the result of the form with the Panel.
Can you help me with example code?
Thank to everyone.



Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.

-
Using Tomcat but need to do more? Need to support web services, security? 
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier. 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user





Have a burning question? Go to Yahoo! Answers and get answers from real people 
who know.

-
Using Tomcat but need to do more? Need to support web services, security? 
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=26

Re: [Wicket-user] portlet modes for wicket-portlet-examples?

2007-02-08 Thread Igor Vaynberg

i dont think the portlet api was ever completely finished. janne worked on
it, but he has been mia for a while. if you want to fix it we would be glad
to apply the patches.

-igor


On 2/8/07, Ralf Eichinger <[EMAIL PROTECTED]> wrote:


I managed to get the portlet example running under jetspeed 2.
but I think the portlet api is not completely supported.

in ExamplePortletApplication it is only possible to get the VIEW-mode of
the
portlet (getHomePage()).
but how do I get the pages for EDIT and HELP mode?

I suggest to have three methods:
getViewHomePage() when doView() of GenericPortlet is called
getEditHomePage() when doEdit() ...
getHelpHomePage() when doHelp() ...

or did I miss something?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do redirect in wicket?

2007-02-08 Thread Johan Compagner

Just Look!

On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


are you going to update the page? :)

-igor


On 2/8/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> that page is really outdated
>
> you all should use: RedirectRequestTarget
>
> johan
>
>
> On 2/6/07, Al Maw < [EMAIL PROTECTED] > wrote:
> >
> > Zhang Hailong wrote:
> > > How to redirect to a wicket or non-wicket page in wicket? For
> > example,
> > > if a guest want to access a authorized page, I want to redirect it
> > to
> > > the login page.
> > > How to do this?
> >
> >
> > 
http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html
> >
> > Al
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do redirect in wicket?

2007-02-08 Thread Igor Vaynberg

are you going to update the page? :)

-igor


On 2/8/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


that page is really outdated

you all should use: RedirectRequestTarget

johan


On 2/6/07, Al Maw <[EMAIL PROTECTED] > wrote:
>
> Zhang Hailong wrote:
> > How to redirect to a wicket or non-wicket page in wicket? For example,
>
> > if a guest want to access a authorized page, I want to redirect it to
> > the login page.
> > How to do this?
>
>
> 
http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html
>
> Al
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] portlet modes for wicket-portlet-examples?

2007-02-08 Thread Ralf Eichinger
I managed to get the portlet example running under jetspeed 2.
but I think the portlet api is not completely supported.

in ExamplePortletApplication it is only possible to get the VIEW-mode of the
portlet (getHomePage()).
but how do I get the pages for EDIT and HELP mode?

I suggest to have three methods:
getViewHomePage() when doView() of GenericPortlet is called
getEditHomePage() when doEdit() ...
getHelpHomePage() when doHelp() ...

or did I miss something?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to do redirect in wicket?

2007-02-08 Thread Johan Compagner

that page is really outdated

you all should use: RedirectRequestTarget

johan


On 2/6/07, Al Maw <[EMAIL PROTECTED]> wrote:


Zhang Hailong wrote:
> How to redirect to a wicket or non-wicket page in wicket? For example,
> if a guest want to access a authorized page, I want to redirect it to
> the login page.
> How to do this?


http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html

Al

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Running with tomcat

2007-02-08 Thread Johan Compagner

if you drop it in a tomcat install (that is served on port 8080 or what
every you have
it specified in the server.xml) then when you drop a war in the webapp dir
then the context name will be by default the XX.war name

johan


On 2/8/07, Chris Colman <[EMAIL PROTECTED]> wrote:


I just downloaded the wicket examples zip and managed to build them.

I think the jetty jars are inside the war. I just copied the .war into
the tomcat webapps directory and it sprung to life but I navigated to
the web app it redirected me to the 8081 port that Jetty is listening
on.

How can I run the examples as a tomcat app and what URL do I point to
once it's installed?


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] relative urls?

2007-02-08 Thread Johan Compagner

AlMaw is our url master!
so Url Master where are you!! :)

johan


On 2/8/07, ChuckDeal <[EMAIL PROTECTED]> wrote:



I just built Wicket 1.3 from source this morning (possibly revision
504918?).
Actually, I built from source a couple of times over the past two weeks
and
each one had the same "problem".

I'm having a problem where sometimes my url gets rewritten as a relative
that has a lot of "../" prefixed on it.

In a specific case, I have an AjaxLink that calls setResponsePage(Class,
PageParameters) from the onClick() method that generates this url
(captured
from BookmarkablePageRequestTarget.respond(RequestCycle), line 219):

Legacy/legacyUrl/%252Faims%252Freports%252FcatReports.jsp%253FlistName%253DaimsIssueTrackerReports%2526pageTitle%253DIssue%2BTracker%2BReports

That happens the first time I click it (which is the Home Page), which
loads
the page but screws up the  hrefs and 

Re: [Wicket-user] How can I add panel on submit?

2007-02-08 Thread Igor Vaynberg

another way is to keep the panel as a field of the enclosing page/panel

-igor


On 2/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


the easiest way is to do this

final MyPanel mypanel =new MyPanel(..);
...
onsubmit() { mypanel.setvisible(true); <== it is reachable because it was
declared final

-igor


On 2/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
>
>  Hi,
> I have added to my page a panel.
>
> CompoundPropertyModel compoundPropertyModel = new
> CompoundPropertyModel(myModel);
> add(new myPanel("",compoundPropertyModel).setVisible(false));
> I am submitting my form and getting form value to the panel. But I cant
> find how can I reach the component, in the form's onSubmit function.
> protected void onSubmit(){
> //How can I reach the panel component and set it to visible?
> }
>
> Thanks for your helps.
>
> - Original Message 
> From: Igor Vaynberg < [EMAIL PROTECTED]>
> To: wicket-user@lists.sourceforge.net
> Sent: Thursday, February 8, 2007 12:30:01 AM
> Subject: Re: [Wicket-user] How can I add panel on submit?
>
> one way:
> add the panel and set it to invisible, in your onsubmit set it back to
> visible. see component.is/setvisible()
>
> another way:
> add a placeholder component such as webmarkupcontainer and in onsubmit
> replace it with your actual panel
>
> -igor
>
>
> On 2/7/07, Ramazan Pekin <[EMAIL PROTECTED] > wrote:
> >
> >  Hi to everyone,
> >
> > I want to add a new component to my page on my form submit, can I do
> > that?
> >
> > I want to show the form result on this component. For example I want
> > to show the result of the form with the Panel.
> >
> > Can you help me with example code?
> >
> > Thank to everyone.
> >
> > --
> > Sucker-punch spam with award-winning protection.
> > Try the free Yahoo! Mail Beta.
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> --
> Have a burning question? Go to Yahoo! 
Answersand
 get answers from real people who know.
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I add panel on submit?

2007-02-08 Thread Igor Vaynberg

the easiest way is to do this

final MyPanel mypanel =new MyPanel(..);
...
onsubmit() { mypanel.setvisible(true); <== it is reachable because it was
declared final

-igor


On 2/8/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:


Hi,
I have added to my page a panel.

CompoundPropertyModel compoundPropertyModel = new
CompoundPropertyModel(myModel);
add(new myPanel("",compoundPropertyModel).setVisible(false));
I am submitting my form and getting form value to the panel. But I cant
find how can I reach the component, in the form's onSubmit function.
protected void onSubmit(){
//How can I reach the panel component and set it to visible?
}

Thanks for your helps.

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Thursday, February 8, 2007 12:30:01 AM
Subject: Re: [Wicket-user] How can I add panel on submit?

one way:
add the panel and set it to invisible, in your onsubmit set it back to
visible. see component.is/setvisible()

another way:
add a placeholder component such as webmarkupcontainer and in onsubmit
replace it with your actual panel

-igor


On 2/7/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
>
>  Hi to everyone,
>
> I want to add a new component to my page on my form submit, can I do
> that?
>
> I want to show the form result on this component. For example I want to
> show the result of the form with the Panel.
>
> Can you help me with example code?
>
> Thank to everyone.
>
> --
> Sucker-punch spam with award-winning protection.
> Try the free Yahoo! Mail Beta.
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


--
Have a burning question? Go to Yahoo! 
Answersand
 get answers from real people who know.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] filterPath vs filterMappingUrlPattern

2007-02-08 Thread Johan Compagner

i think this should be fixed now in 1.3 stream
AlMaw?

johan


On 2/8/07, ChuckDeal <[EMAIL PROTECTED]> wrote:



Wicket 1.3

I had been using getRootPath() on WebApplication and noticed that it had
been removed, so I was trying to figure out how to replace it when I
noticed
that WicketFilter has changed quite a bit.  One of the changes was a
preference for filterMappingUrlPattern instead of filterPath.

So, I switched my web.xml to this:

aimsWicket
wicket.protocol.http.WicketFilter


applicationClassName

com.csc.aims.framework.AIMSApplication



filterMappingUrlPattern 
>/app/*



aimsWicket
/app/*


And then my home page wouldn't load!  but with this filter mapping
everything loads.


aimsWicket
wicket.protocol.http.WicketFilter


applicationClassName

com.csc.aims.framework.AIMSApplication



filterPath
app



aimsWicket
/app/*


So, I guess my point is that the two parameters are not equivalent.  I am
also having a relative url issue
(http://www.nabble.com/relative-urls--tf3195723.html#a8873292), could that
be related?

Chuck
--
View this message in context:
http://www.nabble.com/filterPath-vs-filterMappingUrlPattern-tf3196150.html#a8874619
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dual listbox help

2007-02-08 Thread Igor Vaynberg

have you see the Palette component in wicket-extensions?

http://www.wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Awicket.examples.compref.PalettePage

-igor



On 2/8/07, Shawn Tumey <[EMAIL PROTECTED]> wrote:


Hello all,

Like the subject indicates I am trying to get a dual listbox to work.

More specifically, I have two ListMultipleChoice components (left and
right).

Each ListMultipleChoice has its own model.

Left has a leftChoicesList and a leftSelectedList.

Right has the same thing rightChoicesList and rightSelectedList.

Since the objects stored in the list are common between them, they both
use the same IChoiceRenderer.

To start with, Left is full of choices, and Right is empty.

There is a link between the two components for the user to trigger moving
selected items from Left to Right.

I can not get this portion to work. :(

It seems the link should be a AjaxSubmitLink  (or button)  however the
onSubmit will only get called if the form is valid.
I'm not interested if the form is valid, I only want to get what the user
has selected, remove it from the list of choices on the left
and add it to the list of choices on the right.

Any suggestion about the best way to go about doing this?

Thanks,

--
Shawn Tumey
Cofounder
MT Web Productions LLC
www.mtwebproduction.com
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] non-draggable Windows?

2007-02-08 Thread Matej Knopp
This is not possible to do with modal window. If you need something like 
this it's probably better to use just absolute positioned divs.

-Matej

Chris Lintz wrote:
> Hi all.  Is it possible to use the Modal Window in a non-draggable state?  I
> am at a loss for how I can change this behavior of the Modal Window.   I
> need to build small window popups that remain in place when opened (can't be
> moved).   Any ideas?
> 
> thanks


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajaxbutton --Image

2007-02-08 Thread Igor Vaynberg

all you have to do is call RequestCycle.urlFor(resourceref)  and you will
get the url for that resource, you can then stick it into the src attribute
or whever it needs to go

-igor

On 2/8/07, wicketmarsh <[EMAIL PROTECTED]> wrote:



Hi
I have added ImageButton on a page which add image programatically,
i.e  ImageButton ib = new
ImageButton(id,PackageResource.get(BaseForm.class,images/abc.gif)) here my
abc.gif is relative to baseform class package.

I have added a Mbutton which has got ajax functionality. so Mbutton
extends
WebComponent.

it works fine. I would like to add image programatically , the way it is
added to Imagebutton.

any help would be highly appreciated,

Marsh

--
View this message in context:
http://www.nabble.com/Ajaxbutton---Image-tf3196272.html#a8875046
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I get the list of logged in users in Wciket2.0?

2007-02-08 Thread Johan Compagner

But just let your session implement: SessionBindingListener

then you have your methods that you want.

johan


On 2/8/07, Johan Compagner <[EMAIL PROTECTED]> wrote:


now you have to override the abstract session store (so the second level
cache)
thats not as easy to do then the session.



On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 2/8/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
> >
> >
> > That's kindof sad.  I was using that method.  It's very convenient and
> a
> > common use case to want to know when a given session is unbound.  I
> was
> > using it to write usage statistics for the session to a database.
> >
> >
> > Eelco Hillenius wrote:
> > >
> > > It is in AbstractHttpSessionStore.
>
> What do you mean? The method is still there/ was never removed.
>
> Eelco
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I get the list of logged in users in Wciket2.0?

2007-02-08 Thread Johan Compagner

now you have to override the abstract session store (so the second level
cache)
thats not as easy to do then the session.



On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 2/8/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
>
> That's kindof sad.  I was using that method.  It's very convenient and a
> common use case to want to know when a given session is unbound.  I was
> using it to write usage statistics for the session to a database.
>
>
> Eelco Hillenius wrote:
> >
> > It is in AbstractHttpSessionStore.

What do you mean? The method is still there/ was never removed.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] non-draggable Windows?

2007-02-08 Thread Chris Lintz

Hi all.  Is it possible to use the Modal Window in a non-draggable state?  I
am at a loss for how I can change this behavior of the Modal Window.   I
need to build small window popups that remain in place when opened (can't be
moved).   Any ideas?

thanks
-- 
View this message in context: 
http://www.nabble.com/non-draggable-Windows--tf3196352.html#a8875300
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I add panel on submit?

2007-02-08 Thread Ramazan Pekin
Hi,
I have added to my page a panel.

CompoundPropertyModel compoundPropertyModel = new 
CompoundPropertyModel(myModel);
add(new myPanel("",compoundPropertyModel).setVisible(false));

I am submitting my form and getting form value to the panel. But I cant find 
how can I reach the component, in the form's onSubmit function.

protected void onSubmit(){
//How can I reach the panel component and set it to visible?
}

Thanks for your helps.

- Original Message 
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Thursday, February 8, 2007 12:30:01 AM
Subject: Re: [Wicket-user] How can I add panel on submit?

one way:
add the panel and set it to invisible, in your onsubmit set it back to visible. 
see component.is/setvisible()

another way:
add a placeholder component such as webmarkupcontainer and in onsubmit replace 
it with your actual panel 

-igor



On 2/7/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
Hi to everyone,
I want to add a new component to my page on my form submit, can I do that?
I want to show the form result on this component. For example I want to show 
the result of the form with the Panel.
Can you help me with example code?
Thank to everyone.



Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.

-
Using Tomcat but need to do more? Need to support web services, security? 
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NPE on session expire

2007-02-08 Thread Johan Compagner

Why does getPage() return null?
Because it does this:

   if (page == null && pageClass != null && !requestCycle.getRedirect())
   {
   page = newPage(pageClass, requestCycle);
   }
   return page;

and the page == null.. but the pageClass shouldn't be null and it shouldn't
be a redirect at that point
(because it is a bookmarkable request)

can you tell me why that method doesn't return anything?

I also don't see why that happens on a session expire.. If it can't get the
page from a session.
It should generate a new page.

johan


On 2/7/07, Vincent Demay <[EMAIL PROTECTED]> wrote:


Hi all,

I've got a problem when my application session expire, an NPE is threw
with the following stack trace.

ERROR - RequestCycle   -
java.lang.NullPointerException
at

wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents
(BookmarkableListenerInterfaceRequestTarget.java:104)
at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:64)
at

wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
(AbstractCompoundRequestCycleProcessor.java:56)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
:912)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:950)
at wicket.RequestCycle.step(RequestCycle.java:1026)
at wicket.RequestCycle.steps(RequestCycle.java:1100)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:243)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1065)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
:185)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java
:391)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(
HttpConnection.java:765)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java
:329)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
:475)

I'm working with Wicket1.X 492460 revision and this problem disapears
when I  use last  Wicket1.X revision. I tried to find out what was the
problem but I not succeed in it.

Is someone already has this kind of exception? have you got an idea of
the reason? where did you fix that point (We can not use last revision
on production and we need to meke a patch to fix that)?

Thanks in advance.

NB : getPage() in BookmarkablePageRequestTarget return null.

--
Vincent Demay

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] dual listbox help

2007-02-08 Thread Shawn Tumey

Hello all,

Like the subject indicates I am trying to get a dual listbox to work.

More specifically, I have two ListMultipleChoice components (left and
right).

Each ListMultipleChoice has its own model.

Left has a leftChoicesList and a leftSelectedList.

Right has the same thing rightChoicesList and rightSelectedList.

Since the objects stored in the list are common between them, they both use
the same IChoiceRenderer.

To start with, Left is full of choices, and Right is empty.

There is a link between the two components for the user to trigger moving
selected items from Left to Right.

I can not get this portion to work. :(

It seems the link should be a AjaxSubmitLink  (or button)  however the
onSubmit will only get called if the form is valid.
I'm not interested if the form is valid, I only want to get what the user
has selected, remove it from the list of choices on the left
and add it to the list of choices on the right.

Any suggestion about the best way to go about doing this?

Thanks,

--
Shawn Tumey
Cofounder
MT Web Productions LLC
www.mtwebproduction.com
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajaxbutton --Image

2007-02-08 Thread wicketmarsh

Hi 
I have added ImageButton on a page which add image programatically,
i.e  ImageButton ib = new
ImageButton(id,PackageResource.get(BaseForm.class,images/abc.gif)) here my
abc.gif is relative to baseform class package.

I have added a Mbutton which has got ajax functionality. so Mbutton extends
WebComponent.

it works fine. I would like to add image programatically , the way it is
added to Imagebutton.

any help would be highly appreciated,

Marsh

-- 
View this message in context: 
http://www.nabble.com/Ajaxbutton---Image-tf3196272.html#a8875046
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] filterPath vs filterMappingUrlPattern

2007-02-08 Thread ChuckDeal

Wicket 1.3

I had been using getRootPath() on WebApplication and noticed that it had
been removed, so I was trying to figure out how to replace it when I noticed
that WicketFilter has changed quite a bit.  One of the changes was a
preference for filterMappingUrlPattern instead of filterPath.

So, I switched my web.xml to this:

aimsWicket
wicket.protocol.http.WicketFilter

applicationClassName

com.csc.aims.framework.AIMSApplication



filterMappingUrlPattern 
>/app/*



aimsWicket
/app/*


And then my home page wouldn't load!  but with this filter mapping
everything loads.


aimsWicket
wicket.protocol.http.WicketFilter

applicationClassName

com.csc.aims.framework.AIMSApplication



filterPath
app



aimsWicket
/app/*


So, I guess my point is that the two parameters are not equivalent.  I am
also having a relative url issue
(http://www.nabble.com/relative-urls--tf3195723.html#a8873292), could that
be related?

Chuck
-- 
View this message in context: 
http://www.nabble.com/filterPath-vs-filterMappingUrlPattern-tf3196150.html#a8874619
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Erik van Oosten
He is talking about his beer drinking, I think...

Erik.

Scott Swank wrote:
> You know, JSF is sounding better & better
>
> On 2/8/07, *Eelco Hillenius* <[EMAIL PROTECTED] 
>  > wrote:
>
> On 2/8/07, Eelco Hillenius < [EMAIL PROTECTED]
> > wrote:
> > On 2/8/07, Scott Swank <[EMAIL PROTECTED]
> > wrote:
> > > Cyllenius is a name for the Greek god Hermes -- associated
> with commerce.
> >
> > That sounds a lot better than Hillenius with Herpes ;)
>
> Though I too have some godly features. But that's OT.
>
> Eelco
>


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] relative urls?

2007-02-08 Thread ChuckDeal

I just built Wicket 1.3 from source this morning (possibly revision 504918?). 
Actually, I built from source a couple of times over the past two weeks and
each one had the same "problem".

I'm having a problem where sometimes my url gets rewritten as a relative
that has a lot of "../" prefixed on it.

In a specific case, I have an AjaxLink that calls setResponsePage(Class,
PageParameters) from the onClick() method that generates this url (captured
from BookmarkablePageRequestTarget.respond(RequestCycle), line 219):
Legacy/legacyUrl/%252Faims%252Freports%252FcatReports.jsp%253FlistName%253DaimsIssueTrackerReports%2526pageTitle%253DIssue%2BTracker%2BReports

That happens the first time I click it (which is the Home Page), which loads
the page but screws up the  hrefs and 

Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Scott Swank

You know, JSF is sounding better & better

On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 2/8/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> > Cyllenius is a name for the Greek god Hermes -- associated with
commerce.
>
> That sounds a lot better than Hillenius with Herpes ;)

Though I too have some godly features. But that's OT.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Eelco Hillenius
On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 2/8/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> > Cyllenius is a name for the Greek god Hermes -- associated with commerce.
>
> That sounds a lot better than Hillenius with Herpes ;)

Though I too have some godly features. But that's OT.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Eelco Hillenius
On 2/8/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> Cyllenius is a name for the Greek god Hermes -- associated with commerce.

That sounds a lot better than Hillenius with Herpes ;)

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxFormValidatingBehavior and focus

2007-02-08 Thread Igor Vaynberg

go ahead and make it a feature request and add a quickstart to it

i remember i ran into something like this - it worked fine in firefox or ie
but failed in the other because for some reason dom updates would cause the
field to lose focus when it is repainted by ajax.

-igor


On 2/8/07, Robert ... <[EMAIL PROTECTED]> wrote:


Hi everyone,

I tried to use AjaxFormValidatingBehavior like this:
AjaxFormValidatingBehavior.addToAllFormComponents(form,
  "onkeyup",

wicket.util.time.Duration.seconds(3));

It works. The feedback panel is updated and everything.
However while I'm typing the focus keeps dissapearing from the input
field. That's very annoying as you can imagine. Can I set Wicket to keep my
focus? If not, I would like to make this a feature request.

Robert


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Scott Swank

Cyllenius is a name for the Greek god Hermes -- associated with commerce.
Given the importance of a solid date picker, I imagine we'll be following
and perhaps contributing to this effort.

http://en.wikipedia.org/w/index.php?title=Cyllenius&redirect=no


On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> ...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius)
is
> simply a sub-class of DatePicker with a HeaderContributor.forCss() to
> increase its z-index a a value greater than that of the ModalWindow from
> which it is opened.

For anyone using that date picker component, read this:
http://chillenious.wordpress.com/2007/02/06/49/. I hope to see some
more activity/ discussion on that new wicket-datetime project in the
future, and the date picker that ships with that project already is a
lot better than the old one.

Btw, Cyllenius? Where did that come from?

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Igor Vaynberg

a couple of ways

like you said have a dummy homepage, but use restartresponse exception to
redirect to another page

or override gethomepageclass in application and return a different one based
on the loggedin user <-- not sure if that will work very well, but worth a
try

-igor


On 2/8/07, Carfield Yim <[EMAIL PROTECTED]> wrote:


I would like to direct difference user to difference homepage, one way
I can think of is having a dummy homepage and use
redirectToInterceptPage(arg0) to suitable page in the constructor of
that dummy homepage.

However wicket fail, can anyone recommend a better solution?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Scott Swank

Briefly, we wanted a component-centric framework for reuse and more nimble
refactoring -- e.g. should this form be in-line with the rest of the page or
in a popup; should this content be in a sequence of panels or in tabs?  This
left us with:

 Tapestry -- we heard daunting things about the learning curve and veered
away
 Echo2 -- excluded our html/css team and required Java changes for too many
UI changes
 GWT -- is not a good fit for non-Ajax apps and we wanted a single
framework

Cheers,
Scott


On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


>  it was our 2nd choice after considering a host of other
> options, including Stripes, Rife, Tapestry, Echo2, GWT, etc.

I'd be interested to learn what you liked and didn't like about those
alternatives (on this list or private).

Eelco



--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Eelco Hillenius
> ...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius) is
> simply a sub-class of DatePicker with a HeaderContributor.forCss() to
> increase its z-index a a value greater than that of the ModalWindow from
> which it is opened.

For anyone using that date picker component, read this:
http://chillenious.wordpress.com/2007/02/06/49/. I hope to see some
more activity/ discussion on that new wicket-datetime project in the
future, and the date picker that ships with that project already is a
lot better than the old one.

Btw, Cyllenius? Where did that come from?

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket + commons vfs

2007-02-08 Thread Peter Neubauer
Sorry,
my son playing around with my machine ...

Anyway, PaxWicket exposes e.g. Pages as OSGi services, so you could
deliver different versions of that from different bundles and just ask
for the page factory with the specified style and variant parameters.

Not sure about the details but I think that would be a pluggable way forward.
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Wicket
/peter

On 2/8/07, Peter Neubauer <[EMAIL PROTECTED]> wrote:
> Mmmh,
> I would say there is a chance that OSGi and servicesare something to
> look at, especially if you lo62 at
>
> On 2/8/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> > I think the IResourceStreamLocator is probably what I'm looking for,
> > I'll see if I can't give it ago this evening.
> >
> > On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > ah, well if you dont need to switch these things on the fly it becomes 
> > > much
> > > simpler
> > >
> > > you can have your build script copy the proper resources in place, or you
> > > can write your own IResourceStreamLocator to load them from anywhere you
> > > want - there is an example in wicket-examples for custom markup loading.
> > >
> > > -igor
> > >
> > >
> > >
> > > On 2/7/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> > > >
> > > > So if you have 25 customers with custom look and feels, you have 25
> > > > _variation files, each specific to a customer. Or make it 50, or 100,
> > > > or 1,000 customers.
> > > >
> > > > You don't want to deploy all the variations to all the customers (they
> > > > hold copyrights on some of their graphics and other ui elements, so
> > > > legally you can't!). And you don't want to build 25 or 1,000 customer
> > > > specific application jars.
> > > >
> > > > How do you handle that?
> > > >
> > > > What I'm looking for is a way for the app to be identical, regardless
> > > > of to which customers machine it's deployed to, and for the ui
> > > > resources (not just css and graphics, but html too) to be pluggable at
> > > > runtime (without resorting to storing them in a database for example).
> > > >
> > > > I just though VFS might be a way to keep that neat and tidy,
> > > > especially when you start getting into large numbers of components and
> > > > variations.
> > > >
> > > > Mark
> > > >
> > > > On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > > > wicket also caches the markup, so this isnt exactly going to work.
> > > > >
> > > > > wicket has what is known as style and variation
> > > > >
> > > > > that means your component for MyPage.class can have alternative 
> > > > > markups
> > > such
> > > > > as
> > > > >
> > > > > MyPage_style.html or MyPage_style_variation.html
> > > > >
> > > > > style is set on session and is a session-wide "skin" while variation 
> > > > > is
> > > > > scoped to component instance.
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > >
> > > > > On 2/7/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Greetings!
> > > > > >
> > > > > > I just recently discovered wicket and have been playing around with
> > > > > > it. I'm impressed so far, it seems to be just what I was looking 
> > > > > > for.
> > > > > >
> > > > > > I've also been playing around with apache/jakarta commons vfs module
> > > > > > (just released 1.0 this past December), which provides i/o access to
> > > > > > files within a zip/tar/jar.  There are several programs I've seen in
> > > > > > Linux that use a tar file to contain theme information (graphics,
> > > > > > stylesheets, etc), and read files from the tar directly.
> > > > > >
> > > > > > So it seems to me a rather natural fit from a deployment perspective
> > > > > > to actually separate the HTML, CSS, and graphics out into another
> > > > > > module. So you could change the UI at any time without re-deploying
> > > > > > your application, and you wouldn't have to be bothered with 
> > > > > > expanding
> > > > > > or deploying anything extra.
> > > > > >
> > > > > > In case you're wondering, the VFS module handles caching of 
> > > > > > extracted
> > > > > > content, but in general using 0 compression works the best.
> > > > > >
> > > > > > In thinking this through, one of the issues I can see with this is
> > > > > > that the UI archive, if it contains css/javascript/html, etc. that
> > > > > > isn't handled by wicket, will need to have some other java based
> > > > > > interface to get at it (a getFile servlet or something).
> > > > > >
> > > > > > Now, I know, you're probably better off in most situations 
> > > > > > performance
> > > > > > wise having a separate web server handle pushing your static 
> > > > > > content,
> > > > > > but having it all in one easily deployable package is very 
> > > > > > attractive
> > > > > > too.
> > > > > >
> > > > > > Thoughts?
> > > > > >
> > > > > > Thanks,
> > > > > > Mark
> > > > > >
> > > > > >
> > > > >
> > > -
> > > > > > U

Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Eelco Hillenius
>  it was our 2nd choice after considering a host of other
> options, including Stripes, Rife, Tapestry, Echo2, GWT, etc.

I'd be interested to learn what you liked and didn't like about those
alternatives (on this list or private).

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket + commons vfs

2007-02-08 Thread Peter Neubauer
Mmmh,
I would say there is a chance that OSGi and servicesare something to
look at, especially if you lo62 at

On 2/8/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> I think the IResourceStreamLocator is probably what I'm looking for,
> I'll see if I can't give it ago this evening.
>
> On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > ah, well if you dont need to switch these things on the fly it becomes much
> > simpler
> >
> > you can have your build script copy the proper resources in place, or you
> > can write your own IResourceStreamLocator to load them from anywhere you
> > want - there is an example in wicket-examples for custom markup loading.
> >
> > -igor
> >
> >
> >
> > On 2/7/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> > >
> > > So if you have 25 customers with custom look and feels, you have 25
> > > _variation files, each specific to a customer. Or make it 50, or 100,
> > > or 1,000 customers.
> > >
> > > You don't want to deploy all the variations to all the customers (they
> > > hold copyrights on some of their graphics and other ui elements, so
> > > legally you can't!). And you don't want to build 25 or 1,000 customer
> > > specific application jars.
> > >
> > > How do you handle that?
> > >
> > > What I'm looking for is a way for the app to be identical, regardless
> > > of to which customers machine it's deployed to, and for the ui
> > > resources (not just css and graphics, but html too) to be pluggable at
> > > runtime (without resorting to storing them in a database for example).
> > >
> > > I just though VFS might be a way to keep that neat and tidy,
> > > especially when you start getting into large numbers of components and
> > > variations.
> > >
> > > Mark
> > >
> > > On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > > wicket also caches the markup, so this isnt exactly going to work.
> > > >
> > > > wicket has what is known as style and variation
> > > >
> > > > that means your component for MyPage.class can have alternative markups
> > such
> > > > as
> > > >
> > > > MyPage_style.html or MyPage_style_variation.html
> > > >
> > > > style is set on session and is a session-wide "skin" while variation is
> > > > scoped to component instance.
> > > >
> > > > -igor
> > > >
> > > >
> > > >
> > > > On 2/7/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Greetings!
> > > > >
> > > > > I just recently discovered wicket and have been playing around with
> > > > > it. I'm impressed so far, it seems to be just what I was looking for.
> > > > >
> > > > > I've also been playing around with apache/jakarta commons vfs module
> > > > > (just released 1.0 this past December), which provides i/o access to
> > > > > files within a zip/tar/jar.  There are several programs I've seen in
> > > > > Linux that use a tar file to contain theme information (graphics,
> > > > > stylesheets, etc), and read files from the tar directly.
> > > > >
> > > > > So it seems to me a rather natural fit from a deployment perspective
> > > > > to actually separate the HTML, CSS, and graphics out into another
> > > > > module. So you could change the UI at any time without re-deploying
> > > > > your application, and you wouldn't have to be bothered with expanding
> > > > > or deploying anything extra.
> > > > >
> > > > > In case you're wondering, the VFS module handles caching of extracted
> > > > > content, but in general using 0 compression works the best.
> > > > >
> > > > > In thinking this through, one of the issues I can see with this is
> > > > > that the UI archive, if it contains css/javascript/html, etc. that
> > > > > isn't handled by wicket, will need to have some other java based
> > > > > interface to get at it (a getFile servlet or something).
> > > > >
> > > > > Now, I know, you're probably better off in most situations performance
> > > > > wise having a separate web server handle pushing your static content,
> > > > > but having it all in one easily deployable package is very attractive
> > > > > too.
> > > > >
> > > > > Thoughts?
> > > > >
> > > > > Thanks,
> > > > > Mark
> > > > >
> > > > >
> > > >
> > -
> > > > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > > > > Get stuff done quickly with pre-integrated technology to make your job
> > > > easier.
> > > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > > > >
> > > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > > >
> > -
> > > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > >

Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Scott Swank

Igor,

The most verbose code is the following.  It creates the FeedbackPanel and
two fields: a check-in date and a check-out date.  The comments are a bit
heavy because this is a proof-of-concept app.  At this point, and such "best
practices" pointers are more than welcome.  Thank you.

...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius) is
simply a sub-class of DatePicker with a HeaderContributor.forCss() to
increase its z-index a a value greater than that of the ModalWindow from
which it is opened.

   private void addReservationDates()
   {
   // create the feedback panel
   FeedbackPanel feedback = new FeedbackPanel("feedback");
   feedback.setOutputMarkupId(true);
   add(feedback);

   // create the check-in field
   DateTextField checkIn = new DateTextField("checkIn", new
PropertyModel(roomRequest, "checkIn"),
   "MM/dd/");
   checkIn.setOutputMarkupId(true);
   checkIn.setRequired(true);
   checkIn.add(DateValidator.minimum(getToday()));
   add(buildAjaxFeedbackBorder("checkInBorder", checkIn, feedback));

   // create a date picker for the check-in field
   add(new CylleniusCalendar("checkInPicker", checkIn));

   // create the check-out field
   DateTextField checkOut = new DateTextField("checkOut", new
PropertyModel(roomRequest,
   "checkOut"), "MM/dd/");
   checkOut.setOutputMarkupId(true);
   checkOut.setRequired(true);
   add(buildAjaxFeedbackBorder("checkOutBorder", checkOut, feedback));

   // create a date picker for the check-out field
   add(new CylleniusCalendar("checkOutPicker", checkOut));

   // require checkIn to be before checkOut
   add(new DatesComparatorValidator(checkIn, checkOut));
   }

   private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
borderId,
   FormComponent component, final FeedbackPanel feedback)
   {
   final FormComponentFeedbackBorder border = new
FormComponentFeedbackBorder(borderId);
   border.add(component);
   border.setOutputMarkupId(true);

   component.add(new AjaxFormComponentUpdatingBehavior("onblur") {
   private static final long serialVersionUID =
-8868206053122717303L;

   protected void onUpdate(AjaxRequestTarget target)
   {
   target.addComponent(feedback);
   target.addComponent(border);
   }
   });

   return border;
   }

On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:


On 2/7/07, Scott Swank <[EMAIL PROTECTED]> wrote:
>
> 2. Overall there was a preference for Wicket's Java components over
> JSF's taglibs and backing bean code.  This was not a unanimous preference,
> and taglibs are much more concise than Wicket code.  However, the cleanness
> of the resulting HTML was a factor in Wicket's favor and the rapidity of the
> development effort largely offset the comparative verbosity of the code
> base.  This verbosity was most evident in ajax form feedback: feedback
> panel, text field, ajax feedback border, ajax behavior, etc.


got any examples of this verbouse code? i am doing something similar in a
project i am building with 2.0 and i was able to factor out a lot of this
stuff so its not so bad. maybe we can help you do the same.

-igor



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries & wicket

2007-02-08 Thread Scott Swank

Thank you very much Eelco.  And yes, the JSF development has been very
impressive -- it was our 2nd choice after considering a host of other
options, including Stripes, Rife, Tapestry, Echo2, GWT, etc.  And yes, I
imagine I need to start at least lurking on ##wicket.

Cheers,
Scott

On 2/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


That's good news Scott! You were actually pretty helpful yourself by
thinking with us and providing good cases to answer.

Let's not forget b.t.w. that there is a lot of free-time sweat and
tears sacrificed by the developers of MyFaces, tomahawk, etc, and that
- even though JSF doesn't have my preference - I think it is still a
better alternative than say Struts. But that said, I hope we'll see a
lot of you and your team members around here and on the ##wicket
channel, and I hope you still feel good about the choice a year from
now (I know that I do :))

Eelco


On 2/7/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> After closely considering Wicket and JSF my company has decided to go
with
> Wicket for our web development framework.  This was based on a two week
> prototype effort between two teams of four developers each.  The Wicket
team
> made rapid progress and had extra time to add in unrequested features
such
> as i18n and JUnit tests, while still producing a clear, readable code
base.
>
> This is to the credit of the core Wicket developers, particularly the
ones
> on this list who were so helpful in answering our questions.  Thank you
all.
>  Here are some of the issues that in my mind were material factors.
>
> 1. The wicket group made very rapid progress because
>   * the API is clean and easy to learn
>   * the examples are excellent
>   * things consistently work more or less as expected
>
> In comparison the JSF group had substantial upfront decisions to make
before
> progress could begin in earnest:
>   * use Sun's reference implementation or Apache MyFaces
>   * use Facelets or no
>   * which Ajax/DHTML framework integrates best with the above: ajax4jsf,
> tomahawk, etc
>
> 2. Overall there was a preference for Wicket's Java components over
JSF's
> taglibs and backing bean code.  This was not a unanimous preference, and
> taglibs are much more concise than Wicket code.  However, the cleanness
of
> the resulting HTML was a factor in Wicket's favor and the rapidity of
the
> development effort largely offset the comparative verbosity of the code
> base.  This verbosity was most evident in ajax form feedback: feedback
> panel, text field, ajax feedback border, ajax behavior, etc.
>
> 3. The reuse of Wicket components was also in its favor.  It is much
easier
> to create custom components via composition or inheritance in Wicket,
the
> palette is a great example of this.
>
> Thank you again for your patience and helpful answers.
>
> --
> Scott Swank
> reformed mathematician
>
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I get the list of logged in users in Wciket2.0?

2007-02-08 Thread Eelco Hillenius
On 2/8/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
>
> That's kindof sad.  I was using that method.  It's very convenient and a
> common use case to want to know when a given session is unbound.  I was
> using it to write usage statistics for the session to a database.
>
>
> Eelco Hillenius wrote:
> >
> > It is in AbstractHttpSessionStore.

What do you mean? The method is still there/ was never removed.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I get the list of logged in users in Wciket2.0?

2007-02-08 Thread Jonathan Locke


That's kindof sad.  I was using that method.  It's very convenient and a
common use case to want to know when a given session is unbound.  I was
using it to write usage statistics for the session to a database.


Eelco Hillenius wrote:
> 
> It is in AbstractHttpSessionStore.
> 
> Eelco
> 
> 
> On 2/6/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>>
>>
>> there was this incredibly useful feature a few months ago
>>
>> /**
>>  * Called at end of session when session is unbound from container
>>  */
>> @Override
>> public void onUnbound()
>> {
>>
>> i can't find it now.  was this removed?  anyone know why?
>>
>>
>> Peter Neubauer-3 wrote:
>> >
>> > Hi there,
>> > how do I get the logged in users as a list or something from the API
>> > in Wicket 2.0 SNAPSHOT?
>> >
>> >
>> > Thanks for any hints
>> >
>> > /peter
>> >
>> >
>> -
>> > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > Get stuff done quickly with pre-integrated technology to make your job
>> > easier.
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Wicket-user--How-do-I-get-the-list-of-logged-in-users-in-Wciket2.0--tf3181058.html#a8835969
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--How-do-I-get-the-list-of-logged-in-users-in-Wciket2.0--tf3181058.html#a8869007
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket + commons vfs

2007-02-08 Thread Mark R. Andrachek, Jr.
I think the IResourceStreamLocator is probably what I'm looking for,
I'll see if I can't give it ago this evening.

On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> ah, well if you dont need to switch these things on the fly it becomes much
> simpler
>
> you can have your build script copy the proper resources in place, or you
> can write your own IResourceStreamLocator to load them from anywhere you
> want - there is an example in wicket-examples for custom markup loading.
>
> -igor
>
>
>
> On 2/7/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> >
> > So if you have 25 customers with custom look and feels, you have 25
> > _variation files, each specific to a customer. Or make it 50, or 100,
> > or 1,000 customers.
> >
> > You don't want to deploy all the variations to all the customers (they
> > hold copyrights on some of their graphics and other ui elements, so
> > legally you can't!). And you don't want to build 25 or 1,000 customer
> > specific application jars.
> >
> > How do you handle that?
> >
> > What I'm looking for is a way for the app to be identical, regardless
> > of to which customers machine it's deployed to, and for the ui
> > resources (not just css and graphics, but html too) to be pluggable at
> > runtime (without resorting to storing them in a database for example).
> >
> > I just though VFS might be a way to keep that neat and tidy,
> > especially when you start getting into large numbers of components and
> > variations.
> >
> > Mark
> >
> > On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > wicket also caches the markup, so this isnt exactly going to work.
> > >
> > > wicket has what is known as style and variation
> > >
> > > that means your component for MyPage.class can have alternative markups
> such
> > > as
> > >
> > > MyPage_style.html or MyPage_style_variation.html
> > >
> > > style is set on session and is a session-wide "skin" while variation is
> > > scoped to component instance.
> > >
> > > -igor
> > >
> > >
> > >
> > > On 2/7/07, Mark R. Andrachek, Jr. <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Greetings!
> > > >
> > > > I just recently discovered wicket and have been playing around with
> > > > it. I'm impressed so far, it seems to be just what I was looking for.
> > > >
> > > > I've also been playing around with apache/jakarta commons vfs module
> > > > (just released 1.0 this past December), which provides i/o access to
> > > > files within a zip/tar/jar.  There are several programs I've seen in
> > > > Linux that use a tar file to contain theme information (graphics,
> > > > stylesheets, etc), and read files from the tar directly.
> > > >
> > > > So it seems to me a rather natural fit from a deployment perspective
> > > > to actually separate the HTML, CSS, and graphics out into another
> > > > module. So you could change the UI at any time without re-deploying
> > > > your application, and you wouldn't have to be bothered with expanding
> > > > or deploying anything extra.
> > > >
> > > > In case you're wondering, the VFS module handles caching of extracted
> > > > content, but in general using 0 compression works the best.
> > > >
> > > > In thinking this through, one of the issues I can see with this is
> > > > that the UI archive, if it contains css/javascript/html, etc. that
> > > > isn't handled by wicket, will need to have some other java based
> > > > interface to get at it (a getFile servlet or something).
> > > >
> > > > Now, I know, you're probably better off in most situations performance
> > > > wise having a separate web server handle pushing your static content,
> > > > but having it all in one easily deployable package is very attractive
> > > > too.
> > > >
> > > > Thoughts?
> > > >
> > > > Thanks,
> > > > Mark
> > > >
> > > >
> > >
> -
> > > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > > Get stuff done quickly with pre-integrated technology to make your job
> > > easier.
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > > >
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> -
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > > easier.
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforg

Re: [Wicket-user] Working with AjaxSubmitButton

2007-02-08 Thread Martijn Dashorst
FileUpload can't be done using ajax. Don't use Ajax submit button with
a file upload field in a form.

Martijn

On 2/8/07, Otan <[EMAIL PROTECTED]> wrote:
> I have a Form within a panel within a page. That form has one
> FileUploadField and I based that form from the wicket-examples. The form
> works well (of course, that's a copycat of the one from wicket-examples).
>
>  But now I have to use AjaxSubmitButton for that form, and now, It doesn't
> work anymore. I don't have any clue
> why I'm getting the following Exception when I click that AjaxSubmitButton.
>
> SEVERE: ServletRequest does not contain multipart content
> java.lang.IllegalStateException: ServletRequest does not contain multipart
> content
>  at
> wicket.protocol.http.servlet.MultipartServletWebRequest.(MultipartServletWebRequest.java:86)
>  at
> wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest
> (ServletWebRequest.java:258)
>  at
> wicket.markup.html.form.Form.handleMultiPart(Form.java:1176)
>  at
> wicket.markup.html.form.Form.onFormSubmitted(Form.java:359)
>  at wicket.ajax.form.AjaxFormSubmitBehavior.onEvent
> (AjaxFormSubmitBehavior.java:133)
>  at
> wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:164)
>  at
> wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:217)
>  at
> wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:97)
>  at
> wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java
> :68)
>  at
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:56)
>  at
> wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:938)
>  at
> wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:978)
>  at wicket.RequestCycle.step(RequestCycle.java:1054)
>  at wicket.RequestCycle.steps(RequestCycle.java:1125)
>  at wicket.RequestCycle.request(RequestCycle.java:470)
>  at
> wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232)
>  at
> wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>  at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
> (MonitorFilter.java:368)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
> :173)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>  at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:126)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>  at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>  at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>  at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
> :80)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>  at java.lang.Thread.run(Thread.java:595)
>
>
>
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/

[Wicket-user] Working with AjaxSubmitButton

2007-02-08 Thread Otan

I have a Form within a panel within a page. That form has one
FileUploadField and I based that form from the wicket-examples. The form
works well (of course, that's a copycat of the one from wicket-examples).

But now I have to use AjaxSubmitButton for that form, and now, It doesn't
work anymore. I don't have any clue
why I'm getting the following Exception when I click that AjaxSubmitButton.

SEVERE: ServletRequest does not contain multipart content
java.lang.IllegalStateException: ServletRequest does not contain multipart
content
at wicket.protocol.http.servlet.MultipartServletWebRequest.(
MultipartServletWebRequest.java:86)
at wicket.protocol.http.servlet.ServletWebRequest.newMultipartWebRequest(
ServletWebRequest.java:258)
at wicket.markup.html.form.Form.handleMultiPart(Form.java:1176)
at wicket.markup.html.form.Form.onFormSubmitted(Form.java:359)
at wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(
AjaxFormSubmitBehavior.java:133)
at wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:164)
at wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(
AbstractDefaultAjaxBehavior.java:217)
at
wicket.request.target.component.listener.BehaviorRequestTarget.processEvents
(BehaviorRequestTarget.java:97)
at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:68)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(
AbstractCompoundRequestCycleProcessor.java:56)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:938)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:978)
at wicket.RequestCycle.step(RequestCycle.java:1054)
at wicket.RequestCycle.steps(RequestCycle.java:1125)
at wicket.RequestCycle.request(RequestCycle.java:470)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:232)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxFormValidatingBehavior and focus

2007-02-08 Thread Robert ...

Hi everyone,

I tried to use AjaxFormValidatingBehavior like this:
   AjaxFormValidatingBehavior.addToAllFormComponents(form,
 "onkeyup",

wicket.util.time.Duration.seconds(3));

It works. The feedback panel is updated and everything.
However while I'm typing the focus keeps dissapearing from the input field.
That's very annoying as you can imagine. Can I set Wicket to keep my focus?
If not, I would like to make this a feature request.

Robert
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with quickstart project in Eclipse

2007-02-08 Thread Michel Wichers
Hello Martijn,

just figured it out - now it works. Thanks for your help!

Michel


Martijn Dashorst schrieb:
> You have to instruct eclipse to also copy the HTML, css and properties
> files from the source folders to the target/classes folder.
>
> Martijn
>
> On 2/8/07, Michel Wichers <[EMAIL PROTECTED]> wrote:
>   
>> Hi all,
>>
>> i just started playing around with the latest wicket quickstart project
>> version 1.2.4.
>>
>> I created a new Eclipse project as described in the eclipse quickstart
>> guide.
>>
>> If i start the main class and point my browser to the url:
>> "http://localhost:8081/quickstart"; i receive the following Exception:
>>
>> 
>> ERROR - RequestCycle   - Markup of type 'html' for component
>> 'wicket.quickstart.Index' not found. Enable debug messages for
>> wicket.util.resource to get a list of all filenames tried:
>> [Page class = wicket.quickstart.Index, id = 0]
>> wicket.markup.MarkupNotFoundException: Markup of type 'html' for
>> component 'wicket.quickstart.Index' not found. Enable debug messages for
>> wicket.util.resource to get a list of all filenames tried:
>> [Page class = wicket.quickstart.Index, id = 0]
>> at
>> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:838)
>> at wicket.Page.onRender(Page.java:854)
>> at wicket.Component.render(Component.java:1533)
>> at wicket.Page.renderPage(Page.java:413)
>> at
>> wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
>> at
>> wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
>> at
>> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
>> at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
>> at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
>> at wicket.RequestCycle.step(RequestCycle.java:1010)
>> at wicket.RequestCycle.steps(RequestCycle.java:1084)
>> at wicket.RequestCycle.request(RequestCycle.java:454)
>> at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
>> at
>> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
>> at
>> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
>> at org.mortbay.http.HttpServer.service(HttpServer.java:879)
>> at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
>> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
>> at
>> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
>> Caused by: wicket.markup.MarkupNotFoundException: Markup not found.
>> Component class: wicket.quickstart.Index Enable debug messages for
>> wicket.util.resource to get a list of all filenames tried
>> at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:117)
>> at
>> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
>> ... 27 more
>> 
>>
>> It would be great if somebody could give me a small hint what's going wrong.
>>
>> Thanks in advance!
>>
>> Michel
>>
>>
>> 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Google indexing

2007-02-08 Thread Johan Compagner

So to explain a bit more: it is not really a Bookmarkable Page but a
Bookmarkable Page URL that does the job.
And an url can only be generated if the Page has a default or PageParameter
constructor.

johan


On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


See http://cwiki.apache.org/WICKET/bookmarkable-pages-and-links.html

Eelco


On 2/7/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> > From: "Chris Colman" <[EMAIL PROTECTED]>
> > Subject: Re: [Wicket-user] Google indexing
>
> > > If I avoid any AJAX in Wicket will my pages be indexable by google
> and
> > > other search engines?
> >
> > Only the pages that are bookmarkable. In other words: only if you
> > intend them to be available without having a prior session.
> >
> > Eelco
>
> Is there a special way to make a bookmarkable page in Wicket?
>
>
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with quickstart project in Eclipse

2007-02-08 Thread Martijn Dashorst
You have to instruct eclipse to also copy the HTML, css and properties
files from the source folders to the target/classes folder.

Martijn

On 2/8/07, Michel Wichers <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> i just started playing around with the latest wicket quickstart project
> version 1.2.4.
>
> I created a new Eclipse project as described in the eclipse quickstart
> guide.
>
> If i start the main class and point my browser to the url:
> "http://localhost:8081/quickstart"; i receive the following Exception:
>
> 
> ERROR - RequestCycle   - Markup of type 'html' for component
> 'wicket.quickstart.Index' not found. Enable debug messages for
> wicket.util.resource to get a list of all filenames tried:
> [Page class = wicket.quickstart.Index, id = 0]
> wicket.markup.MarkupNotFoundException: Markup of type 'html' for
> component 'wicket.quickstart.Index' not found. Enable debug messages for
> wicket.util.resource to get a list of all filenames tried:
> [Page class = wicket.quickstart.Index, id = 0]
> at
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:838)
> at wicket.Page.onRender(Page.java:854)
> at wicket.Component.render(Component.java:1533)
> at wicket.Page.renderPage(Page.java:413)
> at
> wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
> at
> wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
> at
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
> at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
> at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
> at wicket.RequestCycle.step(RequestCycle.java:1010)
> at wicket.RequestCycle.steps(RequestCycle.java:1084)
> at wicket.RequestCycle.request(RequestCycle.java:454)
> at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
> at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
> at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
> Caused by: wicket.markup.MarkupNotFoundException: Markup not found.
> Component class: wicket.quickstart.Index Enable debug messages for
> wicket.util.resource to get a list of all filenames tried
> at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:117)
> at
> wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
> ... 27 more
> 
>
> It would be great if somebody could give me a small hint what's going wrong.
>
> Thanks in advance!
>
> Michel
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
http://wicketframework.org

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https:/

[Wicket-user] Problem with quickstart project in Eclipse

2007-02-08 Thread Michel Wichers
Hi all,

i just started playing around with the latest wicket quickstart project 
version 1.2.4.

I created a new Eclipse project as described in the eclipse quickstart 
guide.

If i start the main class and point my browser to the url:  
"http://localhost:8081/quickstart"; i receive the following Exception:


ERROR - RequestCycle   - Markup of type 'html' for component 
'wicket.quickstart.Index' not found. Enable debug messages for 
wicket.util.resource to get a list of all filenames tried:
[Page class = wicket.quickstart.Index, id = 0]
wicket.markup.MarkupNotFoundException: Markup of type 'html' for 
component 'wicket.quickstart.Index' not found. Enable debug messages for 
wicket.util.resource to get a list of all filenames tried:
[Page class = wicket.quickstart.Index, id = 0]
at 
wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:838)
at wicket.Page.onRender(Page.java:854)
at wicket.Component.render(Component.java:1533)
at wicket.Page.renderPage(Page.java:413)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
at 
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
Caused by: wicket.markup.MarkupNotFoundException: Markup not found. 
Component class: wicket.quickstart.Index Enable debug messages for 
wicket.util.resource to get a list of all filenames tried
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:117)
at 
wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
... 27 more


It would be great if somebody could give me a small hint what's going wrong.

Thanks in advance!

Michel


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can Wicket co-exist with Echo2? Anyone tried it before?

2007-02-08 Thread Eelco Hillenius
On 2/8/07, Chris Colman <[EMAIL PROTECTED]> wrote:
> Currently all our interactive forms are written in Echo2 and we're
> pretty satisfied with that. We wanted to render our non dynamic pages in
> a component based, more OO capable technology than JSP. We could easily
> implement these non dynamic pages in Echo2 but the problem is as this is
> a 100% Ajax solution Google can't index that pages.
>
> Can Wicket co-exist with Echo2 in the same web application? Obviously
> will have to change the context from 'app' as Echo2 uses that context
> also.

I never tried, but I see no obvious reason not to. In fact, you can
try with 1.3 or 2.0 to use the filter and put that in front of the
Echo 2 (filter or servlet?). If Wicket can't handle it, it'll pass
control to the next in the chain, so that might just work.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Can Wicket co-exist with Echo2? Anyone tried it before?

2007-02-08 Thread Chris Colman
Currently all our interactive forms are written in Echo2 and we're
pretty satisfied with that. We wanted to render our non dynamic pages in
a component based, more OO capable technology than JSP. We could easily
implement these non dynamic pages in Echo2 but the problem is as this is
a 100% Ajax solution Google can't index that pages.

Can Wicket co-exist with Echo2 in the same web application? Obviously
will have to change the context from 'app' as Echo2 uses that context
also.

Golfman

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How can I have difference HomePage for difference role?

2007-02-08 Thread Carfield Yim
I would like to direct difference user to difference homepage, one way
I can think of is having a dummy homepage and use
redirectToInterceptPage(arg0) to suitable page in the constructor of
that dummy homepage.

However wicket fail, can anyone recommend a better solution?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user