<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
BTW, an important question that we should consider is whether JSF itself should provide a facility for detecting whether client-side scripting is enabled. This could be very useful - ie. could allow us to solve long-standing problems. For example, if we have a way to detect when JavaScript is disabled, seems like we could provide an <h:commandLink> that works when JavaScript is disabled fairly easily (fall back to an <input type="submit">).</blockquote>
<div><br>I like this idea. Currently this is a wheel that every application (that cares about it) has to reinvent. +1 for providing real-world solutions in Java EE.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
As for how to go about detecting whether JavaScript is disabled, I was thinking we would do something along these lines:<br>
<br>
- FormRenderer spits out a <script> that dynamically adds a hidden field with some well known name.<br>
- On postback, we check to see whether this hidden field is present<br>
- If the hidden field is present, we know that scripting is enabled. Yay.<br>
- If the hidden field is not present, we assume that scripting is disabled.<br>
<br>
Of course, this means that we cannot detect whether JavaScript is enabled until the first postback is performed. Is there some way to get around this? Martin or Jeremy - I know you guys have provided solutions for this sort of thing - please let jump in if you have any suggestions.</blockquote>
<div><br>What we are most interested in is hearing about feedback from the community. We don't want a solution that people think is naive. If we do it, let's provide a solution that most people are willing to accept. Seems obviously, but obvious hasn't worked in the past.<br>
<br></div></div>-Dan<br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>
from my email. If you contact me, but don't hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters. Please don't hesitate to resend a message if<br>
you feel that it did not reach my attention.<br>