I don't get any PropertyNotFoundExceptions although I should - jsf

The title almost says it all. In expression language .. expressions I can put any arbitrary property names on beans, still I just get no errors or exceptions on the server console. For example:
<h:selectBooleanCheckbox id="stuff" value="#{bean.stuffEnabled}"
disabled="#{bean.iGuaranteeYouThisPropertyDoesntExistadfasdfokui}" />
I'm just getting nothing. No Error. This really sucks for debugging. I tried googling if there is a setting to disable this somewhere but didn't find anything helpful. Actually, most results I got where concerned with the opposite, getting rid of the PropertyNotFoundException ;)
FYI: this is Mojarra v2.1.19-redhat-1 on JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8)
Thanks for any help or pointers in the right direction

Related

How and why is p:inputMask submitting slotChar as value?

I have a web application using Primefaces 5.2, running on GlassFish 4.1, that has some elements p:inputMask like this example:
<p:inputMask slotChar="_" mask="9" required="true" />
In the server side, I realized that sometimes the submitted value is "_" (without quotes).
I tried to reproduce the problem, but I didn't understand how this happens.
I tried leaving the field blank, copy-paste, pressing enter... I searched in internet, but only found this problem on older versions of PrimeFaces.
I can't talk with users. I just know the last one who caused this error was using Google Chrome.
Does anyone have any clue about how to reproduce the problem? I need to understand this, so I can solve the problem.
Thanks.

No tag "notifyMessage" defined in tag library imported with prefix "rich"

I'm busy getting this red-line when trying to use <rich:notifyMessage>. I'm used to primefaces but for this project richfaces is inevitable, hence i'm quite a novice here. I'm using richfaces 3.3.4 final and all required jars are included. What could I be missing? Is there a perfect alternative for a notification message pop-up apart from <rich:message> or <rich:messages>? I'd really appreciate a working example too. Thanks in advance.

How to find the origin of some invasive html?

I've been working on the site https://founderspledge.com/ and just noticed that if you go to the main page, and open the Chrome console to view the source, there's an element that I certainly didn't put there:
<div class="pub_300x250 pub_300x250m pub_728x90 text-ad textAd
text_ad text_ads text-ads text-ad-links" style="position: absolute;">.</div>
It also doesn't show up when I run the site's code in localhost, or when I load the page source separately using Chrome's 'View Source' option.
I Googled the div's class list, and the top few hits were from anti-ad blocker software (eg https://github.com/sitexw/FuckAdBlock), which doesn't seem malign, but doesn't explain why it would be on this site.
So
1) How can I get rid of this element?
2) How might it have got there?
3) Does it imply there's a hole in the site's security?
UPDATE: Facebook have acknowledged this as a bug: https://developers.facebook.com/bugs/336662116810282/?hc_location=ufi
I'm so glad to find this issue - have been tearing my hair out to work out the same exact thing! I found it's coming from fbevents.js (https://connect.facebook.net/en_US/fbevents.js) version 2.8.7 - you can clearly see the code that adds the div in. It seems like this is something that has happened very recently? But likewise, I couldn't find anything other than references to anti adblocking scripts which had me concerned!

JSF - *.taglib.xml - attribute default value

I am facing a strange issue in JSF; The taglib.xml which I am trying to use for my jsf facelets; I am not sure how to set attribute default value in case of facelets so I tried this alike way (see code):
<tag>
<tag-name>ball</tag-name>
...
<attribute>
<name>color</name>
<default>green</default>
<required>false</required>
<type>java.lang.String</type>
</attribute>
...
</tag>
but I am really not sure cause seems like eclipse 3.7 content assist in case of having this default element doesn't work so I cannot use ctrl+space :(
So my question is... how really to set facelet default attribute value and if the <default></default> is correct then how to make my content assist work again 'cause, as I can remember, previously with no <default-value></default-value> it worked fine?
Thanks
Emm... After some testing I may confirm that <default> and <default-value> do make possible to set default attribute value (it is pretty clear watching generated html) but having those elements in *.taglib.xml make impossible to use eclipse 3.7 content assist :P
So probably, yes, it is some eclipse content assist issue...
p.s. I am still searching the issue coming exactly from so feel free to comment...

richfaces 3.3.3 problem with ie6

I am working using richfaces 3.3.3 , tomcat 6. when i try to access my application using IE6 and the windows language is set to arabic, i get the following exception:
IllegalArgumentException: Parameter "size" for convert from HTML to java can not be decoded: [1px], reason: Unparseable number: "1px".
when i change the windows language back to english, restart the server and try to log in again everything works fine..
Can anybody please help me with this issue
You have this problem. Unfortunately it seems to be a bug in the NumberFormat class.
I managed to find a workaround: In your rich:tabPanel, add the attribute headerSpacing="1" (without any unit). This will solve the parser problem. Took me quite a while debugging jsf and jdk to find out...
One more thing you need to do: In your skin, set generalSizeFont to a value without a unit. I.e. for example "generalSizeFont=11". Otherwise you will get the exception for icons (they will still work, though).

Resources