You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tom Eicher <to...@tomeicher.de> on 2011/11/29 15:04:31 UTC

Form Submit components

Hello,

I have a data table with a checkbox column, and I dont
want to loose the checks when a navigation link is clicked.

Since I'm not using AJAX here, all I would need is for the
navigation buttons to sumit the form.
("SubmittingNavigationToolbar", not"AjaxNavigationToolbar")

I just rediscovered a really old posting where it was
recommended to "change all under wicket.markup.html.navigation.paging
to use SubmitLink instead of Link".

While this would work, I was thinking if in 2011 we do not have
a better solution. Does anyone have a working "SubmittingBehavior"
to just attach to the links or anything ?

Using wicket-1.4.12, but also welcoming 1.5 solutions,
which I would put on our "TODO for migration" list ;-)

Thanks, Cheers, Tom.

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


Re: Form Submit components

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Dec 5, 2011 at 5:53 PM, cheesus <to...@tomeicher.de> wrote:
>
> Martin Grigorov-4 wrote
>>
>> What is hard with it ?
>>
> Well, it would have been a lot easier if "SubmitLink" were a "Link<T>" ;-)

If there is no ticket in Jira then we cannot know about this problem and fix it.
Ticket + patch would be awesome! :-)

> ...
>
> Well, I have it running now, with a solution looking roughly like...
>
>> Really, nobody has a pointer to a solution for "submit form upon table
>> navigation" ?
>
>
> Martin Grigorov-4 wrote
>>
>> Contributions are welcome!
>>
>
> The point is, this is quite messy, and an awlut lot of code, just to make
> the links "the submitting kind".
>
> Thus my question, if this not better be solved as e.g. a Behavior ?
> Or in any other (better) way ?
>
> I'm not afraid to contribute ;-) but I'm asking which direction you would
> recommend, as I can hack
> out some Wicket code, but I'm not soooooo sure concerning concepts and
> architecture...

If just adding a behavior to the navigator enables this functionality
then it will be much better than now.
Play with it and if you create something simpler then attach it to a ticket.
I think there is a ticket "Re-think PagingNavigator and Co." but no
one had time to think on it so far.

>
> Any input ?
> Cheers, Tom.
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submit-components-tp4119429p4161290.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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


Re: Form Submit components

Posted by cheesus <to...@tomeicher.de>.
Martin Grigorov-4 wrote
> 
> What is hard with it ?
> 
Well, it would have been a lot easier if "SubmitLink" were a "Link<T>" ;-)
...

Well, I have it running now, with a solution looking roughly like...

> Really, nobody has a pointer to a solution for "submit form upon table
> navigation" ?


Martin Grigorov-4 wrote
> 
> Contributions are welcome!
> 

The point is, this is quite messy, and an awlut lot of code, just to make
the links "the submitting kind".

Thus my question, if this not better be solved as e.g. a Behavior ?
Or in any other (better) way ?

I'm not afraid to contribute ;-) but I'm asking which direction you would
recommend, as I can hack
out some Wicket code, but I'm not soooooo sure concerning concepts and
architecture...

Any input ?
Cheers, Tom.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submit-components-tp4119429p4161290.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: Form Submit components

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Dec 5, 2011 at 2:29 PM, cheesus <to...@tomeicher.de> wrote:
> Hmm, "change all under wicket.markup.html.navigation.paging
> to use SubmitLink instead of Link" sounds easier than it is.

What is hard with it ?

> Really, nobody has a pointer to a solution for "submit form upon table
> navigation" ?

Contributions are welcome!

> Cheers, Tom.
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submit-components-tp4119429p4160443.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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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


Re: Form Submit components

Posted by cheesus <to...@tomeicher.de>.
Hmm, "change all under wicket.markup.html.navigation.paging
to use SubmitLink instead of Link" sounds easier than it is.
Really, nobody has a pointer to a solution for "submit form upon table
navigation" ?
Cheers, Tom.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submit-components-tp4119429p4160443.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