Apache Wicket 8.0.0-M1 PushBuilder

2016-07-25 Thread Tobias Soloschenko
Hi,

just wanted to clarify that the PushBuilder API will be available with 8.0.0-M2 
instead of 8.0.0-M1. 

kind regards

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



Re: Approach to changing value in input field before validation

2016-07-25 Thread Martin Makundi
We have made an utility method that uses reflection to set rawinput, and
have found this very useful.

You set both rawInput and rawInputArray

**
Martin

2016-07-26 1:18 GMT+03:00 Lon Varscsak :

> Okay, so I have a need…I’m sure I’m going to get “why are you doing that?”,
> but I have this need regardless and here’s what it is… :D
>
> User inputs “VALUEA”, I want to look up something in the database for
> “VALUEA”, and if conditions are met, replace that with “VALUEB” and
> continue with validation for the new value.  However, the only way I can
> see to do this would be to update the *rawInput* value, which I do not have
> access to as a subclass (it’s private).
>
> So instead, I tried writing a converter, and it generally behaves as I want
> (it validates “VALUEB”), however if there’s a validation error on “VALUEB”
> the rawInput is still “VALUEA”…so it’s a little confusing to the user.
>
> I’m not sure that using a converter is the “right” approach, but it’s the
> closest I’ve come to a solution.
>
> Thoughts?
>
> Thanks,
>
> Lon
>


Approach to changing value in input field before validation

2016-07-25 Thread Lon Varscsak
Okay, so I have a need…I’m sure I’m going to get “why are you doing that?”,
but I have this need regardless and here’s what it is… :D

User inputs “VALUEA”, I want to look up something in the database for
“VALUEA”, and if conditions are met, replace that with “VALUEB” and
continue with validation for the new value.  However, the only way I can
see to do this would be to update the *rawInput* value, which I do not have
access to as a subclass (it’s private).

So instead, I tried writing a converter, and it generally behaves as I want
(it validates “VALUEB”), however if there’s a validation error on “VALUEB”
the rawInput is still “VALUEA”…so it’s a little confusing to the user.

I’m not sure that using a converter is the “right” approach, but it’s the
closest I’ve come to a solution.

Thoughts?

Thanks,

Lon


Re: How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread durairaj t
Ok. Thank you!

On Mon, Jul 25, 2016 at 11:04 AM, Martin Grigorov 
wrote:

> We recommend you to upgrade to Wicket 6.x or even 7.x.
> 1.5.x is no more maintained. It receives only security related patches.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Jul 25, 2016 at 4:57 PM, durairaj t 
> wrote:
>
> > There is no intermediate page. I did not see anything in between the
> > current page to the targeted page.
> >
> > When I'm running my application in wicket 1.4.x with the below code it
> > gives correct width and height, also it returns true for isJavaEnabled().
> >
> > Wicket1.4.x: int width = ((WebClientInfo)
> > getRequestCycle().getClientInfo()).getProperties().getBrowserWidth();
> >
> > On Mon, Jul 25, 2016 at 10:49 AM, Martin Grigorov 
> > wrote:
> >
> > > Do you see an intermediate page that says something like "You'll be
> > > redirected in a second" ?
> > > This page collects the client properties.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Mon, Jul 25, 2016 at 4:41 PM, durairaj t 
> > > wrote:
> > >
> > > > It is already added in my app.java.
> > > >
> > > > isJavaEnabled() - returns false; I set it true, but still it is not
> > > > working.
> > > >
> > >
> > > This is not related.
> > > This property says whether Java (not JavaScript) is enabled in your
> > > browser. Usually it is disabled due to the amount of bugs in Java
> > Applets.
> > >
> > >
> > > >
> > > > On Mon, Jul 25, 2016 at 10:23 AM, ndongo yaya 
> > > > wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > I believe you need to add
> > > > > *getRequestCycleSettings().setGatherExtendedBrowserInfo(true)
> > > > > *to your application's init method.
> > > > > Take a look at *ClientProperties.class* for the complete javadoc.
> > > > >
> > > > > Regards,
> > > > > Yaya
> > > > >
> > > > > 2016-07-25 15:26 GMT+02:00 durairaj t :
> > > > >
> > > > > > The below code is giving *-1* for height and width,
> > > > > >
> > > > > >  ClientProperties properties =
> > > > > > ((WebClientInfo)Session.get().getClientInfo()).getProperties();
> > > > > > int height =  properties.getBrowserHeight();
> > > > > >
> > > > > > System.out.println("height:"+ height );
> > > > > >
> > > > > > *height : -1*
> > > > > >
> > > > > > Any help?
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Yaya NDONGO
> > > > >
> > > >
> > >
> >
>


