I have written an wicket page that collects some user input and calculates values. These values need to be sent to an external python script that does something with this data and renders a results page. This almost works fine but wicket messes up my form. In the HTML template I have specified my form like this:

<form method="post" action="some_url">
<input type="text" class="field" wicket:id="proteinId" name="protein_id" />
                <input type="submit" class="button" value="Go!" />
</form>

but when wicket renders the page it creates this:

<form method="post" action="some_url">
<input type="text" class="field" wicket:id="proteinId" name="mutantPredictionSubmitPanel:proteinId" value="adrb2_human"/>
                <input type="submit" class="button" value="Go!" />
</form>

The difference is in the name of proteinId value being rewritten from "protein_id" to "mutantPredictionSubmitPanel:proteinId", and this causes the python script at the other end to choke.

Is there a way to disable the rewriting of the name attribute, or specify my own name?



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to