You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ChambreNoire <aw...@tentelemed.com> on 2016/03/19 13:17:00 UTC
ResourceModel usage within ModalWindow content Panel
Hi,
I'd like to be able to use localised string resources declared within the
ModalWindow's parent panel from within the ModalWindow content Panel.
Any ideas?
Many Thanks,
CN
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceModel-usage-within-ModalWindow-content-Panel-tp4674067.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: ResourceModel usage within ModalWindow content Panel
Posted by ChambreNoire <aw...@tentelemed.com>.
Nevermind, using a PackageStringResourceLoader works fine!
CN
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceModel-usage-within-ModalWindow-content-Panel-tp4674067p4674077.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: ResourceModel usage within ModalWindow content Panel
Posted by ChambreNoire <aw...@tentelemed.com>.
No that won't work anyway because the ModalWindow instance is added at the
page level and reused throughout. So basically I need to pass the panel
where the content panel is instantiated to this content panel so that it can
resolve the resources. Bit ugly..
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceModel-usage-within-ModalWindow-content-Panel-tp4674067p4674071.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: ResourceModel usage within ModalWindow content Panel
Posted by ChambreNoire <aw...@tentelemed.com>.
Hey there,
Indeed I'm using a Panel rather than a separate page.
I could just use StringResourceModel("key", modalwindow.getParent(), null)
but I was hoping for something less verbose that would cover all
resourcemodel use in the modal content panel...
Thanks,
CN
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceModel-usage-within-ModalWindow-content-Panel-tp4674067p4674069.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: ResourceModel usage within ModalWindow content Panel
Posted by Sven Meier <sv...@meiers.net>.
Hi,
if you're using a panel as the ModalWindow's content (not a separate
page), you can use Wicket's usual resource resolving:
https://ci.apache.org/projects/wicket/guide/7.x/guide/single.html#i18n_3
Regards
Sven
On 19.03.2016 13:17, ChambreNoire wrote:
> Hi,
>
> I'd like to be able to use localised string resources declared within the
> ModalWindow's parent panel from within the ModalWindow content Panel.
>
> Any ideas?
>
> Many Thanks,
>
> CN
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/ResourceModel-usage-within-ModalWindow-content-Panel-tp4674067.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