You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Dr. Britta Landgraf" <b....@fz-juelich.de> on 2013/02/19 09:14:45 UTC
pages with different verbosity
Hi,
i have to output scientific data in different ways depended from a query
parameter verbose. For a high value of verbose the data will be shown
with html decoration, e.g. formattet with lists etc. For a low value of
verbose the data will be shown in a raw form, so other programms can
read the data from http stream and make some computation with them. How
can i do this (in an easy way) in wicket?
Formatted presentation with pages and resources for raw data has the
disatvantage that i need to implement different things for different
verbosity.
regards britta
--
Dr. Britta Landgraf phone: +49 2461 61 5647
IEK-4 fax: +49 2461 61 5452
email: B.Landgraf@fz-juelich.de
WWW: www.fz-juelich.de/iek/iek-4/
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: pages with different verbosity
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
On Tue, Feb 19, 2013 at 10:14 AM, Dr. Britta Landgraf <
b.landgraf@fz-juelich.de> wrote:
> Hi,
>
> i have to output scientific data in different ways depended from a query
> parameter verbose. For a high value of verbose the data will be shown
> with html decoration, e.g. formattet with lists etc. For a low value of
> verbose the data will be shown in a raw form, so other programms can
> read the data from http stream and make some computation with them. How
> can i do this (in an easy way) in wicket?
> Formatted presentation with pages and resources for raw data has the
> disatvantage that i need to implement different things for different
> verbosity.
>
In all cases you will need different code to generate the output.
You may use a Page with different Panels for the raw and formatted output
but I think the more clear solution is
to have a landing page that uses requestCycle.replaceAllRequestHandlers(
... ) by using either :
- new RenderPageRequestHandler(new PageProvider(new FormattedOutputPage()))
- new ResourceRequestHandler(new ByteArrayResource(rawData))
>
> regards britta
>
> --
> Dr. Britta Landgraf phone: +49 2461 61 5647
> IEK-4 fax: +49 2461 61 5452
> email: B.Landgraf@fz-juelich.de
> WWW: www.fz-juelich.de/iek/iek-4/
>
>
>
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
>
> ------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>