tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harish Krishnaswamy <hkrishnasw...@comcast.net>
Subject Re: Unexpected attribute values on hidden fields
Date Tue, 06 Jan 2004 18:11:56 GMT
Wouldn't it be better to have the components pass the value they want rendered rather than
having 
the writer assume the value? Its not a big deal, but its a little counter intuitive.

-Harish

Howard M. Lewis Ship wrote:

> It's to handle things like <input type="radio" selected="selected"/> (i.e. XHTML
conformance).
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Tapestry: Java Web Components 
> http://jakarta.apache.org/tapestry/
> http://javatapestry.blogspot.com
> 
> 
>>-----Original Message-----
>>From: Harish Krishnaswamy [mailto:hkrishnaswamy@comcast.net] 
>>Sent: Tuesday, January 06, 2004 11:25 AM
>>To: 'Tapestry development'
>>Subject: Unexpected attribute values on hidden fields
>>
>>
>>Hi,
>>
>>I have an unencoded Hidden component that gets rendered with 
>>an attribute value of "value" when the 
>>actual parameter value is null. I see AbstractMarkupWriter 
>>writes the name of the attribute as its 
>>value if the actual value is null. Why is this so? Every time 
>>I use these Hidden components I have 
>>to explicitely set the value to an empty string which is a 
>>little awkward.
>>
>>-Harish
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message