Re: PageParameters refresh on page reload

2014-05-21 Thread Martin Grigorov
Hi,

This is fixed in Wicket 7.x. We didn't apply the fix to 6.x because it is a
behavior change.
You can read the current parameters in #onConfigure() with
getRequestCycle().getRequest().getRequestParameters() and override with
them the page's parameters (page.getPageParameters())

Martin Grigorov
Wicket Training and Consulting


On Wed, May 21, 2014 at 9:41 PM, Edgar Merino  wrote:

> Hello, I've got a problem that I've just noticed today: When an instance
> of a WebPage is created with some url parameters, the PageParameters object
> is never updated, that is, if I refresh the same webpage with different url
> parameters this won't be taken into account, instead the first params used
> to create the WebPage are used. Is there a way to have url parameters
> updated on each page request?
>
> Thanks in advance.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


PageParameters refresh on page reload

2014-05-21 Thread Edgar Merino
Hello, I've got a problem that I've just noticed today: When an instance 
of a WebPage is created with some url parameters, the PageParameters 
object is never updated, that is, if I refresh the same webpage with 
different url parameters this won't be taken into account, instead the 
first params used to create the WebPage are used. Is there a way to have 
url parameters updated on each page request?


Thanks in advance.

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



How can I display modal dialog only if validation is sucessful?

2014-05-21 Thread Bruce Lombardi
Hi,

 

I have a form with several question that a user must answer. If the answers
are correct, an email is sent to the user and the user is returned to the
login page. That's a bit abrupt for the user and I  would like to provide a
simple modal dialog that confirms that the email is sent before sending them
to the home page. However, if the answers to the questions are not correct,
then a feedback panel must be displayed.

 

I've looked at the approaches to providing a confirmation panel in this link
https://cwiki.apache.org/confluence/display/WICKET/Getting+user+confirmation
and other places, but I am having a problem with the approach. The
JavaScript seems to run as soon as the button is clicked - before onSubmit
or onValidate runs on the server. So I can't stop the pop-up from showing
if the questions were not answered correctly.

 

Does anyone know a way I can display the modal dialog only after validation
has run?

 

Thanks,

 

Bruce

 



Re: Dataview setreuseitem to false

2014-05-21 Thread Sven Meier

Hi,

please take a look at #setItemReuseStrategy(IItemReuseStrategy)

Sven

On 05/21/2014 03:11 PM, pradeepmohite07 wrote:

Hello,
I am using dataview form sorting and pagination
and observed that data in dataview is not refreshed properly
previously i used Listview with set reuseitem=false and it  was working
properly
and now after use of dataview its not behaving properly
I looked into sourcecode of ListView
do there is any way to achive same behaviour as  set reuseitem=false
or do i have to extend Dataview and write similar logic as in Listview for
reuseitem in it.

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-setreuseitem-to-false-tp4665971.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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



Dataview setreuseitem to false

2014-05-21 Thread pradeepmohite07
Hello,
I am using dataview form sorting and pagination 
and observed that data in dataview is not refreshed properly
previously i used Listview with set reuseitem=false and it  was working
properly
and now after use of dataview its not behaving properly
I looked into sourcecode of ListView 
do there is any way to achive same behaviour as  set reuseitem=false 
or do i have to extend Dataview and write similar logic as in Listview for
reuseitem in it.

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-setreuseitem-to-false-tp4665971.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Page rendering from quartz job

2014-05-21 Thread Martin Grigorov
The answer is: create the request cycle yourself
On May 21, 2014 11:01 AM, "Sandor Feher"  wrote:

> That's nice and this is exactly what I do.
> But I start my job from  init method of my Application class and there is
> no
> RequestCycle there at initialization time. I suppose that because there is
> no request has been sent to Application yet. (Nobody uses the application
> because it just started).
> I think this is why the mentioned examples do not work for me.
> The question is where to start my quartz job to get RequestCycle ?
>
> thnx., Sandor
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665969.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Page rendering from quartz job

2014-05-21 Thread Sandor Feher
That's nice and this is exactly what I do.
But I start my job from  init method of my Application class and there is no
RequestCycle there at initialization time. I suppose that because there is
no request has been sent to Application yet. (Nobody uses the application
because it just started).
I think this is why the mentioned examples do not work for me.
The question is where to start my quartz job to get RequestCycle ?

thnx., Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-rendering-from-quartz-job-tp4665860p4665969.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket textinput field

2014-05-21 Thread Martin Grigorov
Hi,

You can use
List values = PageParameters.getValues("operations");
Then use this List as a Model for a ListView where each ListItem will add a
TextField for the operation.
Don't forget to call listView.setReuseItems(true)

Martin Grigorov
Wicket Training and Consulting


On Tue, May 20, 2014 at 4:39 PM, Damilare Olowoniyi <
damilare.olowoni...@mail.dcu.ie> wrote:

> HI,
>
> I'm currently using wicket as my part MVC in my controller and at the
> moment i have an Array of strings within a parameter named "operations"
>  for example whats inside the parameter:
>
>- boo
>- far
>- bar
>- mon
>
> assuming the array are random each time, as in its not just the same
> strings from above
>
> So now i want to output those strings within the parameter "operations"
> into individual Input fields.
>
> for instance:
>
>  boo ==> a input box
> far ==> a input box
> bar ==>a  input box
>
> and so on...
>
> how would i go about doing this with wicket?
>
> Thanks
>