Auto save form USING JSF - jsf

I have the following need:
I need to persist in DB the data input at the JSF form from time to time, i have ones thoughts but might be a litle "Bug friendly" or/and low performatic,
someone have already took success solving this problem with JSF ?
EDIT:
Anyone that has the same problema, tried to solve that problem saving the updates inputs using "onchange"?
i think that this is the easier way to solve it , but i dont know if is a effective way to do it
Thank you'll in advance!

Related

Setting the CompoundStructure.EndCap is not working

I am working on a Revit plugin using RevitAPI.
I create a new WallType by duplicating existing one. Then I edit the structure - adding new layers.
Also, I am setting the OpeningWrapping to Both and I want to set the EndCap to Interior.
Unfortunately, the EndCap never changes and stays Exterior
structure.EndCap = EndCapCondition.Interior;
structure.OpeningWrapping = OpeningWrappingCondition.ExteriorAndInterior;
Does someone have any ideas about why it is not changing?
Thank you in advance!
Ivan
There could be many possible reasons.
Can you set the desired end cap behaviour manually through the user interface?
If not, it will normally not be possible to do so programmatically either.
Do you have an open transaction?
Can you commit other changes in it?
Are you applying other changes to the model that might conflict with the end cap condition?
Instead of asking you hundreds of questions, I suggest that you provide a minimal reproducible case:
http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b
p.s. the same question is also asked and further discussed here:
https://forums.autodesk.com/t5/revit-api-forum/compoundstructure-endcap-is-not-working/m-p/6898895

how to create a multi database search in xpage?

I've been experiencing a lot of headache for this issue I'm in. I need to create a multi-database search in xpage, this search functions like a mini google in xpage where if I type, for example,"test" all databases with the same name or contains a title with test will display. I've already looked with the Openntf Project http://www.openntf.org/main.nsf/project.xsp?r=project/Xpages%20Multi%20Database%20Search%20Custom%20Control this seems to solve my problem but unfortunately I'm encountering some error and I'm not a java specialist so I'm still waiting for the creator of the project to reply. So if you know something or tricks to do this kind of stuff its really appreciated. Thank you in advance.
Take a look at this:
Plugin to client's sidebar
Custom control for XPages
Ok, so I got it right by playing with the code inside the javascript in this openntf project. ( http://www.openntf.org/main.nsf/project.xsp?r=project/Xpages%20Multi%20Database%20Search%20Custom%20Control) it checks if the database is indexed or not, but unfortunately the script does not detect my indexed dbs so it throws nothing, i just comment out the line that checks it and it works! :)

Working Example of Method Call in richfaces

I have looked everywhere for the following issue, but unfortunately not able to find the solution. I an using JSF 2.2, richfaces, Netbeans 7.3.1 and GlassFish Server. I am trying to build a GUI for selecting multiple items in the rich:picklist, adding them to the right and clicking a submit button which would execute methods (having JDBC calls) associated with each of the selected items on the right and hence populating the tables in Database. Any working example would be greatly appreciated. Thanks!
You can see a live demo of all richfaces components here http://livedemo.exadel.com/richfaces-demo/
Here all the components usage and its tag information every thing is clearly given. Still if you feel any problem with understanding then you can post another question with a specific problem. The question you have asked is a very general one. no offense.
Hope above link helps you.

modx: eForm remembering field input on error

After I submit the form unsuccessfully, the form looses all the values I typed in.
I'm using value="", so that could be related, but if I remove it I get a / in the field, and it still doesn't remember
any idea what I could be doing wrong?
well for now I've used a javascript to do this, it works well but maybe someone has a php/modx/eform solution.
By unsuccessfully submitting the form do you mean it fails validation checks?
No matter what I do, I can't replicate the behaviour you are seeing.
Okay, so I figured it out. I had all the intention of going in and adding the functionality, when I came across line 573 in eform.inc.php "# get SESSION data - thanks to sottwell"
so it's already doing what I want it to.
anyhow, because I couldn't find this in any documentation here is what I've done. Though I must say faintly recall doing this exact thing before. So the next time I need this I might come across this :)
add a value=[+field+]
<input id="femail" name="email" value="[+email+]" eform="Email Address:email:1" />
just remember that the value needs to match the class and NOT the id(unless you want them the same)

how to work around the icefaces ice:selectInputDate validation issue

When using the IceFaces ice:selectInputDate a date selection always triggers the form validation.
So when a user selects a date all validation errors are shown.
That's especially tedious when the date input is at the beginning of the form and all fields are empty. Then the user will get presented with all the "Value missing" error messages.
It's so frustating and really is a shame for such a widely-used framework like IceFaces.
Anybody got any hints how to handle this bug?
http://jira.icefaces.org/browse/ICE-4535
(immediate="true" does not help)
Thanks.
I found out that the real problem is not the getting rid of the validation but that the validation for required="true" is missing completely after a partial submit is sent.
I resolved this here: http://jsfbrickyard.wordpress.com/2010/03/10/how-to-fix-the-requiredtrue-and-partial-submit-problem-in-icefaces/
another and maybe better solution (or workaround) is described in this blog entry:
http://jsfbrickyard.wordpress.com/2010/03/11/a-better-alternative-for-the-icefaces-inputselectinputdate-control/
it describes how to use jquery UI datepicker instead of the ice:selectInputdate control.
comments welcome.

Resources