Note that there are some explanatory texts on larger screens.

plurals
  1. USMickelback
    primarykey
    data
    text
    plurals
    1. COSo I ended up going with the solution you presented by passing `#{null}` in as the first available value in the SelectOneMenu...this leads me to a question regarding the inserting of these values into the database. I'm using basic OJDBC and thus in my prepared statement, I can't use the `prepStmt.setInt(object.possibleNull)'. I've tried using the `setObject()` and that works fine, but before I get too far down this road, is there any pitfalls I should avoid? I.E. should I be using a different `set*()` of the prepared statement? Thanks again BalusC. You've helped me out a ton!
      singulars
    2. CONot sure if it matters, but just to clear up any ambugity with your test case (just hoping you can reproduce), the one SelectOneMenu simply sets the required/disabled flag via the <a4j:ajax> listener. Once that is set, I then click on the CommandButton to submit to the server, and regardless of the boolean value that determines the required / disabled, only the required attribute seems to behave correctly. The disabled attribute seems to care less what that value is set to. I've tried setting `@form` and `@all` on the renderd attribute of the <a4j:ajax/> comonent, but still no luck.
      singulars
    3. COThat is funny you mentioned changing the way I was doing this and simply setting the value to null. I actually thought of that (of course after I posted), however; I got an error due to trying to set a null value on an int field. I'm still fighting this desiabled thing because I don't really want to change my achitrecture due to a bug of some sort with the disabled attribute. I'm just about at my wits end with this though, so that might be the solution for the interim.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload