You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by eugenebalt <eu...@yahoo.com> on 2013/02/04 20:33:45 UTC

Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

Is it possible to have a Panel implemented in .java which has multiple
.html's?

We have a panel with the same data but different formatting.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Same-Panel-but-Formatted-in-2-Different-Ways-Diff-Presentation-tp4656063.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: Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

It is possible by using different variants - MyPanel_variantA.html and
MyPanel_variantB.html
See Component#getVariant() method.


On Mon, Feb 4, 2013 at 8:33 PM, eugenebalt <eu...@yahoo.com> wrote:

> Is it possible to have a Panel implemented in .java which has multiple
> .html's?
>
> We have a panel with the same data but different formatting.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Same-Panel-but-Formatted-in-2-Different-Ways-Diff-Presentation-tp4656063.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
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Re: Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

Posted by eugenebalt <eu...@yahoo.com>.
Thanks, Variants worked.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Same-Panel-but-Formatted-in-2-Different-Ways-Diff-Presentation-tp4656063p4656240.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: Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

Posted by Paul Bors <pa...@bors.ws>.
I think variants are better for different platform such as a web browser on
a desktop VS a mobile phone.

Another way of doing it would be to use the VelocityPanel.

http://wicket.apache.org/apidocs/1.5/org/apache/wicket/velocity/markup/html/VelocityPanel.html

I would imagine you'd have a lot more refactoring on your hands :)

~ Thank you,
   Paul Bors

On Mon, Feb 4, 2013 at 2:52 PM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> Use style and variation?
>
>
> https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html
>
> On Mon, Feb 4, 2013 at 8:33 PM, eugenebalt <eu...@yahoo.com> wrote:
>
> > Is it possible to have a Panel implemented in .java which has multiple
> > .html's?
> >
> > We have a panel with the same data but different formatting.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Same-Panel-but-Formatted-in-2-Different-Ways-Diff-Presentation-tp4656063.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
> >
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ <http://antiliasoft.com/antilia>
>

Re: Same Panel, but Formatted in 2 Different Ways (Diff. Presentation)

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Use style and variation?

https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html

On Mon, Feb 4, 2013 at 8:33 PM, eugenebalt <eu...@yahoo.com> wrote:

> Is it possible to have a Panel implemented in .java which has multiple
> .html's?
>
> We have a panel with the same data but different formatting.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Same-Panel-but-Formatted-in-2-Different-Ways-Diff-Presentation-tp4656063.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
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>