New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to avoid some parameters from HDIV validations #82
Comments
Hello, You can solve this problem in two different ways:
<hdiv:startParameters>formId:activitydescription_selection</hdiv:startParameters>
<hdiv:paramsWithoutValidation>
<hdiv:mapping url="/hseadmin/pages/secured/admin/Layout.xhtml" parameters="formId:activitydescription_selection" />
</hdiv:paramsWithoutValidation> I hope it helps. |
Thanks fernandolozano, infact i tried putting the below script in my initial question but somehow it didn't came up..
Still no luck when i used it , So if i do this , do i need to update
pls. confirm |
My previous solution works for all frameworks except JSF. In this case you can only use |
Hi fernando,I will try this piece as you advised... |
You can do it like this:
|
thanks fernando, i will try this step and let you know the outcome :-) is it something done in new version of HDIV ? |
In the newest versions of HDIV there is no work done in this area but I would recommend you to update to the last HDIV version. |
thanks fernando, startParameters worked :-) is there any way we can use wildcard for parameter name like |
You can use any Java regular expression (Java Regex). |
hmm...can you share some examplle with reges used within startParameters, as <h:startParameters>tabView*</hdiv:startParameters> is not working.. |
I am using Primefaces Datatable component.
<p:dataTable id="activitydescription" var="type"
value="#{activityBean.activityList}" rows="#{activityBean.rowNo}" rowKey="#{type.activitySchemeId}"
This data table component creates a hidden field dynamically on the browser.
HDIV prevents and display the error page by sending this on console
org.hdiv.logs.Logger log INVALID_PARAMETER_NAME;/hseadmin/pages/secured/admin/Layout.xhtml;formId:activitydescription_selection;;0:0:0:0:0:0:0:1;0:0:0:0:0:0:0:1;anonymous
so how we an avoid using validation for these type of parameters...
i have used
hdiv:paramsWithoutValidation
<hdiv:mapping url=".*" parameters="formId:activitydescription_selection"/>
/hdiv:paramsWithoutValidation
bu still no luck..can somebody provide some pointers
The text was updated successfully, but these errors were encountered: