Re: Setting html:text readonly attribute

2004-05-04 Thread John Moore
At 16:08 03/05/2004, Jason Miller wrote: Actually, you can't use a tag as the value of another tag's attribute. Out of interest, does anyone know whether there are plans for this for a future JSP version? It seems quite an obvious requirement, and I can't see any technical reason why it should

Setting html:text readonly attribute

2004-05-03 Thread John Moore
I'm having a big problem trying to dynamically set a value for the readonly attribute of an html:text tag. I'm using a JSTL core tag to try to set it and whatever I do is ignored. In the example below, the newPurchase property is a boolean. If I use exactly this tag elsewhere on the page, it

RE: Setting html:text readonly attribute

2004-05-03 Thread Paul McCulloch
} maxlength=5/ Paul -Original Message- From: John Moore [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 2:30 PM To: [EMAIL PROTECTED] Subject: Setting html:text readonly attribute I'm having a big problem trying to dynamically set a value for the readonly attribute

RE: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 16:09 03/05/2004, Paul McCulloch wrote: You cannot use one jsp tag to supply another jsp tag with a value for an attribute. This certainly explains my problem. I could swear that I was doing so successfully with an integer attribute, though, as I mentioned in my original post. Trying it

RE: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 16:09 03/05/2004, Paul McCulloch wrote: 1) Use an html (rather than a jsp) tag: input type=text name=licenceCount value=c:out value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out value='${purchaseForm.newPurchase}'/ maxlength=5/ I've found that this, unfortunately doesn't work, at

RE: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 21:07 03/05/2004, John Moore wrote: At 16:09 03/05/2004, Paul McCulloch wrote: 1) Use an html (rather than a jsp) tag: input type=text name=licenceCount value=c:out value='${purchaseForm.licenceCount}'/ size=3 readonly=c:out value='${purchaseForm.newPurchase}'/ maxlength=5/ I've found that

Re: Setting html:text readonly attribute

2004-05-03 Thread Craig McClanahan
Riyad Kalla wrote: Whats the diff between readonly and disabled=true, I've been using the latter... In the terminology of the HTML Specification [1], a disabled control disallows user input *and* the field will not be successful on a form submit. In other words, there will be no

Re: Setting html:text readonly attribute

2004-05-03 Thread Riyad Kalla
Ohhh hell. Chris thanks for the info, I have some serious code updates to make ;) Best, Riyad On Monday 03 May 2004 02:00 pm, Craig McClanahan wrote: Riyad Kalla wrote: Whats the diff between readonly and disabled=true, I've been using the latter... In the terminology of the HTML

Re: Setting html:text readonly attribute

2004-05-03 Thread Riyad Kalla
Whats the diff between readonly and disabled=true, I've been using the latter... On Monday 03 May 2004 01:25 pm, John Moore wrote: At 21:07 03/05/2004, John Moore wrote: At 16:09 03/05/2004, Paul McCulloch wrote: 1) Use an html (rather than a jsp) tag: input type=text name=licenceCount