Wicket Renames my Form id

2010-03-15 Thread Steven Haines
Hi,

I've noticed that wicket is renaming my form id, which has become problematic 
when our JavaScript developer makes use of the id for some of his behaviors. Is 
there a way to tell Wicket to preserve the form id in the HTML page?

Here's what I'm doing:

HTML:
  form wicket:id=step_1 id=step_1
  ...
  /form

Java:
final FormQuote form = new FormQuote( step_1, new 
CompoundPropertyModelQuote( quote ) );


And the resultant HTML file reads as follows:
form wicket:id=step_1 id=step__15 method=post 
action=?wicket:interface=:2:step_1::IFormSubmitListener::div 
style=display:noneinput type=hidden name=step__15_hf_0 
id=step__15_hf_0 //div
  

Thanks in advance for your help!
Steve

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



Re: Wicket Renames my Form id

2010-03-15 Thread Major Péter
override
http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#getMarkupId()

2010-03-15 20:00 keltezéssel, Steven Haines írta:
 Hi,
 
 I've noticed that wicket is renaming my form id, which has become problematic 
 when our JavaScript developer makes use of the id for some of his behaviors. 
 Is there a way to tell Wicket to preserve the form id in the HTML page?
 
 Here's what I'm doing:
 
 HTML:
   form wicket:id=step_1 id=step_1
   ...
   /form
 
 Java:
 final FormQuote form = new FormQuote( step_1, new 
 CompoundPropertyModelQuote( quote ) );
 
 
 And the resultant HTML file reads as follows:
 form wicket:id=step_1 id=step__15 method=post 
 action=?wicket:interface=:2:step_1::IFormSubmitListener::div 
 style=display:noneinput type=hidden name=step__15_hf_0 
 id=step__15_hf_0 //div
   
 
 Thanks in advance for your help!
 Steve

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



Re: Wicket Renames my Form id

2010-03-15 Thread Igor Vaynberg
call form.setmarkupid()

-igor

On Mon, Mar 15, 2010 at 11:00 AM, Steven Haines lyg...@yahoo.com wrote:
 Hi,

 I've noticed that wicket is renaming my form id, which has become problematic 
 when our JavaScript developer makes use of the id for some of his behaviors. 
 Is there a way to tell Wicket to preserve the form id in the HTML page?

 Here's what I'm doing:

 HTML:
          form wicket:id=step_1 id=step_1
          ...
          /form

 Java:
        final FormQuote form = new FormQuote( step_1, new 
 CompoundPropertyModelQuote( quote ) );


 And the resultant HTML file reads as follows:
 form wicket:id=step_1 id=step__15 method=post 
 action=?wicket:interface=:2:step_1::IFormSubmitListener::div 
 style=display:noneinput type=hidden name=step__15_hf_0 
 id=step__15_hf_0 //div
          

 Thanks in advance for your help!
 Steve

 -
 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