RE: Can't get round this problem

2008-06-09 Thread Mathias P.W Nilsson
I have googled around for an external form in wicket but havn't found anything. I've seen some code on using WebMarkupContainer but I can't get validation to work with that. -- View this message in context: http://www.nabble.com/Can%27t-get-round-this-problem-tp17723379p17729068.html Sent from

Re: Can't get round this problem

2008-06-09 Thread Nino Saturnino Martinez Vazquez Wael
Hmm so you want a form with validation(wicket serverside validation), but it should action against an external site? I dont think thats the way to go. Please explain what you are trying todo? If you are just addend the md5 in a hidden attrib that should be trivial, just use a webmarkup

Re: Can't get round this problem

2008-06-09 Thread Sebastiaan van Erk
Don't use a HiddenField on the Wicket side but a WebMarkupContainer. The HTML side remains the same (i.e., input tag). Regards, Sebastiaan Mathias P.W Nilsson wrote: I have a page that has 2 fragment. One for normal ordering and one for credit card ordering. When sending the input type

Re: Can't get round this problem

2008-06-09 Thread Mathias P.W Nilsson
I want to populate 15 hidden fileds with data on AjaxSubmitLink( css styled button ). There is some validation on the form messaged back to the user using feedback. If the form is correct I want to post to external url. That's it. -- View this message in context:

Re: Can't get round this problem

2008-06-09 Thread Nino Saturnino Martinez Vazquez Wael
Okay but the problem is that if you go serverside towards wicket then you need to make the user do an extra submit, I guess you could use a normal wicket form, then submit via ajax. If validation are okay, return another completely hidden form with the values and submit it via the

Re: Can't get round this problem

2008-06-09 Thread Mathias P.W Nilsson
This is what I do now. When Ajax onSubmit is ok I append a callback that set's the forms action and post it. I have also now, changed the name on submit so that works, ( ugly of course ) . Problem is the flickering I append javascript to the target on AjaxSubmitLink but it makes a sort of post

Re: Can't get round this problem

2008-06-09 Thread Nino Saturnino Martinez Vazquez Wael
Mathias P.W Nilsson wrote: This is what I do now. When Ajax onSubmit is ok I append a callback that set's the forms action and post it. Hmm okay, not completely what I meant. I'd rater make a clean panel with markup containers where you set what you have and append that and submit that

Re: Can't get round this problem

2008-06-09 Thread Mathias P.W Nilsson
Here is the fragment for sending external data. The form is a class variable and is visible in the fragment final class PostenOrderFragment extends Fragment{ private static final long serialVersionUID = 1L; public PostenOrderFragment( String panel, String id ){

Re: Can't get round this problem

2008-06-09 Thread Nino Saturnino Martinez Vazquez Wael
Okay, im writing inline... Mathias P.W Nilsson wrote: Here is the fragment for sending external data. The form is a class variable and is visible in the fragment final class PostenOrderFragment extends Fragment{ private static final long serialVersionUID = 1L; public

Re: Can't get round this problem

2008-06-09 Thread Mathias P.W Nilsson
Thanks! I haven't posted all code but there is a check box acceptConditions that must be clicked to get this to work How can this be implemented in two forms? I'm not quite following. First I need to have wicket check all the data and that the conditions is checked. And then, how can I submit

Re: Can't get round this problem

2008-06-09 Thread Nino Saturnino Martinez Vazquez Wael
Mathias P.W Nilsson wrote: Thanks! No problem. I haven't posted all code but there is a check box acceptConditions that must be clicked to get this to work Okay, but just add that then if it's needed. Always remember when working with ajax only to update whats need or you could just

RE: Can't get round this problem

2008-06-08 Thread Alex Jacoby
Sounds like you're submitting the info to another website (not back to your wicket app), in which case you should just use a plain HTML form (without associated wicket form components): wicket won't change the input field names then. Alex -Original Message- From: Mathias P.W Nilsson

RE: Can't get round this problem

2008-06-08 Thread Mathias P.W Nilsson
The hidden fields are set after ajax submit and then I set the action on the form. I must MD5 some fields before submitting. Why can't this be done in wicket? -- View this message in context: http://www.nabble.com/Can%27t-get-round-this-problem-tp17723379p17723787.html Sent from the Wicket -

RE: Can't get round this problem

2008-06-08 Thread Alex Jacoby
I imagine it can be done, but I don't know how. You might want to explain more about what you're trying to do. -Original Message- From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED] Sent: Sun 6/8/2008 6:08 PM To: users@wicket.apache.org Subject: RE: Can't get round this problem