List Info

Thread: Created: (JBSEAM-2292) Resources from resource servlet can't be re-




Created: (JBSEAM-2292) Resources from resource servlet can't be re-
country flaguser name
United States
2007-11-24 10:32:18
Resources from resource servlet can't be re-rendered
----------------------------------------------------

                 Key: JBSEAM-2292
                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-2292
             Project: JBoss Seam
          Issue Type: Bug
          Components: JSF
            Reporter: Christian Bauer


Found this after using the captcha:

            <div class="input">
                <a:region>
                    <s:validateAll>
                        <h:graphicImage
value="/seam/resource/captcha"
style="vertical-align:text-bottom;"/>
                        <h:inputText
tabindex="1" size="6"
maxlength="6" required="true"
id="verifyCaptcha"
value="#{captcha.response}">
                            <a:support
status="#" event="onblur"
reRender="verifyCaptchaEntry"/>
                        </h:inputText>
                    </s:validateAll>
                </a:region>
            </div>

This is a re-rendered s:decorate form field, so that onblur
we get a new challenge (if the captcha repsonse was wrong).
However, the graphicImage is not reloaded from the server,
the browser caches it. To prevent browser caching, this is a
quick hack:

            <div class="input">
                <a:region>
                    <s:validateAll>
                        <h:graphicImage
value="/seam/resource/captcha?nocache=#{wiki:generateRa
ndomNumber()}"
style="vertical-align:text-bottom;"/>
                        <h:inputText
tabindex="1" size="6"
maxlength="6" required="true"
id="verifyCaptcha"
value="#{captcha.response}">
                            <a:support
status="#" event="onblur"
reRender="verifyCaptchaEntry"/>
                        </h:inputText>
                    </s:validateAll>
                </a:region>
            </div>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

Assigned: (JBSEAM-2292) Resources from resource servlet can't be re
country flaguser name
United States
2007-11-25 17:48:18
     [ http://jira.jboss.com/jira/browse/JBSEAM-2292?page=all
]

Shane Bryzak reassigned JBSEAM-2292:
------------------------------------

    Assignee: Shane Bryzak

> Resources from resource servlet can't be re-rendered
> ----------------------------------------------------
>
>                 Key: JBSEAM-2292
>                 URL: http://
jira.jboss.com/jira/browse/JBSEAM-2292
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF
>            Reporter: Christian Bauer
>         Assigned To: Shane Bryzak
>
> Found this after using the captcha:
>             <div class="input">
>                 <a:region>
>                     <s:validateAll>
>                         <h:graphicImage
value="/seam/resource/captcha"
style="vertical-align:text-bottom;"/>
>                         <h:inputText
tabindex="1" size="6"
maxlength="6" required="true"
id="verifyCaptcha"
value="#{captcha.response}">
>                             <a:support
status="#" event="onblur"
reRender="verifyCaptchaEntry"/>
>                         </h:inputText>
>                     </s:validateAll>
>                 </a:region>
>             </div>
> This is a re-rendered s:decorate form field, so that
onblur we get a new challenge (if the captcha repsonse was
wrong). However, the graphicImage is not reloaded from the
server, the browser caches it. To prevent browser caching,
this is a quick hack:
>             <div class="input">
>                 <a:region>
>                     <s:validateAll>
>                         <h:graphicImage
value="/seam/resource/captcha?nocache=#{wiki:generateRa
ndomNumber()}"
style="vertical-align:text-bottom;"/>
>                         <h:inputText
tabindex="1" size="6"
maxlength="6" required="true"
id="verifyCaptcha"
value="#{captcha.response}">
>                             <a:support
status="#" event="onblur"
reRender="verifyCaptchaEntry"/>
>                         </h:inputText>
>                     </s:validateAll>
>                 </a:region>
>             </div>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )