You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "s.bahmani" <sj...@sjb.ir> on 2016/06/11 12:03:58 UTC

InlineFrame problem with Page by parameter

when I use InlineFrame with a Page by parameter get error "Class does not
have a visible default constructor."
My code is:
 InlineFrame newIfFrame = new InlineFrame("printPage", new SPage("Hi"));

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/InlineFrame-problem-with-Page-by-parameter-tp4674869.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: InlineFrame problem with Page by parameter

Posted by Sven Meier <sv...@meiers.net>.
Hi,

could be that SPage is stateless and Wicket tries to recreate it, when 
the browser requests its URL.

Try calling #setStatelessHint(false) on your page.

Regards
Sven


On 11.06.2016 14:03, s.bahmani wrote:
> when I use InlineFrame with a Page by parameter get error "Class does not
> have a visible default constructor."
> My code is:
>   InlineFrame newIfFrame = new InlineFrame("printPage", new SPage("Hi"));
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/InlineFrame-problem-with-Page-by-parameter-tp4674869.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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