a simple way to decouple the menu from the pages is to mount all the
pages and pass the mount urls into the menu instead of the page
classes.

that way you wont have any imports other then java.lang.String

-igor

On Fri, Sep 25, 2009 at 12:06 AM, Giovanni Cuccu
<giovanni.cu...@cup2000.it> wrote:
> I have no problem other than "i dont like it", but since I don't like it I'd
> like to know if someone else had the same thoughts I had and what was the
> conclusion.
> Giovanni
>
>> what is the actual problem you are having with this other then "i dont
>> like it"?
>>
>> -igor
>>
>> On Wed, Sep 23, 2009 at 3:21 AM, Giovanni Cuccu
>> <giovanni.cu...@cup2000.it> wrote:
>>>
>>> Hi all,
>>>       I'm developing a wicket application and I'm facing a problem.
>>> I built a menupanel that shows the menu to access the various aplication
>>> pages; since the panel needs to show the pages it contains a list of
>>> links
>>> that when clicked simply do the the following
>>>       setResponsePage(new PageXXXX());
>>> In the class menupanel.java I must reference PageXXXX
>>> In the class PageXXXX.java I must reference MenuPanel
>>> At the end I have a circular reference between manupanel and the various
>>> PageXXXX and I don't like it.
>>> While reading wicketInAction I noted that in the examples there is a
>>> circular reference between Checkout page and Index page. Are circular
>>> references unavoidable with Wicket? Is there a best practive to avoid
>>> this
>>> situation?
>>> Thanks,
>>>       Giovanni
>>>
>>>
>>> --
>>> Giovanni Cuccu
>>> Via del Borgo di S. Pietro, 90/c - 40126 Bologna
>>> e-mail: giovanni.cuccu _at_ cup2000.it
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
>
> --
> Giovanni Cuccu
> Via del Borgo di S. Pietro, 90/c - 40126 Bologna
> e-mail: giovanni.cuccu _at_ cup2000.it
>
>
> ---------------------------------------------------------------------
> 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

Reply via email to