Re: How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread Martin Grigorov
We recommend you to upgrade to Wicket 6.x or even 7.x.
1.5.x is no more maintained. It receives only security related patches.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jul 25, 2016 at 4:57 PM, durairaj t  wrote:

> There is no intermediate page. I did not see anything in between the
> current page to the targeted page.
>
> When I'm running my application in wicket 1.4.x with the below code it
> gives correct width and height, also it returns true for isJavaEnabled().
>
> Wicket1.4.x: int width = ((WebClientInfo)
> getRequestCycle().getClientInfo()).getProperties().getBrowserWidth();
>
> On Mon, Jul 25, 2016 at 10:49 AM, Martin Grigorov 
> wrote:
>
> > Do you see an intermediate page that says something like "You'll be
> > redirected in a second" ?
> > This page collects the client properties.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Jul 25, 2016 at 4:41 PM, durairaj t 
> > wrote:
> >
> > > It is already added in my app.java.
> > >
> > > isJavaEnabled() - returns false; I set it true, but still it is not
> > > working.
> > >
> >
> > This is not related.
> > This property says whether Java (not JavaScript) is enabled in your
> > browser. Usually it is disabled due to the amount of bugs in Java
> Applets.
> >
> >
> > >
> > > On Mon, Jul 25, 2016 at 10:23 AM, ndongo yaya 
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I believe you need to add
> > > > *getRequestCycleSettings().setGatherExtendedBrowserInfo(true)
> > > > *to your application's init method.
> > > > Take a look at *ClientProperties.class* for the complete javadoc.
> > > >
> > > > Regards,
> > > > Yaya
> > > >
> > > > 2016-07-25 15:26 GMT+02:00 durairaj t :
> > > >
> > > > > The below code is giving *-1* for height and width,
> > > > >
> > > > >  ClientProperties properties =
> > > > > ((WebClientInfo)Session.get().getClientInfo()).getProperties();
> > > > > int height =  properties.getBrowserHeight();
> > > > >
> > > > > System.out.println("height:"+ height );
> > > > >
> > > > > *height : -1*
> > > > >
> > > > > Any help?
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Yaya NDONGO
> > > >
> > >
> >
>


Re: How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread durairaj t
There is no intermediate page. I did not see anything in between the
current page to the targeted page.

When I'm running my application in wicket 1.4.x with the below code it
gives correct width and height, also it returns true for isJavaEnabled().

Wicket1.4.x: int width = ((WebClientInfo)
getRequestCycle().getClientInfo()).getProperties().getBrowserWidth();

On Mon, Jul 25, 2016 at 10:49 AM, Martin Grigorov 
wrote:

