Re: how to not display RepeaterView

2009-04-22 Thread Jason Novotny


Igor, Jeremy,

Just want to say thanks for your constant support on the mailing list! 
This is a huge part of why I've become a wicket enthusiast. Keep up the 
great work!


   Cheers, Jason

Igor Vaynberg wrote:

no need, just attach it to a wicket:container

[wicket:container][h3]..[/h3][div]..[/div][/wicket:container]

alternatively you can attach it to any tag and call setrenderbodyonly
on the component that is direct child of repeatingview

-igor

On Tue, Apr 21, 2009 at 5:48 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
  

Sorry - poor formatting in my client made it hard to notice the closing H3.

Looking at RV code - it really doesn't seem to work for this.  I'd suggest
opening a JIRA and then adjusting your jquery script to expect the div.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 21, 2009 at 7:35 PM, Jason Novotny novo...@gridsphere.orgwrote:



Ah but the h3 doesn't wrap the whole thing (or does it need to?) Basically
I'm trying to repeat the following structure:

h3some stuff/h3
divsome div/div

h3more stuff/h3
divmore div/div

h3more more stuff/h3
divmore more div/div

Thanks Jeremy!


Jeremy Thomerson wrote:

  

Why don't you just make your outermost tag the repeater (it looks like an
H3
in your example)?

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 21, 2009 at 7:24 PM, Jason Novotny novo...@gridsphere.org


wrote:
  




Hi,

I have some markup I wish to repeat like so:

...

h3a href=#span wicket:id=workoutCategoryBlah Blah
Blah/span/a/h3
div wicket:id=activeGroup
 p
 ol wicket:id=workoutList class=workoutList
 li wicket:id=itemspan wicket:id=labelstrongWorkout
Name./strong/span/li
 /ol
 /p
/div


...

So I wrapped the whole thing inside a div wicket:id=container like
so:

div wicket:id=container
 h3a href=#span wicket:id=workoutCategoryBlah Blah
Blah/span/a/h3
   div wicket:id=activeGroup
    /div
/div

and use a RepeatingView rv = new RepeatingView(container);

This works fine except the resulting HTML still contains the outer div to
appear which causes the markup to break since it relies on Jquery to
attach
some classes, etc and is not expecting the outer div's.
I've tried rv.setRenderBody(false) which works for wicket Label's if you
don't want to display the span tag but doesn't work here. Does anyone
have
any idea of how to not display the RepeatingView markup of div tags?

Thanks a bunch. Jason



-
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



how to not display RepeaterView

2009-04-21 Thread Jason Novotny


Hi,

I have some markup I wish to repeat like so:

...

h3a href=#span wicket:id=workoutCategoryBlah Blah 
Blah/span/a/h3
  
div wicket:id=activeGroup

   p
   ol wicket:id=workoutList class=workoutList
   li wicket:id=itemspan 
wicket:id=labelstrongWorkout Name./strong/span/li

   /ol
   /p
/div


...

So I wrapped the whole thing inside a div wicket:id=container like so:

div wicket:id=container
   h3a href=#span wicket:id=workoutCategoryBlah Blah 
Blah/span/a/h3
  
   div wicket:id=activeGroup
    
   /div

/div

and use a RepeatingView rv = new RepeatingView(container);

This works fine except the resulting HTML still contains the outer div 
to appear which causes the markup to break since it relies on Jquery to 
attach some classes, etc and is not expecting the outer div's.
I've tried rv.setRenderBody(false) which works for wicket Label's if you 
don't want to display the span tag but doesn't work here. Does anyone 
have any idea of how to not display the RepeatingView markup of div tags?


Thanks a bunch. Jason



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



Re: how to not display RepeaterView

2009-04-21 Thread Jeremy Thomerson
Why don't you just make your outermost tag the repeater (it looks like an H3
in your example)?

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 21, 2009 at 7:24 PM, Jason Novotny novo...@gridsphere.orgwrote:


 Hi,

 I have some markup I wish to repeat like so:

 ...

 h3a href=#span wicket:id=workoutCategoryBlah Blah
 Blah/span/a/h3
  div wicket:id=activeGroup
   p
   ol wicket:id=workoutList class=workoutList
   li wicket:id=itemspan wicket:id=labelstrongWorkout
 Name./strong/span/li
   /ol
   /p
 /div


 ...

 So I wrapped the whole thing inside a div wicket:id=container like so:

 div wicket:id=container
   h3a href=#span wicket:id=workoutCategoryBlah Blah
 Blah/span/a/h3
 div wicket:id=activeGroup
  /div
 /div

 and use a RepeatingView rv = new RepeatingView(container);

 This works fine except the resulting HTML still contains the outer div to
 appear which causes the markup to break since it relies on Jquery to attach
 some classes, etc and is not expecting the outer div's.
 I've tried rv.setRenderBody(false) which works for wicket Label's if you
 don't want to display the span tag but doesn't work here. Does anyone have
 any idea of how to not display the RepeatingView markup of div tags?

 Thanks a bunch. Jason



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




Re: how to not display RepeaterView

2009-04-21 Thread Igor Vaynberg
no need, just attach it to a wicket:container

[wicket:container][h3]..[/h3][div]..[/div][/wicket:container]

alternatively you can attach it to any tag and call setrenderbodyonly
on the component that is direct child of repeatingview

-igor

On Tue, Apr 21, 2009 at 5:48 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Sorry - poor formatting in my client made it hard to notice the closing H3.

 Looking at RV code - it really doesn't seem to work for this.  I'd suggest
 opening a JIRA and then adjusting your jquery script to expect the div.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Apr 21, 2009 at 7:35 PM, Jason Novotny novo...@gridsphere.orgwrote:


 Ah but the h3 doesn't wrap the whole thing (or does it need to?) Basically
 I'm trying to repeat the following structure:

 h3some stuff/h3
 divsome div/div
 
 h3more stuff/h3
 divmore div/div
 
 h3more more stuff/h3
 divmore more div/div

 Thanks Jeremy!


 Jeremy Thomerson wrote:

 Why don't you just make your outermost tag the repeater (it looks like an
 H3
 in your example)?

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Apr 21, 2009 at 7:24 PM, Jason Novotny novo...@gridsphere.org
 wrote:



 Hi,

 I have some markup I wish to repeat like so:

 ...

 h3a href=#span wicket:id=workoutCategoryBlah Blah
 Blah/span/a/h3
     div wicket:id=activeGroup
          p
          ol wicket:id=workoutList class=workoutList
              li wicket:id=itemspan wicket:id=labelstrongWorkout
 Name./strong/span/li
          /ol
          /p
 /div


 ...

 So I wrapped the whole thing inside a div wicket:id=container like
 so:

 div wicket:id=container
  h3a href=#span wicket:id=workoutCategoryBlah Blah
 Blah/span/a/h3
        div wicket:id=activeGroup
             /div
 /div

 and use a RepeatingView rv = new RepeatingView(container);

 This works fine except the resulting HTML still contains the outer div to
 appear which causes the markup to break since it relies on Jquery to
 attach
 some classes, etc and is not expecting the outer div's.
 I've tried rv.setRenderBody(false) which works for wicket Label's if you
 don't want to display the span tag but doesn't work here. Does anyone
 have
 any idea of how to not display the RepeatingView markup of div tags?

 Thanks a bunch. Jason



 -
 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