Re: Panel without HTML

2010-05-04 Thread James Carman
Wicketopia does some of this kind of stuff, but it's based on
class/property metadata.  Basically, it auto-creates forms for you on
the fly based on annotations you put on the field values.

You *could* also use Velocity to dynamically generate your markup at
runtime, also.  That's an interesting approach that I thought about
trying but never really got around to it.  It should work, though.

On Tue, May 4, 2010 at 1:23 PM, Brian Mulholland  wrote:
> I don't have this situation right now, it's mostly curiosity, but I've
> had these requirements at times in the past.  If I had a panel whose
> appearance was highly dynamic, say perhaps because it was driven by
> some personalization or data, can a Wicket panel add components that
> don't have a corresponding tag in HTML?
>
> So I would just have a tag for where the wicket panel renders, but the
> panel might consist of an unknown combination of other controls so
> that I could not have a static HTML template for it.  How might I
> handle that in wicket?
>
> Brian Mulholland
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Panel without HTML

2010-05-04 Thread Martin Makundi
Hi!

Also here is a way:

http://webcache.googleusercontent.com/search?q=cache:D3a_O4kK4t0J:www.wickettraining.com/ws-sites/minis-parent/minis/xref/org/wicketstuff/minis/apanel/APanel.html+%22apanel%22+wicket&cd=1&hl=fi&ct=clnk&gl=fi&client=firefox-a

2010/5/4 Zilvinas Vilutis :
> You can do it with ListView's - you can make a list of "panels" and
> add your own custom panel in each iteration.
>
> Žilvinas Vilutis
>
> Mobile:   (+370) 652 38353
> E-mail:   cika...@gmail.com
>
>
>
> On Tue, May 4, 2010 at 10:36 AM, Igor Vaynberg  
> wrote:
>> somewhere somehow you have to provide markup. so your dynamic panel
>> will consist of other dynamic panels added at runtime, so your parent
>> panel can have this markup
>>
>> > wicket:id="children">
>>
>> the "children" component being some repeater such as a RepeatingView
>> which will instantiate and add the dynamic selection of child panels.
>>
>> -igor
>>
>> On Tue, May 4, 2010 at 10:23 AM, Brian Mulholland
>>  wrote:
>>> I don't have this situation right now, it's mostly curiosity, but I've
>>> had these requirements at times in the past.  If I had a panel whose
>>> appearance was highly dynamic, say perhaps because it was driven by
>>> some personalization or data, can a Wicket panel add components that
>>> don't have a corresponding tag in HTML?
>>>
>>> So I would just have a tag for where the wicket panel renders, but the
>>> panel might consist of an unknown combination of other controls so
>>> that I could not have a static HTML template for it.  How might I
>>> handle that in wicket?
>>>
>>> Brian Mulholland
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Panel without HTML

2010-05-04 Thread Zilvinas Vilutis
You can do it with ListView's - you can make a list of "panels" and
add your own custom panel in each iteration.

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com



On Tue, May 4, 2010 at 10:36 AM, Igor Vaynberg  wrote:
> somewhere somehow you have to provide markup. so your dynamic panel
> will consist of other dynamic panels added at runtime, so your parent
> panel can have this markup
>
>  wicket:id="children">
>
> the "children" component being some repeater such as a RepeatingView
> which will instantiate and add the dynamic selection of child panels.
>
> -igor
>
> On Tue, May 4, 2010 at 10:23 AM, Brian Mulholland
>  wrote:
>> I don't have this situation right now, it's mostly curiosity, but I've
>> had these requirements at times in the past.  If I had a panel whose
>> appearance was highly dynamic, say perhaps because it was driven by
>> some personalization or data, can a Wicket panel add components that
>> don't have a corresponding tag in HTML?
>>
>> So I would just have a tag for where the wicket panel renders, but the
>> panel might consist of an unknown combination of other controls so
>> that I could not have a static HTML template for it.  How might I
>> handle that in wicket?
>>
>> Brian Mulholland
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Panel without HTML

2010-05-04 Thread Igor Vaynberg
somewhere somehow you have to provide markup. so your dynamic panel
will consist of other dynamic panels added at runtime, so your parent
panel can have this markup



the "children" component being some repeater such as a RepeatingView
which will instantiate and add the dynamic selection of child panels.

-igor

On Tue, May 4, 2010 at 10:23 AM, Brian Mulholland
 wrote:
> I don't have this situation right now, it's mostly curiosity, but I've
> had these requirements at times in the past.  If I had a panel whose
> appearance was highly dynamic, say perhaps because it was driven by
> some personalization or data, can a Wicket panel add components that
> don't have a corresponding tag in HTML?
>
> So I would just have a tag for where the wicket panel renders, but the
> panel might consist of an unknown combination of other controls so
> that I could not have a static HTML template for it.  How might I
> handle that in wicket?
>
> Brian Mulholland
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Panel without HTML

2010-05-04 Thread Brian Mulholland
I don't have this situation right now, it's mostly curiosity, but I've
had these requirements at times in the past.  If I had a panel whose
appearance was highly dynamic, say perhaps because it was driven by
some personalization or data, can a Wicket panel add components that
don't have a corresponding tag in HTML?

So I would just have a tag for where the wicket panel renders, but the
panel might consist of an unknown combination of other controls so
that I could not have a static HTML template for it.  How might I
handle that in wicket?

Brian Mulholland

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