> Do you see an intermediate page that says something like "You'll be
> redirected in a second" ?
> This page collects the client properties.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Jul 25, 2016 at 4:41 PM, durairaj t 
> wrote:
>
> > It is already added in my app.java.
> >
> > isJavaEnabled() - returns false; I set it true, but still it is not
> > working.
> >
>
> This is not related.
> This property says whether Java (not JavaScript) is enabled in your
> browser. Usually it is disabled due to the amount of bugs in Java Applets.
>
>
> >
> > On Mon, Jul 25, 2016 at 10:23 AM, ndongo yaya 
> > wrote:
> >
> > > Hello,
> > >
> > > I believe you need to add
> > > *getRequestCycleSettings().setGatherExtendedBrowserInfo(true)
> > > *to your application's init method.
> > > Take a look at *ClientProperties.class* for the complete javadoc.
> > >
> > > Regards,
> > > Yaya
> > >
> > > 2016-07-25 15:26 GMT+02:00 durairaj t :
> > >
> > > > The below code is giving *-1* for height and width,
> > > >
> > > >  ClientProperties properties =
> > > > ((WebClientInfo)Session.get().getClientInfo()).getProperties();
> > > > int height =  properties.getBrowserHeight();
> > > >
> > > > System.out.println("height:"+ height );
> > > >
> > > > *height : -1*
> > > >
> > > > Any help?
> > > >
> > >
> > >
> > >
> > > --
> > > Yaya NDONGO
> > >
> >
>


Re: How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread Martin Grigorov
Do you see an intermediate page that says something like "You'll be
redirected in a second" ?
This page collects the client properties.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jul 25, 2016 at 4:41 PM, durairaj t  wrote:

> It is already added in my app.java.
>
> isJavaEnabled() - returns false; I set it true, but still it is not
> working.
>

This is not related.
This property says whether Java (not JavaScript) is enabled in your
browser. Usually it is disabled due to the amount of bugs in Java Applets.


>
> On Mon, Jul 25, 2016 at 10:23 AM, ndongo yaya 
> wrote:
>
> > Hello,
> >
> > I believe you need to add
> > *getRequestCycleSettings().setGatherExtendedBrowserInfo(true)
> > *to your application's init method.
> > Take a look at *ClientProperties.class* for the complete javadoc.
> >
> > Regards,
> > Yaya
> >
> > 2016-07-25 15:26 GMT+02:00 durairaj t :
> >
> > > The below code is giving *-1* for height and width,
> > >
> > >  ClientProperties properties =
> > > ((WebClientInfo)Session.get().getClientInfo()).getProperties();
> > > int height =  properties.getBrowserHeight();
> > >
> > > System.out.println("height:"+ height );
> > >
> > > *height : -1*
> > >
> > > Any help?
> > >
> >
> >
> >
> > --
> > Yaya NDONGO
> >
>


Re: How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread durairaj t
It is already added in my app.java.

isJavaEnabled() - returns false; I set it true, but still it is not working.

On Mon, Jul 25, 2016 at 10:23 AM, ndongo yaya  wrote:

> Hello,
>
> I believe you need to add
> *getRequestCycleSettings().setGatherExtendedBrowserInfo(true)
> *to your application's init method.
> Take a look at *ClientProperties.class* for the complete javadoc.
>
> Regards,
> Yaya
>
> 2016-07-25 15:26 GMT+02:00 durairaj t :
>
> > The below code is giving *-1* for height and width,
> >
> >  ClientProperties properties =
> > ((WebClientInfo)Session.get().getClientInfo()).getProperties();
> > int height =  properties.getBrowserHeight();
> >
> > System.out.println("height:"+ height );
> >
> > *height : -1*
> >
> > Any help?
> >
>
>
>
> --
> Yaya NDONGO
>


Re: How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread ndongo yaya
Hello,

I believe you need to add
*getRequestCycleSettings().setGatherExtendedBrowserInfo(true)
*to your application's init method.
Take a look at *ClientProperties.class* for the complete javadoc.

Regards,
Yaya

2016-07-25 15:26 GMT+02:00 durairaj t :

> The below code is giving *-1* for height and width,
>
>  ClientProperties properties =
> ((WebClientInfo)Session.get().getClientInfo()).getProperties();
> int height =  properties.getBrowserHeight();
>
> System.out.println("height:"+ height );
>
> *height : -1*
>
> Any help?
>



-- 
Yaya NDONGO


How to get the browser height and width in wicket 1.5 ?

2016-07-25 Thread durairaj t
The below code is giving *-1* for height and width,

 ClientProperties properties =
((WebClientInfo)Session.get().getClientInfo()).getProperties();
int height =  properties.getBrowserHeight();

System.out.println("height:"+ height );

*height : -1*

Any help?