You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by K <ko...@gmail.com> on 2015/01/21 12:54:42 UTC

Wicket panel #oninitilize for replacing

Hi i have been strugguling with this for a while. could you please suggest
changes.

   

Scenario: when i search for a job, if a job exists job is displayed in this
panel and if the job does not exist it is redirected back to the search
panel. i am unable to redirect back to the search panel.


-----
K
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.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: Wicket panel #oninitilize for replacing

Posted by K <ko...@gmail.com>.
@sven Thanks for your response

1. i am using nested panels, searchinnerpanel and jobdetailspanel are
present in searchbodypanel hence i could not use page to handle the retrival
logic.

2. these panels were actually pages hence pageparameters i plan on changing
it.



-----
K
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063p4669067.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: Wicket panel #oninitilize for replacing

Posted by Rodrigo Ribeiro Miguele <ro...@maps.com.br>.
If the "job panel" and "search panel" has the same id and parent, you can
use the *#addOrReplace(Component)* method on its parent to add the panel
that you need to display.

If the "search panel" is on the previous page, you need to keep the
reference of it and when you submit the form your submit/search button
should call *#setResponsePage(Page)* with the previous page as parameter.

2015-01-21 9:54 GMT-02:00 K <ko...@gmail.com>:

> Hi i have been strugguling with this for a while. could you please suggest
> changes.
>
>
>
> Scenario: when i search for a job, if a job exists job is displayed in this
> panel and if the job does not exist it is redirected back to the search
> panel. i am unable to redirect back to the search panel.
>
>
> -----
> K
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.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
>
>


-- 
Rodrigo Ribeiro Miguele

Re: Wicket panel #oninitilize for replacing

Posted by Sven Meier <sv...@meiers.net>.
Hi,

you should move the retrieval of jobs out of your panel:
Let your page do this and just pass the retrieved jobs to the panel *or* 
replace it with something else.

BTW it's unusual to have a non-page constructor with pageParameters as 
arguments.

Hope this helps
Sven


On 21.01.2015 12:54, K wrote:
> Hi i have been strugguling with this for a while. could you please suggest
> changes.
>
>     
>
> Scenario: when i search for a job, if a job exists job is displayed in this
> panel and if the job does not exist it is redirected back to the search
> panel. i am unable to redirect back to the search panel.
>
>
> -----
> K
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-oninitilize-for-replacing-tp4669063.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
>


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