You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by smallufo <sm...@gmail.com> on 2007/12/24 20:58:57 UTC

Fragment(String,String) is deprecated ?

In 1.3 rc2 , I found Fragment(String,String) is deprecated .
I see the src, saying : @deprecated use {@link #Fragment(String, String,
MarkupContainer)}
But I don't know what should I fill in the MarkupContainer . ... ?

  <span wicket:id="myPanel">Example input (will be removed)</span>

  <wicket:fragment wicket:id="frag1">panel 1</wicket:fragment>
  <wicket:fragment wicket:id="frag2">panel 2</wicket:fragment>

   add(new Fragment("myPanel1", "frag1");

Just like this easy example above (in the JavaDoc) , what is the
recommended way in 1.3 ?

Re: Fragment(String,String) is deprecated ?

Posted by Igor Vaynberg <ig...@gmail.com>.
javadoc for (string, string, markupcontainer) says

	 * @param markupProvider
	 *            The component whose markup contains the fragment's markup
	 */

-igor



On Dec 24, 2007 11:58 AM, smallufo <sm...@gmail.com> wrote:
> In 1.3 rc2 , I found Fragment(String,String) is deprecated .
> I see the src, saying : @deprecated use {@link #Fragment(String, String,
> MarkupContainer)}
> But I don't know what should I fill in the MarkupContainer . ... ?
>
>   <span wicket:id="myPanel">Example input (will be removed)</span>
>
>   <wicket:fragment wicket:id="frag1">panel 1</wicket:fragment>
>   <wicket:fragment wicket:id="frag2">panel 2</wicket:fragment>
>
>    add(new Fragment("myPanel1", "frag1");
>
> Just like this easy example above (in the JavaDoc) , what is the
> recommended way in 1.3 ?
>

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