Shouldn't it be getControlName() for the name attribute? From the apidocs:
"Returns the value used as the name attribute of the rendered element.
[...]"

Uli

Am Di, 14.10.2008, 13:36, schrieb Geoff Callender:
> A Hidden component will be in the next release of T5.
>
>       https://issues.apache.org/jira/browse/TAP5-265
>
> In the meantime, JumpStart has one.  You can see it in use (without
> any need for RequestGlobals) in
>
>       http://202.177.217.122:8080/jumpstart/examples/input/edit2/1
>
> Here's the code:
>
> // From
> http://article.gmane.org/gmane.comp.java.tapestry.user/54606/match=hidden+fields
>
> package jumpstart.web.components;
>
> import org.apache.tapestry5.MarkupWriter;
> import org.apache.tapestry5.corelib.base.AbstractTextField;
>
> public class Hidden extends AbstractTextField {
>
>       @Override
>       protected void writeFieldTag(MarkupWriter writer, String value) {
>               writer.element("input", "type", "hidden", "id", getClientId(),
> "name", getClientId(), "value", value);
>               writer.end();
>       }
>
> }
>
> Geoff
>
> On 14/10/2008, at 9:33 PM, Argo Vilberg wrote:
>
>> Hidden field example :
>>
>>
>>
>> <input t:type="Any" type="hidden" id="hashHex" name="hashHex"
>> value="hashHex"/>
>>
>> And in tapestry
>>
>>     @Inject
>>     private RequestGlobals requestGlobals;
>>
>> hashHex =
>> requestGlobals.getHTTPServletRequest().getParameter("hashHex");
>>
>>
>> Are there any better solution?
>>
>>
>> Argo
>>
>>
>>
>>
>> 2008/10/13, Geoff Callender <[EMAIL PROTECTED]>:
>>>
>>> Hi all,
>>>
>>> JumpStart 3.16 is now available.  It has heaps of new examples!
>>>
>>>       * Grid Model
>>>       * Editable Grid
>>>       * onActivate and OnPassivate
>>>       * Passing Data Between Pages
>>>       * Return Types
>>>       * Multiple Method Matches
>>>       * Event Bubbling
>>>       * Triggering a New Event
>>>       * Create (Using BeanEditForm)
>>>
>>> Use it live:
>>>
>>>        http://202.177.217.122:8080/jumpstart/
>>>
>>> or download it:
>>>
>>>        http://files.doublenegative.com.au/jumpstart .
>>>
>>> Feedback and suggestions are always welcome. The last lot of
>>> suggestions
>>> was absolutely sensational - thanks to all of you.  Please keep 'em
>>> flowing!
>>>
>>> Cheers,
>>>
>>> Geoff
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to